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 JAVA_FLAGS_BIG 648 JAVA_FLAGS 649 TEST_JOBS 650 JOBS 651 MEMORY_SIZE 652 NUM_CORES 653 ENABLE_INTREE_EC 654 HOTSPOT_MAKE_ARGS 655 LIBZIP_CAN_USE_MMAP 656 LIBDL 657 LIBM 658 USE_EXTERNAL_LCMS 659 LCMS_LIBS 660 LCMS_CFLAGS 661 USE_EXTERNAL_LIBZ 662 USE_EXTERNAL_LIBPNG 663 PNG_LIBS 664 PNG_CFLAGS 665 USE_EXTERNAL_LIBGIF 666 USE_EXTERNAL_LIBJPEG 667 LLVM_LIBS 668 LLVM_LDFLAGS 669 LLVM_CFLAGS 670 LLVM_CONFIG 671 LIBFFI_LIBS 672 LIBFFI_CFLAGS 673 ALSA_LIBS 674 ALSA_CFLAGS 675 FREETYPE_BUNDLE_LIB_PATH 676 FREETYPE_LIBS 677 FREETYPE_CFLAGS 678 CUPS_CFLAGS 679 X_EXTRA_LIBS 680 X_LIBS 681 X_PRE_LIBS 682 X_CFLAGS 683 XMKMF 684 MSVCP_DLL 685 MSVCR_DLL 686 LIBCXX 687 STATIC_CXX_SETTING 688 FIXPATH_DETACH_FLAG 689 FIXPATH 690 GCOV_ENABLED 691 STRIP_POLICY 692 DEBUG_BINARIES 693 ZIP_EXTERNAL_DEBUG_SYMBOLS 694 COPY_DEBUG_SYMBOLS 695 COMPILE_WITH_DEBUG_SYMBOLS 696 CFLAGS_WARNINGS_ARE_ERRORS 697 DISABLE_WARNING_PREFIX 698 HOTSPOT_SET_WARNINGS_AS_ERRORS 699 WARNINGS_AS_ERRORS 700 COMPILER_SUPPORTS_TARGET_BITS_FLAG 701 ZERO_ARCHFLAG 702 LDFLAGS_TESTEXE 703 LDFLAGS_TESTLIB 704 LDFLAGS_HASH_STYLE 705 LDFLAGS_CXX_JDK 706 JDKEXE_LIBS 707 JDKLIB_LIBS 708 LDFLAGS_JDKEXE 709 LDFLAGS_JDKLIB 710 CXXFLAGS_TESTEXE 711 CXXFLAGS_TESTLIB 712 CFLAGS_TESTEXE 713 CFLAGS_TESTLIB 714 CXXFLAGS_JDKEXE 715 CXXFLAGS_JDKLIB 716 CFLAGS_JDKEXE 717 CFLAGS_JDKLIB 718 MACOSX_VERSION_MIN 719 CXX_O_FLAG_NONE 720 CXX_O_FLAG_DEBUG 721 CXX_O_FLAG_NORM 722 CXX_O_FLAG_HI 723 CXX_O_FLAG_HIGHEST 724 C_O_FLAG_NONE 725 C_O_FLAG_DEBUG 726 C_O_FLAG_NORM 727 C_O_FLAG_HI 728 C_O_FLAG_HIGHEST 729 CXXFLAGS_DEBUG_SYMBOLS 730 CFLAGS_DEBUG_SYMBOLS 731 CXX_FLAG_DEPS 732 C_FLAG_DEPS 733 SHARED_LIBRARY_FLAGS 734 SET_SHARED_LIBRARY_MAPFILE 735 SET_SHARED_LIBRARY_NAME 736 SET_SHARED_LIBRARY_ORIGIN 737 SET_EXECUTABLE_ORIGIN 738 CXX_FLAG_REORDER 739 C_FLAG_REORDER 740 RC_FLAGS 741 AR_OUT_OPTION 742 LD_OUT_OPTION 743 EXE_OUT_OPTION 744 CC_OUT_OPTION 745 STRIPFLAGS 746 ARFLAGS 747 COMPILER_BINDCMD_FILE_FLAG 748 COMPILER_COMMAND_FILE_FLAG 749 COMPILER_TARGET_BITS_FLAG 750 JT_HOME 751 JTREGEXE 752 USING_BROKEN_SUSE_LD 753 PACKAGE_PATH 754 USE_CLANG 755 HOTSPOT_LD 756 HOTSPOT_CXX 757 HOTSPOT_RC 758 HOTSPOT_MT 759 BUILD_AS 760 BUILD_LDCXX 761 BUILD_LD 762 BUILD_AR 763 BUILD_NM 764 BUILD_CXX 765 BUILD_CC 766 BUILD_SYSROOT_LDFLAGS 767 BUILD_SYSROOT_CFLAGS 768 ac_ct_OBJDUMP 769 OBJDUMP 770 ac_ct_OBJCOPY 771 OBJCOPY 772 ac_ct_NM 773 ac_ct_STRIP 774 GNM 775 NM 776 STRIP 777 MSBUILD 778 DUMPBIN 779 RC 780 MT 781 LIPO 782 ac_ct_AR 783 AR 784 AS 785 LDCXX 786 LD 787 CXXCPP 788 CPP 789 CXX_VERSION_NUMBER 790 CC_VERSION_NUMBER 791 ac_ct_CXX 792 CXXFLAGS 793 CXX 794 TOOLCHAIN_PATH_CXX 795 POTENTIAL_CXX 796 OBJEXT 797 EXEEXT 798 ac_ct_CC 799 CPPFLAGS 800 LDFLAGS 801 CFLAGS 802 CC 803 TOOLCHAIN_PATH_CC 804 POTENTIAL_CC 805 TOOLCHAIN_VERSION 806 VS_LIB 807 VS_INCLUDE 808 VS_PATH 809 CYGWIN_LINK 810 SYSROOT_LDFLAGS 811 SYSROOT_CFLAGS 812 LEGACY_EXTRA_LDFLAGS 813 LEGACY_EXTRA_CXXFLAGS 814 LEGACY_EXTRA_CFLAGS 815 EXE_SUFFIX 816 OBJ_SUFFIX 817 STATIC_LIBRARY 818 SHARED_LIBRARY 819 STATIC_LIBRARY_SUFFIX 820 SHARED_LIBRARY_SUFFIX 821 LIBRARY_PREFIX 822 TOOLCHAIN_TYPE 823 STATIC_BUILD 824 BUILD_HOTSPOT 825 HOTSPOT_DIST 826 BUILD_OUTPUT 827 JDK_TOPDIR 828 NASHORN_TOPDIR 829 HOTSPOT_TOPDIR 830 JAXWS_TOPDIR 831 JAXP_TOPDIR 832 CORBA_TOPDIR 833 LANGTOOLS_TOPDIR 834 BOOT_JDK_BITS 835 JAVAC_FLAGS 836 BOOT_JDK_SOURCETARGET 837 JARSIGNER 838 JAR 839 JAVAH 840 JAVAC 841 JAVA 842 BOOT_JDK 843 JAVA_CHECK 844 JAVAC_CHECK 845 VERSION_IS_GA 846 VERSION_SHORT 847 VERSION_STRING 848 VERSION_NUMBER_FOUR_POSITIONS 849 VERSION_NUMBER 850 VERSION_OPT 851 VERSION_BUILD 852 VERSION_PRE 853 VERSION_PATCH 854 VERSION_SECURITY 855 VERSION_MINOR 856 VERSION_MAJOR 857 MACOSX_BUNDLE_ID_BASE 858 MACOSX_BUNDLE_NAME_BASE 859 COMPANY_NAME 860 JDK_RC_PLATFORM_NAME 861 PRODUCT_SUFFIX 862 PRODUCT_NAME 863 LAUNCHER_NAME 864 TEST_IN_BUILD 865 COPYRIGHT_YEAR 866 COMPRESS_JARS 867 INCLUDE_SA 868 UNLIMITED_CRYPTO 869 CACERTS_FILE 870 BUILD_HEADLESS 871 SUPPORT_HEADFUL 872 SUPPORT_HEADLESS 873 DEFAULT_MAKE_TARGET 874 OS_VERSION_MICRO 875 OS_VERSION_MINOR 876 OS_VERSION_MAJOR 877 PKG_CONFIG 878 BASH_ARGS 879 SETFILE 880 CODESIGN 881 XATTR 882 DSYMUTIL 883 IS_GNU_TIME 884 PATCH 885 TIME 886 STAT 887 HG 888 READELF 889 OTOOL 890 LDD 891 ZIP 892 UNZIP 893 FIND_DELETE 894 OUTPUT_SYNC 895 OUTPUT_SYNC_SUPPORTED 896 CHECK_TOOLSDIR_MAKE 897 CHECK_TOOLSDIR_GMAKE 898 CHECK_MAKE 899 CHECK_GMAKE 900 MAKE 901 PKGHANDLER 902 CONFIGURESUPPORT_OUTPUTDIR 903 OUTPUT_ROOT 904 CONF_NAME 905 SPEC 906 SDKROOT 907 XCODEBUILD 908 BUILD_VARIANT_RELEASE 909 DEBUG_CLASSFILES 910 FASTDEBUG 911 VARIANT 912 DEBUG_LEVEL 913 MACOSX_UNIVERSAL 914 JVM_VARIANT_CORE 915 JVM_VARIANT_ZEROSHARK 916 JVM_VARIANT_ZERO 917 JVM_VARIANT_MINIMAL1 918 JVM_VARIANT_CLIENT 919 JVM_VARIANT_SERVER 920 JVM_VARIANTS 921 JVM_INTERPRETER 922 JDK_VARIANT 923 SET_OPENJDK 924 USERNAME 925 CANONICAL_TOPDIR 926 ORIGINAL_TOPDIR 927 TOPDIR 928 PATH_SEP 929 ZERO_ARCHDEF 930 DEFINE_CROSS_COMPILE_ARCH 931 LP64 932 OPENJDK_TARGET_OS_EXPORT_DIR 933 OPENJDK_TARGET_CPU_JLI_CFLAGS 934 OPENJDK_TARGET_CPU_OSARCH 935 OPENJDK_TARGET_CPU_ISADIR 936 OPENJDK_TARGET_CPU_LIBDIR 937 OPENJDK_TARGET_CPU_LEGACY_LIB 938 OPENJDK_TARGET_CPU_LEGACY 939 REQUIRED_OS_VERSION 940 REQUIRED_OS_NAME 941 COMPILE_TYPE 942 OPENJDK_TARGET_CPU_ENDIAN 943 OPENJDK_TARGET_CPU_BITS 944 OPENJDK_TARGET_CPU_ARCH 945 OPENJDK_TARGET_CPU 946 OPENJDK_TARGET_OS_ENV 947 OPENJDK_TARGET_OS_TYPE 948 OPENJDK_TARGET_OS 949 OPENJDK_BUILD_CPU_ENDIAN 950 OPENJDK_BUILD_CPU_BITS 951 OPENJDK_BUILD_CPU_ARCH 952 OPENJDK_BUILD_CPU 953 OPENJDK_BUILD_OS_ENV 954 OPENJDK_BUILD_OS_TYPE 955 OPENJDK_BUILD_OS 956 OPENJDK_BUILD_AUTOCONF_NAME 957 OPENJDK_TARGET_AUTOCONF_NAME 958 target_os 959 target_vendor 960 target_cpu 961 target 962 host_os 963 host_vendor 964 host_cpu 965 host 966 build_os 967 build_vendor 968 build_cpu 969 build 970 NICE 971 CPIO 972 DF 973 READLINK 974 CYGPATH 975 SED 976 FGREP 977 EGREP 978 GREP 979 AWK 980 XARGS 981 WHICH 982 WC 983 UNIQ 984 UNAME 985 TR 986 TOUCH 987 TEE 988 TAR 989 TAIL 990 SORT 991 SH 992 RMDIR 993 RM 994 PRINTF 995 NAWK 996 MV 997 MKTEMP 998 MKDIR 999 LS 1000 LN 1001 HEAD 1002 FIND 1003 FILE 1004 EXPR 1005 ECHO 1006 DIRNAME 1007 DIFF 1008 DATE 1009 CUT 1010 CP 1011 COMM 1012 CMP 1013 CHMOD 1014 CAT 1015 BASH 1016 BASENAME 1017 DATE_WHEN_CONFIGURED 1018 ORIGINAL_PATH 1019 CONFIGURE_COMMAND_LINE 1020 target_alias 1021 host_alias 1022 build_alias 1023 LIBS 1024 ECHO_T 1025 ECHO_N 1026 ECHO_C 1027 DEFS 1028 mandir 1029 localedir 1030 libdir 1031 psdir 1032 pdfdir 1033 dvidir 1034 htmldir 1035 infodir 1036 docdir 1037 oldincludedir 1038 includedir 1039 localstatedir 1040 sharedstatedir 1041 sysconfdir 1042 datadir 1043 datarootdir 1044 libexecdir 1045 sbindir 1046 bindir 1047 program_transform_name 1048 prefix 1049 exec_prefix 1050 PACKAGE_URL 1051 PACKAGE_BUGREPORT 1052 PACKAGE_STRING 1053 PACKAGE_VERSION 1054 PACKAGE_TARNAME 1055 PACKAGE_NAME 1056 PATH_SEPARATOR 1057 SHELL' 1058 ac_subst_files='' 1059 ac_user_opts=' 1060 enable_option_checking 1061 with_target_bits 1062 enable_openjdk_only 1063 with_custom_make_dir 1064 with_jdk_variant 1065 with_jvm_interpreter 1066 with_jvm_variants 1067 enable_debug 1068 with_debug_level 1069 with_devkit 1070 with_sys_root 1071 with_sysroot 1072 with_tools_dir 1073 with_toolchain_path 1074 with_extra_path 1075 with_sdk_name 1076 with_conf_name 1077 with_output_sync 1078 with_default_make_target 1079 enable_headful 1080 with_cacerts_file 1081 enable_unlimited_crypto 1082 with_copyright_year 1083 enable_hotspot_test_in_build 1084 with_milestone 1085 with_update_version 1086 with_user_release_suffix 1087 with_build_number 1088 with_version_string 1089 with_version_pre 1090 with_version_opt 1091 with_version_build 1092 with_version_major 1093 with_version_minor 1094 with_version_security 1095 with_version_patch 1096 with_boot_jdk 1097 with_add_source_root 1098 with_override_source_root 1099 with_adds_and_overrides 1100 with_override_langtools 1101 with_override_corba 1102 with_override_jaxp 1103 with_override_jaxws 1104 with_override_hotspot 1105 with_override_nashorn 1106 with_override_jdk 1107 with_import_hotspot 1108 enable_static_build 1109 with_toolchain_type 1110 with_extra_cflags 1111 with_extra_cxxflags 1112 with_extra_ldflags 1113 with_toolchain_version 1114 with_build_devkit 1115 with_jtreg 1116 enable_warnings_as_errors 1117 with_native_debug_symbols 1118 enable_debug_symbols 1119 enable_zip_debug_info 1120 enable_native_coverage 1121 with_stdc__lib 1122 with_msvcr_dll 1123 with_msvcp_dll 1124 with_x 1125 with_cups 1126 with_cups_include 1127 with_freetype 1128 with_freetype_include 1129 with_freetype_lib 1130 with_freetype_src 1131 enable_freetype_bundling 1132 with_alsa 1133 with_alsa_include 1134 with_alsa_lib 1135 with_libffi 1136 with_libffi_include 1137 with_libffi_lib 1138 with_libjpeg 1139 with_giflib 1140 with_libpng 1141 with_zlib 1142 with_lcms 1143 with_dxsdk 1144 with_dxsdk_lib 1145 with_dxsdk_include 1146 with_num_cores 1147 with_memory_size 1148 with_jobs 1149 with_test_jobs 1150 with_boot_jdk_jvmargs 1151 with_sjavac_server_java 1152 enable_sjavac 1153 enable_javac_server 1154 enable_icecc 1155 enable_precompiled_headers 1156 enable_ccache 1157 with_ccache_dir 1158 ' 1159 ac_precious_vars='build_alias 1160 host_alias 1161 target_alias 1162 BASENAME 1163 BASH 1164 CAT 1165 CHMOD 1166 CMP 1167 COMM 1168 CP 1169 CUT 1170 DATE 1171 DIFF 1172 DIRNAME 1173 ECHO 1174 EXPR 1175 FILE 1176 FIND 1177 HEAD 1178 LN 1179 LS 1180 MKDIR 1181 MKTEMP 1182 MV 1183 NAWK 1184 PRINTF 1185 RM 1186 RMDIR 1187 SH 1188 SORT 1189 TAIL 1190 TAR 1191 TEE 1192 TOUCH 1193 TR 1194 UNAME 1195 UNIQ 1196 WC 1197 WHICH 1198 XARGS 1199 AWK 1200 GREP 1201 EGREP 1202 FGREP 1203 SED 1204 CYGPATH 1205 READLINK 1206 DF 1207 CPIO 1208 NICE 1209 MAKE 1210 UNZIP 1211 ZIP 1212 LDD 1213 OTOOL 1214 READELF 1215 HG 1216 STAT 1217 TIME 1218 PATCH 1219 DSYMUTIL 1220 XATTR 1221 CODESIGN 1222 SETFILE 1223 PKG_CONFIG 1224 JAVA 1225 JAVAC 1226 JAVAH 1227 JAR 1228 JARSIGNER 1229 CC 1230 CFLAGS 1231 LDFLAGS 1232 LIBS 1233 CPPFLAGS 1234 CXX 1235 CXXFLAGS 1236 CCC 1237 CPP 1238 CXXCPP 1239 AS 1240 AR 1241 LIPO 1242 STRIP 1243 NM 1244 GNM 1245 OBJCOPY 1246 OBJDUMP 1247 BUILD_CC 1248 BUILD_CXX 1249 BUILD_NM 1250 BUILD_AR 1251 JTREGEXE 1252 XMKMF 1253 FREETYPE_CFLAGS 1254 FREETYPE_LIBS 1255 ALSA_CFLAGS 1256 ALSA_LIBS 1257 LIBFFI_CFLAGS 1258 LIBFFI_LIBS 1259 PNG_CFLAGS 1260 PNG_LIBS 1261 LCMS_CFLAGS 1262 LCMS_LIBS 1263 ICECC_CMD 1264 ICECC_CREATE_ENV 1265 ICECC_WRAPPER 1266 CCACHE' 1267 1268 1269 # Initialize some variables set by options. 1270 ac_init_help= 1271 ac_init_version=false 1272 ac_unrecognized_opts= 1273 ac_unrecognized_sep= 1274 # The variables have the same names as the options, with 1275 # dashes changed to underlines. 1276 cache_file=/dev/null 1277 exec_prefix=NONE 1278 no_create= 1279 no_recursion= 1280 prefix=NONE 1281 program_prefix=NONE 1282 program_suffix=NONE 1283 program_transform_name=s,x,x, 1284 silent= 1285 site= 1286 srcdir= 1287 verbose= 1288 x_includes=NONE 1289 x_libraries=NONE 1290 1291 # Installation directory options. 1292 # These are left unexpanded so users can "make install exec_prefix=/foo" 1293 # and all the variables that are supposed to be based on exec_prefix 1294 # by default will actually change. 1295 # Use braces instead of parens because sh, perl, etc. also accept them. 1296 # (The list follows the same order as the GNU Coding Standards.) 1297 bindir='${exec_prefix}/bin' 1298 sbindir='${exec_prefix}/sbin' 1299 libexecdir='${exec_prefix}/libexec' 1300 datarootdir='${prefix}/share' 1301 datadir='${datarootdir}' 1302 sysconfdir='${prefix}/etc' 1303 sharedstatedir='${prefix}/com' 1304 localstatedir='${prefix}/var' 1305 includedir='${prefix}/include' 1306 oldincludedir='/usr/include' 1307 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1308 infodir='${datarootdir}/info' 1309 htmldir='${docdir}' 1310 dvidir='${docdir}' 1311 pdfdir='${docdir}' 1312 psdir='${docdir}' 1313 libdir='${exec_prefix}/lib' 1314 localedir='${datarootdir}/locale' 1315 mandir='${datarootdir}/man' 1316 1317 ac_prev= 1318 ac_dashdash= 1319 for ac_option 1320 do 1321 # If the previous option needs an argument, assign it. 1322 if test -n "$ac_prev"; then 1323 eval $ac_prev=\$ac_option 1324 ac_prev= 1325 continue 1326 fi 1327 1328 case $ac_option in 1329 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1330 *=) ac_optarg= ;; 1331 *) ac_optarg=yes ;; 1332 esac 1333 1334 # Accept the important Cygnus configure options, so we can diagnose typos. 1335 1336 case $ac_dashdash$ac_option in 1337 --) 1338 ac_dashdash=yes ;; 1339 1340 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1341 ac_prev=bindir ;; 1342 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1343 bindir=$ac_optarg ;; 1344 1345 -build | --build | --buil | --bui | --bu) 1346 ac_prev=build_alias ;; 1347 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1348 build_alias=$ac_optarg ;; 1349 1350 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1351 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1352 ac_prev=cache_file ;; 1353 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1354 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1355 cache_file=$ac_optarg ;; 1356 1357 --config-cache | -C) 1358 cache_file=config.cache ;; 1359 1360 -datadir | --datadir | --datadi | --datad) 1361 ac_prev=datadir ;; 1362 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1363 datadir=$ac_optarg ;; 1364 1365 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1366 | --dataroo | --dataro | --datar) 1367 ac_prev=datarootdir ;; 1368 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1369 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1370 datarootdir=$ac_optarg ;; 1371 1372 -disable-* | --disable-*) 1373 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1374 # Reject names that are not valid shell variable names. 1375 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1376 as_fn_error $? "invalid feature name: $ac_useropt" 1377 ac_useropt_orig=$ac_useropt 1378 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1379 case $ac_user_opts in 1380 *" 1381 "enable_$ac_useropt" 1382 "*) ;; 1383 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1384 ac_unrecognized_sep=', ';; 1385 esac 1386 eval enable_$ac_useropt=no ;; 1387 1388 -docdir | --docdir | --docdi | --doc | --do) 1389 ac_prev=docdir ;; 1390 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1391 docdir=$ac_optarg ;; 1392 1393 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1394 ac_prev=dvidir ;; 1395 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1396 dvidir=$ac_optarg ;; 1397 1398 -enable-* | --enable-*) 1399 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1400 # Reject names that are not valid shell variable names. 1401 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1402 as_fn_error $? "invalid feature name: $ac_useropt" 1403 ac_useropt_orig=$ac_useropt 1404 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1405 case $ac_user_opts in 1406 *" 1407 "enable_$ac_useropt" 1408 "*) ;; 1409 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1410 ac_unrecognized_sep=', ';; 1411 esac 1412 eval enable_$ac_useropt=\$ac_optarg ;; 1413 1414 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1415 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1416 | --exec | --exe | --ex) 1417 ac_prev=exec_prefix ;; 1418 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1419 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1420 | --exec=* | --exe=* | --ex=*) 1421 exec_prefix=$ac_optarg ;; 1422 1423 -gas | --gas | --ga | --g) 1424 # Obsolete; use --with-gas. 1425 with_gas=yes ;; 1426 1427 -help | --help | --hel | --he | -h) 1428 ac_init_help=long ;; 1429 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1430 ac_init_help=recursive ;; 1431 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1432 ac_init_help=short ;; 1433 1434 -host | --host | --hos | --ho) 1435 ac_prev=host_alias ;; 1436 -host=* | --host=* | --hos=* | --ho=*) 1437 host_alias=$ac_optarg ;; 1438 1439 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1440 ac_prev=htmldir ;; 1441 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1442 | --ht=*) 1443 htmldir=$ac_optarg ;; 1444 1445 -includedir | --includedir | --includedi | --included | --include \ 1446 | --includ | --inclu | --incl | --inc) 1447 ac_prev=includedir ;; 1448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1449 | --includ=* | --inclu=* | --incl=* | --inc=*) 1450 includedir=$ac_optarg ;; 1451 1452 -infodir | --infodir | --infodi | --infod | --info | --inf) 1453 ac_prev=infodir ;; 1454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1455 infodir=$ac_optarg ;; 1456 1457 -libdir | --libdir | --libdi | --libd) 1458 ac_prev=libdir ;; 1459 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1460 libdir=$ac_optarg ;; 1461 1462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1463 | --libexe | --libex | --libe) 1464 ac_prev=libexecdir ;; 1465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1466 | --libexe=* | --libex=* | --libe=*) 1467 libexecdir=$ac_optarg ;; 1468 1469 -localedir | --localedir | --localedi | --localed | --locale) 1470 ac_prev=localedir ;; 1471 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1472 localedir=$ac_optarg ;; 1473 1474 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1475 | --localstate | --localstat | --localsta | --localst | --locals) 1476 ac_prev=localstatedir ;; 1477 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1478 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1479 localstatedir=$ac_optarg ;; 1480 1481 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1482 ac_prev=mandir ;; 1483 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1484 mandir=$ac_optarg ;; 1485 1486 -nfp | --nfp | --nf) 1487 # Obsolete; use --without-fp. 1488 with_fp=no ;; 1489 1490 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1491 | --no-cr | --no-c | -n) 1492 no_create=yes ;; 1493 1494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1496 no_recursion=yes ;; 1497 1498 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1499 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1500 | --oldin | --oldi | --old | --ol | --o) 1501 ac_prev=oldincludedir ;; 1502 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1503 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1504 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1505 oldincludedir=$ac_optarg ;; 1506 1507 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1508 ac_prev=prefix ;; 1509 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1510 prefix=$ac_optarg ;; 1511 1512 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1513 | --program-pre | --program-pr | --program-p) 1514 ac_prev=program_prefix ;; 1515 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1516 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1517 program_prefix=$ac_optarg ;; 1518 1519 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1520 | --program-suf | --program-su | --program-s) 1521 ac_prev=program_suffix ;; 1522 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1523 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1524 program_suffix=$ac_optarg ;; 1525 1526 -program-transform-name | --program-transform-name \ 1527 | --program-transform-nam | --program-transform-na \ 1528 | --program-transform-n | --program-transform- \ 1529 | --program-transform | --program-transfor \ 1530 | --program-transfo | --program-transf \ 1531 | --program-trans | --program-tran \ 1532 | --progr-tra | --program-tr | --program-t) 1533 ac_prev=program_transform_name ;; 1534 -program-transform-name=* | --program-transform-name=* \ 1535 | --program-transform-nam=* | --program-transform-na=* \ 1536 | --program-transform-n=* | --program-transform-=* \ 1537 | --program-transform=* | --program-transfor=* \ 1538 | --program-transfo=* | --program-transf=* \ 1539 | --program-trans=* | --program-tran=* \ 1540 | --progr-tra=* | --program-tr=* | --program-t=*) 1541 program_transform_name=$ac_optarg ;; 1542 1543 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1544 ac_prev=pdfdir ;; 1545 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1546 pdfdir=$ac_optarg ;; 1547 1548 -psdir | --psdir | --psdi | --psd | --ps) 1549 ac_prev=psdir ;; 1550 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1551 psdir=$ac_optarg ;; 1552 1553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1554 | -silent | --silent | --silen | --sile | --sil) 1555 silent=yes ;; 1556 1557 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1558 ac_prev=sbindir ;; 1559 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1560 | --sbi=* | --sb=*) 1561 sbindir=$ac_optarg ;; 1562 1563 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1564 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1565 | --sharedst | --shareds | --shared | --share | --shar \ 1566 | --sha | --sh) 1567 ac_prev=sharedstatedir ;; 1568 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1569 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1570 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1571 | --sha=* | --sh=*) 1572 sharedstatedir=$ac_optarg ;; 1573 1574 -site | --site | --sit) 1575 ac_prev=site ;; 1576 -site=* | --site=* | --sit=*) 1577 site=$ac_optarg ;; 1578 1579 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1580 ac_prev=srcdir ;; 1581 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1582 srcdir=$ac_optarg ;; 1583 1584 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1585 | --syscon | --sysco | --sysc | --sys | --sy) 1586 ac_prev=sysconfdir ;; 1587 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1588 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1589 sysconfdir=$ac_optarg ;; 1590 1591 -target | --target | --targe | --targ | --tar | --ta | --t) 1592 ac_prev=target_alias ;; 1593 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1594 target_alias=$ac_optarg ;; 1595 1596 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1597 verbose=yes ;; 1598 1599 -version | --version | --versio | --versi | --vers | -V) 1600 ac_init_version=: ;; 1601 1602 -with-* | --with-*) 1603 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1604 # Reject names that are not valid shell variable names. 1605 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1606 as_fn_error $? "invalid package name: $ac_useropt" 1607 ac_useropt_orig=$ac_useropt 1608 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1609 case $ac_user_opts in 1610 *" 1611 "with_$ac_useropt" 1612 "*) ;; 1613 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1614 ac_unrecognized_sep=', ';; 1615 esac 1616 eval with_$ac_useropt=\$ac_optarg ;; 1617 1618 -without-* | --without-*) 1619 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1620 # Reject names that are not valid shell variable names. 1621 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1622 as_fn_error $? "invalid package name: $ac_useropt" 1623 ac_useropt_orig=$ac_useropt 1624 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1625 case $ac_user_opts in 1626 *" 1627 "with_$ac_useropt" 1628 "*) ;; 1629 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1630 ac_unrecognized_sep=', ';; 1631 esac 1632 eval with_$ac_useropt=no ;; 1633 1634 --x) 1635 # Obsolete; use --with-x. 1636 with_x=yes ;; 1637 1638 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1639 | --x-incl | --x-inc | --x-in | --x-i) 1640 ac_prev=x_includes ;; 1641 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1642 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1643 x_includes=$ac_optarg ;; 1644 1645 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1646 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1647 ac_prev=x_libraries ;; 1648 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1649 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1650 x_libraries=$ac_optarg ;; 1651 1652 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1653 Try \`$0 --help' for more information" 1654 ;; 1655 1656 *=*) 1657 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1658 # Reject names that are not valid shell variable names. 1659 case $ac_envvar in #( 1660 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1661 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1662 esac 1663 eval $ac_envvar=\$ac_optarg 1664 export $ac_envvar ;; 1665 1666 *) 1667 # FIXME: should be removed in autoconf 3.0. 1668 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1669 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1670 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1671 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1672 ;; 1673 1674 esac 1675 done 1676 1677 if test -n "$ac_prev"; then 1678 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1679 as_fn_error $? "missing argument to $ac_option" 1680 fi 1681 1682 if test -n "$ac_unrecognized_opts"; then 1683 case $enable_option_checking in 1684 no) ;; 1685 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1686 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1687 esac 1688 fi 1689 1690 # Check all directory arguments for consistency. 1691 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1692 datadir sysconfdir sharedstatedir localstatedir includedir \ 1693 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1694 libdir localedir mandir 1695 do 1696 eval ac_val=\$$ac_var 1697 # Remove trailing slashes. 1698 case $ac_val in 1699 */ ) 1700 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1701 eval $ac_var=\$ac_val;; 1702 esac 1703 # Be sure to have absolute directory names. 1704 case $ac_val in 1705 [\\/$]* | ?:[\\/]* ) continue;; 1706 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1707 esac 1708 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1709 done 1710 1711 # There might be people who depend on the old broken behavior: `$host' 1712 # used to hold the argument of --host etc. 1713 # FIXME: To remove some day. 1714 build=$build_alias 1715 host=$host_alias 1716 target=$target_alias 1717 1718 # FIXME: To remove some day. 1719 if test "x$host_alias" != x; then 1720 if test "x$build_alias" = x; then 1721 cross_compiling=maybe 1722 elif test "x$build_alias" != "x$host_alias"; then 1723 cross_compiling=yes 1724 fi 1725 fi 1726 1727 ac_tool_prefix= 1728 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1729 1730 test "$silent" = yes && exec 6>/dev/null 1731 1732 1733 ac_pwd=`pwd` && test -n "$ac_pwd" && 1734 ac_ls_di=`ls -di .` && 1735 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1736 as_fn_error $? "working directory cannot be determined" 1737 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1738 as_fn_error $? "pwd does not report name of working directory" 1739 1740 1741 # Find the source files, if location was not specified. 1742 if test -z "$srcdir"; then 1743 ac_srcdir_defaulted=yes 1744 # Try the directory containing this script, then the parent directory. 1745 ac_confdir=`$as_dirname -- "$as_myself" || 1746 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1747 X"$as_myself" : 'X\(//\)[^/]' \| \ 1748 X"$as_myself" : 'X\(//\)$' \| \ 1749 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1750 $as_echo X"$as_myself" | 1751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1752 s//\1/ 1753 q 1754 } 1755 /^X\(\/\/\)[^/].*/{ 1756 s//\1/ 1757 q 1758 } 1759 /^X\(\/\/\)$/{ 1760 s//\1/ 1761 q 1762 } 1763 /^X\(\/\).*/{ 1764 s//\1/ 1765 q 1766 } 1767 s/.*/./; q'` 1768 srcdir=$ac_confdir 1769 if test ! -r "$srcdir/$ac_unique_file"; then 1770 srcdir=.. 1771 fi 1772 else 1773 ac_srcdir_defaulted=no 1774 fi 1775 if test ! -r "$srcdir/$ac_unique_file"; then 1776 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1777 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1778 fi 1779 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1780 ac_abs_confdir=`( 1781 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1782 pwd)` 1783 # When building in place, set srcdir=. 1784 if test "$ac_abs_confdir" = "$ac_pwd"; then 1785 srcdir=. 1786 fi 1787 # Remove unnecessary trailing slashes from srcdir. 1788 # Double slashes in file names in object file debugging info 1789 # mess up M-x gdb in Emacs. 1790 case $srcdir in 1791 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1792 esac 1793 for ac_var in $ac_precious_vars; do 1794 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1795 eval ac_env_${ac_var}_value=\$${ac_var} 1796 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1797 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1798 done 1799 1800 # 1801 # Report the --help message. 1802 # 1803 if test "$ac_init_help" = "long"; then 1804 # Omit some internal or obsolete options to make the list less imposing. 1805 # This message is too long to be a string in the A/UX 3.1 sh. 1806 cat <<_ACEOF 1807 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1808 1809 Usage: $0 [OPTION]... [VAR=VALUE]... 1810 1811 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1812 VAR=VALUE. See below for descriptions of some of the useful variables. 1813 1814 Defaults for the options are specified in brackets. 1815 1816 Configuration: 1817 -h, --help display this help and exit 1818 --help=short display options specific to this package 1819 --help=recursive display the short help of all the included packages 1820 -V, --version display version information and exit 1821 -q, --quiet, --silent do not print \`checking ...' messages 1822 --cache-file=FILE cache test results in FILE [disabled] 1823 -C, --config-cache alias for \`--cache-file=config.cache' 1824 -n, --no-create do not create output files 1825 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1826 1827 Installation directories: 1828 --prefix=PREFIX install architecture-independent files in PREFIX 1829 [$ac_default_prefix] 1830 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1831 [PREFIX] 1832 1833 By default, \`make install' will install all the files in 1834 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1835 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1836 for instance \`--prefix=\$HOME'. 1837 1838 For better control, use the options below. 1839 1840 Fine tuning of the installation directories: 1841 --bindir=DIR user executables [EPREFIX/bin] 1842 --sbindir=DIR system admin executables [EPREFIX/sbin] 1843 --libexecdir=DIR program executables [EPREFIX/libexec] 1844 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1845 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1846 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1847 --libdir=DIR object code libraries [EPREFIX/lib] 1848 --includedir=DIR C header files [PREFIX/include] 1849 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1850 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1851 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1852 --infodir=DIR info documentation [DATAROOTDIR/info] 1853 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1854 --mandir=DIR man documentation [DATAROOTDIR/man] 1855 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1856 --htmldir=DIR html documentation [DOCDIR] 1857 --dvidir=DIR dvi documentation [DOCDIR] 1858 --pdfdir=DIR pdf documentation [DOCDIR] 1859 --psdir=DIR ps documentation [DOCDIR] 1860 _ACEOF 1861 1862 cat <<\_ACEOF 1863 1864 X features: 1865 --x-includes=DIR X include files are in DIR 1866 --x-libraries=DIR X library files are in DIR 1867 1868 System types: 1869 --build=BUILD configure for building on BUILD [guessed] 1870 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1871 --target=TARGET configure for building compilers for TARGET [HOST] 1872 _ACEOF 1873 fi 1874 1875 if test -n "$ac_init_help"; then 1876 case $ac_init_help in 1877 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1878 esac 1879 cat <<\_ACEOF 1880 1881 Optional Features: 1882 --disable-option-checking ignore unrecognized --enable/--with options 1883 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1884 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1885 --enable-openjdk-only suppress building custom source even if present 1886 [disabled] 1887 --enable-debug set the debug level to fastdebug (shorthand for 1888 --with-debug-level=fastdebug) [disabled] 1889 --disable-headful disable building headful support (graphical UI 1890 support) [enabled] 1891 --enable-unlimited-crypto 1892 Enable unlimited crypto policy [disabled] 1893 --enable-hotspot-test-in-build 1894 run the Queens test after Hotspot build [disabled] 1895 --enable-static-build enable static library build [disabled] 1896 --disable-warnings-as-errors 1897 do not consider native warnings to be an error 1898 [enabled] 1899 --enable-debug-symbols Deprecated. Option is kept for backwards 1900 compatibility and is ignored 1901 --enable-zip-debug-info Deprecated. Option is kept for backwards 1902 compatibility and is ignored 1903 --enable-native-coverage 1904 enable native compilation with code coverage 1905 data[disabled] 1906 --disable-freetype-bundling 1907 disable bundling of the freetype library with the 1908 build result [enabled on Windows or when using 1909 --with-freetype, disabled otherwise] 1910 --enable-sjavac use sjavac to do fast incremental compiles 1911 [disabled] 1912 --disable-javac-server disable javac server [enabled] 1913 --enable-icecc enable distribted compilation of native code using 1914 icecc/icecream [disabled] 1915 --disable-precompiled-headers 1916 disable using precompiled headers when compiling C++ 1917 [enabled] 1918 --enable-ccache enable using ccache to speed up recompilations 1919 [disabled] 1920 1921 Optional Packages: 1922 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1923 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1924 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 1925 support it), e.g. --with-target-bits=32 [guessed] 1926 --with-custom-make-dir Deprecated. Option is kept for backwards 1927 compatibility and is ignored 1928 --with-jdk-variant JDK variant to build (normal) [normal] 1929 --with-jvm-interpreter JVM interpreter to build (template, cpp) [template] 1930 --with-jvm-variants JVM variants (separated by commas) to build (server, 1931 client, minimal1, zero, zeroshark, core) [server] 1932 --with-debug-level set the debug level (release, fastdebug, slowdebug, 1933 optimized) [release] 1934 --with-devkit use this devkit for compilers, tools and resources 1935 --with-sys-root alias for --with-sysroot for backwards compatability 1936 --with-sysroot use this directory as sysroot 1937 --with-tools-dir alias for --with-toolchain-path for backwards 1938 compatibility 1939 --with-toolchain-path prepend these directories when searching for 1940 toolchain binaries (compilers etc) 1941 --with-extra-path prepend these directories to the default path 1942 --with-sdk-name use the platform SDK of the given name. [macosx] 1943 --with-conf-name use this as the name of the configuration [generated 1944 from important configuration options] 1945 --with-output-sync set make output sync type if supported by make. 1946 [recurse] 1947 --with-default-make-target 1948 set the default make target [exploded-image] 1949 --with-cacerts-file specify alternative cacerts file 1950 --with-copyright-year Set copyright year value for build [current year] 1951 --with-milestone Deprecated. Option is kept for backwards 1952 compatibility and is ignored 1953 --with-update-version Deprecated. Option is kept for backwards 1954 compatibility and is ignored 1955 --with-user-release-suffix 1956 Deprecated. Option is kept for backwards 1957 compatibility and is ignored 1958 --with-build-number Deprecated. Option is kept for backwards 1959 compatibility and is ignored 1960 --with-version-string Set version string [calculated] 1961 --with-version-pre Set the base part of the version 'PRE' field 1962 (pre-release identifier) ['internal'] 1963 --with-version-opt Set version 'OPT' field (build metadata) 1964 [<timestamp>.<user>.<dirname>] 1965 --with-version-build Set version 'BUILD' field (build number) [not 1966 specified] 1967 --with-version-major Set version 'MAJOR' field (first number) [current 1968 source value] 1969 --with-version-minor Set version 'MINOR' field (second number) [current 1970 source value] 1971 --with-version-security Set version 'SECURITY' field (third number) [current 1972 source value] 1973 --with-version-patch Set version 'PATCH' field (fourth number) [not 1974 specified] 1975 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 1976 --with-add-source-root Deprecated. Option is kept for backwards 1977 compatibility and is ignored 1978 --with-override-source-root 1979 Deprecated. Option is kept for backwards 1980 compatibility and is ignored 1981 --with-adds-and-overrides 1982 Deprecated. Option is kept for backwards 1983 compatibility and is ignored 1984 --with-override-langtools 1985 Deprecated. Option is kept for backwards 1986 compatibility and is ignored 1987 --with-override-corba Deprecated. Option is kept for backwards 1988 compatibility and is ignored 1989 --with-override-jaxp Deprecated. Option is kept for backwards 1990 compatibility and is ignored 1991 --with-override-jaxws Deprecated. Option is kept for backwards 1992 compatibility and is ignored 1993 --with-override-hotspot Deprecated. Option is kept for backwards 1994 compatibility and is ignored 1995 --with-override-nashorn Deprecated. Option is kept for backwards 1996 compatibility and is ignored 1997 --with-override-jdk Deprecated. Option is kept for backwards 1998 compatibility and is ignored 1999 --with-import-hotspot import hotspot binaries from this jdk image or 2000 hotspot build dist dir instead of building from 2001 source 2002 --with-toolchain-type the toolchain type (or family) to use, use '--help' 2003 to show possible values [platform dependent] 2004 --with-extra-cflags extra flags to be used when compiling jdk c-files 2005 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 2006 --with-extra-ldflags extra flags to be used when linking jdk 2007 --with-toolchain-version 2008 the version of the toolchain to look for, use 2009 '--help' to show possible values [platform 2010 dependent] 2011 --with-build-devkit Devkit to use for the build platform toolchain 2012 --with-jtreg Regression Test Harness [probed] 2013 --with-native-debug-symbols 2014 set the native debug symbol configuration (none, 2015 internal, external, zipped) [varying] 2016 --with-stdc++lib=<static>,<dynamic>,<default> 2017 force linking of the C++ runtime on Linux to either 2018 static or dynamic, default is static with dynamic as 2019 fallback 2020 --with-msvcr-dll path to microsoft C runtime dll (msvcr*.dll) 2021 (Windows only) [probed] 2022 --with-msvcp-dll path to microsoft C++ runtime dll (msvcp*.dll) 2023 (Windows only) [probed] 2024 --with-x use the X Window System 2025 --with-cups specify prefix directory for the cups package 2026 (expecting the headers under PATH/include) 2027 --with-cups-include specify directory for the cups include files 2028 --with-freetype specify prefix directory for the freetype package 2029 (expecting the libraries under PATH/lib and the 2030 headers under PATH/include) 2031 --with-freetype-include specify directory for the freetype include files 2032 --with-freetype-lib specify directory for the freetype library 2033 --with-freetype-src specify directory with freetype sources to 2034 automatically build the library (experimental, 2035 Windows-only) 2036 --with-alsa specify prefix directory for the alsa package 2037 (expecting the libraries under PATH/lib and the 2038 headers under PATH/include) 2039 --with-alsa-include specify directory for the alsa include files 2040 --with-alsa-lib specify directory for the alsa library 2041 --with-libffi specify prefix directory for the libffi package 2042 (expecting the libraries under PATH/lib and the 2043 headers under PATH/include) 2044 --with-libffi-include specify directory for the libffi include files 2045 --with-libffi-lib specify directory for the libffi library 2046 --with-libjpeg use libjpeg from build system or OpenJDK source 2047 (system, bundled) [bundled] 2048 --with-giflib use giflib from build system or OpenJDK source 2049 (system, bundled) [bundled] 2050 --with-libpng use libpng from build system or OpenJDK source 2051 (system, bundled) [bundled] 2052 --with-zlib use zlib from build system or OpenJDK source 2053 (system, bundled) [bundled] 2054 --with-lcms use lcms2 from build system or OpenJDK source 2055 (system, bundled) [bundled] 2056 --with-dxsdk Deprecated. Option is kept for backwards 2057 compatibility and is ignored 2058 --with-dxsdk-lib Deprecated. Option is kept for backwards 2059 compatibility and is ignored 2060 --with-dxsdk-include Deprecated. Option is kept for backwards 2061 compatibility and is ignored 2062 --with-num-cores number of cores in the build system, e.g. 2063 --with-num-cores=8 [probed] 2064 --with-memory-size memory (in MB) available in the build system, e.g. 2065 --with-memory-size=1024 [probed] 2066 --with-jobs number of parallel jobs to let make run [calculated 2067 based on cores and memory] 2068 --with-test-jobs number of parallel tests jobs to run [based on build 2069 jobs] 2070 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 2071 invocations of boot JDK, overriding the default 2072 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 2073 -enableassertions" 2074 --with-sjavac-server-java 2075 use this java binary for running the sjavac 2076 background server [Boot JDK java] 2077 --with-ccache-dir where to store ccache files [~/.ccache] 2078 2079 Some influential environment variables: 2080 BASENAME Override default value for BASENAME 2081 BASH Override default value for BASH 2082 CAT Override default value for CAT 2083 CHMOD Override default value for CHMOD 2084 CMP Override default value for CMP 2085 COMM Override default value for COMM 2086 CP Override default value for CP 2087 CUT Override default value for CUT 2088 DATE Override default value for DATE 2089 DIFF Override default value for DIFF 2090 DIRNAME Override default value for DIRNAME 2091 ECHO Override default value for ECHO 2092 EXPR Override default value for EXPR 2093 FILE Override default value for FILE 2094 FIND Override default value for FIND 2095 HEAD Override default value for HEAD 2096 LN Override default value for LN 2097 LS Override default value for LS 2098 MKDIR Override default value for MKDIR 2099 MKTEMP Override default value for MKTEMP 2100 MV Override default value for MV 2101 NAWK Override default value for NAWK 2102 PRINTF Override default value for PRINTF 2103 RM Override default value for RM 2104 RMDIR Override default value for RMDIR 2105 SH Override default value for SH 2106 SORT Override default value for SORT 2107 TAIL Override default value for TAIL 2108 TAR Override default value for TAR 2109 TEE Override default value for TEE 2110 TOUCH Override default value for TOUCH 2111 TR Override default value for TR 2112 UNAME Override default value for UNAME 2113 UNIQ Override default value for UNIQ 2114 WC Override default value for WC 2115 WHICH Override default value for WHICH 2116 XARGS Override default value for XARGS 2117 AWK Override default value for AWK 2118 GREP Override default value for GREP 2119 EGREP Override default value for EGREP 2120 FGREP Override default value for FGREP 2121 SED Override default value for SED 2122 CYGPATH Override default value for CYGPATH 2123 READLINK Override default value for READLINK 2124 DF Override default value for DF 2125 CPIO Override default value for CPIO 2126 NICE Override default value for NICE 2127 MAKE Override default value for MAKE 2128 UNZIP Override default value for UNZIP 2129 ZIP Override default value for ZIP 2130 LDD Override default value for LDD 2131 OTOOL Override default value for OTOOL 2132 READELF Override default value for READELF 2133 HG Override default value for HG 2134 STAT Override default value for STAT 2135 TIME Override default value for TIME 2136 PATCH Override default value for PATCH 2137 DSYMUTIL Override default value for DSYMUTIL 2138 XATTR Override default value for XATTR 2139 CODESIGN Override default value for CODESIGN 2140 SETFILE Override default value for SETFILE 2141 PKG_CONFIG path to pkg-config utility 2142 JAVA Override default value for JAVA 2143 JAVAC Override default value for JAVAC 2144 JAVAH Override default value for JAVAH 2145 JAR Override default value for JAR 2146 JARSIGNER Override default value for JARSIGNER 2147 CC C compiler command 2148 CFLAGS C compiler flags 2149 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2150 nonstandard directory <lib dir> 2151 LIBS libraries to pass to the linker, e.g. -l<library> 2152 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2153 you have headers in a nonstandard directory <include dir> 2154 CXX C++ compiler command 2155 CXXFLAGS C++ compiler flags 2156 CPP C preprocessor 2157 CXXCPP C++ preprocessor 2158 AS Override default value for AS 2159 AR Override default value for AR 2160 LIPO Override default value for LIPO 2161 STRIP Override default value for STRIP 2162 NM Override default value for NM 2163 GNM Override default value for GNM 2164 OBJCOPY Override default value for OBJCOPY 2165 OBJDUMP Override default value for OBJDUMP 2166 BUILD_CC Override default value for BUILD_CC 2167 BUILD_CXX Override default value for BUILD_CXX 2168 BUILD_NM Override default value for BUILD_NM 2169 BUILD_AR Override default value for BUILD_AR 2170 JTREGEXE Override default value for JTREGEXE 2171 XMKMF Path to xmkmf, Makefile generator for X Window System 2172 FREETYPE_CFLAGS 2173 C compiler flags for FREETYPE, overriding pkg-config 2174 FREETYPE_LIBS 2175 linker flags for FREETYPE, overriding pkg-config 2176 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2177 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2178 LIBFFI_CFLAGS 2179 C compiler flags for LIBFFI, overriding pkg-config 2180 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2181 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2182 PNG_LIBS linker flags for PNG, overriding pkg-config 2183 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 2184 LCMS_LIBS linker flags for LCMS, overriding pkg-config 2185 ICECC_CMD Override default value for ICECC_CMD 2186 ICECC_CREATE_ENV 2187 Override default value for ICECC_CREATE_ENV 2188 ICECC_WRAPPER 2189 Override default value for ICECC_WRAPPER 2190 CCACHE Override default value for CCACHE 2191 2192 Use these variables to override the choices made by `configure' or to help 2193 it to find libraries and programs with nonstandard names/locations. 2194 2195 Report bugs to <build-dev@openjdk.java.net>. 2196 OpenJDK home page: <http://openjdk.java.net>. 2197 _ACEOF 2198 ac_status=$? 2199 fi 2200 2201 if test "$ac_init_help" = "recursive"; then 2202 # If there are subdirs, report their specific --help. 2203 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2204 test -d "$ac_dir" || 2205 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2206 continue 2207 ac_builddir=. 2208 2209 case "$ac_dir" in 2210 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2211 *) 2212 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2213 # A ".." for each directory in $ac_dir_suffix. 2214 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2215 case $ac_top_builddir_sub in 2216 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2217 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2218 esac ;; 2219 esac 2220 ac_abs_top_builddir=$ac_pwd 2221 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2222 # for backward compatibility: 2223 ac_top_builddir=$ac_top_build_prefix 2224 2225 case $srcdir in 2226 .) # We are building in place. 2227 ac_srcdir=. 2228 ac_top_srcdir=$ac_top_builddir_sub 2229 ac_abs_top_srcdir=$ac_pwd ;; 2230 [\\/]* | ?:[\\/]* ) # Absolute name. 2231 ac_srcdir=$srcdir$ac_dir_suffix; 2232 ac_top_srcdir=$srcdir 2233 ac_abs_top_srcdir=$srcdir ;; 2234 *) # Relative name. 2235 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2236 ac_top_srcdir=$ac_top_build_prefix$srcdir 2237 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2238 esac 2239 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2240 2241 cd "$ac_dir" || { ac_status=$?; continue; } 2242 # Check for guested configure. 2243 if test -f "$ac_srcdir/configure.gnu"; then 2244 echo && 2245 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2246 elif test -f "$ac_srcdir/configure"; then 2247 echo && 2248 $SHELL "$ac_srcdir/configure" --help=recursive 2249 else 2250 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2251 fi || ac_status=$? 2252 cd "$ac_pwd" || { ac_status=$?; break; } 2253 done 2254 fi 2255 2256 test -n "$ac_init_help" && exit $ac_status 2257 if $ac_init_version; then 2258 cat <<\_ACEOF 2259 OpenJDK configure jdk9 2260 generated by GNU Autoconf 2.69 2261 2262 Copyright (C) 2012 Free Software Foundation, Inc. 2263 This configure script is free software; the Free Software Foundation 2264 gives unlimited permission to copy, distribute and modify it. 2265 _ACEOF 2266 exit 2267 fi 2268 2269 ## ------------------------ ## 2270 ## Autoconf initialization. ## 2271 ## ------------------------ ## 2272 2273 # ac_fn_c_try_compile LINENO 2274 # -------------------------- 2275 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2276 ac_fn_c_try_compile () 2277 { 2278 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2279 rm -f conftest.$ac_objext 2280 if { { ac_try="$ac_compile" 2281 case "(($ac_try" in 2282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2283 *) ac_try_echo=$ac_try;; 2284 esac 2285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2286 $as_echo "$ac_try_echo"; } >&5 2287 (eval "$ac_compile") 2>conftest.err 2288 ac_status=$? 2289 if test -s conftest.err; then 2290 grep -v '^ *+' conftest.err >conftest.er1 2291 cat conftest.er1 >&5 2292 mv -f conftest.er1 conftest.err 2293 fi 2294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2295 test $ac_status = 0; } && { 2296 test -z "$ac_c_werror_flag" || 2297 test ! -s conftest.err 2298 } && test -s conftest.$ac_objext; then : 2299 ac_retval=0 2300 else 2301 $as_echo "$as_me: failed program was:" >&5 2302 sed 's/^/| /' conftest.$ac_ext >&5 2303 2304 ac_retval=1 2305 fi 2306 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2307 as_fn_set_status $ac_retval 2308 2309 } # ac_fn_c_try_compile 2310 2311 # ac_fn_cxx_try_compile LINENO 2312 # ---------------------------- 2313 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2314 ac_fn_cxx_try_compile () 2315 { 2316 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2317 rm -f conftest.$ac_objext 2318 if { { ac_try="$ac_compile" 2319 case "(($ac_try" in 2320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2321 *) ac_try_echo=$ac_try;; 2322 esac 2323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2324 $as_echo "$ac_try_echo"; } >&5 2325 (eval "$ac_compile") 2>conftest.err 2326 ac_status=$? 2327 if test -s conftest.err; then 2328 grep -v '^ *+' conftest.err >conftest.er1 2329 cat conftest.er1 >&5 2330 mv -f conftest.er1 conftest.err 2331 fi 2332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2333 test $ac_status = 0; } && { 2334 test -z "$ac_cxx_werror_flag" || 2335 test ! -s conftest.err 2336 } && test -s conftest.$ac_objext; then : 2337 ac_retval=0 2338 else 2339 $as_echo "$as_me: failed program was:" >&5 2340 sed 's/^/| /' conftest.$ac_ext >&5 2341 2342 ac_retval=1 2343 fi 2344 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2345 as_fn_set_status $ac_retval 2346 2347 } # ac_fn_cxx_try_compile 2348 2349 # ac_fn_c_try_cpp LINENO 2350 # ---------------------- 2351 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2352 ac_fn_c_try_cpp () 2353 { 2354 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2355 if { { ac_try="$ac_cpp conftest.$ac_ext" 2356 case "(($ac_try" in 2357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2358 *) ac_try_echo=$ac_try;; 2359 esac 2360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2361 $as_echo "$ac_try_echo"; } >&5 2362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2363 ac_status=$? 2364 if test -s conftest.err; then 2365 grep -v '^ *+' conftest.err >conftest.er1 2366 cat conftest.er1 >&5 2367 mv -f conftest.er1 conftest.err 2368 fi 2369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2370 test $ac_status = 0; } > conftest.i && { 2371 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2372 test ! -s conftest.err 2373 }; then : 2374 ac_retval=0 2375 else 2376 $as_echo "$as_me: failed program was:" >&5 2377 sed 's/^/| /' conftest.$ac_ext >&5 2378 2379 ac_retval=1 2380 fi 2381 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2382 as_fn_set_status $ac_retval 2383 2384 } # ac_fn_c_try_cpp 2385 2386 # ac_fn_cxx_try_cpp LINENO 2387 # ------------------------ 2388 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2389 ac_fn_cxx_try_cpp () 2390 { 2391 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2392 if { { ac_try="$ac_cpp conftest.$ac_ext" 2393 case "(($ac_try" in 2394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2395 *) ac_try_echo=$ac_try;; 2396 esac 2397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2398 $as_echo "$ac_try_echo"; } >&5 2399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2400 ac_status=$? 2401 if test -s conftest.err; then 2402 grep -v '^ *+' conftest.err >conftest.er1 2403 cat conftest.er1 >&5 2404 mv -f conftest.er1 conftest.err 2405 fi 2406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2407 test $ac_status = 0; } > conftest.i && { 2408 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2409 test ! -s conftest.err 2410 }; then : 2411 ac_retval=0 2412 else 2413 $as_echo "$as_me: failed program was:" >&5 2414 sed 's/^/| /' conftest.$ac_ext >&5 2415 2416 ac_retval=1 2417 fi 2418 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2419 as_fn_set_status $ac_retval 2420 2421 } # ac_fn_cxx_try_cpp 2422 2423 # ac_fn_c_try_link LINENO 2424 # ----------------------- 2425 # Try to link conftest.$ac_ext, and return whether this succeeded. 2426 ac_fn_c_try_link () 2427 { 2428 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2429 rm -f conftest.$ac_objext conftest$ac_exeext 2430 if { { ac_try="$ac_link" 2431 case "(($ac_try" in 2432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2433 *) ac_try_echo=$ac_try;; 2434 esac 2435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2436 $as_echo "$ac_try_echo"; } >&5 2437 (eval "$ac_link") 2>conftest.err 2438 ac_status=$? 2439 if test -s conftest.err; then 2440 grep -v '^ *+' conftest.err >conftest.er1 2441 cat conftest.er1 >&5 2442 mv -f conftest.er1 conftest.err 2443 fi 2444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2445 test $ac_status = 0; } && { 2446 test -z "$ac_c_werror_flag" || 2447 test ! -s conftest.err 2448 } && test -s conftest$ac_exeext && { 2449 test "$cross_compiling" = yes || 2450 test -x conftest$ac_exeext 2451 }; then : 2452 ac_retval=0 2453 else 2454 $as_echo "$as_me: failed program was:" >&5 2455 sed 's/^/| /' conftest.$ac_ext >&5 2456 2457 ac_retval=1 2458 fi 2459 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2460 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2461 # interfere with the next link command; also delete a directory that is 2462 # left behind by Apple's compiler. We do this before executing the actions. 2463 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2464 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2465 as_fn_set_status $ac_retval 2466 2467 } # ac_fn_c_try_link 2468 2469 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2470 # --------------------------------------------------------- 2471 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2472 # the include files in INCLUDES and setting the cache variable VAR 2473 # accordingly. 2474 ac_fn_cxx_check_header_mongrel () 2475 { 2476 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2477 if eval \${$3+:} false; then : 2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2479 $as_echo_n "checking for $2... " >&6; } 2480 if eval \${$3+:} false; then : 2481 $as_echo_n "(cached) " >&6 2482 fi 2483 eval ac_res=\$$3 2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2485 $as_echo "$ac_res" >&6; } 2486 else 2487 # Is the header compilable? 2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2489 $as_echo_n "checking $2 usability... " >&6; } 2490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2491 /* end confdefs.h. */ 2492 $4 2493 #include <$2> 2494 _ACEOF 2495 if ac_fn_cxx_try_compile "$LINENO"; then : 2496 ac_header_compiler=yes 2497 else 2498 ac_header_compiler=no 2499 fi 2500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2502 $as_echo "$ac_header_compiler" >&6; } 2503 2504 # Is the header present? 2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2506 $as_echo_n "checking $2 presence... " >&6; } 2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2508 /* end confdefs.h. */ 2509 #include <$2> 2510 _ACEOF 2511 if ac_fn_cxx_try_cpp "$LINENO"; then : 2512 ac_header_preproc=yes 2513 else 2514 ac_header_preproc=no 2515 fi 2516 rm -f conftest.err conftest.i conftest.$ac_ext 2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2518 $as_echo "$ac_header_preproc" >&6; } 2519 2520 # So? What about this header? 2521 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2522 yes:no: ) 2523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2524 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2526 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2527 ;; 2528 no:yes:* ) 2529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2530 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2532 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2534 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2536 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2538 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2539 ( $as_echo "## ----------------------------------------- ## 2540 ## Report this to build-dev@openjdk.java.net ## 2541 ## ----------------------------------------- ##" 2542 ) | sed "s/^/$as_me: WARNING: /" >&2 2543 ;; 2544 esac 2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2546 $as_echo_n "checking for $2... " >&6; } 2547 if eval \${$3+:} false; then : 2548 $as_echo_n "(cached) " >&6 2549 else 2550 eval "$3=\$ac_header_compiler" 2551 fi 2552 eval ac_res=\$$3 2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2554 $as_echo "$ac_res" >&6; } 2555 fi 2556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2557 2558 } # ac_fn_cxx_check_header_mongrel 2559 2560 # ac_fn_cxx_try_run LINENO 2561 # ------------------------ 2562 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2563 # that executables *can* be run. 2564 ac_fn_cxx_try_run () 2565 { 2566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2567 if { { ac_try="$ac_link" 2568 case "(($ac_try" in 2569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2570 *) ac_try_echo=$ac_try;; 2571 esac 2572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2573 $as_echo "$ac_try_echo"; } >&5 2574 (eval "$ac_link") 2>&5 2575 ac_status=$? 2576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2577 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2578 { { case "(($ac_try" in 2579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2580 *) ac_try_echo=$ac_try;; 2581 esac 2582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2583 $as_echo "$ac_try_echo"; } >&5 2584 (eval "$ac_try") 2>&5 2585 ac_status=$? 2586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2587 test $ac_status = 0; }; }; then : 2588 ac_retval=0 2589 else 2590 $as_echo "$as_me: program exited with status $ac_status" >&5 2591 $as_echo "$as_me: failed program was:" >&5 2592 sed 's/^/| /' conftest.$ac_ext >&5 2593 2594 ac_retval=$ac_status 2595 fi 2596 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2598 as_fn_set_status $ac_retval 2599 2600 } # ac_fn_cxx_try_run 2601 2602 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2603 # --------------------------------------------------------- 2604 # Tests whether HEADER exists and can be compiled using the include files in 2605 # INCLUDES, setting the cache variable VAR accordingly. 2606 ac_fn_cxx_check_header_compile () 2607 { 2608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2610 $as_echo_n "checking for $2... " >&6; } 2611 if eval \${$3+:} false; then : 2612 $as_echo_n "(cached) " >&6 2613 else 2614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2615 /* end confdefs.h. */ 2616 $4 2617 #include <$2> 2618 _ACEOF 2619 if ac_fn_cxx_try_compile "$LINENO"; then : 2620 eval "$3=yes" 2621 else 2622 eval "$3=no" 2623 fi 2624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2625 fi 2626 eval ac_res=\$$3 2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2628 $as_echo "$ac_res" >&6; } 2629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2630 2631 } # ac_fn_cxx_check_header_compile 2632 2633 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2634 # ---------------------------------------------- 2635 # Tries to find the compile-time value of EXPR in a program that includes 2636 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2637 # computed 2638 ac_fn_cxx_compute_int () 2639 { 2640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2641 if test "$cross_compiling" = yes; then 2642 # Depending upon the size, compute the lo and hi bounds. 2643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2644 /* end confdefs.h. */ 2645 $4 2646 int 2647 main () 2648 { 2649 static int test_array [1 - 2 * !(($2) >= 0)]; 2650 test_array [0] = 0; 2651 return test_array [0]; 2652 2653 ; 2654 return 0; 2655 } 2656 _ACEOF 2657 if ac_fn_cxx_try_compile "$LINENO"; then : 2658 ac_lo=0 ac_mid=0 2659 while :; do 2660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2661 /* end confdefs.h. */ 2662 $4 2663 int 2664 main () 2665 { 2666 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2667 test_array [0] = 0; 2668 return test_array [0]; 2669 2670 ; 2671 return 0; 2672 } 2673 _ACEOF 2674 if ac_fn_cxx_try_compile "$LINENO"; then : 2675 ac_hi=$ac_mid; break 2676 else 2677 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2678 if test $ac_lo -le $ac_mid; then 2679 ac_lo= ac_hi= 2680 break 2681 fi 2682 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2683 fi 2684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2685 done 2686 else 2687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2688 /* end confdefs.h. */ 2689 $4 2690 int 2691 main () 2692 { 2693 static int test_array [1 - 2 * !(($2) < 0)]; 2694 test_array [0] = 0; 2695 return test_array [0]; 2696 2697 ; 2698 return 0; 2699 } 2700 _ACEOF 2701 if ac_fn_cxx_try_compile "$LINENO"; then : 2702 ac_hi=-1 ac_mid=-1 2703 while :; do 2704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2705 /* end confdefs.h. */ 2706 $4 2707 int 2708 main () 2709 { 2710 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2711 test_array [0] = 0; 2712 return test_array [0]; 2713 2714 ; 2715 return 0; 2716 } 2717 _ACEOF 2718 if ac_fn_cxx_try_compile "$LINENO"; then : 2719 ac_lo=$ac_mid; break 2720 else 2721 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2722 if test $ac_mid -le $ac_hi; then 2723 ac_lo= ac_hi= 2724 break 2725 fi 2726 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2727 fi 2728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2729 done 2730 else 2731 ac_lo= ac_hi= 2732 fi 2733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2734 fi 2735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2736 # Binary search between lo and hi bounds. 2737 while test "x$ac_lo" != "x$ac_hi"; do 2738 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2740 /* end confdefs.h. */ 2741 $4 2742 int 2743 main () 2744 { 2745 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2746 test_array [0] = 0; 2747 return test_array [0]; 2748 2749 ; 2750 return 0; 2751 } 2752 _ACEOF 2753 if ac_fn_cxx_try_compile "$LINENO"; then : 2754 ac_hi=$ac_mid 2755 else 2756 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2757 fi 2758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2759 done 2760 case $ac_lo in #(( 2761 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2762 '') ac_retval=1 ;; 2763 esac 2764 else 2765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2766 /* end confdefs.h. */ 2767 $4 2768 static long int longval () { return $2; } 2769 static unsigned long int ulongval () { return $2; } 2770 #include <stdio.h> 2771 #include <stdlib.h> 2772 int 2773 main () 2774 { 2775 2776 FILE *f = fopen ("conftest.val", "w"); 2777 if (! f) 2778 return 1; 2779 if (($2) < 0) 2780 { 2781 long int i = longval (); 2782 if (i != ($2)) 2783 return 1; 2784 fprintf (f, "%ld", i); 2785 } 2786 else 2787 { 2788 unsigned long int i = ulongval (); 2789 if (i != ($2)) 2790 return 1; 2791 fprintf (f, "%lu", i); 2792 } 2793 /* Do not output a trailing newline, as this causes \r\n confusion 2794 on some platforms. */ 2795 return ferror (f) || fclose (f) != 0; 2796 2797 ; 2798 return 0; 2799 } 2800 _ACEOF 2801 if ac_fn_cxx_try_run "$LINENO"; then : 2802 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2803 else 2804 ac_retval=1 2805 fi 2806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2807 conftest.$ac_objext conftest.beam conftest.$ac_ext 2808 rm -f conftest.val 2809 2810 fi 2811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2812 as_fn_set_status $ac_retval 2813 2814 } # ac_fn_cxx_compute_int 2815 2816 # ac_fn_cxx_try_link LINENO 2817 # ------------------------- 2818 # Try to link conftest.$ac_ext, and return whether this succeeded. 2819 ac_fn_cxx_try_link () 2820 { 2821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2822 rm -f conftest.$ac_objext conftest$ac_exeext 2823 if { { ac_try="$ac_link" 2824 case "(($ac_try" in 2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2826 *) ac_try_echo=$ac_try;; 2827 esac 2828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2829 $as_echo "$ac_try_echo"; } >&5 2830 (eval "$ac_link") 2>conftest.err 2831 ac_status=$? 2832 if test -s conftest.err; then 2833 grep -v '^ *+' conftest.err >conftest.er1 2834 cat conftest.er1 >&5 2835 mv -f conftest.er1 conftest.err 2836 fi 2837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2838 test $ac_status = 0; } && { 2839 test -z "$ac_cxx_werror_flag" || 2840 test ! -s conftest.err 2841 } && test -s conftest$ac_exeext && { 2842 test "$cross_compiling" = yes || 2843 test -x conftest$ac_exeext 2844 }; then : 2845 ac_retval=0 2846 else 2847 $as_echo "$as_me: failed program was:" >&5 2848 sed 's/^/| /' conftest.$ac_ext >&5 2849 2850 ac_retval=1 2851 fi 2852 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2853 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2854 # interfere with the next link command; also delete a directory that is 2855 # left behind by Apple's compiler. We do this before executing the actions. 2856 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2858 as_fn_set_status $ac_retval 2859 2860 } # ac_fn_cxx_try_link 2861 2862 # ac_fn_cxx_check_func LINENO FUNC VAR 2863 # ------------------------------------ 2864 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2865 ac_fn_cxx_check_func () 2866 { 2867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2869 $as_echo_n "checking for $2... " >&6; } 2870 if eval \${$3+:} false; then : 2871 $as_echo_n "(cached) " >&6 2872 else 2873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2874 /* end confdefs.h. */ 2875 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2876 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2877 #define $2 innocuous_$2 2878 2879 /* System header to define __stub macros and hopefully few prototypes, 2880 which can conflict with char $2 (); below. 2881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2882 <limits.h> exists even on freestanding compilers. */ 2883 2884 #ifdef __STDC__ 2885 # include <limits.h> 2886 #else 2887 # include <assert.h> 2888 #endif 2889 2890 #undef $2 2891 2892 /* Override any GCC internal prototype to avoid an error. 2893 Use char because int might match the return type of a GCC 2894 builtin and then its argument prototype would still apply. */ 2895 #ifdef __cplusplus 2896 extern "C" 2897 #endif 2898 char $2 (); 2899 /* The GNU C library defines this for functions which it implements 2900 to always fail with ENOSYS. Some functions are actually named 2901 something starting with __ and the normal name is an alias. */ 2902 #if defined __stub_$2 || defined __stub___$2 2903 choke me 2904 #endif 2905 2906 int 2907 main () 2908 { 2909 return $2 (); 2910 ; 2911 return 0; 2912 } 2913 _ACEOF 2914 if ac_fn_cxx_try_link "$LINENO"; then : 2915 eval "$3=yes" 2916 else 2917 eval "$3=no" 2918 fi 2919 rm -f core conftest.err conftest.$ac_objext \ 2920 conftest$ac_exeext conftest.$ac_ext 2921 fi 2922 eval ac_res=\$$3 2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2924 $as_echo "$ac_res" >&6; } 2925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2926 2927 } # ac_fn_cxx_check_func 2928 2929 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2930 # ------------------------------------------------------- 2931 # Tests whether HEADER exists and can be compiled using the include files in 2932 # INCLUDES, setting the cache variable VAR accordingly. 2933 ac_fn_c_check_header_compile () 2934 { 2935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2937 $as_echo_n "checking for $2... " >&6; } 2938 if eval \${$3+:} false; then : 2939 $as_echo_n "(cached) " >&6 2940 else 2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2942 /* end confdefs.h. */ 2943 $4 2944 #include <$2> 2945 _ACEOF 2946 if ac_fn_c_try_compile "$LINENO"; then : 2947 eval "$3=yes" 2948 else 2949 eval "$3=no" 2950 fi 2951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2952 fi 2953 eval ac_res=\$$3 2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2955 $as_echo "$ac_res" >&6; } 2956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2957 2958 } # ac_fn_c_check_header_compile 2959 cat >config.log <<_ACEOF 2960 This file contains any messages produced by compilers while 2961 running configure, to aid debugging if configure makes a mistake. 2962 2963 It was created by OpenJDK $as_me jdk9, which was 2964 generated by GNU Autoconf 2.69. Invocation command line was 2965 2966 $ $0 $@ 2967 2968 _ACEOF 2969 exec 5>>config.log 2970 { 2971 cat <<_ASUNAME 2972 ## --------- ## 2973 ## Platform. ## 2974 ## --------- ## 2975 2976 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2977 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2978 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2979 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2980 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2981 2982 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2983 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2984 2985 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2986 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2987 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2988 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2989 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2990 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2991 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2992 2993 _ASUNAME 2994 2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2996 for as_dir in $PATH 2997 do 2998 IFS=$as_save_IFS 2999 test -z "$as_dir" && as_dir=. 3000 $as_echo "PATH: $as_dir" 3001 done 3002 IFS=$as_save_IFS 3003 3004 } >&5 3005 3006 cat >&5 <<_ACEOF 3007 3008 3009 ## ----------- ## 3010 ## Core tests. ## 3011 ## ----------- ## 3012 3013 _ACEOF 3014 3015 3016 # Keep a trace of the command line. 3017 # Strip out --no-create and --no-recursion so they do not pile up. 3018 # Strip out --silent because we don't want to record it for future runs. 3019 # Also quote any args containing shell meta-characters. 3020 # Make two passes to allow for proper duplicate-argument suppression. 3021 ac_configure_args= 3022 ac_configure_args0= 3023 ac_configure_args1= 3024 ac_must_keep_next=false 3025 for ac_pass in 1 2 3026 do 3027 for ac_arg 3028 do 3029 case $ac_arg in 3030 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3032 | -silent | --silent | --silen | --sile | --sil) 3033 continue ;; 3034 *\'*) 3035 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3036 esac 3037 case $ac_pass in 3038 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3039 2) 3040 as_fn_append ac_configure_args1 " '$ac_arg'" 3041 if test $ac_must_keep_next = true; then 3042 ac_must_keep_next=false # Got value, back to normal. 3043 else 3044 case $ac_arg in 3045 *=* | --config-cache | -C | -disable-* | --disable-* \ 3046 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3047 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3048 | -with-* | --with-* | -without-* | --without-* | --x) 3049 case "$ac_configure_args0 " in 3050 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3051 esac 3052 ;; 3053 -* ) ac_must_keep_next=true ;; 3054 esac 3055 fi 3056 as_fn_append ac_configure_args " '$ac_arg'" 3057 ;; 3058 esac 3059 done 3060 done 3061 { ac_configure_args0=; unset ac_configure_args0;} 3062 { ac_configure_args1=; unset ac_configure_args1;} 3063 3064 # When interrupted or exit'd, cleanup temporary files, and complete 3065 # config.log. We remove comments because anyway the quotes in there 3066 # would cause problems or look ugly. 3067 # WARNING: Use '\'' to represent an apostrophe within the trap. 3068 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3069 trap 'exit_status=$? 3070 # Save into config.log some information that might help in debugging. 3071 { 3072 echo 3073 3074 $as_echo "## ---------------- ## 3075 ## Cache variables. ## 3076 ## ---------------- ##" 3077 echo 3078 # The following way of writing the cache mishandles newlines in values, 3079 ( 3080 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3081 eval ac_val=\$$ac_var 3082 case $ac_val in #( 3083 *${as_nl}*) 3084 case $ac_var in #( 3085 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3086 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3087 esac 3088 case $ac_var in #( 3089 _ | IFS | as_nl) ;; #( 3090 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3091 *) { eval $ac_var=; unset $ac_var;} ;; 3092 esac ;; 3093 esac 3094 done 3095 (set) 2>&1 | 3096 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3097 *${as_nl}ac_space=\ *) 3098 sed -n \ 3099 "s/'\''/'\''\\\\'\'''\''/g; 3100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3101 ;; #( 3102 *) 3103 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3104 ;; 3105 esac | 3106 sort 3107 ) 3108 echo 3109 3110 $as_echo "## ----------------- ## 3111 ## Output variables. ## 3112 ## ----------------- ##" 3113 echo 3114 for ac_var in $ac_subst_vars 3115 do 3116 eval ac_val=\$$ac_var 3117 case $ac_val in 3118 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3119 esac 3120 $as_echo "$ac_var='\''$ac_val'\''" 3121 done | sort 3122 echo 3123 3124 if test -n "$ac_subst_files"; then 3125 $as_echo "## ------------------- ## 3126 ## File substitutions. ## 3127 ## ------------------- ##" 3128 echo 3129 for ac_var in $ac_subst_files 3130 do 3131 eval ac_val=\$$ac_var 3132 case $ac_val in 3133 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3134 esac 3135 $as_echo "$ac_var='\''$ac_val'\''" 3136 done | sort 3137 echo 3138 fi 3139 3140 if test -s confdefs.h; then 3141 $as_echo "## ----------- ## 3142 ## confdefs.h. ## 3143 ## ----------- ##" 3144 echo 3145 cat confdefs.h 3146 echo 3147 fi 3148 test "$ac_signal" != 0 && 3149 $as_echo "$as_me: caught signal $ac_signal" 3150 $as_echo "$as_me: exit $exit_status" 3151 } >&5 3152 rm -f core *.core core.conftest.* && 3153 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3154 exit $exit_status 3155 ' 0 3156 for ac_signal in 1 2 13 15; do 3157 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3158 done 3159 ac_signal=0 3160 3161 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3162 rm -f -r conftest* confdefs.h 3163 3164 $as_echo "/* confdefs.h */" > confdefs.h 3165 3166 # Predefined preprocessor variables. 3167 3168 cat >>confdefs.h <<_ACEOF 3169 #define PACKAGE_NAME "$PACKAGE_NAME" 3170 _ACEOF 3171 3172 cat >>confdefs.h <<_ACEOF 3173 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3174 _ACEOF 3175 3176 cat >>confdefs.h <<_ACEOF 3177 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3178 _ACEOF 3179 3180 cat >>confdefs.h <<_ACEOF 3181 #define PACKAGE_STRING "$PACKAGE_STRING" 3182 _ACEOF 3183 3184 cat >>confdefs.h <<_ACEOF 3185 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3186 _ACEOF 3187 3188 cat >>confdefs.h <<_ACEOF 3189 #define PACKAGE_URL "$PACKAGE_URL" 3190 _ACEOF 3191 3192 3193 # Let the site file select an alternate cache file if it wants to. 3194 # Prefer an explicitly selected file to automatically selected ones. 3195 ac_site_file1=NONE 3196 ac_site_file2=NONE 3197 if test -n "$CONFIG_SITE"; then 3198 # We do not want a PATH search for config.site. 3199 case $CONFIG_SITE in #(( 3200 -*) ac_site_file1=./$CONFIG_SITE;; 3201 */*) ac_site_file1=$CONFIG_SITE;; 3202 *) ac_site_file1=./$CONFIG_SITE;; 3203 esac 3204 elif test "x$prefix" != xNONE; then 3205 ac_site_file1=$prefix/share/config.site 3206 ac_site_file2=$prefix/etc/config.site 3207 else 3208 ac_site_file1=$ac_default_prefix/share/config.site 3209 ac_site_file2=$ac_default_prefix/etc/config.site 3210 fi 3211 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3212 do 3213 test "x$ac_site_file" = xNONE && continue 3214 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3215 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3216 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3217 sed 's/^/| /' "$ac_site_file" >&5 3218 . "$ac_site_file" \ 3219 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3221 as_fn_error $? "failed to load site script $ac_site_file 3222 See \`config.log' for more details" "$LINENO" 5; } 3223 fi 3224 done 3225 3226 if test -r "$cache_file"; then 3227 # Some versions of bash will fail to source /dev/null (special files 3228 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3229 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3230 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3231 $as_echo "$as_me: loading cache $cache_file" >&6;} 3232 case $cache_file in 3233 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3234 *) . "./$cache_file";; 3235 esac 3236 fi 3237 else 3238 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3239 $as_echo "$as_me: creating cache $cache_file" >&6;} 3240 >$cache_file 3241 fi 3242 3243 # Check that the precious variables saved in the cache have kept the same 3244 # value. 3245 ac_cache_corrupted=false 3246 for ac_var in $ac_precious_vars; do 3247 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3248 eval ac_new_set=\$ac_env_${ac_var}_set 3249 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3250 eval ac_new_val=\$ac_env_${ac_var}_value 3251 case $ac_old_set,$ac_new_set in 3252 set,) 3253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3254 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3255 ac_cache_corrupted=: ;; 3256 ,set) 3257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3258 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3259 ac_cache_corrupted=: ;; 3260 ,);; 3261 *) 3262 if test "x$ac_old_val" != "x$ac_new_val"; then 3263 # differences in whitespace do not lead to failure. 3264 ac_old_val_w=`echo x $ac_old_val` 3265 ac_new_val_w=`echo x $ac_new_val` 3266 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3268 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3269 ac_cache_corrupted=: 3270 else 3271 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3272 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3273 eval $ac_var=\$ac_old_val 3274 fi 3275 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3276 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3277 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3278 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3279 fi;; 3280 esac 3281 # Pass precious variables to config.status. 3282 if test "$ac_new_set" = set; then 3283 case $ac_new_val in 3284 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3285 *) ac_arg=$ac_var=$ac_new_val ;; 3286 esac 3287 case " $ac_configure_args " in 3288 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3289 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3290 esac 3291 fi 3292 done 3293 if $ac_cache_corrupted; then 3294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3297 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3298 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3299 fi 3300 ## -------------------- ## 3301 ## Main body of script. ## 3302 ## -------------------- ## 3303 3304 ac_ext=c 3305 ac_cpp='$CPP $CPPFLAGS' 3306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3308 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3309 3310 3311 3312 ac_aux_dir= 3313 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3314 if test -f "$ac_dir/install-sh"; then 3315 ac_aux_dir=$ac_dir 3316 ac_install_sh="$ac_aux_dir/install-sh -c" 3317 break 3318 elif test -f "$ac_dir/install.sh"; then 3319 ac_aux_dir=$ac_dir 3320 ac_install_sh="$ac_aux_dir/install.sh -c" 3321 break 3322 elif test -f "$ac_dir/shtool"; then 3323 ac_aux_dir=$ac_dir 3324 ac_install_sh="$ac_aux_dir/shtool install -c" 3325 break 3326 fi 3327 done 3328 if test -z "$ac_aux_dir"; then 3329 as_fn_error $? "cannot find install-sh, install.sh, or shtool in $TOPDIR/common/autoconf/build-aux \"$srcdir\"/$TOPDIR/common/autoconf/build-aux" "$LINENO" 5 3330 fi 3331 3332 # These three variables are undocumented and unsupported, 3333 # and are intended to be withdrawn in a future Autoconf release. 3334 # They can cause serious problems if a builder's source tree is in a directory 3335 # whose full name contains unusual characters. 3336 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3337 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3338 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3339 3340 3341 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3342 3343 # 3344 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3345 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3346 # 3347 # This code is free software; you can redistribute it and/or modify it 3348 # under the terms of the GNU General Public License version 2 only, as 3349 # published by the Free Software Foundation. Oracle designates this 3350 # particular file as subject to the "Classpath" exception as provided 3351 # by Oracle in the LICENSE file that accompanied this code. 3352 # 3353 # This code is distributed in the hope that it will be useful, but WITHOUT 3354 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3355 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3356 # version 2 for more details (a copy is included in the LICENSE file that 3357 # accompanied this code). 3358 # 3359 # You should have received a copy of the GNU General Public License version 3360 # 2 along with this work; if not, write to the Free Software Foundation, 3361 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3362 # 3363 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3364 # or visit www.oracle.com if you need additional information or have any 3365 # questions. 3366 # 3367 3368 # 3369 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3370 # 3371 # This program is free software; you can redistribute it and/or modify 3372 # it under the terms of the GNU General Public License as published by 3373 # the Free Software Foundation; either version 2 of the License, or 3374 # (at your option) any later version. 3375 # 3376 # This program is distributed in the hope that it will be useful, but 3377 # WITHOUT ANY WARRANTY; without even the implied warranty of 3378 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3379 # General Public License for more details. 3380 # 3381 # You should have received a copy of the GNU General Public License 3382 # along with this program; if not, write to the Free Software 3383 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3384 # 3385 # As a special exception to the GNU General Public License, if you 3386 # distribute this file as part of a program that contains a 3387 # configuration script generated by Autoconf, you may include it under 3388 # the same distribution terms that you use for the rest of that program. 3389 3390 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3391 # ---------------------------------- 3392 # PKG_PROG_PKG_CONFIG 3393 3394 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3395 # 3396 # Check to see whether a particular set of modules exists. Similar 3397 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3398 # 3399 # 3400 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3401 # this or PKG_CHECK_MODULES is called, or make sure to call 3402 # PKG_CHECK_EXISTS manually 3403 # -------------------------------------------------------------- 3404 3405 3406 3407 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3408 # --------------------------------------------- 3409 # _PKG_CONFIG 3410 3411 # _PKG_SHORT_ERRORS_SUPPORTED 3412 # ----------------------------- 3413 # _PKG_SHORT_ERRORS_SUPPORTED 3414 3415 3416 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3417 # [ACTION-IF-NOT-FOUND]) 3418 # 3419 # 3420 # Note that if there is a possibility the first call to 3421 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3422 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3423 # 3424 # 3425 # -------------------------------------------------------------- 3426 # PKG_CHECK_MODULES 3427 3428 3429 # Include these first... 3430 # 3431 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3432 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3433 # 3434 # This code is free software; you can redistribute it and/or modify it 3435 # under the terms of the GNU General Public License version 2 only, as 3436 # published by the Free Software Foundation. Oracle designates this 3437 # particular file as subject to the "Classpath" exception as provided 3438 # by Oracle in the LICENSE file that accompanied this code. 3439 # 3440 # This code is distributed in the hope that it will be useful, but WITHOUT 3441 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3442 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3443 # version 2 for more details (a copy is included in the LICENSE file that 3444 # accompanied this code). 3445 # 3446 # You should have received a copy of the GNU General Public License version 3447 # 2 along with this work; if not, write to the Free Software Foundation, 3448 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3449 # 3450 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3451 # or visit www.oracle.com if you need additional information or have any 3452 # questions. 3453 # 3454 3455 # Create a function/macro that takes a series of named arguments. The call is 3456 # similar to AC_DEFUN, but the setup of the function looks like this: 3457 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [ 3458 # ... do something 3459 # AC_MSG_NOTICE([Value of BAR is ARG_BAR]) 3460 # ]) 3461 # A star (*) in front of a named argument means that it is required and it's 3462 # presence will be verified. To pass e.g. the first value as a normal indexed 3463 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These 3464 # arguments are referenced in the function by their name prefixed by ARG_, e.g. 3465 # "ARG_FOO". 3466 # 3467 # The generated function can be called like this: 3468 # MYFUNC(FOO: [foo-val], 3469 # BAR: [ 3470 # $ECHO hello world 3471 # ]) 3472 # Note that the argument value must start on the same line as the argument name. 3473 # 3474 # Argument 1: Name of the function to define 3475 # Argument 2: List of legal named arguments, with a * prefix for required arguments 3476 # Argument 3: Argument array to treat as named, typically $@ 3477 # Argument 4: The main function body 3478 3479 3480 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3481 # If so, then append $1 to $2 \ 3482 # Also set JVM_ARG_OK to true/false depending on outcome. 3483 3484 3485 # Appends a string to a path variable, only adding the : when needed. 3486 3487 3488 # Prepends a string to a path variable, only adding the : when needed. 3489 3490 3491 # This will make sure the given variable points to a full and proper 3492 # path. This means: 3493 # 1) There will be no spaces in the path. On unix platforms, 3494 # spaces in the path will result in an error. On Windows, 3495 # the path will be rewritten using short-style to be space-free. 3496 # 2) The path will be absolute, and it will be in unix-style (on 3497 # cygwin). 3498 # $1: The name of the variable to fix 3499 3500 3501 # This will make sure the given variable points to a executable 3502 # with a full and proper path. This means: 3503 # 1) There will be no spaces in the path. On unix platforms, 3504 # spaces in the path will result in an error. On Windows, 3505 # the path will be rewritten using short-style to be space-free. 3506 # 2) The path will be absolute, and it will be in unix-style (on 3507 # cygwin). 3508 # Any arguments given to the executable is preserved. 3509 # If the input variable does not have a directory specification, then 3510 # it need to be in the PATH. 3511 # $1: The name of the variable to fix 3512 3513 3514 3515 3516 # Register a --with argument but mark it as deprecated 3517 # $1: The name of the with argument to deprecate, not including --with- 3518 3519 3520 # Register a --enable argument but mark it as deprecated 3521 # $1: The name of the with argument to deprecate, not including --enable- 3522 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3523 # $3: Messages to user. 3524 3525 3526 3527 3528 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3529 # $1: variable to check 3530 3531 3532 # Check that there are no unprocessed overridden variables left. 3533 # If so, they are an incorrect argument and we will exit with an error. 3534 3535 3536 # Setup a tool for the given variable. If correctly specified by the user, 3537 # use that value, otherwise search for the tool using the supplied code snippet. 3538 # $1: variable to set 3539 # $2: code snippet to call to look for the tool 3540 # $3: code snippet to call if variable was used to find tool 3541 3542 3543 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3544 # $1: variable to set 3545 # $2: executable name (or list of names) to look for 3546 3547 3548 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3549 # $1: variable to set 3550 # $2: executable name (or list of names) to look for 3551 3552 3553 # Like BASIC_PATH_PROGS but fails if no tool was found. 3554 # $1: variable to set 3555 # $2: executable name (or list of names) to look for 3556 3557 3558 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3559 # $1: variable to set 3560 # $2: autoconf macro to call to look for the special tool 3561 3562 3563 # Setup the most fundamental tools that relies on not much else to set up, 3564 # but is used by much of the early bootstrap code. 3565 3566 3567 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3568 3569 3570 # Evaluates platform specific overrides for devkit variables. 3571 # $1: Name of variable 3572 3573 3574 3575 3576 3577 3578 #%%% Simple tools %%% 3579 3580 # Check if we have found a usable version of make 3581 # $1: the path to a potential make binary (or empty) 3582 # $2: the description on how we found this 3583 3584 3585 3586 3587 # Goes looking for a usable version of GNU make. 3588 3589 3590 3591 3592 3593 3594 # Check if build directory is on local disk. If not possible to determine, 3595 # we prefer to claim it's local. 3596 # Argument 1: directory to test 3597 # Argument 2: what to do if it is on local disk 3598 # Argument 3: what to do otherwise (remote disk or failure) 3599 3600 3601 # Check that source files have basic read permissions set. This might 3602 # not be the case in cygwin in certain conditions. 3603 3604 3605 3606 3607 # Check for support for specific options in bash 3608 3609 3610 ################################################################################ 3611 # 3612 # Default make target 3613 # 3614 3615 3616 # Code to run after AC_OUTPUT 3617 3618 3619 # 3620 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3621 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3622 # 3623 # This code is free software; you can redistribute it and/or modify it 3624 # under the terms of the GNU General Public License version 2 only, as 3625 # published by the Free Software Foundation. Oracle designates this 3626 # particular file as subject to the "Classpath" exception as provided 3627 # by Oracle in the LICENSE file that accompanied this code. 3628 # 3629 # This code is distributed in the hope that it will be useful, but WITHOUT 3630 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3631 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3632 # version 2 for more details (a copy is included in the LICENSE file that 3633 # accompanied this code). 3634 # 3635 # You should have received a copy of the GNU General Public License version 3636 # 2 along with this work; if not, write to the Free Software Foundation, 3637 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3638 # 3639 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3640 # or visit www.oracle.com if you need additional information or have any 3641 # questions. 3642 # 3643 3644 3645 3646 3647 3648 # Helper function which possibly converts a path using DOS-style short mode. 3649 # If so, the updated path is stored in $new_path. 3650 # $1: The path to check 3651 3652 3653 # Helper function which possibly converts a path using DOS-style short mode. 3654 # If so, the updated path is stored in $new_path. 3655 # $1: The path to check 3656 3657 3658 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3659 # and could probably be heavily simplified. However, all changes in this 3660 # area tend to need lot of testing in different scenarios, and in lack of 3661 # proper unit testing, cleaning this up has not been deemed worth the effort 3662 # at the moment. 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3673 3674 3675 3676 3677 # ... then the rest 3678 # 3679 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3680 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3681 # 3682 # This code is free software; you can redistribute it and/or modify it 3683 # under the terms of the GNU General Public License version 2 only, as 3684 # published by the Free Software Foundation. Oracle designates this 3685 # particular file as subject to the "Classpath" exception as provided 3686 # by Oracle in the LICENSE file that accompanied this code. 3687 # 3688 # This code is distributed in the hope that it will be useful, but WITHOUT 3689 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3690 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3691 # version 2 for more details (a copy is included in the LICENSE file that 3692 # accompanied this code). 3693 # 3694 # You should have received a copy of the GNU General Public License version 3695 # 2 along with this work; if not, write to the Free Software Foundation, 3696 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3697 # 3698 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3699 # or visit www.oracle.com if you need additional information or have any 3700 # questions. 3701 # 3702 3703 ######################################################################## 3704 # This file handles detection of the Boot JDK. The Boot JDK detection 3705 # process has been developed as a response to solve a complex real-world 3706 # problem. Initially, it was simple, but it has grown as platform after 3707 # platform, idiosyncracy after idiosyncracy has been supported. 3708 # 3709 # The basic idea is this: 3710 # 1) You need an acceptable *) JDK to use as a Boot JDK 3711 # 2) There are several ways to locate a JDK, that are mostly platform 3712 # dependent **) 3713 # 3) You can have multiple JDKs installed 3714 # 4) If possible, configure should try to dig out an acceptable JDK 3715 # automatically, without having to resort to command-line options 3716 # 3717 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3718 # javac) and not a JRE, etc. 3719 # 3720 # **) On Windows we typically use a well-known path. 3721 # On MacOSX we typically use the tool java_home. 3722 # On Linux we typically find javac in the $PATH, and then follow a 3723 # chain of symlinks that often ends up in a real JDK. 3724 # 3725 # This leads to the code where we check in different ways to locate a 3726 # JDK, and if one is found, check if it is acceptable. If not, we print 3727 # our reasons for rejecting it (useful when debugging non-working 3728 # configure situations) and continue checking the next one. 3729 ######################################################################## 3730 3731 # Execute the check given as argument, and verify the result 3732 # If the Boot JDK was previously found, do nothing 3733 # $1 A command line (typically autoconf macro) to execute 3734 3735 3736 # Test: Is bootjdk explicitely set by command line arguments? 3737 3738 3739 # Test: Is $JAVA_HOME set? 3740 3741 3742 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3743 3744 3745 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3746 # $1: Argument to the java_home binary (optional) 3747 3748 3749 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3750 3751 3752 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3753 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3754 # $1 = Path to directory containing jdk installations. 3755 # $2 = String to append to the found JDK directory to get the proper JDK home 3756 3757 3758 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3759 # environmental variable as base for where to look. 3760 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3761 3762 3763 # Test: Is there a JDK installed in default, well-known locations? 3764 3765 3766 # Check that a command-line tool in the Boot JDK is correct 3767 # $1 = name of variable to assign 3768 # $2 = name of binary 3769 3770 3771 ############################################################################### 3772 # 3773 # We need a Boot JDK to bootstrap the build. 3774 # 3775 3776 3777 3778 3779 3780 # 3781 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3782 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3783 # 3784 # This code is free software; you can redistribute it and/or modify it 3785 # under the terms of the GNU General Public License version 2 only, as 3786 # published by the Free Software Foundation. Oracle designates this 3787 # particular file as subject to the "Classpath" exception as provided 3788 # by Oracle in the LICENSE file that accompanied this code. 3789 # 3790 # This code is distributed in the hope that it will be useful, but WITHOUT 3791 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3792 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3793 # version 2 for more details (a copy is included in the LICENSE file that 3794 # accompanied this code). 3795 # 3796 # You should have received a copy of the GNU General Public License version 3797 # 2 along with this work; if not, write to the Free Software Foundation, 3798 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3799 # 3800 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3801 # or visit www.oracle.com if you need additional information or have any 3802 # questions. 3803 # 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 ################################################################################ 3822 # 3823 # Runs icecc-create-env once and prints the error if it fails 3824 # 3825 # $1: arguments to icecc-create-env 3826 # $2: log file 3827 # 3828 3829 3830 ################################################################################ 3831 # 3832 # Optionally enable distributed compilation of native code using icecc/icecream 3833 # 3834 3835 3836 3837 3838 3839 3840 3841 # 3842 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3843 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3844 # 3845 # This code is free software; you can redistribute it and/or modify it 3846 # under the terms of the GNU General Public License version 2 only, as 3847 # published by the Free Software Foundation. Oracle designates this 3848 # particular file as subject to the "Classpath" exception as provided 3849 # by Oracle in the LICENSE file that accompanied this code. 3850 # 3851 # This code is distributed in the hope that it will be useful, but WITHOUT 3852 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3853 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3854 # version 2 for more details (a copy is included in the LICENSE file that 3855 # accompanied this code). 3856 # 3857 # You should have received a copy of the GNU General Public License version 3858 # 2 along with this work; if not, write to the Free Software Foundation, 3859 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3860 # 3861 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3862 # or visit www.oracle.com if you need additional information or have any 3863 # questions. 3864 # 3865 3866 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the 3867 # corresponding configure arguments instead 3868 3869 3870 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so 3871 # that configure can use them while detecting compilers. 3872 # TOOLCHAIN_TYPE is available here. 3873 # Param 1 - Optional prefix to all variables. (e.g BUILD_) 3874 3875 3876 3877 3878 3879 3880 # Documentation on common flags used for solstudio in HIGHEST. 3881 # 3882 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 3883 # done with care, there are some assumptions below that need to 3884 # be understood about the use of pointers, and IEEE behavior. 3885 # 3886 # -fns: Use non-standard floating point mode (not IEEE 754) 3887 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 3888 # -fsingle: Use single precision floating point with 'float' 3889 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 3890 # (Source with excessing pointer casting and data access with mixed 3891 # pointer types are not recommended) 3892 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 3893 # (If you expect perfect errno behavior, do not use this) 3894 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 3895 # -xrestrict: Pointer parameters to functions do not overlap 3896 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 3897 # If you pass in multiple pointers to the same data, do not use this) 3898 # -xlibmil: Inline some library routines 3899 # (If you expect perfect errno behavior, do not use this) 3900 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 3901 # (If you expect perfect errno behavior, do not use this) 3902 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 3903 3904 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 3905 # Bug? 3906 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 3907 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 3908 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 3909 #fi 3910 3911 3912 3913 3914 3915 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 3916 # IF_FALSE: [RUN-IF-FALSE]) 3917 # ------------------------------------------------------------ 3918 # Check that the c and c++ compilers support an argument 3919 3920 3921 3922 3923 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 3924 # IF_FALSE: [RUN-IF-FALSE]) 3925 # ------------------------------------------------------------ 3926 # Check that the linker support an argument 3927 3928 3929 3930 3931 3932 3933 # 3934 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3935 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3936 # 3937 # This code is free software; you can redistribute it and/or modify it 3938 # under the terms of the GNU General Public License version 2 only, as 3939 # published by the Free Software Foundation. Oracle designates this 3940 # particular file as subject to the "Classpath" exception as provided 3941 # by Oracle in the LICENSE file that accompanied this code. 3942 # 3943 # This code is distributed in the hope that it will be useful, but WITHOUT 3944 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3945 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3946 # version 2 for more details (a copy is included in the LICENSE file that 3947 # accompanied this code). 3948 # 3949 # You should have received a copy of the GNU General Public License version 3950 # 2 along with this work; if not, write to the Free Software Foundation, 3951 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3952 # 3953 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3954 # or visit www.oracle.com if you need additional information or have any 3955 # questions. 3956 # 3957 3958 3959 3960 3961 3962 cygwin_help() { 3963 case $1 in 3964 unzip) 3965 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 3966 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3967 ;; 3968 zip) 3969 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 3970 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3971 ;; 3972 make) 3973 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 3974 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3975 ;; 3976 freetype) 3977 HELP_MSG=" 3978 The freetype library can now be build during the configure process. 3979 Download the freetype sources and unpack them into an arbitrary directory: 3980 3981 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 3982 tar -xzf freetype-2.5.3.tar.gz 3983 3984 Then run configure with '--with-freetype-src=<freetype_src>'. This will 3985 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 3986 builds or into '<freetype_src>/lib32' for 32-bit builds. 3987 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 3988 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds. 3989 3990 Alternatively you can unpack the sources like this to use the default directory: 3991 3992 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz" 3993 ;; 3994 esac 3995 } 3996 3997 msys_help() { 3998 PKGHANDLER_COMMAND="" 3999 } 4000 4001 apt_help() { 4002 case $1 in 4003 reduced) 4004 PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;; 4005 devkit) 4006 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 4007 openjdk) 4008 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;; 4009 alsa) 4010 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 4011 cups) 4012 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 4013 freetype) 4014 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 4015 ffi) 4016 PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;; 4017 x11) 4018 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 4019 ccache) 4020 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 4021 esac 4022 } 4023 4024 yum_help() { 4025 case $1 in 4026 devkit) 4027 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 4028 openjdk) 4029 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;; 4030 alsa) 4031 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 4032 cups) 4033 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 4034 freetype) 4035 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 4036 x11) 4037 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;; 4038 ccache) 4039 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 4040 esac 4041 } 4042 4043 port_help() { 4044 PKGHANDLER_COMMAND="" 4045 } 4046 4047 pkgutil_help() { 4048 PKGHANDLER_COMMAND="" 4049 } 4050 4051 pkgadd_help() { 4052 PKGHANDLER_COMMAND="" 4053 } 4054 4055 # This function will check if we're called from the "configure" wrapper while 4056 # printing --help. If so, we will print out additional information that can 4057 # only be extracted within the autoconf script, and then exit. This must be 4058 # called at the very beginning in configure.ac. 4059 4060 4061 4062 4063 4064 4065 # 4066 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4067 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4068 # 4069 # This code is free software; you can redistribute it and/or modify it 4070 # under the terms of the GNU General Public License version 2 only, as 4071 # published by the Free Software Foundation. Oracle designates this 4072 # particular file as subject to the "Classpath" exception as provided 4073 # by Oracle in the LICENSE file that accompanied this code. 4074 # 4075 # This code is distributed in the hope that it will be useful, but WITHOUT 4076 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4077 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4078 # version 2 for more details (a copy is included in the LICENSE file that 4079 # accompanied this code). 4080 # 4081 # You should have received a copy of the GNU General Public License version 4082 # 2 along with this work; if not, write to the Free Software Foundation, 4083 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4084 # 4085 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4086 # or visit www.oracle.com if you need additional information or have any 4087 # questions. 4088 # 4089 4090 ############################################################################### 4091 # Check which interpreter of the JVM we want to build. 4092 # Currently we have: 4093 # template: Template interpreter (the default) 4094 # cpp : C++ interpreter 4095 4096 4097 ############################################################################### 4098 # Check which variants of the JVM that we want to build. 4099 # Currently we have: 4100 # server: normal interpreter and a C2 or tiered C1/C2 compiler 4101 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 4102 # minimal1: reduced form of client with optional VM services and features stripped out 4103 # zero: no machine code interpreter, no compiler 4104 # zeroshark: zero interpreter and shark/llvm compiler backend 4105 # core: interpreter only, no compiler (only works on some platforms) 4106 4107 4108 4109 ############################################################################### 4110 # Setup legacy vars/targets and new vars to deal with different debug levels. 4111 # 4112 # release: no debug information, all optimizations, no asserts. 4113 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 4114 # fastdebug: debug information (-g), all optimizations, all asserts 4115 # slowdebug: debug information (-g), no optimizations, all asserts 4116 # 4117 4118 4119 4120 4121 4122 4123 # 4124 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4125 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4126 # 4127 # This code is free software; you can redistribute it and/or modify it 4128 # under the terms of the GNU General Public License version 2 only, as 4129 # published by the Free Software Foundation. Oracle designates this 4130 # particular file as subject to the "Classpath" exception as provided 4131 # by Oracle in the LICENSE file that accompanied this code. 4132 # 4133 # This code is distributed in the hope that it will be useful, but WITHOUT 4134 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4135 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4136 # version 2 for more details (a copy is included in the LICENSE file that 4137 # accompanied this code). 4138 # 4139 # You should have received a copy of the GNU General Public License version 4140 # 2 along with this work; if not, write to the Free Software Foundation, 4141 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4142 # 4143 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4144 # or visit www.oracle.com if you need additional information or have any 4145 # questions. 4146 # 4147 4148 ############################################################################### 4149 # Check which variant of the JDK that we want to build. 4150 # Currently we have: 4151 # normal: standard edition 4152 # but the custom make system may add other variants 4153 # 4154 # Effectively the JDK variant gives a name to a specific set of 4155 # modules to compile into the JDK. 4156 4157 4158 ############################################################################### 4159 # Set the debug level 4160 # release: no debug information, all optimizations, no asserts. 4161 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 4162 # fastdebug: debug information (-g), all optimizations, all asserts 4163 # slowdebug: debug information (-g), no optimizations, all asserts 4164 4165 4166 ############################################################################### 4167 # 4168 # Should we build only OpenJDK even if closed sources are present? 4169 # 4170 4171 4172 4173 4174 ############################################################################### 4175 # 4176 # Enable or disable the elliptic curve crypto implementation 4177 # 4178 4179 4180 4181 4182 ################################################################################ 4183 # 4184 # Gcov coverage data for hotspot 4185 # 4186 4187 4188 ################################################################################ 4189 # 4190 # Static build support. When enabled will generate static 4191 # libraries instead of shared libraries for all JDK libs. 4192 # 4193 4194 4195 # 4196 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 4197 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4198 # 4199 # This code is free software; you can redistribute it and/or modify it 4200 # under the terms of the GNU General Public License version 2 only, as 4201 # published by the Free Software Foundation. Oracle designates this 4202 # particular file as subject to the "Classpath" exception as provided 4203 # by Oracle in the LICENSE file that accompanied this code. 4204 # 4205 # This code is distributed in the hope that it will be useful, but WITHOUT 4206 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4207 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4208 # version 2 for more details (a copy is included in the LICENSE file that 4209 # accompanied this code). 4210 # 4211 # You should have received a copy of the GNU General Public License version 4212 # 2 along with this work; if not, write to the Free Software Foundation, 4213 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4214 # 4215 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4216 # or visit www.oracle.com if you need additional information or have any 4217 # questions. 4218 # 4219 4220 ############################################################################### 4221 # 4222 # Setup version numbers 4223 # 4224 4225 # Verify that a given string represents a valid version number, and assign it 4226 # to a variable. 4227 4228 # Argument 1: the variable to assign to 4229 # Argument 2: the value given by the user 4230 4231 4232 4233 4234 # 4235 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4236 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4237 # 4238 # This code is free software; you can redistribute it and/or modify it 4239 # under the terms of the GNU General Public License version 2 only, as 4240 # published by the Free Software Foundation. Oracle designates this 4241 # particular file as subject to the "Classpath" exception as provided 4242 # by Oracle in the LICENSE file that accompanied this code. 4243 # 4244 # This code is distributed in the hope that it will be useful, but WITHOUT 4245 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4246 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4247 # version 2 for more details (a copy is included in the LICENSE file that 4248 # accompanied this code). 4249 # 4250 # You should have received a copy of the GNU General Public License version 4251 # 2 along with this work; if not, write to the Free Software Foundation, 4252 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4253 # 4254 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4255 # or visit www.oracle.com if you need additional information or have any 4256 # questions. 4257 # 4258 4259 # Major library component reside in separate files. 4260 # 4261 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4262 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4263 # 4264 # This code is free software; you can redistribute it and/or modify it 4265 # under the terms of the GNU General Public License version 2 only, as 4266 # published by the Free Software Foundation. Oracle designates this 4267 # particular file as subject to the "Classpath" exception as provided 4268 # by Oracle in the LICENSE file that accompanied this code. 4269 # 4270 # This code is distributed in the hope that it will be useful, but WITHOUT 4271 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4272 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4273 # version 2 for more details (a copy is included in the LICENSE file that 4274 # accompanied this code). 4275 # 4276 # You should have received a copy of the GNU General Public License version 4277 # 2 along with this work; if not, write to the Free Software Foundation, 4278 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4279 # 4280 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4281 # or visit www.oracle.com if you need additional information or have any 4282 # questions. 4283 # 4284 4285 ################################################################################ 4286 # Setup alsa (Advanced Linux Sound Architecture) 4287 ################################################################################ 4288 4289 4290 # 4291 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4292 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4293 # 4294 # This code is free software; you can redistribute it and/or modify it 4295 # under the terms of the GNU General Public License version 2 only, as 4296 # published by the Free Software Foundation. Oracle designates this 4297 # particular file as subject to the "Classpath" exception as provided 4298 # by Oracle in the LICENSE file that accompanied this code. 4299 # 4300 # This code is distributed in the hope that it will be useful, but WITHOUT 4301 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4302 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4303 # version 2 for more details (a copy is included in the LICENSE file that 4304 # accompanied this code). 4305 # 4306 # You should have received a copy of the GNU General Public License version 4307 # 2 along with this work; if not, write to the Free Software Foundation, 4308 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4309 # 4310 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4311 # or visit www.oracle.com if you need additional information or have any 4312 # questions. 4313 # 4314 4315 ################################################################################ 4316 # Setup bundled libraries. 4317 # 4318 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the 4319 # OpenJDK repository. Default is to use these libraries as bundled, but they 4320 # might be replaced by en external version by the user. 4321 ################################################################################ 4322 4323 4324 ################################################################################ 4325 # Setup libjpeg 4326 ################################################################################ 4327 4328 4329 ################################################################################ 4330 # Setup giflib 4331 ################################################################################ 4332 4333 4334 ################################################################################ 4335 # Setup libpng 4336 ################################################################################ 4337 4338 4339 ################################################################################ 4340 # Setup zlib 4341 ################################################################################ 4342 4343 4344 ################################################################################ 4345 # Setup lcms (Little CMS) 4346 ################################################################################ 4347 4348 4349 # 4350 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4351 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4352 # 4353 # This code is free software; you can redistribute it and/or modify it 4354 # under the terms of the GNU General Public License version 2 only, as 4355 # published by the Free Software Foundation. Oracle designates this 4356 # particular file as subject to the "Classpath" exception as provided 4357 # by Oracle in the LICENSE file that accompanied this code. 4358 # 4359 # This code is distributed in the hope that it will be useful, but WITHOUT 4360 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4361 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4362 # version 2 for more details (a copy is included in the LICENSE file that 4363 # accompanied this code). 4364 # 4365 # You should have received a copy of the GNU General Public License version 4366 # 2 along with this work; if not, write to the Free Software Foundation, 4367 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4368 # 4369 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4370 # or visit www.oracle.com if you need additional information or have any 4371 # questions. 4372 # 4373 4374 ################################################################################ 4375 # Setup cups (Common Unix Printing System) 4376 ################################################################################ 4377 4378 4379 # 4380 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 4381 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4382 # 4383 # This code is free software; you can redistribute it and/or modify it 4384 # under the terms of the GNU General Public License version 2 only, as 4385 # published by the Free Software Foundation. Oracle designates this 4386 # particular file as subject to the "Classpath" exception as provided 4387 # by Oracle in the LICENSE file that accompanied this code. 4388 # 4389 # This code is distributed in the hope that it will be useful, but WITHOUT 4390 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4391 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4392 # version 2 for more details (a copy is included in the LICENSE file that 4393 # accompanied this code). 4394 # 4395 # You should have received a copy of the GNU General Public License version 4396 # 2 along with this work; if not, write to the Free Software Foundation, 4397 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4398 # 4399 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4400 # or visit www.oracle.com if you need additional information or have any 4401 # questions. 4402 # 4403 4404 ################################################################################ 4405 # Setup libffi (Foreign Function Interface) 4406 ################################################################################ 4407 4408 4409 # 4410 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4411 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4412 # 4413 # This code is free software; you can redistribute it and/or modify it 4414 # under the terms of the GNU General Public License version 2 only, as 4415 # published by the Free Software Foundation. Oracle designates this 4416 # particular file as subject to the "Classpath" exception as provided 4417 # by Oracle in the LICENSE file that accompanied this code. 4418 # 4419 # This code is distributed in the hope that it will be useful, but WITHOUT 4420 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4421 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4422 # version 2 for more details (a copy is included in the LICENSE file that 4423 # accompanied this code). 4424 # 4425 # You should have received a copy of the GNU General Public License version 4426 # 2 along with this work; if not, write to the Free Software Foundation, 4427 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4428 # 4429 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4430 # or visit www.oracle.com if you need additional information or have any 4431 # questions. 4432 # 4433 4434 ################################################################################ 4435 # Build the freetype lib from source 4436 ################################################################################ 4437 4438 4439 ################################################################################ 4440 # Check if a potential freeype library match is correct and usable 4441 ################################################################################ 4442 4443 4444 ################################################################################ 4445 # Setup freetype (The FreeType2 font rendering library) 4446 ################################################################################ 4447 4448 4449 # 4450 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4451 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4452 # 4453 # This code is free software; you can redistribute it and/or modify it 4454 # under the terms of the GNU General Public License version 2 only, as 4455 # published by the Free Software Foundation. Oracle designates this 4456 # particular file as subject to the "Classpath" exception as provided 4457 # by Oracle in the LICENSE file that accompanied this code. 4458 # 4459 # This code is distributed in the hope that it will be useful, but WITHOUT 4460 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4461 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4462 # version 2 for more details (a copy is included in the LICENSE file that 4463 # accompanied this code). 4464 # 4465 # You should have received a copy of the GNU General Public License version 4466 # 2 along with this work; if not, write to the Free Software Foundation, 4467 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4468 # 4469 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4470 # or visit www.oracle.com if you need additional information or have any 4471 # questions. 4472 # 4473 4474 ################################################################################ 4475 # Setup the standard C/C++ runtime libraries. 4476 # 4477 # Most importantly, determine if stdc++ should be linked statically or 4478 # dynamically. 4479 ################################################################################ 4480 4481 4482 # 4483 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4484 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4485 # 4486 # This code is free software; you can redistribute it and/or modify it 4487 # under the terms of the GNU General Public License version 2 only, as 4488 # published by the Free Software Foundation. Oracle designates this 4489 # particular file as subject to the "Classpath" exception as provided 4490 # by Oracle in the LICENSE file that accompanied this code. 4491 # 4492 # This code is distributed in the hope that it will be useful, but WITHOUT 4493 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4494 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4495 # version 2 for more details (a copy is included in the LICENSE file that 4496 # accompanied this code). 4497 # 4498 # You should have received a copy of the GNU General Public License version 4499 # 2 along with this work; if not, write to the Free Software Foundation, 4500 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4501 # 4502 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4503 # or visit www.oracle.com if you need additional information or have any 4504 # questions. 4505 # 4506 4507 ################################################################################ 4508 # Setup X11 Windows system 4509 ################################################################################ 4510 4511 4512 4513 ################################################################################ 4514 # Determine which libraries are needed for this configuration 4515 ################################################################################ 4516 4517 4518 ################################################################################ 4519 # Parse library options, and setup needed libraries 4520 ################################################################################ 4521 4522 4523 ################################################################################ 4524 # Setup llvm (Low-Level VM) 4525 ################################################################################ 4526 4527 4528 ################################################################################ 4529 # Setup various libraries, typically small system libraries 4530 ################################################################################ 4531 4532 4533 # 4534 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4535 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4536 # 4537 # This code is free software; you can redistribute it and/or modify it 4538 # under the terms of the GNU General Public License version 2 only, as 4539 # published by the Free Software Foundation. Oracle designates this 4540 # particular file as subject to the "Classpath" exception as provided 4541 # by Oracle in the LICENSE file that accompanied this code. 4542 # 4543 # This code is distributed in the hope that it will be useful, but WITHOUT 4544 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4545 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4546 # version 2 for more details (a copy is included in the LICENSE file that 4547 # accompanied this code). 4548 # 4549 # You should have received a copy of the GNU General Public License version 4550 # 2 along with this work; if not, write to the Free Software Foundation, 4551 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4552 # 4553 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4554 # or visit www.oracle.com if you need additional information or have any 4555 # questions. 4556 # 4557 4558 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4559 # Converts autoconf style CPU name to OpenJDK style, into 4560 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4561 4562 4563 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4564 # Converts autoconf style OS name to OpenJDK style, into 4565 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV. 4566 4567 4568 # Expects $host_os $host_cpu $build_os and $build_cpu 4569 # and $with_target_bits to have been setup! 4570 # 4571 # Translate the standard triplet(quadruplet) definition 4572 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4573 # OPENJDK_BUILD_OS, etc. 4574 4575 4576 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4577 # accordingly. Must be done after setting up build and target system, but before 4578 # doing anything else with these values. 4579 4580 4581 # Setup the legacy variables, for controlling the old makefiles. 4582 # 4583 4584 4585 4586 4587 #%%% Build and target systems %%% 4588 4589 4590 4591 4592 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4593 # Add -mX to various FLAGS variables. 4594 4595 4596 4597 4598 4599 4600 # 4601 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4602 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4603 # 4604 # This code is free software; you can redistribute it and/or modify it 4605 # under the terms of the GNU General Public License version 2 only, as 4606 # published by the Free Software Foundation. Oracle designates this 4607 # particular file as subject to the "Classpath" exception as provided 4608 # by Oracle in the LICENSE file that accompanied this code. 4609 # 4610 # This code is distributed in the hope that it will be useful, but WITHOUT 4611 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4612 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4613 # version 2 for more details (a copy is included in the LICENSE file that 4614 # accompanied this code). 4615 # 4616 # You should have received a copy of the GNU General Public License version 4617 # 2 along with this work; if not, write to the Free Software Foundation, 4618 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4619 # 4620 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4621 # or visit www.oracle.com if you need additional information or have any 4622 # questions. 4623 # 4624 4625 4626 4627 4628 4629 4630 4631 # 4632 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4633 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4634 # 4635 # This code is free software; you can redistribute it and/or modify it 4636 # under the terms of the GNU General Public License version 2 only, as 4637 # published by the Free Software Foundation. Oracle designates this 4638 # particular file as subject to the "Classpath" exception as provided 4639 # by Oracle in the LICENSE file that accompanied this code. 4640 # 4641 # This code is distributed in the hope that it will be useful, but WITHOUT 4642 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4643 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4644 # version 2 for more details (a copy is included in the LICENSE file that 4645 # accompanied this code). 4646 # 4647 # You should have received a copy of the GNU General Public License version 4648 # 2 along with this work; if not, write to the Free Software Foundation, 4649 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4650 # 4651 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4652 # or visit www.oracle.com if you need additional information or have any 4653 # questions. 4654 # 4655 4656 ######################################################################## 4657 # This file is responsible for detecting, verifying and setting up the 4658 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4659 # proper paths to the binaries, but it will not setup any flags. 4660 # 4661 # The binaries used is determined by the toolchain type, which is the family of 4662 # compilers and related tools that are used. 4663 ######################################################################## 4664 4665 4666 # All valid toolchains, regardless of platform (used by help.m4) 4667 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4668 4669 # These toolchains are valid on different platforms 4670 VALID_TOOLCHAINS_linux="gcc clang" 4671 VALID_TOOLCHAINS_solaris="solstudio" 4672 VALID_TOOLCHAINS_macosx="gcc clang" 4673 VALID_TOOLCHAINS_aix="xlc" 4674 VALID_TOOLCHAINS_windows="microsoft" 4675 4676 # Toolchain descriptions 4677 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4678 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4679 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4680 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4681 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4682 4683 # Minimum supported versions, empty means unspecified 4684 TOOLCHAIN_MINIMUM_VERSION_clang="3.2" 4685 TOOLCHAIN_MINIMUM_VERSION_gcc="4.3" 4686 TOOLCHAIN_MINIMUM_VERSION_microsoft="" 4687 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.12" 4688 TOOLCHAIN_MINIMUM_VERSION_xlc="" 4689 4690 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called. 4691 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER. 4692 4693 4694 # Check if the configured compiler (C and C++) is of a specific version or 4695 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before. 4696 # 4697 # Arguments: 4698 # VERSION: The version string to check against the found version 4699 # IF_AT_LEAST: block to run if the compiler is at least this version (>=) 4700 # IF_OLDER_THAN: block to run if the compiler is older than this version (<) 4701 4702 4703 4704 4705 # Setup a number of variables describing how native output files are 4706 # named on this platform/toolchain. 4707 4708 4709 # Determine which toolchain type to use, and make sure it is valid for this 4710 # platform. Setup various information about the selected toolchain. 4711 4712 4713 # Before we start detecting the toolchain executables, we might need some 4714 # special setup, e.g. additional paths etc. 4715 4716 4717 # Restore path, etc 4718 4719 4720 # Check if a compiler is of the toolchain type we expect, and save the version 4721 # information from it. If the compiler does not match the expected type, 4722 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4723 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4724 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4725 # 4726 # $1 = compiler to test (CC or CXX) 4727 # $2 = human readable name of compiler (C or C++) 4728 4729 4730 # Try to locate the given C or C++ compiler in the path, or otherwise. 4731 # 4732 # $1 = compiler to test (CC or CXX) 4733 # $2 = human readable name of compiler (C or C++) 4734 # $3 = list of compiler names to search for 4735 4736 4737 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4738 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4739 # archiver (AR). Verify that the compilers are correct according to the 4740 # toolchain type. 4741 4742 4743 # Setup additional tools that is considered a part of the toolchain, but not the 4744 # core part. Many of these are highly platform-specific and do not exist, 4745 # and/or are not needed on all platforms. 4746 4747 4748 # Setup the build tools (i.e, the compiler and linker used to build programs 4749 # that should be run on the build platform, not the target platform, as a build 4750 # helper). Since the non-cross-compile case uses the normal, target compilers 4751 # for this, we can only do this after these have been setup. 4752 4753 4754 # Setup legacy variables that are still needed as alternative ways to refer to 4755 # parts of the toolchain. 4756 4757 4758 # Do some additional checks on the detected tools. 4759 4760 4761 # Setup the JTReg Regression Test Harness. 4762 4763 4764 # 4765 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4766 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4767 # 4768 # This code is free software; you can redistribute it and/or modify it 4769 # under the terms of the GNU General Public License version 2 only, as 4770 # published by the Free Software Foundation. Oracle designates this 4771 # particular file as subject to the "Classpath" exception as provided 4772 # by Oracle in the LICENSE file that accompanied this code. 4773 # 4774 # This code is distributed in the hope that it will be useful, but WITHOUT 4775 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4776 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4777 # version 2 for more details (a copy is included in the LICENSE file that 4778 # accompanied this code). 4779 # 4780 # You should have received a copy of the GNU General Public License version 4781 # 2 along with this work; if not, write to the Free Software Foundation, 4782 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4783 # 4784 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4785 # or visit www.oracle.com if you need additional information or have any 4786 # questions. 4787 # 4788 4789 ################################################################################ 4790 # The order of these defines the priority by which we try to find them. 4791 VALID_VS_VERSIONS="2013 2012 2010" 4792 4793 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010" 4794 VS_VERSION_INTERNAL_2010=100 4795 VS_MSVCR_2010=msvcr100.dll 4796 # We don't use msvcp on Visual Studio 2010 4797 #VS_MSVCP_2010=msvcp100.dll 4798 VS_ENVVAR_2010="VS100COMNTOOLS" 4799 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0" 4800 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1" 4801 VS_VS_PLATFORM_NAME_2010="v100" 4802 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK" 4803 4804 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012" 4805 VS_VERSION_INTERNAL_2012=110 4806 VS_MSVCR_2012=msvcr110.dll 4807 VS_MSVCP_2012=msvcp110.dll 4808 VS_ENVVAR_2012="VS110COMNTOOLS" 4809 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0" 4810 VS_SDK_INSTALLDIR_2012= 4811 VS_VS_PLATFORM_NAME_2012="v110" 4812 VS_SDK_PLATFORM_NAME_2012= 4813 4814 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013" 4815 VS_VERSION_INTERNAL_2013=120 4816 VS_MSVCR_2013=msvcr120.dll 4817 VS_MSVCP_2013=msvcp120.dll 4818 VS_ENVVAR_2013="VS120COMNTOOLS" 4819 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0" 4820 VS_SDK_INSTALLDIR_2013= 4821 VS_VS_PLATFORM_NAME_2013="v120" 4822 VS_SDK_PLATFORM_NAME_2013= 4823 4824 ################################################################################ 4825 4826 4827 4828 ################################################################################ 4829 4830 4831 4832 ################################################################################ 4833 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper 4834 # build environment and assigns it to VS_ENV_CMD 4835 4836 4837 ################################################################################ 4838 4839 4840 4841 ################################################################################ 4842 # Check if the VS env variables were setup prior to running configure. 4843 # If not, then find vcvarsall.bat and run it automatically, and integrate 4844 # the set env variables into the spec file. 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 # This line needs to be here, verbatim, after all includes and the dummy hook 4860 # definitions. It is replaced with custom functionality when building 4861 # custom sources. 4862 #CUSTOM_AUTOCONF_INCLUDE 4863 4864 # Do not change or remove the following line, it is needed for consistency checks: 4865 DATE_WHEN_GENERATED=1456136781 4866 4867 ############################################################################### 4868 # 4869 # Initialization / Boot-strapping 4870 # 4871 # The bootstrapping process needs to solve the "chicken or the egg" problem, 4872 # thus it jumps back and forth, each time gaining something needed later on. 4873 # 4874 ############################################################################### 4875 4876 # If we are requested to print additional help, do that and then exit. 4877 # This must be the very first call. 4878 4879 if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then 4880 4881 # Print available toolchains 4882 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 4883 $PRINTF "Which are valid to use depends on the build platform.\n" 4884 for toolchain in $VALID_TOOLCHAINS_all; do 4885 # Use indirect variable referencing 4886 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 4887 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 4888 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 4889 done 4890 4891 # And now exit directly 4892 exit 0 4893 fi 4894 4895 4896 # Basic initialization that must happen first of all in the normal process. 4897 4898 # Save the original command line. This is passed to us by the wrapper configure script. 4899 4900 # Save the path variable before it gets changed 4901 ORIGINAL_PATH="$PATH" 4902 4903 DATE_WHEN_CONFIGURED=`LANG=C date` 4904 4905 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 4906 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 4907 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 4908 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 4909 4910 4911 # Start with tools that do not need have cross compilation support 4912 # and can be expected to be found in the default PATH. These tools are 4913 # used by configure. 4914 4915 # First are all the simple required tools. 4916 4917 4918 4919 # Publish this variable in the help. 4920 4921 4922 if [ -z "${BASENAME+x}" ]; then 4923 # The variable is not set by user, try to locate tool using the code snippet 4924 for ac_prog in basename 4925 do 4926 # Extract the first word of "$ac_prog", so it can be a program name with args. 4927 set dummy $ac_prog; ac_word=$2 4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4929 $as_echo_n "checking for $ac_word... " >&6; } 4930 if ${ac_cv_path_BASENAME+:} false; then : 4931 $as_echo_n "(cached) " >&6 4932 else 4933 case $BASENAME in 4934 [\\/]* | ?:[\\/]*) 4935 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4936 ;; 4937 *) 4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4939 for as_dir in $PATH 4940 do 4941 IFS=$as_save_IFS 4942 test -z "$as_dir" && as_dir=. 4943 for ac_exec_ext in '' $ac_executable_extensions; do 4944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4945 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4947 break 2 4948 fi 4949 done 4950 done 4951 IFS=$as_save_IFS 4952 4953 ;; 4954 esac 4955 fi 4956 BASENAME=$ac_cv_path_BASENAME 4957 if test -n "$BASENAME"; then 4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4959 $as_echo "$BASENAME" >&6; } 4960 else 4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4962 $as_echo "no" >&6; } 4963 fi 4964 4965 4966 test -n "$BASENAME" && break 4967 done 4968 4969 else 4970 # The variable is set, but is it from the command line or the environment? 4971 4972 # Try to remove the string !BASENAME! from our list. 4973 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 4974 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4975 # If it failed, the variable was not from the command line. Ignore it, 4976 # but warn the user (except for BASH, which is always set by the calling BASH). 4977 if test "xBASENAME" != xBASH; then 4978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 4979 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 4980 fi 4981 # Try to locate tool using the code snippet 4982 for ac_prog in basename 4983 do 4984 # Extract the first word of "$ac_prog", so it can be a program name with args. 4985 set dummy $ac_prog; ac_word=$2 4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4987 $as_echo_n "checking for $ac_word... " >&6; } 4988 if ${ac_cv_path_BASENAME+:} false; then : 4989 $as_echo_n "(cached) " >&6 4990 else 4991 case $BASENAME in 4992 [\\/]* | ?:[\\/]*) 4993 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4994 ;; 4995 *) 4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4997 for as_dir in $PATH 4998 do 4999 IFS=$as_save_IFS 5000 test -z "$as_dir" && as_dir=. 5001 for ac_exec_ext in '' $ac_executable_extensions; do 5002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5003 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5005 break 2 5006 fi 5007 done 5008 done 5009 IFS=$as_save_IFS 5010 5011 ;; 5012 esac 5013 fi 5014 BASENAME=$ac_cv_path_BASENAME 5015 if test -n "$BASENAME"; then 5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5017 $as_echo "$BASENAME" >&6; } 5018 else 5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5020 $as_echo "no" >&6; } 5021 fi 5022 5023 5024 test -n "$BASENAME" && break 5025 done 5026 5027 else 5028 # If it succeeded, then it was overridden by the user. We will use it 5029 # for the tool. 5030 5031 # First remove it from the list of overridden variables, so we can test 5032 # for unknown variables in the end. 5033 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5034 5035 # Check if we try to supply an empty value 5036 if test "x$BASENAME" = x; then 5037 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5 5038 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;} 5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5040 $as_echo_n "checking for BASENAME... " >&6; } 5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5042 $as_echo "disabled" >&6; } 5043 else 5044 # Check if the provided tool contains a complete path. 5045 tool_specified="$BASENAME" 5046 tool_basename="${tool_specified##*/}" 5047 if test "x$tool_basename" = "x$tool_specified"; then 5048 # A command without a complete path is provided, search $PATH. 5049 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 5050 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 5051 # Extract the first word of "$tool_basename", so it can be a program name with args. 5052 set dummy $tool_basename; ac_word=$2 5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5054 $as_echo_n "checking for $ac_word... " >&6; } 5055 if ${ac_cv_path_BASENAME+:} false; then : 5056 $as_echo_n "(cached) " >&6 5057 else 5058 case $BASENAME in 5059 [\\/]* | ?:[\\/]*) 5060 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5061 ;; 5062 *) 5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5064 for as_dir in $PATH 5065 do 5066 IFS=$as_save_IFS 5067 test -z "$as_dir" && as_dir=. 5068 for ac_exec_ext in '' $ac_executable_extensions; do 5069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5070 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5072 break 2 5073 fi 5074 done 5075 done 5076 IFS=$as_save_IFS 5077 5078 ;; 5079 esac 5080 fi 5081 BASENAME=$ac_cv_path_BASENAME 5082 if test -n "$BASENAME"; then 5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5084 $as_echo "$BASENAME" >&6; } 5085 else 5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5087 $as_echo "no" >&6; } 5088 fi 5089 5090 5091 if test "x$BASENAME" = x; then 5092 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5093 fi 5094 else 5095 # Otherwise we believe it is a complete path. Use it as it is. 5096 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 5097 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5099 $as_echo_n "checking for BASENAME... " >&6; } 5100 if test ! -x "$tool_specified"; then 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5102 $as_echo "not found" >&6; } 5103 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 5104 fi 5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5106 $as_echo "$tool_specified" >&6; } 5107 fi 5108 fi 5109 fi 5110 5111 fi 5112 5113 5114 5115 if test "x$BASENAME" = x; then 5116 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 5117 fi 5118 5119 5120 5121 5122 5123 # Publish this variable in the help. 5124 5125 5126 if [ -z "${BASH+x}" ]; then 5127 # The variable is not set by user, try to locate tool using the code snippet 5128 for ac_prog in bash 5129 do 5130 # Extract the first word of "$ac_prog", so it can be a program name with args. 5131 set dummy $ac_prog; ac_word=$2 5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5133 $as_echo_n "checking for $ac_word... " >&6; } 5134 if ${ac_cv_path_BASH+:} false; then : 5135 $as_echo_n "(cached) " >&6 5136 else 5137 case $BASH in 5138 [\\/]* | ?:[\\/]*) 5139 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5140 ;; 5141 *) 5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5143 for as_dir in $PATH 5144 do 5145 IFS=$as_save_IFS 5146 test -z "$as_dir" && as_dir=. 5147 for ac_exec_ext in '' $ac_executable_extensions; do 5148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5149 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5151 break 2 5152 fi 5153 done 5154 done 5155 IFS=$as_save_IFS 5156 5157 ;; 5158 esac 5159 fi 5160 BASH=$ac_cv_path_BASH 5161 if test -n "$BASH"; then 5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5163 $as_echo "$BASH" >&6; } 5164 else 5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5166 $as_echo "no" >&6; } 5167 fi 5168 5169 5170 test -n "$BASH" && break 5171 done 5172 5173 else 5174 # The variable is set, but is it from the command line or the environment? 5175 5176 # Try to remove the string !BASH! from our list. 5177 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 5178 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5179 # If it failed, the variable was not from the command line. Ignore it, 5180 # but warn the user (except for BASH, which is always set by the calling BASH). 5181 if test "xBASH" != xBASH; then 5182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 5183 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 5184 fi 5185 # Try to locate tool using the code snippet 5186 for ac_prog in bash 5187 do 5188 # Extract the first word of "$ac_prog", so it can be a program name with args. 5189 set dummy $ac_prog; ac_word=$2 5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5191 $as_echo_n "checking for $ac_word... " >&6; } 5192 if ${ac_cv_path_BASH+:} false; then : 5193 $as_echo_n "(cached) " >&6 5194 else 5195 case $BASH in 5196 [\\/]* | ?:[\\/]*) 5197 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5198 ;; 5199 *) 5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5201 for as_dir in $PATH 5202 do 5203 IFS=$as_save_IFS 5204 test -z "$as_dir" && as_dir=. 5205 for ac_exec_ext in '' $ac_executable_extensions; do 5206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5207 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5209 break 2 5210 fi 5211 done 5212 done 5213 IFS=$as_save_IFS 5214 5215 ;; 5216 esac 5217 fi 5218 BASH=$ac_cv_path_BASH 5219 if test -n "$BASH"; then 5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5221 $as_echo "$BASH" >&6; } 5222 else 5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5224 $as_echo "no" >&6; } 5225 fi 5226 5227 5228 test -n "$BASH" && break 5229 done 5230 5231 else 5232 # If it succeeded, then it was overridden by the user. We will use it 5233 # for the tool. 5234 5235 # First remove it from the list of overridden variables, so we can test 5236 # for unknown variables in the end. 5237 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5238 5239 # Check if we try to supply an empty value 5240 if test "x$BASH" = x; then 5241 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5 5242 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;} 5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5244 $as_echo_n "checking for BASH... " >&6; } 5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5246 $as_echo "disabled" >&6; } 5247 else 5248 # Check if the provided tool contains a complete path. 5249 tool_specified="$BASH" 5250 tool_basename="${tool_specified##*/}" 5251 if test "x$tool_basename" = "x$tool_specified"; then 5252 # A command without a complete path is provided, search $PATH. 5253 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 5254 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 5255 # Extract the first word of "$tool_basename", so it can be a program name with args. 5256 set dummy $tool_basename; ac_word=$2 5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5258 $as_echo_n "checking for $ac_word... " >&6; } 5259 if ${ac_cv_path_BASH+:} false; then : 5260 $as_echo_n "(cached) " >&6 5261 else 5262 case $BASH in 5263 [\\/]* | ?:[\\/]*) 5264 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5265 ;; 5266 *) 5267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5268 for as_dir in $PATH 5269 do 5270 IFS=$as_save_IFS 5271 test -z "$as_dir" && as_dir=. 5272 for ac_exec_ext in '' $ac_executable_extensions; do 5273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5274 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5276 break 2 5277 fi 5278 done 5279 done 5280 IFS=$as_save_IFS 5281 5282 ;; 5283 esac 5284 fi 5285 BASH=$ac_cv_path_BASH 5286 if test -n "$BASH"; then 5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5288 $as_echo "$BASH" >&6; } 5289 else 5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5291 $as_echo "no" >&6; } 5292 fi 5293 5294 5295 if test "x$BASH" = x; then 5296 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5297 fi 5298 else 5299 # Otherwise we believe it is a complete path. Use it as it is. 5300 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 5301 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5303 $as_echo_n "checking for BASH... " >&6; } 5304 if test ! -x "$tool_specified"; then 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5306 $as_echo "not found" >&6; } 5307 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 5308 fi 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5310 $as_echo "$tool_specified" >&6; } 5311 fi 5312 fi 5313 fi 5314 5315 fi 5316 5317 5318 5319 if test "x$BASH" = x; then 5320 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 5321 fi 5322 5323 5324 5325 5326 5327 # Publish this variable in the help. 5328 5329 5330 if [ -z "${CAT+x}" ]; then 5331 # The variable is not set by user, try to locate tool using the code snippet 5332 for ac_prog in cat 5333 do 5334 # Extract the first word of "$ac_prog", so it can be a program name with args. 5335 set dummy $ac_prog; ac_word=$2 5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5337 $as_echo_n "checking for $ac_word... " >&6; } 5338 if ${ac_cv_path_CAT+:} false; then : 5339 $as_echo_n "(cached) " >&6 5340 else 5341 case $CAT in 5342 [\\/]* | ?:[\\/]*) 5343 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5344 ;; 5345 *) 5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5347 for as_dir in $PATH 5348 do 5349 IFS=$as_save_IFS 5350 test -z "$as_dir" && as_dir=. 5351 for ac_exec_ext in '' $ac_executable_extensions; do 5352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5353 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5355 break 2 5356 fi 5357 done 5358 done 5359 IFS=$as_save_IFS 5360 5361 ;; 5362 esac 5363 fi 5364 CAT=$ac_cv_path_CAT 5365 if test -n "$CAT"; then 5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5367 $as_echo "$CAT" >&6; } 5368 else 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5370 $as_echo "no" >&6; } 5371 fi 5372 5373 5374 test -n "$CAT" && break 5375 done 5376 5377 else 5378 # The variable is set, but is it from the command line or the environment? 5379 5380 # Try to remove the string !CAT! from our list. 5381 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 5382 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5383 # If it failed, the variable was not from the command line. Ignore it, 5384 # but warn the user (except for BASH, which is always set by the calling BASH). 5385 if test "xCAT" != xBASH; then 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 5387 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 5388 fi 5389 # Try to locate tool using the code snippet 5390 for ac_prog in cat 5391 do 5392 # Extract the first word of "$ac_prog", so it can be a program name with args. 5393 set dummy $ac_prog; ac_word=$2 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5395 $as_echo_n "checking for $ac_word... " >&6; } 5396 if ${ac_cv_path_CAT+:} false; then : 5397 $as_echo_n "(cached) " >&6 5398 else 5399 case $CAT in 5400 [\\/]* | ?:[\\/]*) 5401 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5402 ;; 5403 *) 5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5405 for as_dir in $PATH 5406 do 5407 IFS=$as_save_IFS 5408 test -z "$as_dir" && as_dir=. 5409 for ac_exec_ext in '' $ac_executable_extensions; do 5410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5411 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5413 break 2 5414 fi 5415 done 5416 done 5417 IFS=$as_save_IFS 5418 5419 ;; 5420 esac 5421 fi 5422 CAT=$ac_cv_path_CAT 5423 if test -n "$CAT"; then 5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5425 $as_echo "$CAT" >&6; } 5426 else 5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5428 $as_echo "no" >&6; } 5429 fi 5430 5431 5432 test -n "$CAT" && break 5433 done 5434 5435 else 5436 # If it succeeded, then it was overridden by the user. We will use it 5437 # for the tool. 5438 5439 # First remove it from the list of overridden variables, so we can test 5440 # for unknown variables in the end. 5441 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5442 5443 # Check if we try to supply an empty value 5444 if test "x$CAT" = x; then 5445 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5 5446 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;} 5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5448 $as_echo_n "checking for CAT... " >&6; } 5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5450 $as_echo "disabled" >&6; } 5451 else 5452 # Check if the provided tool contains a complete path. 5453 tool_specified="$CAT" 5454 tool_basename="${tool_specified##*/}" 5455 if test "x$tool_basename" = "x$tool_specified"; then 5456 # A command without a complete path is provided, search $PATH. 5457 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 5458 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 5459 # Extract the first word of "$tool_basename", so it can be a program name with args. 5460 set dummy $tool_basename; ac_word=$2 5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5462 $as_echo_n "checking for $ac_word... " >&6; } 5463 if ${ac_cv_path_CAT+:} false; then : 5464 $as_echo_n "(cached) " >&6 5465 else 5466 case $CAT in 5467 [\\/]* | ?:[\\/]*) 5468 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5469 ;; 5470 *) 5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5472 for as_dir in $PATH 5473 do 5474 IFS=$as_save_IFS 5475 test -z "$as_dir" && as_dir=. 5476 for ac_exec_ext in '' $ac_executable_extensions; do 5477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5478 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5480 break 2 5481 fi 5482 done 5483 done 5484 IFS=$as_save_IFS 5485 5486 ;; 5487 esac 5488 fi 5489 CAT=$ac_cv_path_CAT 5490 if test -n "$CAT"; then 5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5492 $as_echo "$CAT" >&6; } 5493 else 5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5495 $as_echo "no" >&6; } 5496 fi 5497 5498 5499 if test "x$CAT" = x; then 5500 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5501 fi 5502 else 5503 # Otherwise we believe it is a complete path. Use it as it is. 5504 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 5505 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5507 $as_echo_n "checking for CAT... " >&6; } 5508 if test ! -x "$tool_specified"; then 5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5510 $as_echo "not found" >&6; } 5511 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 5512 fi 5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5514 $as_echo "$tool_specified" >&6; } 5515 fi 5516 fi 5517 fi 5518 5519 fi 5520 5521 5522 5523 if test "x$CAT" = x; then 5524 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 5525 fi 5526 5527 5528 5529 5530 5531 # Publish this variable in the help. 5532 5533 5534 if [ -z "${CHMOD+x}" ]; then 5535 # The variable is not set by user, try to locate tool using the code snippet 5536 for ac_prog in chmod 5537 do 5538 # Extract the first word of "$ac_prog", so it can be a program name with args. 5539 set dummy $ac_prog; ac_word=$2 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5541 $as_echo_n "checking for $ac_word... " >&6; } 5542 if ${ac_cv_path_CHMOD+:} false; then : 5543 $as_echo_n "(cached) " >&6 5544 else 5545 case $CHMOD in 5546 [\\/]* | ?:[\\/]*) 5547 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5548 ;; 5549 *) 5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5551 for as_dir in $PATH 5552 do 5553 IFS=$as_save_IFS 5554 test -z "$as_dir" && as_dir=. 5555 for ac_exec_ext in '' $ac_executable_extensions; do 5556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5557 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5559 break 2 5560 fi 5561 done 5562 done 5563 IFS=$as_save_IFS 5564 5565 ;; 5566 esac 5567 fi 5568 CHMOD=$ac_cv_path_CHMOD 5569 if test -n "$CHMOD"; then 5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5571 $as_echo "$CHMOD" >&6; } 5572 else 5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5574 $as_echo "no" >&6; } 5575 fi 5576 5577 5578 test -n "$CHMOD" && break 5579 done 5580 5581 else 5582 # The variable is set, but is it from the command line or the environment? 5583 5584 # Try to remove the string !CHMOD! from our list. 5585 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5586 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5587 # If it failed, the variable was not from the command line. Ignore it, 5588 # but warn the user (except for BASH, which is always set by the calling BASH). 5589 if test "xCHMOD" != xBASH; then 5590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5591 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5592 fi 5593 # Try to locate tool using the code snippet 5594 for ac_prog in chmod 5595 do 5596 # Extract the first word of "$ac_prog", so it can be a program name with args. 5597 set dummy $ac_prog; ac_word=$2 5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5599 $as_echo_n "checking for $ac_word... " >&6; } 5600 if ${ac_cv_path_CHMOD+:} false; then : 5601 $as_echo_n "(cached) " >&6 5602 else 5603 case $CHMOD in 5604 [\\/]* | ?:[\\/]*) 5605 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5606 ;; 5607 *) 5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5609 for as_dir in $PATH 5610 do 5611 IFS=$as_save_IFS 5612 test -z "$as_dir" && as_dir=. 5613 for ac_exec_ext in '' $ac_executable_extensions; do 5614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5615 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5617 break 2 5618 fi 5619 done 5620 done 5621 IFS=$as_save_IFS 5622 5623 ;; 5624 esac 5625 fi 5626 CHMOD=$ac_cv_path_CHMOD 5627 if test -n "$CHMOD"; then 5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5629 $as_echo "$CHMOD" >&6; } 5630 else 5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5632 $as_echo "no" >&6; } 5633 fi 5634 5635 5636 test -n "$CHMOD" && break 5637 done 5638 5639 else 5640 # If it succeeded, then it was overridden by the user. We will use it 5641 # for the tool. 5642 5643 # First remove it from the list of overridden variables, so we can test 5644 # for unknown variables in the end. 5645 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5646 5647 # Check if we try to supply an empty value 5648 if test "x$CHMOD" = x; then 5649 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5 5650 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;} 5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5652 $as_echo_n "checking for CHMOD... " >&6; } 5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5654 $as_echo "disabled" >&6; } 5655 else 5656 # Check if the provided tool contains a complete path. 5657 tool_specified="$CHMOD" 5658 tool_basename="${tool_specified##*/}" 5659 if test "x$tool_basename" = "x$tool_specified"; then 5660 # A command without a complete path is provided, search $PATH. 5661 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5662 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5663 # Extract the first word of "$tool_basename", so it can be a program name with args. 5664 set dummy $tool_basename; ac_word=$2 5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5666 $as_echo_n "checking for $ac_word... " >&6; } 5667 if ${ac_cv_path_CHMOD+:} false; then : 5668 $as_echo_n "(cached) " >&6 5669 else 5670 case $CHMOD in 5671 [\\/]* | ?:[\\/]*) 5672 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5673 ;; 5674 *) 5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5676 for as_dir in $PATH 5677 do 5678 IFS=$as_save_IFS 5679 test -z "$as_dir" && as_dir=. 5680 for ac_exec_ext in '' $ac_executable_extensions; do 5681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5682 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5684 break 2 5685 fi 5686 done 5687 done 5688 IFS=$as_save_IFS 5689 5690 ;; 5691 esac 5692 fi 5693 CHMOD=$ac_cv_path_CHMOD 5694 if test -n "$CHMOD"; then 5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5696 $as_echo "$CHMOD" >&6; } 5697 else 5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5699 $as_echo "no" >&6; } 5700 fi 5701 5702 5703 if test "x$CHMOD" = x; then 5704 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5705 fi 5706 else 5707 # Otherwise we believe it is a complete path. Use it as it is. 5708 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5709 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5711 $as_echo_n "checking for CHMOD... " >&6; } 5712 if test ! -x "$tool_specified"; then 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5714 $as_echo "not found" >&6; } 5715 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5716 fi 5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5718 $as_echo "$tool_specified" >&6; } 5719 fi 5720 fi 5721 fi 5722 5723 fi 5724 5725 5726 5727 if test "x$CHMOD" = x; then 5728 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5729 fi 5730 5731 5732 5733 5734 5735 # Publish this variable in the help. 5736 5737 5738 if [ -z "${CMP+x}" ]; then 5739 # The variable is not set by user, try to locate tool using the code snippet 5740 for ac_prog in cmp 5741 do 5742 # Extract the first word of "$ac_prog", so it can be a program name with args. 5743 set dummy $ac_prog; ac_word=$2 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5745 $as_echo_n "checking for $ac_word... " >&6; } 5746 if ${ac_cv_path_CMP+:} false; then : 5747 $as_echo_n "(cached) " >&6 5748 else 5749 case $CMP in 5750 [\\/]* | ?:[\\/]*) 5751 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5752 ;; 5753 *) 5754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5755 for as_dir in $PATH 5756 do 5757 IFS=$as_save_IFS 5758 test -z "$as_dir" && as_dir=. 5759 for ac_exec_ext in '' $ac_executable_extensions; do 5760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5761 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5763 break 2 5764 fi 5765 done 5766 done 5767 IFS=$as_save_IFS 5768 5769 ;; 5770 esac 5771 fi 5772 CMP=$ac_cv_path_CMP 5773 if test -n "$CMP"; then 5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5775 $as_echo "$CMP" >&6; } 5776 else 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5778 $as_echo "no" >&6; } 5779 fi 5780 5781 5782 test -n "$CMP" && break 5783 done 5784 5785 else 5786 # The variable is set, but is it from the command line or the environment? 5787 5788 # Try to remove the string !CMP! from our list. 5789 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 5790 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5791 # If it failed, the variable was not from the command line. Ignore it, 5792 # but warn the user (except for BASH, which is always set by the calling BASH). 5793 if test "xCMP" != xBASH; then 5794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 5795 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 5796 fi 5797 # Try to locate tool using the code snippet 5798 for ac_prog in cmp 5799 do 5800 # Extract the first word of "$ac_prog", so it can be a program name with args. 5801 set dummy $ac_prog; ac_word=$2 5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5803 $as_echo_n "checking for $ac_word... " >&6; } 5804 if ${ac_cv_path_CMP+:} false; then : 5805 $as_echo_n "(cached) " >&6 5806 else 5807 case $CMP in 5808 [\\/]* | ?:[\\/]*) 5809 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5810 ;; 5811 *) 5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5813 for as_dir in $PATH 5814 do 5815 IFS=$as_save_IFS 5816 test -z "$as_dir" && as_dir=. 5817 for ac_exec_ext in '' $ac_executable_extensions; do 5818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5819 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5821 break 2 5822 fi 5823 done 5824 done 5825 IFS=$as_save_IFS 5826 5827 ;; 5828 esac 5829 fi 5830 CMP=$ac_cv_path_CMP 5831 if test -n "$CMP"; then 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5833 $as_echo "$CMP" >&6; } 5834 else 5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5836 $as_echo "no" >&6; } 5837 fi 5838 5839 5840 test -n "$CMP" && break 5841 done 5842 5843 else 5844 # If it succeeded, then it was overridden by the user. We will use it 5845 # for the tool. 5846 5847 # First remove it from the list of overridden variables, so we can test 5848 # for unknown variables in the end. 5849 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5850 5851 # Check if we try to supply an empty value 5852 if test "x$CMP" = x; then 5853 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5 5854 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;} 5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 5856 $as_echo_n "checking for CMP... " >&6; } 5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5858 $as_echo "disabled" >&6; } 5859 else 5860 # Check if the provided tool contains a complete path. 5861 tool_specified="$CMP" 5862 tool_basename="${tool_specified##*/}" 5863 if test "x$tool_basename" = "x$tool_specified"; then 5864 # A command without a complete path is provided, search $PATH. 5865 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 5866 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 5867 # Extract the first word of "$tool_basename", so it can be a program name with args. 5868 set dummy $tool_basename; ac_word=$2 5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5870 $as_echo_n "checking for $ac_word... " >&6; } 5871 if ${ac_cv_path_CMP+:} false; then : 5872 $as_echo_n "(cached) " >&6 5873 else 5874 case $CMP in 5875 [\\/]* | ?:[\\/]*) 5876 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5877 ;; 5878 *) 5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5880 for as_dir in $PATH 5881 do 5882 IFS=$as_save_IFS 5883 test -z "$as_dir" && as_dir=. 5884 for ac_exec_ext in '' $ac_executable_extensions; do 5885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5886 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5888 break 2 5889 fi 5890 done 5891 done 5892 IFS=$as_save_IFS 5893 5894 ;; 5895 esac 5896 fi 5897 CMP=$ac_cv_path_CMP 5898 if test -n "$CMP"; then 5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5900 $as_echo "$CMP" >&6; } 5901 else 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5903 $as_echo "no" >&6; } 5904 fi 5905 5906 5907 if test "x$CMP" = x; then 5908 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5909 fi 5910 else 5911 # Otherwise we believe it is a complete path. Use it as it is. 5912 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 5913 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 5915 $as_echo_n "checking for CMP... " >&6; } 5916 if test ! -x "$tool_specified"; then 5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5918 $as_echo "not found" >&6; } 5919 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 5920 fi 5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5922 $as_echo "$tool_specified" >&6; } 5923 fi 5924 fi 5925 fi 5926 5927 fi 5928 5929 5930 5931 if test "x$CMP" = x; then 5932 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 5933 fi 5934 5935 5936 5937 5938 5939 # Publish this variable in the help. 5940 5941 5942 if [ -z "${COMM+x}" ]; then 5943 # The variable is not set by user, try to locate tool using the code snippet 5944 for ac_prog in comm 5945 do 5946 # Extract the first word of "$ac_prog", so it can be a program name with args. 5947 set dummy $ac_prog; ac_word=$2 5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5949 $as_echo_n "checking for $ac_word... " >&6; } 5950 if ${ac_cv_path_COMM+:} false; then : 5951 $as_echo_n "(cached) " >&6 5952 else 5953 case $COMM in 5954 [\\/]* | ?:[\\/]*) 5955 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5956 ;; 5957 *) 5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5959 for as_dir in $PATH 5960 do 5961 IFS=$as_save_IFS 5962 test -z "$as_dir" && as_dir=. 5963 for ac_exec_ext in '' $ac_executable_extensions; do 5964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5965 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5967 break 2 5968 fi 5969 done 5970 done 5971 IFS=$as_save_IFS 5972 5973 ;; 5974 esac 5975 fi 5976 COMM=$ac_cv_path_COMM 5977 if test -n "$COMM"; then 5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5979 $as_echo "$COMM" >&6; } 5980 else 5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5982 $as_echo "no" >&6; } 5983 fi 5984 5985 5986 test -n "$COMM" && break 5987 done 5988 5989 else 5990 # The variable is set, but is it from the command line or the environment? 5991 5992 # Try to remove the string !COMM! from our list. 5993 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 5994 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5995 # If it failed, the variable was not from the command line. Ignore it, 5996 # but warn the user (except for BASH, which is always set by the calling BASH). 5997 if test "xCOMM" != xBASH; then 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 5999 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 6000 fi 6001 # Try to locate tool using the code snippet 6002 for ac_prog in comm 6003 do 6004 # Extract the first word of "$ac_prog", so it can be a program name with args. 6005 set dummy $ac_prog; ac_word=$2 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6007 $as_echo_n "checking for $ac_word... " >&6; } 6008 if ${ac_cv_path_COMM+:} false; then : 6009 $as_echo_n "(cached) " >&6 6010 else 6011 case $COMM in 6012 [\\/]* | ?:[\\/]*) 6013 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6014 ;; 6015 *) 6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6017 for as_dir in $PATH 6018 do 6019 IFS=$as_save_IFS 6020 test -z "$as_dir" && as_dir=. 6021 for ac_exec_ext in '' $ac_executable_extensions; do 6022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6023 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6025 break 2 6026 fi 6027 done 6028 done 6029 IFS=$as_save_IFS 6030 6031 ;; 6032 esac 6033 fi 6034 COMM=$ac_cv_path_COMM 6035 if test -n "$COMM"; then 6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6037 $as_echo "$COMM" >&6; } 6038 else 6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6040 $as_echo "no" >&6; } 6041 fi 6042 6043 6044 test -n "$COMM" && break 6045 done 6046 6047 else 6048 # If it succeeded, then it was overridden by the user. We will use it 6049 # for the tool. 6050 6051 # First remove it from the list of overridden variables, so we can test 6052 # for unknown variables in the end. 6053 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6054 6055 # Check if we try to supply an empty value 6056 if test "x$COMM" = x; then 6057 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5 6058 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;} 6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6060 $as_echo_n "checking for COMM... " >&6; } 6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6062 $as_echo "disabled" >&6; } 6063 else 6064 # Check if the provided tool contains a complete path. 6065 tool_specified="$COMM" 6066 tool_basename="${tool_specified##*/}" 6067 if test "x$tool_basename" = "x$tool_specified"; then 6068 # A command without a complete path is provided, search $PATH. 6069 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 6070 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 6071 # Extract the first word of "$tool_basename", so it can be a program name with args. 6072 set dummy $tool_basename; ac_word=$2 6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6074 $as_echo_n "checking for $ac_word... " >&6; } 6075 if ${ac_cv_path_COMM+:} false; then : 6076 $as_echo_n "(cached) " >&6 6077 else 6078 case $COMM in 6079 [\\/]* | ?:[\\/]*) 6080 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6081 ;; 6082 *) 6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6084 for as_dir in $PATH 6085 do 6086 IFS=$as_save_IFS 6087 test -z "$as_dir" && as_dir=. 6088 for ac_exec_ext in '' $ac_executable_extensions; do 6089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6090 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6092 break 2 6093 fi 6094 done 6095 done 6096 IFS=$as_save_IFS 6097 6098 ;; 6099 esac 6100 fi 6101 COMM=$ac_cv_path_COMM 6102 if test -n "$COMM"; then 6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6104 $as_echo "$COMM" >&6; } 6105 else 6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6107 $as_echo "no" >&6; } 6108 fi 6109 6110 6111 if test "x$COMM" = x; then 6112 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6113 fi 6114 else 6115 # Otherwise we believe it is a complete path. Use it as it is. 6116 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 6117 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6119 $as_echo_n "checking for COMM... " >&6; } 6120 if test ! -x "$tool_specified"; then 6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6122 $as_echo "not found" >&6; } 6123 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 6124 fi 6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6126 $as_echo "$tool_specified" >&6; } 6127 fi 6128 fi 6129 fi 6130 6131 fi 6132 6133 6134 6135 if test "x$COMM" = x; then 6136 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 6137 fi 6138 6139 6140 6141 6142 6143 # Publish this variable in the help. 6144 6145 6146 if [ -z "${CP+x}" ]; then 6147 # The variable is not set by user, try to locate tool using the code snippet 6148 for ac_prog in cp 6149 do 6150 # Extract the first word of "$ac_prog", so it can be a program name with args. 6151 set dummy $ac_prog; ac_word=$2 6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6153 $as_echo_n "checking for $ac_word... " >&6; } 6154 if ${ac_cv_path_CP+:} false; then : 6155 $as_echo_n "(cached) " >&6 6156 else 6157 case $CP in 6158 [\\/]* | ?:[\\/]*) 6159 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6160 ;; 6161 *) 6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6163 for as_dir in $PATH 6164 do 6165 IFS=$as_save_IFS 6166 test -z "$as_dir" && as_dir=. 6167 for ac_exec_ext in '' $ac_executable_extensions; do 6168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6169 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6171 break 2 6172 fi 6173 done 6174 done 6175 IFS=$as_save_IFS 6176 6177 ;; 6178 esac 6179 fi 6180 CP=$ac_cv_path_CP 6181 if test -n "$CP"; then 6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6183 $as_echo "$CP" >&6; } 6184 else 6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6186 $as_echo "no" >&6; } 6187 fi 6188 6189 6190 test -n "$CP" && break 6191 done 6192 6193 else 6194 # The variable is set, but is it from the command line or the environment? 6195 6196 # Try to remove the string !CP! from our list. 6197 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 6198 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6199 # If it failed, the variable was not from the command line. Ignore it, 6200 # but warn the user (except for BASH, which is always set by the calling BASH). 6201 if test "xCP" != xBASH; then 6202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 6203 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 6204 fi 6205 # Try to locate tool using the code snippet 6206 for ac_prog in cp 6207 do 6208 # Extract the first word of "$ac_prog", so it can be a program name with args. 6209 set dummy $ac_prog; ac_word=$2 6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6211 $as_echo_n "checking for $ac_word... " >&6; } 6212 if ${ac_cv_path_CP+:} false; then : 6213 $as_echo_n "(cached) " >&6 6214 else 6215 case $CP in 6216 [\\/]* | ?:[\\/]*) 6217 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6218 ;; 6219 *) 6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6221 for as_dir in $PATH 6222 do 6223 IFS=$as_save_IFS 6224 test -z "$as_dir" && as_dir=. 6225 for ac_exec_ext in '' $ac_executable_extensions; do 6226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6227 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6229 break 2 6230 fi 6231 done 6232 done 6233 IFS=$as_save_IFS 6234 6235 ;; 6236 esac 6237 fi 6238 CP=$ac_cv_path_CP 6239 if test -n "$CP"; then 6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6241 $as_echo "$CP" >&6; } 6242 else 6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6244 $as_echo "no" >&6; } 6245 fi 6246 6247 6248 test -n "$CP" && break 6249 done 6250 6251 else 6252 # If it succeeded, then it was overridden by the user. We will use it 6253 # for the tool. 6254 6255 # First remove it from the list of overridden variables, so we can test 6256 # for unknown variables in the end. 6257 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6258 6259 # Check if we try to supply an empty value 6260 if test "x$CP" = x; then 6261 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5 6262 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;} 6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6264 $as_echo_n "checking for CP... " >&6; } 6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6266 $as_echo "disabled" >&6; } 6267 else 6268 # Check if the provided tool contains a complete path. 6269 tool_specified="$CP" 6270 tool_basename="${tool_specified##*/}" 6271 if test "x$tool_basename" = "x$tool_specified"; then 6272 # A command without a complete path is provided, search $PATH. 6273 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 6274 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 6275 # Extract the first word of "$tool_basename", so it can be a program name with args. 6276 set dummy $tool_basename; ac_word=$2 6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6278 $as_echo_n "checking for $ac_word... " >&6; } 6279 if ${ac_cv_path_CP+:} false; then : 6280 $as_echo_n "(cached) " >&6 6281 else 6282 case $CP in 6283 [\\/]* | ?:[\\/]*) 6284 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6285 ;; 6286 *) 6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6288 for as_dir in $PATH 6289 do 6290 IFS=$as_save_IFS 6291 test -z "$as_dir" && as_dir=. 6292 for ac_exec_ext in '' $ac_executable_extensions; do 6293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6294 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6296 break 2 6297 fi 6298 done 6299 done 6300 IFS=$as_save_IFS 6301 6302 ;; 6303 esac 6304 fi 6305 CP=$ac_cv_path_CP 6306 if test -n "$CP"; then 6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6308 $as_echo "$CP" >&6; } 6309 else 6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6311 $as_echo "no" >&6; } 6312 fi 6313 6314 6315 if test "x$CP" = x; then 6316 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6317 fi 6318 else 6319 # Otherwise we believe it is a complete path. Use it as it is. 6320 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 6321 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6323 $as_echo_n "checking for CP... " >&6; } 6324 if test ! -x "$tool_specified"; then 6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6326 $as_echo "not found" >&6; } 6327 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 6328 fi 6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6330 $as_echo "$tool_specified" >&6; } 6331 fi 6332 fi 6333 fi 6334 6335 fi 6336 6337 6338 6339 if test "x$CP" = x; then 6340 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 6341 fi 6342 6343 6344 6345 6346 6347 # Publish this variable in the help. 6348 6349 6350 if [ -z "${CUT+x}" ]; then 6351 # The variable is not set by user, try to locate tool using the code snippet 6352 for ac_prog in cut 6353 do 6354 # Extract the first word of "$ac_prog", so it can be a program name with args. 6355 set dummy $ac_prog; ac_word=$2 6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6357 $as_echo_n "checking for $ac_word... " >&6; } 6358 if ${ac_cv_path_CUT+:} false; then : 6359 $as_echo_n "(cached) " >&6 6360 else 6361 case $CUT in 6362 [\\/]* | ?:[\\/]*) 6363 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6364 ;; 6365 *) 6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6367 for as_dir in $PATH 6368 do 6369 IFS=$as_save_IFS 6370 test -z "$as_dir" && as_dir=. 6371 for ac_exec_ext in '' $ac_executable_extensions; do 6372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6373 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6375 break 2 6376 fi 6377 done 6378 done 6379 IFS=$as_save_IFS 6380 6381 ;; 6382 esac 6383 fi 6384 CUT=$ac_cv_path_CUT 6385 if test -n "$CUT"; then 6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6387 $as_echo "$CUT" >&6; } 6388 else 6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6390 $as_echo "no" >&6; } 6391 fi 6392 6393 6394 test -n "$CUT" && break 6395 done 6396 6397 else 6398 # The variable is set, but is it from the command line or the environment? 6399 6400 # Try to remove the string !CUT! from our list. 6401 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 6402 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6403 # If it failed, the variable was not from the command line. Ignore it, 6404 # but warn the user (except for BASH, which is always set by the calling BASH). 6405 if test "xCUT" != xBASH; then 6406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 6407 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 6408 fi 6409 # Try to locate tool using the code snippet 6410 for ac_prog in cut 6411 do 6412 # Extract the first word of "$ac_prog", so it can be a program name with args. 6413 set dummy $ac_prog; ac_word=$2 6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6415 $as_echo_n "checking for $ac_word... " >&6; } 6416 if ${ac_cv_path_CUT+:} false; then : 6417 $as_echo_n "(cached) " >&6 6418 else 6419 case $CUT in 6420 [\\/]* | ?:[\\/]*) 6421 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6422 ;; 6423 *) 6424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6425 for as_dir in $PATH 6426 do 6427 IFS=$as_save_IFS 6428 test -z "$as_dir" && as_dir=. 6429 for ac_exec_ext in '' $ac_executable_extensions; do 6430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6431 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6433 break 2 6434 fi 6435 done 6436 done 6437 IFS=$as_save_IFS 6438 6439 ;; 6440 esac 6441 fi 6442 CUT=$ac_cv_path_CUT 6443 if test -n "$CUT"; then 6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6445 $as_echo "$CUT" >&6; } 6446 else 6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6448 $as_echo "no" >&6; } 6449 fi 6450 6451 6452 test -n "$CUT" && break 6453 done 6454 6455 else 6456 # If it succeeded, then it was overridden by the user. We will use it 6457 # for the tool. 6458 6459 # First remove it from the list of overridden variables, so we can test 6460 # for unknown variables in the end. 6461 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6462 6463 # Check if we try to supply an empty value 6464 if test "x$CUT" = x; then 6465 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5 6466 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;} 6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6468 $as_echo_n "checking for CUT... " >&6; } 6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6470 $as_echo "disabled" >&6; } 6471 else 6472 # Check if the provided tool contains a complete path. 6473 tool_specified="$CUT" 6474 tool_basename="${tool_specified##*/}" 6475 if test "x$tool_basename" = "x$tool_specified"; then 6476 # A command without a complete path is provided, search $PATH. 6477 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 6478 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 6479 # Extract the first word of "$tool_basename", so it can be a program name with args. 6480 set dummy $tool_basename; ac_word=$2 6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6482 $as_echo_n "checking for $ac_word... " >&6; } 6483 if ${ac_cv_path_CUT+:} false; then : 6484 $as_echo_n "(cached) " >&6 6485 else 6486 case $CUT in 6487 [\\/]* | ?:[\\/]*) 6488 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6489 ;; 6490 *) 6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6492 for as_dir in $PATH 6493 do 6494 IFS=$as_save_IFS 6495 test -z "$as_dir" && as_dir=. 6496 for ac_exec_ext in '' $ac_executable_extensions; do 6497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6498 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6500 break 2 6501 fi 6502 done 6503 done 6504 IFS=$as_save_IFS 6505 6506 ;; 6507 esac 6508 fi 6509 CUT=$ac_cv_path_CUT 6510 if test -n "$CUT"; then 6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6512 $as_echo "$CUT" >&6; } 6513 else 6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6515 $as_echo "no" >&6; } 6516 fi 6517 6518 6519 if test "x$CUT" = x; then 6520 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6521 fi 6522 else 6523 # Otherwise we believe it is a complete path. Use it as it is. 6524 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 6525 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6527 $as_echo_n "checking for CUT... " >&6; } 6528 if test ! -x "$tool_specified"; then 6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6530 $as_echo "not found" >&6; } 6531 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 6532 fi 6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6534 $as_echo "$tool_specified" >&6; } 6535 fi 6536 fi 6537 fi 6538 6539 fi 6540 6541 6542 6543 if test "x$CUT" = x; then 6544 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 6545 fi 6546 6547 6548 6549 6550 6551 # Publish this variable in the help. 6552 6553 6554 if [ -z "${DATE+x}" ]; then 6555 # The variable is not set by user, try to locate tool using the code snippet 6556 for ac_prog in date 6557 do 6558 # Extract the first word of "$ac_prog", so it can be a program name with args. 6559 set dummy $ac_prog; ac_word=$2 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6561 $as_echo_n "checking for $ac_word... " >&6; } 6562 if ${ac_cv_path_DATE+:} false; then : 6563 $as_echo_n "(cached) " >&6 6564 else 6565 case $DATE in 6566 [\\/]* | ?:[\\/]*) 6567 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6568 ;; 6569 *) 6570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6571 for as_dir in $PATH 6572 do 6573 IFS=$as_save_IFS 6574 test -z "$as_dir" && as_dir=. 6575 for ac_exec_ext in '' $ac_executable_extensions; do 6576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6577 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6579 break 2 6580 fi 6581 done 6582 done 6583 IFS=$as_save_IFS 6584 6585 ;; 6586 esac 6587 fi 6588 DATE=$ac_cv_path_DATE 6589 if test -n "$DATE"; then 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6591 $as_echo "$DATE" >&6; } 6592 else 6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6594 $as_echo "no" >&6; } 6595 fi 6596 6597 6598 test -n "$DATE" && break 6599 done 6600 6601 else 6602 # The variable is set, but is it from the command line or the environment? 6603 6604 # Try to remove the string !DATE! from our list. 6605 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6606 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6607 # If it failed, the variable was not from the command line. Ignore it, 6608 # but warn the user (except for BASH, which is always set by the calling BASH). 6609 if test "xDATE" != xBASH; then 6610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6611 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6612 fi 6613 # Try to locate tool using the code snippet 6614 for ac_prog in date 6615 do 6616 # Extract the first word of "$ac_prog", so it can be a program name with args. 6617 set dummy $ac_prog; ac_word=$2 6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6619 $as_echo_n "checking for $ac_word... " >&6; } 6620 if ${ac_cv_path_DATE+:} false; then : 6621 $as_echo_n "(cached) " >&6 6622 else 6623 case $DATE in 6624 [\\/]* | ?:[\\/]*) 6625 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6626 ;; 6627 *) 6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6629 for as_dir in $PATH 6630 do 6631 IFS=$as_save_IFS 6632 test -z "$as_dir" && as_dir=. 6633 for ac_exec_ext in '' $ac_executable_extensions; do 6634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6635 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6637 break 2 6638 fi 6639 done 6640 done 6641 IFS=$as_save_IFS 6642 6643 ;; 6644 esac 6645 fi 6646 DATE=$ac_cv_path_DATE 6647 if test -n "$DATE"; then 6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6649 $as_echo "$DATE" >&6; } 6650 else 6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6652 $as_echo "no" >&6; } 6653 fi 6654 6655 6656 test -n "$DATE" && break 6657 done 6658 6659 else 6660 # If it succeeded, then it was overridden by the user. We will use it 6661 # for the tool. 6662 6663 # First remove it from the list of overridden variables, so we can test 6664 # for unknown variables in the end. 6665 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6666 6667 # Check if we try to supply an empty value 6668 if test "x$DATE" = x; then 6669 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5 6670 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;} 6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6672 $as_echo_n "checking for DATE... " >&6; } 6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6674 $as_echo "disabled" >&6; } 6675 else 6676 # Check if the provided tool contains a complete path. 6677 tool_specified="$DATE" 6678 tool_basename="${tool_specified##*/}" 6679 if test "x$tool_basename" = "x$tool_specified"; then 6680 # A command without a complete path is provided, search $PATH. 6681 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6682 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6683 # Extract the first word of "$tool_basename", so it can be a program name with args. 6684 set dummy $tool_basename; ac_word=$2 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6686 $as_echo_n "checking for $ac_word... " >&6; } 6687 if ${ac_cv_path_DATE+:} false; then : 6688 $as_echo_n "(cached) " >&6 6689 else 6690 case $DATE in 6691 [\\/]* | ?:[\\/]*) 6692 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6693 ;; 6694 *) 6695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6696 for as_dir in $PATH 6697 do 6698 IFS=$as_save_IFS 6699 test -z "$as_dir" && as_dir=. 6700 for ac_exec_ext in '' $ac_executable_extensions; do 6701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6702 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6704 break 2 6705 fi 6706 done 6707 done 6708 IFS=$as_save_IFS 6709 6710 ;; 6711 esac 6712 fi 6713 DATE=$ac_cv_path_DATE 6714 if test -n "$DATE"; then 6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6716 $as_echo "$DATE" >&6; } 6717 else 6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6719 $as_echo "no" >&6; } 6720 fi 6721 6722 6723 if test "x$DATE" = x; then 6724 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6725 fi 6726 else 6727 # Otherwise we believe it is a complete path. Use it as it is. 6728 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6729 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6731 $as_echo_n "checking for DATE... " >&6; } 6732 if test ! -x "$tool_specified"; then 6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6734 $as_echo "not found" >&6; } 6735 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6736 fi 6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6738 $as_echo "$tool_specified" >&6; } 6739 fi 6740 fi 6741 fi 6742 6743 fi 6744 6745 6746 6747 if test "x$DATE" = x; then 6748 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6749 fi 6750 6751 6752 6753 6754 6755 # Publish this variable in the help. 6756 6757 6758 if [ -z "${DIFF+x}" ]; then 6759 # The variable is not set by user, try to locate tool using the code snippet 6760 for ac_prog in gdiff diff 6761 do 6762 # Extract the first word of "$ac_prog", so it can be a program name with args. 6763 set dummy $ac_prog; ac_word=$2 6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6765 $as_echo_n "checking for $ac_word... " >&6; } 6766 if ${ac_cv_path_DIFF+:} false; then : 6767 $as_echo_n "(cached) " >&6 6768 else 6769 case $DIFF in 6770 [\\/]* | ?:[\\/]*) 6771 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6772 ;; 6773 *) 6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6775 for as_dir in $PATH 6776 do 6777 IFS=$as_save_IFS 6778 test -z "$as_dir" && as_dir=. 6779 for ac_exec_ext in '' $ac_executable_extensions; do 6780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6781 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6783 break 2 6784 fi 6785 done 6786 done 6787 IFS=$as_save_IFS 6788 6789 ;; 6790 esac 6791 fi 6792 DIFF=$ac_cv_path_DIFF 6793 if test -n "$DIFF"; then 6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6795 $as_echo "$DIFF" >&6; } 6796 else 6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6798 $as_echo "no" >&6; } 6799 fi 6800 6801 6802 test -n "$DIFF" && break 6803 done 6804 6805 else 6806 # The variable is set, but is it from the command line or the environment? 6807 6808 # Try to remove the string !DIFF! from our list. 6809 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 6810 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6811 # If it failed, the variable was not from the command line. Ignore it, 6812 # but warn the user (except for BASH, which is always set by the calling BASH). 6813 if test "xDIFF" != xBASH; then 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 6815 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 6816 fi 6817 # Try to locate tool using the code snippet 6818 for ac_prog in gdiff diff 6819 do 6820 # Extract the first word of "$ac_prog", so it can be a program name with args. 6821 set dummy $ac_prog; ac_word=$2 6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6823 $as_echo_n "checking for $ac_word... " >&6; } 6824 if ${ac_cv_path_DIFF+:} false; then : 6825 $as_echo_n "(cached) " >&6 6826 else 6827 case $DIFF in 6828 [\\/]* | ?:[\\/]*) 6829 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6830 ;; 6831 *) 6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6833 for as_dir in $PATH 6834 do 6835 IFS=$as_save_IFS 6836 test -z "$as_dir" && as_dir=. 6837 for ac_exec_ext in '' $ac_executable_extensions; do 6838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6839 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6841 break 2 6842 fi 6843 done 6844 done 6845 IFS=$as_save_IFS 6846 6847 ;; 6848 esac 6849 fi 6850 DIFF=$ac_cv_path_DIFF 6851 if test -n "$DIFF"; then 6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6853 $as_echo "$DIFF" >&6; } 6854 else 6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6856 $as_echo "no" >&6; } 6857 fi 6858 6859 6860 test -n "$DIFF" && break 6861 done 6862 6863 else 6864 # If it succeeded, then it was overridden by the user. We will use it 6865 # for the tool. 6866 6867 # First remove it from the list of overridden variables, so we can test 6868 # for unknown variables in the end. 6869 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6870 6871 # Check if we try to supply an empty value 6872 if test "x$DIFF" = x; then 6873 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5 6874 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;} 6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 6876 $as_echo_n "checking for DIFF... " >&6; } 6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6878 $as_echo "disabled" >&6; } 6879 else 6880 # Check if the provided tool contains a complete path. 6881 tool_specified="$DIFF" 6882 tool_basename="${tool_specified##*/}" 6883 if test "x$tool_basename" = "x$tool_specified"; then 6884 # A command without a complete path is provided, search $PATH. 6885 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 6886 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 6887 # Extract the first word of "$tool_basename", so it can be a program name with args. 6888 set dummy $tool_basename; ac_word=$2 6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6890 $as_echo_n "checking for $ac_word... " >&6; } 6891 if ${ac_cv_path_DIFF+:} false; then : 6892 $as_echo_n "(cached) " >&6 6893 else 6894 case $DIFF in 6895 [\\/]* | ?:[\\/]*) 6896 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6897 ;; 6898 *) 6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6900 for as_dir in $PATH 6901 do 6902 IFS=$as_save_IFS 6903 test -z "$as_dir" && as_dir=. 6904 for ac_exec_ext in '' $ac_executable_extensions; do 6905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6906 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6908 break 2 6909 fi 6910 done 6911 done 6912 IFS=$as_save_IFS 6913 6914 ;; 6915 esac 6916 fi 6917 DIFF=$ac_cv_path_DIFF 6918 if test -n "$DIFF"; then 6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6920 $as_echo "$DIFF" >&6; } 6921 else 6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6923 $as_echo "no" >&6; } 6924 fi 6925 6926 6927 if test "x$DIFF" = x; then 6928 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6929 fi 6930 else 6931 # Otherwise we believe it is a complete path. Use it as it is. 6932 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 6933 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 6935 $as_echo_n "checking for DIFF... " >&6; } 6936 if test ! -x "$tool_specified"; then 6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6938 $as_echo "not found" >&6; } 6939 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 6940 fi 6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6942 $as_echo "$tool_specified" >&6; } 6943 fi 6944 fi 6945 fi 6946 6947 fi 6948 6949 6950 6951 if test "x$DIFF" = x; then 6952 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 6953 fi 6954 6955 6956 6957 6958 6959 # Publish this variable in the help. 6960 6961 6962 if [ -z "${DIRNAME+x}" ]; then 6963 # The variable is not set by user, try to locate tool using the code snippet 6964 for ac_prog in dirname 6965 do 6966 # Extract the first word of "$ac_prog", so it can be a program name with args. 6967 set dummy $ac_prog; ac_word=$2 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6969 $as_echo_n "checking for $ac_word... " >&6; } 6970 if ${ac_cv_path_DIRNAME+:} false; then : 6971 $as_echo_n "(cached) " >&6 6972 else 6973 case $DIRNAME in 6974 [\\/]* | ?:[\\/]*) 6975 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6976 ;; 6977 *) 6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6979 for as_dir in $PATH 6980 do 6981 IFS=$as_save_IFS 6982 test -z "$as_dir" && as_dir=. 6983 for ac_exec_ext in '' $ac_executable_extensions; do 6984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6985 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6987 break 2 6988 fi 6989 done 6990 done 6991 IFS=$as_save_IFS 6992 6993 ;; 6994 esac 6995 fi 6996 DIRNAME=$ac_cv_path_DIRNAME 6997 if test -n "$DIRNAME"; then 6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6999 $as_echo "$DIRNAME" >&6; } 7000 else 7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7002 $as_echo "no" >&6; } 7003 fi 7004 7005 7006 test -n "$DIRNAME" && break 7007 done 7008 7009 else 7010 # The variable is set, but is it from the command line or the environment? 7011 7012 # Try to remove the string !DIRNAME! from our list. 7013 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 7014 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7015 # If it failed, the variable was not from the command line. Ignore it, 7016 # but warn the user (except for BASH, which is always set by the calling BASH). 7017 if test "xDIRNAME" != xBASH; then 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 7019 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 7020 fi 7021 # Try to locate tool using the code snippet 7022 for ac_prog in dirname 7023 do 7024 # Extract the first word of "$ac_prog", so it can be a program name with args. 7025 set dummy $ac_prog; ac_word=$2 7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7027 $as_echo_n "checking for $ac_word... " >&6; } 7028 if ${ac_cv_path_DIRNAME+:} false; then : 7029 $as_echo_n "(cached) " >&6 7030 else 7031 case $DIRNAME in 7032 [\\/]* | ?:[\\/]*) 7033 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7034 ;; 7035 *) 7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7037 for as_dir in $PATH 7038 do 7039 IFS=$as_save_IFS 7040 test -z "$as_dir" && as_dir=. 7041 for ac_exec_ext in '' $ac_executable_extensions; do 7042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7043 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7045 break 2 7046 fi 7047 done 7048 done 7049 IFS=$as_save_IFS 7050 7051 ;; 7052 esac 7053 fi 7054 DIRNAME=$ac_cv_path_DIRNAME 7055 if test -n "$DIRNAME"; then 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7057 $as_echo "$DIRNAME" >&6; } 7058 else 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7060 $as_echo "no" >&6; } 7061 fi 7062 7063 7064 test -n "$DIRNAME" && break 7065 done 7066 7067 else 7068 # If it succeeded, then it was overridden by the user. We will use it 7069 # for the tool. 7070 7071 # First remove it from the list of overridden variables, so we can test 7072 # for unknown variables in the end. 7073 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7074 7075 # Check if we try to supply an empty value 7076 if test "x$DIRNAME" = x; then 7077 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5 7078 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;} 7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7080 $as_echo_n "checking for DIRNAME... " >&6; } 7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7082 $as_echo "disabled" >&6; } 7083 else 7084 # Check if the provided tool contains a complete path. 7085 tool_specified="$DIRNAME" 7086 tool_basename="${tool_specified##*/}" 7087 if test "x$tool_basename" = "x$tool_specified"; then 7088 # A command without a complete path is provided, search $PATH. 7089 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 7090 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 7091 # Extract the first word of "$tool_basename", so it can be a program name with args. 7092 set dummy $tool_basename; ac_word=$2 7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7094 $as_echo_n "checking for $ac_word... " >&6; } 7095 if ${ac_cv_path_DIRNAME+:} false; then : 7096 $as_echo_n "(cached) " >&6 7097 else 7098 case $DIRNAME in 7099 [\\/]* | ?:[\\/]*) 7100 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7101 ;; 7102 *) 7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7104 for as_dir in $PATH 7105 do 7106 IFS=$as_save_IFS 7107 test -z "$as_dir" && as_dir=. 7108 for ac_exec_ext in '' $ac_executable_extensions; do 7109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7110 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7112 break 2 7113 fi 7114 done 7115 done 7116 IFS=$as_save_IFS 7117 7118 ;; 7119 esac 7120 fi 7121 DIRNAME=$ac_cv_path_DIRNAME 7122 if test -n "$DIRNAME"; then 7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7124 $as_echo "$DIRNAME" >&6; } 7125 else 7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7127 $as_echo "no" >&6; } 7128 fi 7129 7130 7131 if test "x$DIRNAME" = x; then 7132 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7133 fi 7134 else 7135 # Otherwise we believe it is a complete path. Use it as it is. 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 7137 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7139 $as_echo_n "checking for DIRNAME... " >&6; } 7140 if test ! -x "$tool_specified"; then 7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7142 $as_echo "not found" >&6; } 7143 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 7144 fi 7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7146 $as_echo "$tool_specified" >&6; } 7147 fi 7148 fi 7149 fi 7150 7151 fi 7152 7153 7154 7155 if test "x$DIRNAME" = x; then 7156 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 7157 fi 7158 7159 7160 7161 7162 7163 # Publish this variable in the help. 7164 7165 7166 if [ -z "${ECHO+x}" ]; then 7167 # The variable is not set by user, try to locate tool using the code snippet 7168 for ac_prog in echo 7169 do 7170 # Extract the first word of "$ac_prog", so it can be a program name with args. 7171 set dummy $ac_prog; ac_word=$2 7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7173 $as_echo_n "checking for $ac_word... " >&6; } 7174 if ${ac_cv_path_ECHO+:} false; then : 7175 $as_echo_n "(cached) " >&6 7176 else 7177 case $ECHO in 7178 [\\/]* | ?:[\\/]*) 7179 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7180 ;; 7181 *) 7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7183 for as_dir in $PATH 7184 do 7185 IFS=$as_save_IFS 7186 test -z "$as_dir" && as_dir=. 7187 for ac_exec_ext in '' $ac_executable_extensions; do 7188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7189 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7191 break 2 7192 fi 7193 done 7194 done 7195 IFS=$as_save_IFS 7196 7197 ;; 7198 esac 7199 fi 7200 ECHO=$ac_cv_path_ECHO 7201 if test -n "$ECHO"; then 7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7203 $as_echo "$ECHO" >&6; } 7204 else 7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7206 $as_echo "no" >&6; } 7207 fi 7208 7209 7210 test -n "$ECHO" && break 7211 done 7212 7213 else 7214 # The variable is set, but is it from the command line or the environment? 7215 7216 # Try to remove the string !ECHO! from our list. 7217 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 7218 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7219 # If it failed, the variable was not from the command line. Ignore it, 7220 # but warn the user (except for BASH, which is always set by the calling BASH). 7221 if test "xECHO" != xBASH; then 7222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 7223 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 7224 fi 7225 # Try to locate tool using the code snippet 7226 for ac_prog in echo 7227 do 7228 # Extract the first word of "$ac_prog", so it can be a program name with args. 7229 set dummy $ac_prog; ac_word=$2 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7231 $as_echo_n "checking for $ac_word... " >&6; } 7232 if ${ac_cv_path_ECHO+:} false; then : 7233 $as_echo_n "(cached) " >&6 7234 else 7235 case $ECHO in 7236 [\\/]* | ?:[\\/]*) 7237 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7238 ;; 7239 *) 7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7241 for as_dir in $PATH 7242 do 7243 IFS=$as_save_IFS 7244 test -z "$as_dir" && as_dir=. 7245 for ac_exec_ext in '' $ac_executable_extensions; do 7246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7247 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7249 break 2 7250 fi 7251 done 7252 done 7253 IFS=$as_save_IFS 7254 7255 ;; 7256 esac 7257 fi 7258 ECHO=$ac_cv_path_ECHO 7259 if test -n "$ECHO"; then 7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7261 $as_echo "$ECHO" >&6; } 7262 else 7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7264 $as_echo "no" >&6; } 7265 fi 7266 7267 7268 test -n "$ECHO" && break 7269 done 7270 7271 else 7272 # If it succeeded, then it was overridden by the user. We will use it 7273 # for the tool. 7274 7275 # First remove it from the list of overridden variables, so we can test 7276 # for unknown variables in the end. 7277 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7278 7279 # Check if we try to supply an empty value 7280 if test "x$ECHO" = x; then 7281 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5 7282 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;} 7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7284 $as_echo_n "checking for ECHO... " >&6; } 7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7286 $as_echo "disabled" >&6; } 7287 else 7288 # Check if the provided tool contains a complete path. 7289 tool_specified="$ECHO" 7290 tool_basename="${tool_specified##*/}" 7291 if test "x$tool_basename" = "x$tool_specified"; then 7292 # A command without a complete path is provided, search $PATH. 7293 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 7294 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 7295 # Extract the first word of "$tool_basename", so it can be a program name with args. 7296 set dummy $tool_basename; ac_word=$2 7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7298 $as_echo_n "checking for $ac_word... " >&6; } 7299 if ${ac_cv_path_ECHO+:} false; then : 7300 $as_echo_n "(cached) " >&6 7301 else 7302 case $ECHO in 7303 [\\/]* | ?:[\\/]*) 7304 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7305 ;; 7306 *) 7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7308 for as_dir in $PATH 7309 do 7310 IFS=$as_save_IFS 7311 test -z "$as_dir" && as_dir=. 7312 for ac_exec_ext in '' $ac_executable_extensions; do 7313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7314 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7316 break 2 7317 fi 7318 done 7319 done 7320 IFS=$as_save_IFS 7321 7322 ;; 7323 esac 7324 fi 7325 ECHO=$ac_cv_path_ECHO 7326 if test -n "$ECHO"; then 7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7328 $as_echo "$ECHO" >&6; } 7329 else 7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7331 $as_echo "no" >&6; } 7332 fi 7333 7334 7335 if test "x$ECHO" = x; then 7336 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7337 fi 7338 else 7339 # Otherwise we believe it is a complete path. Use it as it is. 7340 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 7341 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7343 $as_echo_n "checking for ECHO... " >&6; } 7344 if test ! -x "$tool_specified"; then 7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7346 $as_echo "not found" >&6; } 7347 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 7348 fi 7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7350 $as_echo "$tool_specified" >&6; } 7351 fi 7352 fi 7353 fi 7354 7355 fi 7356 7357 7358 7359 if test "x$ECHO" = x; then 7360 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 7361 fi 7362 7363 7364 7365 7366 7367 # Publish this variable in the help. 7368 7369 7370 if [ -z "${EXPR+x}" ]; then 7371 # The variable is not set by user, try to locate tool using the code snippet 7372 for ac_prog in expr 7373 do 7374 # Extract the first word of "$ac_prog", so it can be a program name with args. 7375 set dummy $ac_prog; ac_word=$2 7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7377 $as_echo_n "checking for $ac_word... " >&6; } 7378 if ${ac_cv_path_EXPR+:} false; then : 7379 $as_echo_n "(cached) " >&6 7380 else 7381 case $EXPR in 7382 [\\/]* | ?:[\\/]*) 7383 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7384 ;; 7385 *) 7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7387 for as_dir in $PATH 7388 do 7389 IFS=$as_save_IFS 7390 test -z "$as_dir" && as_dir=. 7391 for ac_exec_ext in '' $ac_executable_extensions; do 7392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7393 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7395 break 2 7396 fi 7397 done 7398 done 7399 IFS=$as_save_IFS 7400 7401 ;; 7402 esac 7403 fi 7404 EXPR=$ac_cv_path_EXPR 7405 if test -n "$EXPR"; then 7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7407 $as_echo "$EXPR" >&6; } 7408 else 7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7410 $as_echo "no" >&6; } 7411 fi 7412 7413 7414 test -n "$EXPR" && break 7415 done 7416 7417 else 7418 # The variable is set, but is it from the command line or the environment? 7419 7420 # Try to remove the string !EXPR! from our list. 7421 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 7422 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7423 # If it failed, the variable was not from the command line. Ignore it, 7424 # but warn the user (except for BASH, which is always set by the calling BASH). 7425 if test "xEXPR" != xBASH; then 7426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 7427 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 7428 fi 7429 # Try to locate tool using the code snippet 7430 for ac_prog in expr 7431 do 7432 # Extract the first word of "$ac_prog", so it can be a program name with args. 7433 set dummy $ac_prog; ac_word=$2 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7435 $as_echo_n "checking for $ac_word... " >&6; } 7436 if ${ac_cv_path_EXPR+:} false; then : 7437 $as_echo_n "(cached) " >&6 7438 else 7439 case $EXPR in 7440 [\\/]* | ?:[\\/]*) 7441 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7442 ;; 7443 *) 7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7445 for as_dir in $PATH 7446 do 7447 IFS=$as_save_IFS 7448 test -z "$as_dir" && as_dir=. 7449 for ac_exec_ext in '' $ac_executable_extensions; do 7450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7451 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7453 break 2 7454 fi 7455 done 7456 done 7457 IFS=$as_save_IFS 7458 7459 ;; 7460 esac 7461 fi 7462 EXPR=$ac_cv_path_EXPR 7463 if test -n "$EXPR"; then 7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7465 $as_echo "$EXPR" >&6; } 7466 else 7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7468 $as_echo "no" >&6; } 7469 fi 7470 7471 7472 test -n "$EXPR" && break 7473 done 7474 7475 else 7476 # If it succeeded, then it was overridden by the user. We will use it 7477 # for the tool. 7478 7479 # First remove it from the list of overridden variables, so we can test 7480 # for unknown variables in the end. 7481 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7482 7483 # Check if we try to supply an empty value 7484 if test "x$EXPR" = x; then 7485 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5 7486 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;} 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7488 $as_echo_n "checking for EXPR... " >&6; } 7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7490 $as_echo "disabled" >&6; } 7491 else 7492 # Check if the provided tool contains a complete path. 7493 tool_specified="$EXPR" 7494 tool_basename="${tool_specified##*/}" 7495 if test "x$tool_basename" = "x$tool_specified"; then 7496 # A command without a complete path is provided, search $PATH. 7497 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 7498 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 7499 # Extract the first word of "$tool_basename", so it can be a program name with args. 7500 set dummy $tool_basename; ac_word=$2 7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7502 $as_echo_n "checking for $ac_word... " >&6; } 7503 if ${ac_cv_path_EXPR+:} false; then : 7504 $as_echo_n "(cached) " >&6 7505 else 7506 case $EXPR in 7507 [\\/]* | ?:[\\/]*) 7508 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7509 ;; 7510 *) 7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7512 for as_dir in $PATH 7513 do 7514 IFS=$as_save_IFS 7515 test -z "$as_dir" && as_dir=. 7516 for ac_exec_ext in '' $ac_executable_extensions; do 7517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7518 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7520 break 2 7521 fi 7522 done 7523 done 7524 IFS=$as_save_IFS 7525 7526 ;; 7527 esac 7528 fi 7529 EXPR=$ac_cv_path_EXPR 7530 if test -n "$EXPR"; then 7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7532 $as_echo "$EXPR" >&6; } 7533 else 7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7535 $as_echo "no" >&6; } 7536 fi 7537 7538 7539 if test "x$EXPR" = x; then 7540 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7541 fi 7542 else 7543 # Otherwise we believe it is a complete path. Use it as it is. 7544 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 7545 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7547 $as_echo_n "checking for EXPR... " >&6; } 7548 if test ! -x "$tool_specified"; then 7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7550 $as_echo "not found" >&6; } 7551 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 7552 fi 7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7554 $as_echo "$tool_specified" >&6; } 7555 fi 7556 fi 7557 fi 7558 7559 fi 7560 7561 7562 7563 if test "x$EXPR" = x; then 7564 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 7565 fi 7566 7567 7568 7569 7570 7571 # Publish this variable in the help. 7572 7573 7574 if [ -z "${FILE+x}" ]; then 7575 # The variable is not set by user, try to locate tool using the code snippet 7576 for ac_prog in file 7577 do 7578 # Extract the first word of "$ac_prog", so it can be a program name with args. 7579 set dummy $ac_prog; ac_word=$2 7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7581 $as_echo_n "checking for $ac_word... " >&6; } 7582 if ${ac_cv_path_FILE+:} false; then : 7583 $as_echo_n "(cached) " >&6 7584 else 7585 case $FILE in 7586 [\\/]* | ?:[\\/]*) 7587 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7588 ;; 7589 *) 7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7591 for as_dir in $PATH 7592 do 7593 IFS=$as_save_IFS 7594 test -z "$as_dir" && as_dir=. 7595 for ac_exec_ext in '' $ac_executable_extensions; do 7596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7597 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7599 break 2 7600 fi 7601 done 7602 done 7603 IFS=$as_save_IFS 7604 7605 ;; 7606 esac 7607 fi 7608 FILE=$ac_cv_path_FILE 7609 if test -n "$FILE"; then 7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7611 $as_echo "$FILE" >&6; } 7612 else 7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7614 $as_echo "no" >&6; } 7615 fi 7616 7617 7618 test -n "$FILE" && break 7619 done 7620 7621 else 7622 # The variable is set, but is it from the command line or the environment? 7623 7624 # Try to remove the string !FILE! from our list. 7625 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 7626 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7627 # If it failed, the variable was not from the command line. Ignore it, 7628 # but warn the user (except for BASH, which is always set by the calling BASH). 7629 if test "xFILE" != xBASH; then 7630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 7631 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 7632 fi 7633 # Try to locate tool using the code snippet 7634 for ac_prog in file 7635 do 7636 # Extract the first word of "$ac_prog", so it can be a program name with args. 7637 set dummy $ac_prog; ac_word=$2 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7639 $as_echo_n "checking for $ac_word... " >&6; } 7640 if ${ac_cv_path_FILE+:} false; then : 7641 $as_echo_n "(cached) " >&6 7642 else 7643 case $FILE in 7644 [\\/]* | ?:[\\/]*) 7645 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7646 ;; 7647 *) 7648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7649 for as_dir in $PATH 7650 do 7651 IFS=$as_save_IFS 7652 test -z "$as_dir" && as_dir=. 7653 for ac_exec_ext in '' $ac_executable_extensions; do 7654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7655 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7657 break 2 7658 fi 7659 done 7660 done 7661 IFS=$as_save_IFS 7662 7663 ;; 7664 esac 7665 fi 7666 FILE=$ac_cv_path_FILE 7667 if test -n "$FILE"; then 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7669 $as_echo "$FILE" >&6; } 7670 else 7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7672 $as_echo "no" >&6; } 7673 fi 7674 7675 7676 test -n "$FILE" && break 7677 done 7678 7679 else 7680 # If it succeeded, then it was overridden by the user. We will use it 7681 # for the tool. 7682 7683 # First remove it from the list of overridden variables, so we can test 7684 # for unknown variables in the end. 7685 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7686 7687 # Check if we try to supply an empty value 7688 if test "x$FILE" = x; then 7689 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5 7690 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;} 7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7692 $as_echo_n "checking for FILE... " >&6; } 7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7694 $as_echo "disabled" >&6; } 7695 else 7696 # Check if the provided tool contains a complete path. 7697 tool_specified="$FILE" 7698 tool_basename="${tool_specified##*/}" 7699 if test "x$tool_basename" = "x$tool_specified"; then 7700 # A command without a complete path is provided, search $PATH. 7701 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7702 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7703 # Extract the first word of "$tool_basename", so it can be a program name with args. 7704 set dummy $tool_basename; ac_word=$2 7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7706 $as_echo_n "checking for $ac_word... " >&6; } 7707 if ${ac_cv_path_FILE+:} false; then : 7708 $as_echo_n "(cached) " >&6 7709 else 7710 case $FILE in 7711 [\\/]* | ?:[\\/]*) 7712 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7713 ;; 7714 *) 7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7716 for as_dir in $PATH 7717 do 7718 IFS=$as_save_IFS 7719 test -z "$as_dir" && as_dir=. 7720 for ac_exec_ext in '' $ac_executable_extensions; do 7721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7722 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7724 break 2 7725 fi 7726 done 7727 done 7728 IFS=$as_save_IFS 7729 7730 ;; 7731 esac 7732 fi 7733 FILE=$ac_cv_path_FILE 7734 if test -n "$FILE"; then 7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7736 $as_echo "$FILE" >&6; } 7737 else 7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7739 $as_echo "no" >&6; } 7740 fi 7741 7742 7743 if test "x$FILE" = x; then 7744 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7745 fi 7746 else 7747 # Otherwise we believe it is a complete path. Use it as it is. 7748 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7749 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7751 $as_echo_n "checking for FILE... " >&6; } 7752 if test ! -x "$tool_specified"; then 7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7754 $as_echo "not found" >&6; } 7755 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 7756 fi 7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7758 $as_echo "$tool_specified" >&6; } 7759 fi 7760 fi 7761 fi 7762 7763 fi 7764 7765 7766 7767 if test "x$FILE" = x; then 7768 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 7769 fi 7770 7771 7772 7773 7774 7775 # Publish this variable in the help. 7776 7777 7778 if [ -z "${FIND+x}" ]; then 7779 # The variable is not set by user, try to locate tool using the code snippet 7780 for ac_prog in find 7781 do 7782 # Extract the first word of "$ac_prog", so it can be a program name with args. 7783 set dummy $ac_prog; ac_word=$2 7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7785 $as_echo_n "checking for $ac_word... " >&6; } 7786 if ${ac_cv_path_FIND+:} false; then : 7787 $as_echo_n "(cached) " >&6 7788 else 7789 case $FIND in 7790 [\\/]* | ?:[\\/]*) 7791 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7792 ;; 7793 *) 7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7795 for as_dir in $PATH 7796 do 7797 IFS=$as_save_IFS 7798 test -z "$as_dir" && as_dir=. 7799 for ac_exec_ext in '' $ac_executable_extensions; do 7800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7801 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7803 break 2 7804 fi 7805 done 7806 done 7807 IFS=$as_save_IFS 7808 7809 ;; 7810 esac 7811 fi 7812 FIND=$ac_cv_path_FIND 7813 if test -n "$FIND"; then 7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7815 $as_echo "$FIND" >&6; } 7816 else 7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7818 $as_echo "no" >&6; } 7819 fi 7820 7821 7822 test -n "$FIND" && break 7823 done 7824 7825 else 7826 # The variable is set, but is it from the command line or the environment? 7827 7828 # Try to remove the string !FIND! from our list. 7829 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 7830 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7831 # If it failed, the variable was not from the command line. Ignore it, 7832 # but warn the user (except for BASH, which is always set by the calling BASH). 7833 if test "xFIND" != xBASH; then 7834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 7835 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 7836 fi 7837 # Try to locate tool using the code snippet 7838 for ac_prog in find 7839 do 7840 # Extract the first word of "$ac_prog", so it can be a program name with args. 7841 set dummy $ac_prog; ac_word=$2 7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7843 $as_echo_n "checking for $ac_word... " >&6; } 7844 if ${ac_cv_path_FIND+:} false; then : 7845 $as_echo_n "(cached) " >&6 7846 else 7847 case $FIND in 7848 [\\/]* | ?:[\\/]*) 7849 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7850 ;; 7851 *) 7852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7853 for as_dir in $PATH 7854 do 7855 IFS=$as_save_IFS 7856 test -z "$as_dir" && as_dir=. 7857 for ac_exec_ext in '' $ac_executable_extensions; do 7858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7859 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7861 break 2 7862 fi 7863 done 7864 done 7865 IFS=$as_save_IFS 7866 7867 ;; 7868 esac 7869 fi 7870 FIND=$ac_cv_path_FIND 7871 if test -n "$FIND"; then 7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7873 $as_echo "$FIND" >&6; } 7874 else 7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7876 $as_echo "no" >&6; } 7877 fi 7878 7879 7880 test -n "$FIND" && break 7881 done 7882 7883 else 7884 # If it succeeded, then it was overridden by the user. We will use it 7885 # for the tool. 7886 7887 # First remove it from the list of overridden variables, so we can test 7888 # for unknown variables in the end. 7889 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7890 7891 # Check if we try to supply an empty value 7892 if test "x$FIND" = x; then 7893 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5 7894 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;} 7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 7896 $as_echo_n "checking for FIND... " >&6; } 7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7898 $as_echo "disabled" >&6; } 7899 else 7900 # Check if the provided tool contains a complete path. 7901 tool_specified="$FIND" 7902 tool_basename="${tool_specified##*/}" 7903 if test "x$tool_basename" = "x$tool_specified"; then 7904 # A command without a complete path is provided, search $PATH. 7905 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 7906 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 7907 # Extract the first word of "$tool_basename", so it can be a program name with args. 7908 set dummy $tool_basename; ac_word=$2 7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7910 $as_echo_n "checking for $ac_word... " >&6; } 7911 if ${ac_cv_path_FIND+:} false; then : 7912 $as_echo_n "(cached) " >&6 7913 else 7914 case $FIND in 7915 [\\/]* | ?:[\\/]*) 7916 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7917 ;; 7918 *) 7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7920 for as_dir in $PATH 7921 do 7922 IFS=$as_save_IFS 7923 test -z "$as_dir" && as_dir=. 7924 for ac_exec_ext in '' $ac_executable_extensions; do 7925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7926 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7928 break 2 7929 fi 7930 done 7931 done 7932 IFS=$as_save_IFS 7933 7934 ;; 7935 esac 7936 fi 7937 FIND=$ac_cv_path_FIND 7938 if test -n "$FIND"; then 7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7940 $as_echo "$FIND" >&6; } 7941 else 7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7943 $as_echo "no" >&6; } 7944 fi 7945 7946 7947 if test "x$FIND" = x; then 7948 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7949 fi 7950 else 7951 # Otherwise we believe it is a complete path. Use it as it is. 7952 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 7953 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 7955 $as_echo_n "checking for FIND... " >&6; } 7956 if test ! -x "$tool_specified"; then 7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7958 $as_echo "not found" >&6; } 7959 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 7960 fi 7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7962 $as_echo "$tool_specified" >&6; } 7963 fi 7964 fi 7965 fi 7966 7967 fi 7968 7969 7970 7971 if test "x$FIND" = x; then 7972 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 7973 fi 7974 7975 7976 7977 7978 7979 # Publish this variable in the help. 7980 7981 7982 if [ -z "${HEAD+x}" ]; then 7983 # The variable is not set by user, try to locate tool using the code snippet 7984 for ac_prog in head 7985 do 7986 # Extract the first word of "$ac_prog", so it can be a program name with args. 7987 set dummy $ac_prog; ac_word=$2 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7989 $as_echo_n "checking for $ac_word... " >&6; } 7990 if ${ac_cv_path_HEAD+:} false; then : 7991 $as_echo_n "(cached) " >&6 7992 else 7993 case $HEAD in 7994 [\\/]* | ?:[\\/]*) 7995 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7996 ;; 7997 *) 7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7999 for as_dir in $PATH 8000 do 8001 IFS=$as_save_IFS 8002 test -z "$as_dir" && as_dir=. 8003 for ac_exec_ext in '' $ac_executable_extensions; do 8004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8005 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8007 break 2 8008 fi 8009 done 8010 done 8011 IFS=$as_save_IFS 8012 8013 ;; 8014 esac 8015 fi 8016 HEAD=$ac_cv_path_HEAD 8017 if test -n "$HEAD"; then 8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8019 $as_echo "$HEAD" >&6; } 8020 else 8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8022 $as_echo "no" >&6; } 8023 fi 8024 8025 8026 test -n "$HEAD" && break 8027 done 8028 8029 else 8030 # The variable is set, but is it from the command line or the environment? 8031 8032 # Try to remove the string !HEAD! from our list. 8033 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 8034 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8035 # If it failed, the variable was not from the command line. Ignore it, 8036 # but warn the user (except for BASH, which is always set by the calling BASH). 8037 if test "xHEAD" != xBASH; then 8038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 8039 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 8040 fi 8041 # Try to locate tool using the code snippet 8042 for ac_prog in head 8043 do 8044 # Extract the first word of "$ac_prog", so it can be a program name with args. 8045 set dummy $ac_prog; ac_word=$2 8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8047 $as_echo_n "checking for $ac_word... " >&6; } 8048 if ${ac_cv_path_HEAD+:} false; then : 8049 $as_echo_n "(cached) " >&6 8050 else 8051 case $HEAD in 8052 [\\/]* | ?:[\\/]*) 8053 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8054 ;; 8055 *) 8056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8057 for as_dir in $PATH 8058 do 8059 IFS=$as_save_IFS 8060 test -z "$as_dir" && as_dir=. 8061 for ac_exec_ext in '' $ac_executable_extensions; do 8062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8063 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8065 break 2 8066 fi 8067 done 8068 done 8069 IFS=$as_save_IFS 8070 8071 ;; 8072 esac 8073 fi 8074 HEAD=$ac_cv_path_HEAD 8075 if test -n "$HEAD"; then 8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8077 $as_echo "$HEAD" >&6; } 8078 else 8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8080 $as_echo "no" >&6; } 8081 fi 8082 8083 8084 test -n "$HEAD" && break 8085 done 8086 8087 else 8088 # If it succeeded, then it was overridden by the user. We will use it 8089 # for the tool. 8090 8091 # First remove it from the list of overridden variables, so we can test 8092 # for unknown variables in the end. 8093 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8094 8095 # Check if we try to supply an empty value 8096 if test "x$HEAD" = x; then 8097 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5 8098 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;} 8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8100 $as_echo_n "checking for HEAD... " >&6; } 8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8102 $as_echo "disabled" >&6; } 8103 else 8104 # Check if the provided tool contains a complete path. 8105 tool_specified="$HEAD" 8106 tool_basename="${tool_specified##*/}" 8107 if test "x$tool_basename" = "x$tool_specified"; then 8108 # A command without a complete path is provided, search $PATH. 8109 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 8110 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 8111 # Extract the first word of "$tool_basename", so it can be a program name with args. 8112 set dummy $tool_basename; ac_word=$2 8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8114 $as_echo_n "checking for $ac_word... " >&6; } 8115 if ${ac_cv_path_HEAD+:} false; then : 8116 $as_echo_n "(cached) " >&6 8117 else 8118 case $HEAD in 8119 [\\/]* | ?:[\\/]*) 8120 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8121 ;; 8122 *) 8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8124 for as_dir in $PATH 8125 do 8126 IFS=$as_save_IFS 8127 test -z "$as_dir" && as_dir=. 8128 for ac_exec_ext in '' $ac_executable_extensions; do 8129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8130 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8132 break 2 8133 fi 8134 done 8135 done 8136 IFS=$as_save_IFS 8137 8138 ;; 8139 esac 8140 fi 8141 HEAD=$ac_cv_path_HEAD 8142 if test -n "$HEAD"; then 8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8144 $as_echo "$HEAD" >&6; } 8145 else 8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8147 $as_echo "no" >&6; } 8148 fi 8149 8150 8151 if test "x$HEAD" = x; then 8152 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8153 fi 8154 else 8155 # Otherwise we believe it is a complete path. Use it as it is. 8156 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 8157 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8159 $as_echo_n "checking for HEAD... " >&6; } 8160 if test ! -x "$tool_specified"; then 8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8162 $as_echo "not found" >&6; } 8163 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 8164 fi 8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8166 $as_echo "$tool_specified" >&6; } 8167 fi 8168 fi 8169 fi 8170 8171 fi 8172 8173 8174 8175 if test "x$HEAD" = x; then 8176 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 8177 fi 8178 8179 8180 8181 8182 8183 # Publish this variable in the help. 8184 8185 8186 if [ -z "${LN+x}" ]; then 8187 # The variable is not set by user, try to locate tool using the code snippet 8188 for ac_prog in ln 8189 do 8190 # Extract the first word of "$ac_prog", so it can be a program name with args. 8191 set dummy $ac_prog; ac_word=$2 8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8193 $as_echo_n "checking for $ac_word... " >&6; } 8194 if ${ac_cv_path_LN+:} false; then : 8195 $as_echo_n "(cached) " >&6 8196 else 8197 case $LN in 8198 [\\/]* | ?:[\\/]*) 8199 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8200 ;; 8201 *) 8202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8203 for as_dir in $PATH 8204 do 8205 IFS=$as_save_IFS 8206 test -z "$as_dir" && as_dir=. 8207 for ac_exec_ext in '' $ac_executable_extensions; do 8208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8209 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8211 break 2 8212 fi 8213 done 8214 done 8215 IFS=$as_save_IFS 8216 8217 ;; 8218 esac 8219 fi 8220 LN=$ac_cv_path_LN 8221 if test -n "$LN"; then 8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8223 $as_echo "$LN" >&6; } 8224 else 8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8226 $as_echo "no" >&6; } 8227 fi 8228 8229 8230 test -n "$LN" && break 8231 done 8232 8233 else 8234 # The variable is set, but is it from the command line or the environment? 8235 8236 # Try to remove the string !LN! from our list. 8237 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 8238 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8239 # If it failed, the variable was not from the command line. Ignore it, 8240 # but warn the user (except for BASH, which is always set by the calling BASH). 8241 if test "xLN" != xBASH; then 8242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 8243 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 8244 fi 8245 # Try to locate tool using the code snippet 8246 for ac_prog in ln 8247 do 8248 # Extract the first word of "$ac_prog", so it can be a program name with args. 8249 set dummy $ac_prog; ac_word=$2 8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8251 $as_echo_n "checking for $ac_word... " >&6; } 8252 if ${ac_cv_path_LN+:} false; then : 8253 $as_echo_n "(cached) " >&6 8254 else 8255 case $LN in 8256 [\\/]* | ?:[\\/]*) 8257 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8258 ;; 8259 *) 8260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8261 for as_dir in $PATH 8262 do 8263 IFS=$as_save_IFS 8264 test -z "$as_dir" && as_dir=. 8265 for ac_exec_ext in '' $ac_executable_extensions; do 8266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8267 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8269 break 2 8270 fi 8271 done 8272 done 8273 IFS=$as_save_IFS 8274 8275 ;; 8276 esac 8277 fi 8278 LN=$ac_cv_path_LN 8279 if test -n "$LN"; then 8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8281 $as_echo "$LN" >&6; } 8282 else 8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8284 $as_echo "no" >&6; } 8285 fi 8286 8287 8288 test -n "$LN" && break 8289 done 8290 8291 else 8292 # If it succeeded, then it was overridden by the user. We will use it 8293 # for the tool. 8294 8295 # First remove it from the list of overridden variables, so we can test 8296 # for unknown variables in the end. 8297 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8298 8299 # Check if we try to supply an empty value 8300 if test "x$LN" = x; then 8301 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5 8302 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;} 8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 8304 $as_echo_n "checking for LN... " >&6; } 8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8306 $as_echo "disabled" >&6; } 8307 else 8308 # Check if the provided tool contains a complete path. 8309 tool_specified="$LN" 8310 tool_basename="${tool_specified##*/}" 8311 if test "x$tool_basename" = "x$tool_specified"; then 8312 # A command without a complete path is provided, search $PATH. 8313 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 8314 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 8315 # Extract the first word of "$tool_basename", so it can be a program name with args. 8316 set dummy $tool_basename; ac_word=$2 8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8318 $as_echo_n "checking for $ac_word... " >&6; } 8319 if ${ac_cv_path_LN+:} false; then : 8320 $as_echo_n "(cached) " >&6 8321 else 8322 case $LN in 8323 [\\/]* | ?:[\\/]*) 8324 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8325 ;; 8326 *) 8327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8328 for as_dir in $PATH 8329 do 8330 IFS=$as_save_IFS 8331 test -z "$as_dir" && as_dir=. 8332 for ac_exec_ext in '' $ac_executable_extensions; do 8333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8334 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8336 break 2 8337 fi 8338 done 8339 done 8340 IFS=$as_save_IFS 8341 8342 ;; 8343 esac 8344 fi 8345 LN=$ac_cv_path_LN 8346 if test -n "$LN"; then 8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8348 $as_echo "$LN" >&6; } 8349 else 8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8351 $as_echo "no" >&6; } 8352 fi 8353 8354 8355 if test "x$LN" = x; then 8356 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8357 fi 8358 else 8359 # Otherwise we believe it is a complete path. Use it as it is. 8360 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 8361 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 8363 $as_echo_n "checking for LN... " >&6; } 8364 if test ! -x "$tool_specified"; then 8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8366 $as_echo "not found" >&6; } 8367 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 8368 fi 8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8370 $as_echo "$tool_specified" >&6; } 8371 fi 8372 fi 8373 fi 8374 8375 fi 8376 8377 8378 8379 if test "x$LN" = x; then 8380 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 8381 fi 8382 8383 8384 8385 8386 8387 # Publish this variable in the help. 8388 8389 8390 if [ -z "${LS+x}" ]; then 8391 # The variable is not set by user, try to locate tool using the code snippet 8392 for ac_prog in ls 8393 do 8394 # Extract the first word of "$ac_prog", so it can be a program name with args. 8395 set dummy $ac_prog; ac_word=$2 8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8397 $as_echo_n "checking for $ac_word... " >&6; } 8398 if ${ac_cv_path_LS+:} false; then : 8399 $as_echo_n "(cached) " >&6 8400 else 8401 case $LS in 8402 [\\/]* | ?:[\\/]*) 8403 ac_cv_path_LS="$LS" # Let the user override the test with a path. 8404 ;; 8405 *) 8406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8407 for as_dir in $PATH 8408 do 8409 IFS=$as_save_IFS 8410 test -z "$as_dir" && as_dir=. 8411 for ac_exec_ext in '' $ac_executable_extensions; do 8412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8413 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 8414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8415 break 2 8416 fi 8417 done 8418 done 8419 IFS=$as_save_IFS 8420 8421 ;; 8422 esac 8423 fi 8424 LS=$ac_cv_path_LS 8425 if test -n "$LS"; then 8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 8427 $as_echo "$LS" >&6; } 8428 else 8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8430 $as_echo "no" >&6; } 8431 fi 8432 8433 8434 test -n "$LS" && break 8435 done 8436 8437 else 8438 # The variable is set, but is it from the command line or the environment? 8439 8440 # Try to remove the string !LS! from our list. 8441 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 8442 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8443 # If it failed, the variable was not from the command line. Ignore it, 8444 # but warn the user (except for BASH, which is always set by the calling BASH). 8445 if test "xLS" != xBASH; then 8446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 8447 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 8448 fi 8449 # Try to locate tool using the code snippet 8450 for ac_prog in ls 8451 do 8452 # Extract the first word of "$ac_prog", so it can be a program name with args. 8453 set dummy $ac_prog; ac_word=$2 8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8455 $as_echo_n "checking for $ac_word... " >&6; } 8456 if ${ac_cv_path_LS+:} false; then : 8457 $as_echo_n "(cached) " >&6 8458 else 8459 case $LS in 8460 [\\/]* | ?:[\\/]*) 8461 ac_cv_path_LS="$LS" # Let the user override the test with a path. 8462 ;; 8463 *) 8464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8465 for as_dir in $PATH 8466 do 8467 IFS=$as_save_IFS 8468 test -z "$as_dir" && as_dir=. 8469 for ac_exec_ext in '' $ac_executable_extensions; do 8470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8471 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 8472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8473 break 2 8474 fi 8475 done 8476 done 8477 IFS=$as_save_IFS 8478 8479 ;; 8480 esac 8481 fi 8482 LS=$ac_cv_path_LS 8483 if test -n "$LS"; then 8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 8485 $as_echo "$LS" >&6; } 8486 else 8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8488 $as_echo "no" >&6; } 8489 fi 8490 8491 8492 test -n "$LS" && break 8493 done 8494 8495 else 8496 # If it succeeded, then it was overridden by the user. We will use it 8497 # for the tool. 8498 8499 # First remove it from the list of overridden variables, so we can test 8500 # for unknown variables in the end. 8501 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8502 8503 # Check if we try to supply an empty value 8504 if test "x$LS" = x; then 8505 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5 8506 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;} 8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 8508 $as_echo_n "checking for LS... " >&6; } 8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8510 $as_echo "disabled" >&6; } 8511 else 8512 # Check if the provided tool contains a complete path. 8513 tool_specified="$LS" 8514 tool_basename="${tool_specified##*/}" 8515 if test "x$tool_basename" = "x$tool_specified"; then 8516 # A command without a complete path is provided, search $PATH. 8517 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 8518 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 8519 # Extract the first word of "$tool_basename", so it can be a program name with args. 8520 set dummy $tool_basename; ac_word=$2 8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8522 $as_echo_n "checking for $ac_word... " >&6; } 8523 if ${ac_cv_path_LS+:} false; then : 8524 $as_echo_n "(cached) " >&6 8525 else 8526 case $LS in 8527 [\\/]* | ?:[\\/]*) 8528 ac_cv_path_LS="$LS" # Let the user override the test with a path. 8529 ;; 8530 *) 8531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8532 for as_dir in $PATH 8533 do 8534 IFS=$as_save_IFS 8535 test -z "$as_dir" && as_dir=. 8536 for ac_exec_ext in '' $ac_executable_extensions; do 8537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8538 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 8539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8540 break 2 8541 fi 8542 done 8543 done 8544 IFS=$as_save_IFS 8545 8546 ;; 8547 esac 8548 fi 8549 LS=$ac_cv_path_LS 8550 if test -n "$LS"; then 8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 8552 $as_echo "$LS" >&6; } 8553 else 8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8555 $as_echo "no" >&6; } 8556 fi 8557 8558 8559 if test "x$LS" = x; then 8560 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8561 fi 8562 else 8563 # Otherwise we believe it is a complete path. Use it as it is. 8564 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 8565 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 8567 $as_echo_n "checking for LS... " >&6; } 8568 if test ! -x "$tool_specified"; then 8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8570 $as_echo "not found" >&6; } 8571 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 8572 fi 8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8574 $as_echo "$tool_specified" >&6; } 8575 fi 8576 fi 8577 fi 8578 8579 fi 8580 8581 8582 8583 if test "x$LS" = x; then 8584 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 8585 fi 8586 8587 8588 8589 8590 8591 # Publish this variable in the help. 8592 8593 8594 if [ -z "${MKDIR+x}" ]; then 8595 # The variable is not set by user, try to locate tool using the code snippet 8596 for ac_prog in mkdir 8597 do 8598 # Extract the first word of "$ac_prog", so it can be a program name with args. 8599 set dummy $ac_prog; ac_word=$2 8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8601 $as_echo_n "checking for $ac_word... " >&6; } 8602 if ${ac_cv_path_MKDIR+:} false; then : 8603 $as_echo_n "(cached) " >&6 8604 else 8605 case $MKDIR in 8606 [\\/]* | ?:[\\/]*) 8607 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8608 ;; 8609 *) 8610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8611 for as_dir in $PATH 8612 do 8613 IFS=$as_save_IFS 8614 test -z "$as_dir" && as_dir=. 8615 for ac_exec_ext in '' $ac_executable_extensions; do 8616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8617 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8619 break 2 8620 fi 8621 done 8622 done 8623 IFS=$as_save_IFS 8624 8625 ;; 8626 esac 8627 fi 8628 MKDIR=$ac_cv_path_MKDIR 8629 if test -n "$MKDIR"; then 8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8631 $as_echo "$MKDIR" >&6; } 8632 else 8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8634 $as_echo "no" >&6; } 8635 fi 8636 8637 8638 test -n "$MKDIR" && break 8639 done 8640 8641 else 8642 # The variable is set, but is it from the command line or the environment? 8643 8644 # Try to remove the string !MKDIR! from our list. 8645 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 8646 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8647 # If it failed, the variable was not from the command line. Ignore it, 8648 # but warn the user (except for BASH, which is always set by the calling BASH). 8649 if test "xMKDIR" != xBASH; then 8650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 8651 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 8652 fi 8653 # Try to locate tool using the code snippet 8654 for ac_prog in mkdir 8655 do 8656 # Extract the first word of "$ac_prog", so it can be a program name with args. 8657 set dummy $ac_prog; ac_word=$2 8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8659 $as_echo_n "checking for $ac_word... " >&6; } 8660 if ${ac_cv_path_MKDIR+:} false; then : 8661 $as_echo_n "(cached) " >&6 8662 else 8663 case $MKDIR in 8664 [\\/]* | ?:[\\/]*) 8665 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8666 ;; 8667 *) 8668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8669 for as_dir in $PATH 8670 do 8671 IFS=$as_save_IFS 8672 test -z "$as_dir" && as_dir=. 8673 for ac_exec_ext in '' $ac_executable_extensions; do 8674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8675 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8677 break 2 8678 fi 8679 done 8680 done 8681 IFS=$as_save_IFS 8682 8683 ;; 8684 esac 8685 fi 8686 MKDIR=$ac_cv_path_MKDIR 8687 if test -n "$MKDIR"; then 8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8689 $as_echo "$MKDIR" >&6; } 8690 else 8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8692 $as_echo "no" >&6; } 8693 fi 8694 8695 8696 test -n "$MKDIR" && break 8697 done 8698 8699 else 8700 # If it succeeded, then it was overridden by the user. We will use it 8701 # for the tool. 8702 8703 # First remove it from the list of overridden variables, so we can test 8704 # for unknown variables in the end. 8705 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8706 8707 # Check if we try to supply an empty value 8708 if test "x$MKDIR" = x; then 8709 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5 8710 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;} 8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8712 $as_echo_n "checking for MKDIR... " >&6; } 8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8714 $as_echo "disabled" >&6; } 8715 else 8716 # Check if the provided tool contains a complete path. 8717 tool_specified="$MKDIR" 8718 tool_basename="${tool_specified##*/}" 8719 if test "x$tool_basename" = "x$tool_specified"; then 8720 # A command without a complete path is provided, search $PATH. 8721 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 8722 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 8723 # Extract the first word of "$tool_basename", so it can be a program name with args. 8724 set dummy $tool_basename; ac_word=$2 8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8726 $as_echo_n "checking for $ac_word... " >&6; } 8727 if ${ac_cv_path_MKDIR+:} false; then : 8728 $as_echo_n "(cached) " >&6 8729 else 8730 case $MKDIR in 8731 [\\/]* | ?:[\\/]*) 8732 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8733 ;; 8734 *) 8735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8736 for as_dir in $PATH 8737 do 8738 IFS=$as_save_IFS 8739 test -z "$as_dir" && as_dir=. 8740 for ac_exec_ext in '' $ac_executable_extensions; do 8741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8742 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8744 break 2 8745 fi 8746 done 8747 done 8748 IFS=$as_save_IFS 8749 8750 ;; 8751 esac 8752 fi 8753 MKDIR=$ac_cv_path_MKDIR 8754 if test -n "$MKDIR"; then 8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8756 $as_echo "$MKDIR" >&6; } 8757 else 8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8759 $as_echo "no" >&6; } 8760 fi 8761 8762 8763 if test "x$MKDIR" = x; then 8764 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8765 fi 8766 else 8767 # Otherwise we believe it is a complete path. Use it as it is. 8768 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 8769 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8771 $as_echo_n "checking for MKDIR... " >&6; } 8772 if test ! -x "$tool_specified"; then 8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8774 $as_echo "not found" >&6; } 8775 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 8776 fi 8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8778 $as_echo "$tool_specified" >&6; } 8779 fi 8780 fi 8781 fi 8782 8783 fi 8784 8785 8786 8787 if test "x$MKDIR" = x; then 8788 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 8789 fi 8790 8791 8792 8793 8794 8795 # Publish this variable in the help. 8796 8797 8798 if [ -z "${MKTEMP+x}" ]; then 8799 # The variable is not set by user, try to locate tool using the code snippet 8800 for ac_prog in mktemp 8801 do 8802 # Extract the first word of "$ac_prog", so it can be a program name with args. 8803 set dummy $ac_prog; ac_word=$2 8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8805 $as_echo_n "checking for $ac_word... " >&6; } 8806 if ${ac_cv_path_MKTEMP+:} false; then : 8807 $as_echo_n "(cached) " >&6 8808 else 8809 case $MKTEMP in 8810 [\\/]* | ?:[\\/]*) 8811 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8812 ;; 8813 *) 8814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8815 for as_dir in $PATH 8816 do 8817 IFS=$as_save_IFS 8818 test -z "$as_dir" && as_dir=. 8819 for ac_exec_ext in '' $ac_executable_extensions; do 8820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8821 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8823 break 2 8824 fi 8825 done 8826 done 8827 IFS=$as_save_IFS 8828 8829 ;; 8830 esac 8831 fi 8832 MKTEMP=$ac_cv_path_MKTEMP 8833 if test -n "$MKTEMP"; then 8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8835 $as_echo "$MKTEMP" >&6; } 8836 else 8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8838 $as_echo "no" >&6; } 8839 fi 8840 8841 8842 test -n "$MKTEMP" && break 8843 done 8844 8845 else 8846 # The variable is set, but is it from the command line or the environment? 8847 8848 # Try to remove the string !MKTEMP! from our list. 8849 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 8850 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8851 # If it failed, the variable was not from the command line. Ignore it, 8852 # but warn the user (except for BASH, which is always set by the calling BASH). 8853 if test "xMKTEMP" != xBASH; then 8854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 8855 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 8856 fi 8857 # Try to locate tool using the code snippet 8858 for ac_prog in mktemp 8859 do 8860 # Extract the first word of "$ac_prog", so it can be a program name with args. 8861 set dummy $ac_prog; ac_word=$2 8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8863 $as_echo_n "checking for $ac_word... " >&6; } 8864 if ${ac_cv_path_MKTEMP+:} false; then : 8865 $as_echo_n "(cached) " >&6 8866 else 8867 case $MKTEMP in 8868 [\\/]* | ?:[\\/]*) 8869 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8870 ;; 8871 *) 8872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8873 for as_dir in $PATH 8874 do 8875 IFS=$as_save_IFS 8876 test -z "$as_dir" && as_dir=. 8877 for ac_exec_ext in '' $ac_executable_extensions; do 8878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8879 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8881 break 2 8882 fi 8883 done 8884 done 8885 IFS=$as_save_IFS 8886 8887 ;; 8888 esac 8889 fi 8890 MKTEMP=$ac_cv_path_MKTEMP 8891 if test -n "$MKTEMP"; then 8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8893 $as_echo "$MKTEMP" >&6; } 8894 else 8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8896 $as_echo "no" >&6; } 8897 fi 8898 8899 8900 test -n "$MKTEMP" && break 8901 done 8902 8903 else 8904 # If it succeeded, then it was overridden by the user. We will use it 8905 # for the tool. 8906 8907 # First remove it from the list of overridden variables, so we can test 8908 # for unknown variables in the end. 8909 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8910 8911 # Check if we try to supply an empty value 8912 if test "x$MKTEMP" = x; then 8913 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5 8914 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;} 8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 8916 $as_echo_n "checking for MKTEMP... " >&6; } 8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8918 $as_echo "disabled" >&6; } 8919 else 8920 # Check if the provided tool contains a complete path. 8921 tool_specified="$MKTEMP" 8922 tool_basename="${tool_specified##*/}" 8923 if test "x$tool_basename" = "x$tool_specified"; then 8924 # A command without a complete path is provided, search $PATH. 8925 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 8926 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 8927 # Extract the first word of "$tool_basename", so it can be a program name with args. 8928 set dummy $tool_basename; ac_word=$2 8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8930 $as_echo_n "checking for $ac_word... " >&6; } 8931 if ${ac_cv_path_MKTEMP+:} false; then : 8932 $as_echo_n "(cached) " >&6 8933 else 8934 case $MKTEMP in 8935 [\\/]* | ?:[\\/]*) 8936 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8937 ;; 8938 *) 8939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8940 for as_dir in $PATH 8941 do 8942 IFS=$as_save_IFS 8943 test -z "$as_dir" && as_dir=. 8944 for ac_exec_ext in '' $ac_executable_extensions; do 8945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8946 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8948 break 2 8949 fi 8950 done 8951 done 8952 IFS=$as_save_IFS 8953 8954 ;; 8955 esac 8956 fi 8957 MKTEMP=$ac_cv_path_MKTEMP 8958 if test -n "$MKTEMP"; then 8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8960 $as_echo "$MKTEMP" >&6; } 8961 else 8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8963 $as_echo "no" >&6; } 8964 fi 8965 8966 8967 if test "x$MKTEMP" = x; then 8968 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8969 fi 8970 else 8971 # Otherwise we believe it is a complete path. Use it as it is. 8972 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 8973 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 8975 $as_echo_n "checking for MKTEMP... " >&6; } 8976 if test ! -x "$tool_specified"; then 8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8978 $as_echo "not found" >&6; } 8979 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 8980 fi 8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8982 $as_echo "$tool_specified" >&6; } 8983 fi 8984 fi 8985 fi 8986 8987 fi 8988 8989 8990 8991 if test "x$MKTEMP" = x; then 8992 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 8993 fi 8994 8995 8996 8997 8998 8999 # Publish this variable in the help. 9000 9001 9002 if [ -z "${MV+x}" ]; then 9003 # The variable is not set by user, try to locate tool using the code snippet 9004 for ac_prog in mv 9005 do 9006 # Extract the first word of "$ac_prog", so it can be a program name with args. 9007 set dummy $ac_prog; ac_word=$2 9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9009 $as_echo_n "checking for $ac_word... " >&6; } 9010 if ${ac_cv_path_MV+:} false; then : 9011 $as_echo_n "(cached) " >&6 9012 else 9013 case $MV in 9014 [\\/]* | ?:[\\/]*) 9015 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9016 ;; 9017 *) 9018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9019 for as_dir in $PATH 9020 do 9021 IFS=$as_save_IFS 9022 test -z "$as_dir" && as_dir=. 9023 for ac_exec_ext in '' $ac_executable_extensions; do 9024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9025 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9027 break 2 9028 fi 9029 done 9030 done 9031 IFS=$as_save_IFS 9032 9033 ;; 9034 esac 9035 fi 9036 MV=$ac_cv_path_MV 9037 if test -n "$MV"; then 9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9039 $as_echo "$MV" >&6; } 9040 else 9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9042 $as_echo "no" >&6; } 9043 fi 9044 9045 9046 test -n "$MV" && break 9047 done 9048 9049 else 9050 # The variable is set, but is it from the command line or the environment? 9051 9052 # Try to remove the string !MV! from our list. 9053 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 9054 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9055 # If it failed, the variable was not from the command line. Ignore it, 9056 # but warn the user (except for BASH, which is always set by the calling BASH). 9057 if test "xMV" != xBASH; then 9058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 9059 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 9060 fi 9061 # Try to locate tool using the code snippet 9062 for ac_prog in mv 9063 do 9064 # Extract the first word of "$ac_prog", so it can be a program name with args. 9065 set dummy $ac_prog; ac_word=$2 9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9067 $as_echo_n "checking for $ac_word... " >&6; } 9068 if ${ac_cv_path_MV+:} false; then : 9069 $as_echo_n "(cached) " >&6 9070 else 9071 case $MV in 9072 [\\/]* | ?:[\\/]*) 9073 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9074 ;; 9075 *) 9076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9077 for as_dir in $PATH 9078 do 9079 IFS=$as_save_IFS 9080 test -z "$as_dir" && as_dir=. 9081 for ac_exec_ext in '' $ac_executable_extensions; do 9082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9083 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9085 break 2 9086 fi 9087 done 9088 done 9089 IFS=$as_save_IFS 9090 9091 ;; 9092 esac 9093 fi 9094 MV=$ac_cv_path_MV 9095 if test -n "$MV"; then 9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9097 $as_echo "$MV" >&6; } 9098 else 9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9100 $as_echo "no" >&6; } 9101 fi 9102 9103 9104 test -n "$MV" && break 9105 done 9106 9107 else 9108 # If it succeeded, then it was overridden by the user. We will use it 9109 # for the tool. 9110 9111 # First remove it from the list of overridden variables, so we can test 9112 # for unknown variables in the end. 9113 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9114 9115 # Check if we try to supply an empty value 9116 if test "x$MV" = x; then 9117 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5 9118 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;} 9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9120 $as_echo_n "checking for MV... " >&6; } 9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9122 $as_echo "disabled" >&6; } 9123 else 9124 # Check if the provided tool contains a complete path. 9125 tool_specified="$MV" 9126 tool_basename="${tool_specified##*/}" 9127 if test "x$tool_basename" = "x$tool_specified"; then 9128 # A command without a complete path is provided, search $PATH. 9129 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 9130 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 9131 # Extract the first word of "$tool_basename", so it can be a program name with args. 9132 set dummy $tool_basename; ac_word=$2 9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9134 $as_echo_n "checking for $ac_word... " >&6; } 9135 if ${ac_cv_path_MV+:} false; then : 9136 $as_echo_n "(cached) " >&6 9137 else 9138 case $MV in 9139 [\\/]* | ?:[\\/]*) 9140 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9141 ;; 9142 *) 9143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9144 for as_dir in $PATH 9145 do 9146 IFS=$as_save_IFS 9147 test -z "$as_dir" && as_dir=. 9148 for ac_exec_ext in '' $ac_executable_extensions; do 9149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9150 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9152 break 2 9153 fi 9154 done 9155 done 9156 IFS=$as_save_IFS 9157 9158 ;; 9159 esac 9160 fi 9161 MV=$ac_cv_path_MV 9162 if test -n "$MV"; then 9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9164 $as_echo "$MV" >&6; } 9165 else 9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9167 $as_echo "no" >&6; } 9168 fi 9169 9170 9171 if test "x$MV" = x; then 9172 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9173 fi 9174 else 9175 # Otherwise we believe it is a complete path. Use it as it is. 9176 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 9177 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9179 $as_echo_n "checking for MV... " >&6; } 9180 if test ! -x "$tool_specified"; then 9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9182 $as_echo "not found" >&6; } 9183 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 9184 fi 9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9186 $as_echo "$tool_specified" >&6; } 9187 fi 9188 fi 9189 fi 9190 9191 fi 9192 9193 9194 9195 if test "x$MV" = x; then 9196 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 9197 fi 9198 9199 9200 9201 9202 9203 # Publish this variable in the help. 9204 9205 9206 if [ -z "${NAWK+x}" ]; then 9207 # The variable is not set by user, try to locate tool using the code snippet 9208 for ac_prog in nawk gawk awk 9209 do 9210 # Extract the first word of "$ac_prog", so it can be a program name with args. 9211 set dummy $ac_prog; ac_word=$2 9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9213 $as_echo_n "checking for $ac_word... " >&6; } 9214 if ${ac_cv_path_NAWK+:} false; then : 9215 $as_echo_n "(cached) " >&6 9216 else 9217 case $NAWK in 9218 [\\/]* | ?:[\\/]*) 9219 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9220 ;; 9221 *) 9222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9223 for as_dir in $PATH 9224 do 9225 IFS=$as_save_IFS 9226 test -z "$as_dir" && as_dir=. 9227 for ac_exec_ext in '' $ac_executable_extensions; do 9228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9229 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9231 break 2 9232 fi 9233 done 9234 done 9235 IFS=$as_save_IFS 9236 9237 ;; 9238 esac 9239 fi 9240 NAWK=$ac_cv_path_NAWK 9241 if test -n "$NAWK"; then 9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9243 $as_echo "$NAWK" >&6; } 9244 else 9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9246 $as_echo "no" >&6; } 9247 fi 9248 9249 9250 test -n "$NAWK" && break 9251 done 9252 9253 else 9254 # The variable is set, but is it from the command line or the environment? 9255 9256 # Try to remove the string !NAWK! from our list. 9257 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 9258 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9259 # If it failed, the variable was not from the command line. Ignore it, 9260 # but warn the user (except for BASH, which is always set by the calling BASH). 9261 if test "xNAWK" != xBASH; then 9262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 9263 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 9264 fi 9265 # Try to locate tool using the code snippet 9266 for ac_prog in nawk gawk awk 9267 do 9268 # Extract the first word of "$ac_prog", so it can be a program name with args. 9269 set dummy $ac_prog; ac_word=$2 9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9271 $as_echo_n "checking for $ac_word... " >&6; } 9272 if ${ac_cv_path_NAWK+:} false; then : 9273 $as_echo_n "(cached) " >&6 9274 else 9275 case $NAWK in 9276 [\\/]* | ?:[\\/]*) 9277 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9278 ;; 9279 *) 9280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9281 for as_dir in $PATH 9282 do 9283 IFS=$as_save_IFS 9284 test -z "$as_dir" && as_dir=. 9285 for ac_exec_ext in '' $ac_executable_extensions; do 9286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9287 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9289 break 2 9290 fi 9291 done 9292 done 9293 IFS=$as_save_IFS 9294 9295 ;; 9296 esac 9297 fi 9298 NAWK=$ac_cv_path_NAWK 9299 if test -n "$NAWK"; then 9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9301 $as_echo "$NAWK" >&6; } 9302 else 9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9304 $as_echo "no" >&6; } 9305 fi 9306 9307 9308 test -n "$NAWK" && break 9309 done 9310 9311 else 9312 # If it succeeded, then it was overridden by the user. We will use it 9313 # for the tool. 9314 9315 # First remove it from the list of overridden variables, so we can test 9316 # for unknown variables in the end. 9317 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9318 9319 # Check if we try to supply an empty value 9320 if test "x$NAWK" = x; then 9321 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5 9322 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;} 9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 9324 $as_echo_n "checking for NAWK... " >&6; } 9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9326 $as_echo "disabled" >&6; } 9327 else 9328 # Check if the provided tool contains a complete path. 9329 tool_specified="$NAWK" 9330 tool_basename="${tool_specified##*/}" 9331 if test "x$tool_basename" = "x$tool_specified"; then 9332 # A command without a complete path is provided, search $PATH. 9333 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 9334 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 9335 # Extract the first word of "$tool_basename", so it can be a program name with args. 9336 set dummy $tool_basename; ac_word=$2 9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9338 $as_echo_n "checking for $ac_word... " >&6; } 9339 if ${ac_cv_path_NAWK+:} false; then : 9340 $as_echo_n "(cached) " >&6 9341 else 9342 case $NAWK in 9343 [\\/]* | ?:[\\/]*) 9344 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9345 ;; 9346 *) 9347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9348 for as_dir in $PATH 9349 do 9350 IFS=$as_save_IFS 9351 test -z "$as_dir" && as_dir=. 9352 for ac_exec_ext in '' $ac_executable_extensions; do 9353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9354 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9356 break 2 9357 fi 9358 done 9359 done 9360 IFS=$as_save_IFS 9361 9362 ;; 9363 esac 9364 fi 9365 NAWK=$ac_cv_path_NAWK 9366 if test -n "$NAWK"; then 9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9368 $as_echo "$NAWK" >&6; } 9369 else 9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9371 $as_echo "no" >&6; } 9372 fi 9373 9374 9375 if test "x$NAWK" = x; then 9376 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9377 fi 9378 else 9379 # Otherwise we believe it is a complete path. Use it as it is. 9380 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 9381 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 9383 $as_echo_n "checking for NAWK... " >&6; } 9384 if test ! -x "$tool_specified"; then 9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9386 $as_echo "not found" >&6; } 9387 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 9388 fi 9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9390 $as_echo "$tool_specified" >&6; } 9391 fi 9392 fi 9393 fi 9394 9395 fi 9396 9397 9398 9399 if test "x$NAWK" = x; then 9400 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 9401 fi 9402 9403 9404 9405 9406 9407 # Publish this variable in the help. 9408 9409 9410 if [ -z "${PRINTF+x}" ]; then 9411 # The variable is not set by user, try to locate tool using the code snippet 9412 for ac_prog in printf 9413 do 9414 # Extract the first word of "$ac_prog", so it can be a program name with args. 9415 set dummy $ac_prog; ac_word=$2 9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9417 $as_echo_n "checking for $ac_word... " >&6; } 9418 if ${ac_cv_path_PRINTF+:} false; then : 9419 $as_echo_n "(cached) " >&6 9420 else 9421 case $PRINTF in 9422 [\\/]* | ?:[\\/]*) 9423 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 9424 ;; 9425 *) 9426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9427 for as_dir in $PATH 9428 do 9429 IFS=$as_save_IFS 9430 test -z "$as_dir" && as_dir=. 9431 for ac_exec_ext in '' $ac_executable_extensions; do 9432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9433 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 9434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9435 break 2 9436 fi 9437 done 9438 done 9439 IFS=$as_save_IFS 9440 9441 ;; 9442 esac 9443 fi 9444 PRINTF=$ac_cv_path_PRINTF 9445 if test -n "$PRINTF"; then 9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 9447 $as_echo "$PRINTF" >&6; } 9448 else 9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9450 $as_echo "no" >&6; } 9451 fi 9452 9453 9454 test -n "$PRINTF" && break 9455 done 9456 9457 else 9458 # The variable is set, but is it from the command line or the environment? 9459 9460 # Try to remove the string !PRINTF! from our list. 9461 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 9462 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9463 # If it failed, the variable was not from the command line. Ignore it, 9464 # but warn the user (except for BASH, which is always set by the calling BASH). 9465 if test "xPRINTF" != xBASH; then 9466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 9467 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 9468 fi 9469 # Try to locate tool using the code snippet 9470 for ac_prog in printf 9471 do 9472 # Extract the first word of "$ac_prog", so it can be a program name with args. 9473 set dummy $ac_prog; ac_word=$2 9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9475 $as_echo_n "checking for $ac_word... " >&6; } 9476 if ${ac_cv_path_PRINTF+:} false; then : 9477 $as_echo_n "(cached) " >&6 9478 else 9479 case $PRINTF in 9480 [\\/]* | ?:[\\/]*) 9481 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 9482 ;; 9483 *) 9484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9485 for as_dir in $PATH 9486 do 9487 IFS=$as_save_IFS 9488 test -z "$as_dir" && as_dir=. 9489 for ac_exec_ext in '' $ac_executable_extensions; do 9490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9491 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 9492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9493 break 2 9494 fi 9495 done 9496 done 9497 IFS=$as_save_IFS 9498 9499 ;; 9500 esac 9501 fi 9502 PRINTF=$ac_cv_path_PRINTF 9503 if test -n "$PRINTF"; then 9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 9505 $as_echo "$PRINTF" >&6; } 9506 else 9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9508 $as_echo "no" >&6; } 9509 fi 9510 9511 9512 test -n "$PRINTF" && break 9513 done 9514 9515 else 9516 # If it succeeded, then it was overridden by the user. We will use it 9517 # for the tool. 9518 9519 # First remove it from the list of overridden variables, so we can test 9520 # for unknown variables in the end. 9521 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9522 9523 # Check if we try to supply an empty value 9524 if test "x$PRINTF" = x; then 9525 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5 9526 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;} 9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 9528 $as_echo_n "checking for PRINTF... " >&6; } 9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9530 $as_echo "disabled" >&6; } 9531 else 9532 # Check if the provided tool contains a complete path. 9533 tool_specified="$PRINTF" 9534 tool_basename="${tool_specified##*/}" 9535 if test "x$tool_basename" = "x$tool_specified"; then 9536 # A command without a complete path is provided, search $PATH. 9537 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 9538 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 9539 # Extract the first word of "$tool_basename", so it can be a program name with args. 9540 set dummy $tool_basename; ac_word=$2 9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9542 $as_echo_n "checking for $ac_word... " >&6; } 9543 if ${ac_cv_path_PRINTF+:} false; then : 9544 $as_echo_n "(cached) " >&6 9545 else 9546 case $PRINTF in 9547 [\\/]* | ?:[\\/]*) 9548 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 9549 ;; 9550 *) 9551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9552 for as_dir in $PATH 9553 do 9554 IFS=$as_save_IFS 9555 test -z "$as_dir" && as_dir=. 9556 for ac_exec_ext in '' $ac_executable_extensions; do 9557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9558 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 9559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9560 break 2 9561 fi 9562 done 9563 done 9564 IFS=$as_save_IFS 9565 9566 ;; 9567 esac 9568 fi 9569 PRINTF=$ac_cv_path_PRINTF 9570 if test -n "$PRINTF"; then 9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 9572 $as_echo "$PRINTF" >&6; } 9573 else 9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9575 $as_echo "no" >&6; } 9576 fi 9577 9578 9579 if test "x$PRINTF" = x; then 9580 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9581 fi 9582 else 9583 # Otherwise we believe it is a complete path. Use it as it is. 9584 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 9585 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 9587 $as_echo_n "checking for PRINTF... " >&6; } 9588 if test ! -x "$tool_specified"; then 9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9590 $as_echo "not found" >&6; } 9591 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 9592 fi 9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9594 $as_echo "$tool_specified" >&6; } 9595 fi 9596 fi 9597 fi 9598 9599 fi 9600 9601 9602 9603 if test "x$PRINTF" = x; then 9604 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 9605 fi 9606 9607 9608 9609 9610 9611 # Publish this variable in the help. 9612 9613 9614 if [ -z "${RM+x}" ]; then 9615 # The variable is not set by user, try to locate tool using the code snippet 9616 for ac_prog in rm 9617 do 9618 # Extract the first word of "$ac_prog", so it can be a program name with args. 9619 set dummy $ac_prog; ac_word=$2 9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9621 $as_echo_n "checking for $ac_word... " >&6; } 9622 if ${ac_cv_path_RM+:} false; then : 9623 $as_echo_n "(cached) " >&6 9624 else 9625 case $RM in 9626 [\\/]* | ?:[\\/]*) 9627 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9628 ;; 9629 *) 9630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9631 for as_dir in $PATH 9632 do 9633 IFS=$as_save_IFS 9634 test -z "$as_dir" && as_dir=. 9635 for ac_exec_ext in '' $ac_executable_extensions; do 9636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9637 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9639 break 2 9640 fi 9641 done 9642 done 9643 IFS=$as_save_IFS 9644 9645 ;; 9646 esac 9647 fi 9648 RM=$ac_cv_path_RM 9649 if test -n "$RM"; then 9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9651 $as_echo "$RM" >&6; } 9652 else 9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9654 $as_echo "no" >&6; } 9655 fi 9656 9657 9658 test -n "$RM" && break 9659 done 9660 9661 else 9662 # The variable is set, but is it from the command line or the environment? 9663 9664 # Try to remove the string !RM! from our list. 9665 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 9666 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9667 # If it failed, the variable was not from the command line. Ignore it, 9668 # but warn the user (except for BASH, which is always set by the calling BASH). 9669 if test "xRM" != xBASH; then 9670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 9671 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 9672 fi 9673 # Try to locate tool using the code snippet 9674 for ac_prog in rm 9675 do 9676 # Extract the first word of "$ac_prog", so it can be a program name with args. 9677 set dummy $ac_prog; ac_word=$2 9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9679 $as_echo_n "checking for $ac_word... " >&6; } 9680 if ${ac_cv_path_RM+:} false; then : 9681 $as_echo_n "(cached) " >&6 9682 else 9683 case $RM in 9684 [\\/]* | ?:[\\/]*) 9685 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9686 ;; 9687 *) 9688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9689 for as_dir in $PATH 9690 do 9691 IFS=$as_save_IFS 9692 test -z "$as_dir" && as_dir=. 9693 for ac_exec_ext in '' $ac_executable_extensions; do 9694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9695 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9697 break 2 9698 fi 9699 done 9700 done 9701 IFS=$as_save_IFS 9702 9703 ;; 9704 esac 9705 fi 9706 RM=$ac_cv_path_RM 9707 if test -n "$RM"; then 9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9709 $as_echo "$RM" >&6; } 9710 else 9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9712 $as_echo "no" >&6; } 9713 fi 9714 9715 9716 test -n "$RM" && break 9717 done 9718 9719 else 9720 # If it succeeded, then it was overridden by the user. We will use it 9721 # for the tool. 9722 9723 # First remove it from the list of overridden variables, so we can test 9724 # for unknown variables in the end. 9725 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9726 9727 # Check if we try to supply an empty value 9728 if test "x$RM" = x; then 9729 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5 9730 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;} 9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 9732 $as_echo_n "checking for RM... " >&6; } 9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9734 $as_echo "disabled" >&6; } 9735 else 9736 # Check if the provided tool contains a complete path. 9737 tool_specified="$RM" 9738 tool_basename="${tool_specified##*/}" 9739 if test "x$tool_basename" = "x$tool_specified"; then 9740 # A command without a complete path is provided, search $PATH. 9741 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 9742 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 9743 # Extract the first word of "$tool_basename", so it can be a program name with args. 9744 set dummy $tool_basename; ac_word=$2 9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9746 $as_echo_n "checking for $ac_word... " >&6; } 9747 if ${ac_cv_path_RM+:} false; then : 9748 $as_echo_n "(cached) " >&6 9749 else 9750 case $RM in 9751 [\\/]* | ?:[\\/]*) 9752 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9753 ;; 9754 *) 9755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9756 for as_dir in $PATH 9757 do 9758 IFS=$as_save_IFS 9759 test -z "$as_dir" && as_dir=. 9760 for ac_exec_ext in '' $ac_executable_extensions; do 9761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9762 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9764 break 2 9765 fi 9766 done 9767 done 9768 IFS=$as_save_IFS 9769 9770 ;; 9771 esac 9772 fi 9773 RM=$ac_cv_path_RM 9774 if test -n "$RM"; then 9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9776 $as_echo "$RM" >&6; } 9777 else 9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9779 $as_echo "no" >&6; } 9780 fi 9781 9782 9783 if test "x$RM" = x; then 9784 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9785 fi 9786 else 9787 # Otherwise we believe it is a complete path. Use it as it is. 9788 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 9789 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 9791 $as_echo_n "checking for RM... " >&6; } 9792 if test ! -x "$tool_specified"; then 9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9794 $as_echo "not found" >&6; } 9795 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 9796 fi 9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9798 $as_echo "$tool_specified" >&6; } 9799 fi 9800 fi 9801 fi 9802 9803 fi 9804 9805 9806 9807 if test "x$RM" = x; then 9808 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 9809 fi 9810 9811 9812 9813 9814 9815 # Publish this variable in the help. 9816 9817 9818 if [ -z "${RMDIR+x}" ]; then 9819 # The variable is not set by user, try to locate tool using the code snippet 9820 for ac_prog in rmdir 9821 do 9822 # Extract the first word of "$ac_prog", so it can be a program name with args. 9823 set dummy $ac_prog; ac_word=$2 9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9825 $as_echo_n "checking for $ac_word... " >&6; } 9826 if ${ac_cv_path_RMDIR+:} false; then : 9827 $as_echo_n "(cached) " >&6 9828 else 9829 case $RMDIR in 9830 [\\/]* | ?:[\\/]*) 9831 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 9832 ;; 9833 *) 9834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9835 for as_dir in $PATH 9836 do 9837 IFS=$as_save_IFS 9838 test -z "$as_dir" && as_dir=. 9839 for ac_exec_ext in '' $ac_executable_extensions; do 9840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9841 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 9842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9843 break 2 9844 fi 9845 done 9846 done 9847 IFS=$as_save_IFS 9848 9849 ;; 9850 esac 9851 fi 9852 RMDIR=$ac_cv_path_RMDIR 9853 if test -n "$RMDIR"; then 9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 9855 $as_echo "$RMDIR" >&6; } 9856 else 9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9858 $as_echo "no" >&6; } 9859 fi 9860 9861 9862 test -n "$RMDIR" && break 9863 done 9864 9865 else 9866 # The variable is set, but is it from the command line or the environment? 9867 9868 # Try to remove the string !RMDIR! from our list. 9869 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/} 9870 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9871 # If it failed, the variable was not from the command line. Ignore it, 9872 # but warn the user (except for BASH, which is always set by the calling BASH). 9873 if test "xRMDIR" != xBASH; then 9874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5 9875 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;} 9876 fi 9877 # Try to locate tool using the code snippet 9878 for ac_prog in rmdir 9879 do 9880 # Extract the first word of "$ac_prog", so it can be a program name with args. 9881 set dummy $ac_prog; ac_word=$2 9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9883 $as_echo_n "checking for $ac_word... " >&6; } 9884 if ${ac_cv_path_RMDIR+:} false; then : 9885 $as_echo_n "(cached) " >&6 9886 else 9887 case $RMDIR in 9888 [\\/]* | ?:[\\/]*) 9889 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 9890 ;; 9891 *) 9892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9893 for as_dir in $PATH 9894 do 9895 IFS=$as_save_IFS 9896 test -z "$as_dir" && as_dir=. 9897 for ac_exec_ext in '' $ac_executable_extensions; do 9898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9899 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 9900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9901 break 2 9902 fi 9903 done 9904 done 9905 IFS=$as_save_IFS 9906 9907 ;; 9908 esac 9909 fi 9910 RMDIR=$ac_cv_path_RMDIR 9911 if test -n "$RMDIR"; then 9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 9913 $as_echo "$RMDIR" >&6; } 9914 else 9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9916 $as_echo "no" >&6; } 9917 fi 9918 9919 9920 test -n "$RMDIR" && break 9921 done 9922 9923 else 9924 # If it succeeded, then it was overridden by the user. We will use it 9925 # for the tool. 9926 9927 # First remove it from the list of overridden variables, so we can test 9928 # for unknown variables in the end. 9929 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9930 9931 # Check if we try to supply an empty value 9932 if test "x$RMDIR" = x; then 9933 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5 9934 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;} 9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 9936 $as_echo_n "checking for RMDIR... " >&6; } 9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9938 $as_echo "disabled" >&6; } 9939 else 9940 # Check if the provided tool contains a complete path. 9941 tool_specified="$RMDIR" 9942 tool_basename="${tool_specified##*/}" 9943 if test "x$tool_basename" = "x$tool_specified"; then 9944 # A command without a complete path is provided, search $PATH. 9945 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5 9946 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;} 9947 # Extract the first word of "$tool_basename", so it can be a program name with args. 9948 set dummy $tool_basename; ac_word=$2 9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9950 $as_echo_n "checking for $ac_word... " >&6; } 9951 if ${ac_cv_path_RMDIR+:} false; then : 9952 $as_echo_n "(cached) " >&6 9953 else 9954 case $RMDIR in 9955 [\\/]* | ?:[\\/]*) 9956 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 9957 ;; 9958 *) 9959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9960 for as_dir in $PATH 9961 do 9962 IFS=$as_save_IFS 9963 test -z "$as_dir" && as_dir=. 9964 for ac_exec_ext in '' $ac_executable_extensions; do 9965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9966 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 9967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9968 break 2 9969 fi 9970 done 9971 done 9972 IFS=$as_save_IFS 9973 9974 ;; 9975 esac 9976 fi 9977 RMDIR=$ac_cv_path_RMDIR 9978 if test -n "$RMDIR"; then 9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 9980 $as_echo "$RMDIR" >&6; } 9981 else 9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9983 $as_echo "no" >&6; } 9984 fi 9985 9986 9987 if test "x$RMDIR" = x; then 9988 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9989 fi 9990 else 9991 # Otherwise we believe it is a complete path. Use it as it is. 9992 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5 9993 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;} 9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 9995 $as_echo_n "checking for RMDIR... " >&6; } 9996 if test ! -x "$tool_specified"; then 9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9998 $as_echo "not found" >&6; } 9999 as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 10000 fi 10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10002 $as_echo "$tool_specified" >&6; } 10003 fi 10004 fi 10005 fi 10006 10007 fi 10008 10009 10010 10011 if test "x$RMDIR" = x; then 10012 as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5 10013 fi 10014 10015 10016 10017 10018 10019 # Publish this variable in the help. 10020 10021 10022 if [ -z "${SH+x}" ]; then 10023 # The variable is not set by user, try to locate tool using the code snippet 10024 for ac_prog in sh 10025 do 10026 # Extract the first word of "$ac_prog", so it can be a program name with args. 10027 set dummy $ac_prog; ac_word=$2 10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10029 $as_echo_n "checking for $ac_word... " >&6; } 10030 if ${ac_cv_path_SH+:} false; then : 10031 $as_echo_n "(cached) " >&6 10032 else 10033 case $SH in 10034 [\\/]* | ?:[\\/]*) 10035 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10036 ;; 10037 *) 10038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10039 for as_dir in $PATH 10040 do 10041 IFS=$as_save_IFS 10042 test -z "$as_dir" && as_dir=. 10043 for ac_exec_ext in '' $ac_executable_extensions; do 10044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10045 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10047 break 2 10048 fi 10049 done 10050 done 10051 IFS=$as_save_IFS 10052 10053 ;; 10054 esac 10055 fi 10056 SH=$ac_cv_path_SH 10057 if test -n "$SH"; then 10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10059 $as_echo "$SH" >&6; } 10060 else 10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10062 $as_echo "no" >&6; } 10063 fi 10064 10065 10066 test -n "$SH" && break 10067 done 10068 10069 else 10070 # The variable is set, but is it from the command line or the environment? 10071 10072 # Try to remove the string !SH! from our list. 10073 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 10074 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10075 # If it failed, the variable was not from the command line. Ignore it, 10076 # but warn the user (except for BASH, which is always set by the calling BASH). 10077 if test "xSH" != xBASH; then 10078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 10079 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 10080 fi 10081 # Try to locate tool using the code snippet 10082 for ac_prog in sh 10083 do 10084 # Extract the first word of "$ac_prog", so it can be a program name with args. 10085 set dummy $ac_prog; ac_word=$2 10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10087 $as_echo_n "checking for $ac_word... " >&6; } 10088 if ${ac_cv_path_SH+:} false; then : 10089 $as_echo_n "(cached) " >&6 10090 else 10091 case $SH in 10092 [\\/]* | ?:[\\/]*) 10093 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10094 ;; 10095 *) 10096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10097 for as_dir in $PATH 10098 do 10099 IFS=$as_save_IFS 10100 test -z "$as_dir" && as_dir=. 10101 for ac_exec_ext in '' $ac_executable_extensions; do 10102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10103 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10105 break 2 10106 fi 10107 done 10108 done 10109 IFS=$as_save_IFS 10110 10111 ;; 10112 esac 10113 fi 10114 SH=$ac_cv_path_SH 10115 if test -n "$SH"; then 10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10117 $as_echo "$SH" >&6; } 10118 else 10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10120 $as_echo "no" >&6; } 10121 fi 10122 10123 10124 test -n "$SH" && break 10125 done 10126 10127 else 10128 # If it succeeded, then it was overridden by the user. We will use it 10129 # for the tool. 10130 10131 # First remove it from the list of overridden variables, so we can test 10132 # for unknown variables in the end. 10133 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10134 10135 # Check if we try to supply an empty value 10136 if test "x$SH" = x; then 10137 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5 10138 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;} 10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10140 $as_echo_n "checking for SH... " >&6; } 10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10142 $as_echo "disabled" >&6; } 10143 else 10144 # Check if the provided tool contains a complete path. 10145 tool_specified="$SH" 10146 tool_basename="${tool_specified##*/}" 10147 if test "x$tool_basename" = "x$tool_specified"; then 10148 # A command without a complete path is provided, search $PATH. 10149 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 10150 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 10151 # Extract the first word of "$tool_basename", so it can be a program name with args. 10152 set dummy $tool_basename; ac_word=$2 10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10154 $as_echo_n "checking for $ac_word... " >&6; } 10155 if ${ac_cv_path_SH+:} false; then : 10156 $as_echo_n "(cached) " >&6 10157 else 10158 case $SH in 10159 [\\/]* | ?:[\\/]*) 10160 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10161 ;; 10162 *) 10163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10164 for as_dir in $PATH 10165 do 10166 IFS=$as_save_IFS 10167 test -z "$as_dir" && as_dir=. 10168 for ac_exec_ext in '' $ac_executable_extensions; do 10169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10170 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10172 break 2 10173 fi 10174 done 10175 done 10176 IFS=$as_save_IFS 10177 10178 ;; 10179 esac 10180 fi 10181 SH=$ac_cv_path_SH 10182 if test -n "$SH"; then 10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10184 $as_echo "$SH" >&6; } 10185 else 10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10187 $as_echo "no" >&6; } 10188 fi 10189 10190 10191 if test "x$SH" = x; then 10192 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10193 fi 10194 else 10195 # Otherwise we believe it is a complete path. Use it as it is. 10196 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 10197 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10199 $as_echo_n "checking for SH... " >&6; } 10200 if test ! -x "$tool_specified"; then 10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10202 $as_echo "not found" >&6; } 10203 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 10204 fi 10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10206 $as_echo "$tool_specified" >&6; } 10207 fi 10208 fi 10209 fi 10210 10211 fi 10212 10213 10214 10215 if test "x$SH" = x; then 10216 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 10217 fi 10218 10219 10220 10221 10222 10223 # Publish this variable in the help. 10224 10225 10226 if [ -z "${SORT+x}" ]; then 10227 # The variable is not set by user, try to locate tool using the code snippet 10228 for ac_prog in sort 10229 do 10230 # Extract the first word of "$ac_prog", so it can be a program name with args. 10231 set dummy $ac_prog; ac_word=$2 10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10233 $as_echo_n "checking for $ac_word... " >&6; } 10234 if ${ac_cv_path_SORT+:} false; then : 10235 $as_echo_n "(cached) " >&6 10236 else 10237 case $SORT in 10238 [\\/]* | ?:[\\/]*) 10239 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 10240 ;; 10241 *) 10242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10243 for as_dir in $PATH 10244 do 10245 IFS=$as_save_IFS 10246 test -z "$as_dir" && as_dir=. 10247 for ac_exec_ext in '' $ac_executable_extensions; do 10248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10249 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 10250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10251 break 2 10252 fi 10253 done 10254 done 10255 IFS=$as_save_IFS 10256 10257 ;; 10258 esac 10259 fi 10260 SORT=$ac_cv_path_SORT 10261 if test -n "$SORT"; then 10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 10263 $as_echo "$SORT" >&6; } 10264 else 10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10266 $as_echo "no" >&6; } 10267 fi 10268 10269 10270 test -n "$SORT" && break 10271 done 10272 10273 else 10274 # The variable is set, but is it from the command line or the environment? 10275 10276 # Try to remove the string !SORT! from our list. 10277 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 10278 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10279 # If it failed, the variable was not from the command line. Ignore it, 10280 # but warn the user (except for BASH, which is always set by the calling BASH). 10281 if test "xSORT" != xBASH; then 10282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 10283 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 10284 fi 10285 # Try to locate tool using the code snippet 10286 for ac_prog in sort 10287 do 10288 # Extract the first word of "$ac_prog", so it can be a program name with args. 10289 set dummy $ac_prog; ac_word=$2 10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10291 $as_echo_n "checking for $ac_word... " >&6; } 10292 if ${ac_cv_path_SORT+:} false; then : 10293 $as_echo_n "(cached) " >&6 10294 else 10295 case $SORT in 10296 [\\/]* | ?:[\\/]*) 10297 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 10298 ;; 10299 *) 10300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10301 for as_dir in $PATH 10302 do 10303 IFS=$as_save_IFS 10304 test -z "$as_dir" && as_dir=. 10305 for ac_exec_ext in '' $ac_executable_extensions; do 10306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10307 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 10308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10309 break 2 10310 fi 10311 done 10312 done 10313 IFS=$as_save_IFS 10314 10315 ;; 10316 esac 10317 fi 10318 SORT=$ac_cv_path_SORT 10319 if test -n "$SORT"; then 10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 10321 $as_echo "$SORT" >&6; } 10322 else 10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10324 $as_echo "no" >&6; } 10325 fi 10326 10327 10328 test -n "$SORT" && break 10329 done 10330 10331 else 10332 # If it succeeded, then it was overridden by the user. We will use it 10333 # for the tool. 10334 10335 # First remove it from the list of overridden variables, so we can test 10336 # for unknown variables in the end. 10337 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10338 10339 # Check if we try to supply an empty value 10340 if test "x$SORT" = x; then 10341 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5 10342 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;} 10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 10344 $as_echo_n "checking for SORT... " >&6; } 10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10346 $as_echo "disabled" >&6; } 10347 else 10348 # Check if the provided tool contains a complete path. 10349 tool_specified="$SORT" 10350 tool_basename="${tool_specified##*/}" 10351 if test "x$tool_basename" = "x$tool_specified"; then 10352 # A command without a complete path is provided, search $PATH. 10353 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 10354 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 10355 # Extract the first word of "$tool_basename", so it can be a program name with args. 10356 set dummy $tool_basename; ac_word=$2 10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10358 $as_echo_n "checking for $ac_word... " >&6; } 10359 if ${ac_cv_path_SORT+:} false; then : 10360 $as_echo_n "(cached) " >&6 10361 else 10362 case $SORT in 10363 [\\/]* | ?:[\\/]*) 10364 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 10365 ;; 10366 *) 10367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10368 for as_dir in $PATH 10369 do 10370 IFS=$as_save_IFS 10371 test -z "$as_dir" && as_dir=. 10372 for ac_exec_ext in '' $ac_executable_extensions; do 10373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10374 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 10375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10376 break 2 10377 fi 10378 done 10379 done 10380 IFS=$as_save_IFS 10381 10382 ;; 10383 esac 10384 fi 10385 SORT=$ac_cv_path_SORT 10386 if test -n "$SORT"; then 10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 10388 $as_echo "$SORT" >&6; } 10389 else 10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10391 $as_echo "no" >&6; } 10392 fi 10393 10394 10395 if test "x$SORT" = x; then 10396 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10397 fi 10398 else 10399 # Otherwise we believe it is a complete path. Use it as it is. 10400 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 10401 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 10403 $as_echo_n "checking for SORT... " >&6; } 10404 if test ! -x "$tool_specified"; then 10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10406 $as_echo "not found" >&6; } 10407 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 10408 fi 10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10410 $as_echo "$tool_specified" >&6; } 10411 fi 10412 fi 10413 fi 10414 10415 fi 10416 10417 10418 10419 if test "x$SORT" = x; then 10420 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 10421 fi 10422 10423 10424 10425 10426 10427 # Publish this variable in the help. 10428 10429 10430 if [ -z "${TAIL+x}" ]; then 10431 # The variable is not set by user, try to locate tool using the code snippet 10432 for ac_prog in tail 10433 do 10434 # Extract the first word of "$ac_prog", so it can be a program name with args. 10435 set dummy $ac_prog; ac_word=$2 10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10437 $as_echo_n "checking for $ac_word... " >&6; } 10438 if ${ac_cv_path_TAIL+:} false; then : 10439 $as_echo_n "(cached) " >&6 10440 else 10441 case $TAIL in 10442 [\\/]* | ?:[\\/]*) 10443 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 10444 ;; 10445 *) 10446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10447 for as_dir in $PATH 10448 do 10449 IFS=$as_save_IFS 10450 test -z "$as_dir" && as_dir=. 10451 for ac_exec_ext in '' $ac_executable_extensions; do 10452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10453 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 10454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10455 break 2 10456 fi 10457 done 10458 done 10459 IFS=$as_save_IFS 10460 10461 ;; 10462 esac 10463 fi 10464 TAIL=$ac_cv_path_TAIL 10465 if test -n "$TAIL"; then 10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 10467 $as_echo "$TAIL" >&6; } 10468 else 10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10470 $as_echo "no" >&6; } 10471 fi 10472 10473 10474 test -n "$TAIL" && break 10475 done 10476 10477 else 10478 # The variable is set, but is it from the command line or the environment? 10479 10480 # Try to remove the string !TAIL! from our list. 10481 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 10482 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10483 # If it failed, the variable was not from the command line. Ignore it, 10484 # but warn the user (except for BASH, which is always set by the calling BASH). 10485 if test "xTAIL" != xBASH; then 10486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 10487 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 10488 fi 10489 # Try to locate tool using the code snippet 10490 for ac_prog in tail 10491 do 10492 # Extract the first word of "$ac_prog", so it can be a program name with args. 10493 set dummy $ac_prog; ac_word=$2 10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10495 $as_echo_n "checking for $ac_word... " >&6; } 10496 if ${ac_cv_path_TAIL+:} false; then : 10497 $as_echo_n "(cached) " >&6 10498 else 10499 case $TAIL in 10500 [\\/]* | ?:[\\/]*) 10501 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 10502 ;; 10503 *) 10504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10505 for as_dir in $PATH 10506 do 10507 IFS=$as_save_IFS 10508 test -z "$as_dir" && as_dir=. 10509 for ac_exec_ext in '' $ac_executable_extensions; do 10510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10511 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 10512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10513 break 2 10514 fi 10515 done 10516 done 10517 IFS=$as_save_IFS 10518 10519 ;; 10520 esac 10521 fi 10522 TAIL=$ac_cv_path_TAIL 10523 if test -n "$TAIL"; then 10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 10525 $as_echo "$TAIL" >&6; } 10526 else 10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10528 $as_echo "no" >&6; } 10529 fi 10530 10531 10532 test -n "$TAIL" && break 10533 done 10534 10535 else 10536 # If it succeeded, then it was overridden by the user. We will use it 10537 # for the tool. 10538 10539 # First remove it from the list of overridden variables, so we can test 10540 # for unknown variables in the end. 10541 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10542 10543 # Check if we try to supply an empty value 10544 if test "x$TAIL" = x; then 10545 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5 10546 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;} 10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 10548 $as_echo_n "checking for TAIL... " >&6; } 10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10550 $as_echo "disabled" >&6; } 10551 else 10552 # Check if the provided tool contains a complete path. 10553 tool_specified="$TAIL" 10554 tool_basename="${tool_specified##*/}" 10555 if test "x$tool_basename" = "x$tool_specified"; then 10556 # A command without a complete path is provided, search $PATH. 10557 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 10558 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 10559 # Extract the first word of "$tool_basename", so it can be a program name with args. 10560 set dummy $tool_basename; ac_word=$2 10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10562 $as_echo_n "checking for $ac_word... " >&6; } 10563 if ${ac_cv_path_TAIL+:} false; then : 10564 $as_echo_n "(cached) " >&6 10565 else 10566 case $TAIL in 10567 [\\/]* | ?:[\\/]*) 10568 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 10569 ;; 10570 *) 10571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10572 for as_dir in $PATH 10573 do 10574 IFS=$as_save_IFS 10575 test -z "$as_dir" && as_dir=. 10576 for ac_exec_ext in '' $ac_executable_extensions; do 10577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10578 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 10579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10580 break 2 10581 fi 10582 done 10583 done 10584 IFS=$as_save_IFS 10585 10586 ;; 10587 esac 10588 fi 10589 TAIL=$ac_cv_path_TAIL 10590 if test -n "$TAIL"; then 10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 10592 $as_echo "$TAIL" >&6; } 10593 else 10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10595 $as_echo "no" >&6; } 10596 fi 10597 10598 10599 if test "x$TAIL" = x; then 10600 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10601 fi 10602 else 10603 # Otherwise we believe it is a complete path. Use it as it is. 10604 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 10605 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 10607 $as_echo_n "checking for TAIL... " >&6; } 10608 if test ! -x "$tool_specified"; then 10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10610 $as_echo "not found" >&6; } 10611 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 10612 fi 10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10614 $as_echo "$tool_specified" >&6; } 10615 fi 10616 fi 10617 fi 10618 10619 fi 10620 10621 10622 10623 if test "x$TAIL" = x; then 10624 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 10625 fi 10626 10627 10628 10629 10630 10631 # Publish this variable in the help. 10632 10633 10634 if [ -z "${TAR+x}" ]; then 10635 # The variable is not set by user, try to locate tool using the code snippet 10636 for ac_prog in tar 10637 do 10638 # Extract the first word of "$ac_prog", so it can be a program name with args. 10639 set dummy $ac_prog; ac_word=$2 10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10641 $as_echo_n "checking for $ac_word... " >&6; } 10642 if ${ac_cv_path_TAR+:} false; then : 10643 $as_echo_n "(cached) " >&6 10644 else 10645 case $TAR in 10646 [\\/]* | ?:[\\/]*) 10647 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 10648 ;; 10649 *) 10650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10651 for as_dir in $PATH 10652 do 10653 IFS=$as_save_IFS 10654 test -z "$as_dir" && as_dir=. 10655 for ac_exec_ext in '' $ac_executable_extensions; do 10656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10657 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 10658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10659 break 2 10660 fi 10661 done 10662 done 10663 IFS=$as_save_IFS 10664 10665 ;; 10666 esac 10667 fi 10668 TAR=$ac_cv_path_TAR 10669 if test -n "$TAR"; then 10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 10671 $as_echo "$TAR" >&6; } 10672 else 10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10674 $as_echo "no" >&6; } 10675 fi 10676 10677 10678 test -n "$TAR" && break 10679 done 10680 10681 else 10682 # The variable is set, but is it from the command line or the environment? 10683 10684 # Try to remove the string !TAR! from our list. 10685 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 10686 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10687 # If it failed, the variable was not from the command line. Ignore it, 10688 # but warn the user (except for BASH, which is always set by the calling BASH). 10689 if test "xTAR" != xBASH; then 10690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 10691 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 10692 fi 10693 # Try to locate tool using the code snippet 10694 for ac_prog in tar 10695 do 10696 # Extract the first word of "$ac_prog", so it can be a program name with args. 10697 set dummy $ac_prog; ac_word=$2 10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10699 $as_echo_n "checking for $ac_word... " >&6; } 10700 if ${ac_cv_path_TAR+:} false; then : 10701 $as_echo_n "(cached) " >&6 10702 else 10703 case $TAR in 10704 [\\/]* | ?:[\\/]*) 10705 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 10706 ;; 10707 *) 10708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10709 for as_dir in $PATH 10710 do 10711 IFS=$as_save_IFS 10712 test -z "$as_dir" && as_dir=. 10713 for ac_exec_ext in '' $ac_executable_extensions; do 10714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10715 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 10716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10717 break 2 10718 fi 10719 done 10720 done 10721 IFS=$as_save_IFS 10722 10723 ;; 10724 esac 10725 fi 10726 TAR=$ac_cv_path_TAR 10727 if test -n "$TAR"; then 10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 10729 $as_echo "$TAR" >&6; } 10730 else 10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10732 $as_echo "no" >&6; } 10733 fi 10734 10735 10736 test -n "$TAR" && break 10737 done 10738 10739 else 10740 # If it succeeded, then it was overridden by the user. We will use it 10741 # for the tool. 10742 10743 # First remove it from the list of overridden variables, so we can test 10744 # for unknown variables in the end. 10745 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10746 10747 # Check if we try to supply an empty value 10748 if test "x$TAR" = x; then 10749 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5 10750 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;} 10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 10752 $as_echo_n "checking for TAR... " >&6; } 10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10754 $as_echo "disabled" >&6; } 10755 else 10756 # Check if the provided tool contains a complete path. 10757 tool_specified="$TAR" 10758 tool_basename="${tool_specified##*/}" 10759 if test "x$tool_basename" = "x$tool_specified"; then 10760 # A command without a complete path is provided, search $PATH. 10761 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 10762 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 10763 # Extract the first word of "$tool_basename", so it can be a program name with args. 10764 set dummy $tool_basename; ac_word=$2 10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10766 $as_echo_n "checking for $ac_word... " >&6; } 10767 if ${ac_cv_path_TAR+:} false; then : 10768 $as_echo_n "(cached) " >&6 10769 else 10770 case $TAR in 10771 [\\/]* | ?:[\\/]*) 10772 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 10773 ;; 10774 *) 10775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10776 for as_dir in $PATH 10777 do 10778 IFS=$as_save_IFS 10779 test -z "$as_dir" && as_dir=. 10780 for ac_exec_ext in '' $ac_executable_extensions; do 10781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10782 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 10783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10784 break 2 10785 fi 10786 done 10787 done 10788 IFS=$as_save_IFS 10789 10790 ;; 10791 esac 10792 fi 10793 TAR=$ac_cv_path_TAR 10794 if test -n "$TAR"; then 10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 10796 $as_echo "$TAR" >&6; } 10797 else 10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10799 $as_echo "no" >&6; } 10800 fi 10801 10802 10803 if test "x$TAR" = x; then 10804 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10805 fi 10806 else 10807 # Otherwise we believe it is a complete path. Use it as it is. 10808 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 10809 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 10811 $as_echo_n "checking for TAR... " >&6; } 10812 if test ! -x "$tool_specified"; then 10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10814 $as_echo "not found" >&6; } 10815 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 10816 fi 10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10818 $as_echo "$tool_specified" >&6; } 10819 fi 10820 fi 10821 fi 10822 10823 fi 10824 10825 10826 10827 if test "x$TAR" = x; then 10828 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 10829 fi 10830 10831 10832 10833 10834 10835 # Publish this variable in the help. 10836 10837 10838 if [ -z "${TEE+x}" ]; then 10839 # The variable is not set by user, try to locate tool using the code snippet 10840 for ac_prog in tee 10841 do 10842 # Extract the first word of "$ac_prog", so it can be a program name with args. 10843 set dummy $ac_prog; ac_word=$2 10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10845 $as_echo_n "checking for $ac_word... " >&6; } 10846 if ${ac_cv_path_TEE+:} false; then : 10847 $as_echo_n "(cached) " >&6 10848 else 10849 case $TEE in 10850 [\\/]* | ?:[\\/]*) 10851 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 10852 ;; 10853 *) 10854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10855 for as_dir in $PATH 10856 do 10857 IFS=$as_save_IFS 10858 test -z "$as_dir" && as_dir=. 10859 for ac_exec_ext in '' $ac_executable_extensions; do 10860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10861 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 10862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10863 break 2 10864 fi 10865 done 10866 done 10867 IFS=$as_save_IFS 10868 10869 ;; 10870 esac 10871 fi 10872 TEE=$ac_cv_path_TEE 10873 if test -n "$TEE"; then 10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 10875 $as_echo "$TEE" >&6; } 10876 else 10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10878 $as_echo "no" >&6; } 10879 fi 10880 10881 10882 test -n "$TEE" && break 10883 done 10884 10885 else 10886 # The variable is set, but is it from the command line or the environment? 10887 10888 # Try to remove the string !TEE! from our list. 10889 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 10890 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10891 # If it failed, the variable was not from the command line. Ignore it, 10892 # but warn the user (except for BASH, which is always set by the calling BASH). 10893 if test "xTEE" != xBASH; then 10894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 10895 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 10896 fi 10897 # Try to locate tool using the code snippet 10898 for ac_prog in tee 10899 do 10900 # Extract the first word of "$ac_prog", so it can be a program name with args. 10901 set dummy $ac_prog; ac_word=$2 10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10903 $as_echo_n "checking for $ac_word... " >&6; } 10904 if ${ac_cv_path_TEE+:} false; then : 10905 $as_echo_n "(cached) " >&6 10906 else 10907 case $TEE in 10908 [\\/]* | ?:[\\/]*) 10909 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 10910 ;; 10911 *) 10912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10913 for as_dir in $PATH 10914 do 10915 IFS=$as_save_IFS 10916 test -z "$as_dir" && as_dir=. 10917 for ac_exec_ext in '' $ac_executable_extensions; do 10918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10919 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 10920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10921 break 2 10922 fi 10923 done 10924 done 10925 IFS=$as_save_IFS 10926 10927 ;; 10928 esac 10929 fi 10930 TEE=$ac_cv_path_TEE 10931 if test -n "$TEE"; then 10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 10933 $as_echo "$TEE" >&6; } 10934 else 10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10936 $as_echo "no" >&6; } 10937 fi 10938 10939 10940 test -n "$TEE" && break 10941 done 10942 10943 else 10944 # If it succeeded, then it was overridden by the user. We will use it 10945 # for the tool. 10946 10947 # First remove it from the list of overridden variables, so we can test 10948 # for unknown variables in the end. 10949 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10950 10951 # Check if we try to supply an empty value 10952 if test "x$TEE" = x; then 10953 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5 10954 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;} 10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 10956 $as_echo_n "checking for TEE... " >&6; } 10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10958 $as_echo "disabled" >&6; } 10959 else 10960 # Check if the provided tool contains a complete path. 10961 tool_specified="$TEE" 10962 tool_basename="${tool_specified##*/}" 10963 if test "x$tool_basename" = "x$tool_specified"; then 10964 # A command without a complete path is provided, search $PATH. 10965 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 10966 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 10967 # Extract the first word of "$tool_basename", so it can be a program name with args. 10968 set dummy $tool_basename; ac_word=$2 10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10970 $as_echo_n "checking for $ac_word... " >&6; } 10971 if ${ac_cv_path_TEE+:} false; then : 10972 $as_echo_n "(cached) " >&6 10973 else 10974 case $TEE in 10975 [\\/]* | ?:[\\/]*) 10976 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 10977 ;; 10978 *) 10979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10980 for as_dir in $PATH 10981 do 10982 IFS=$as_save_IFS 10983 test -z "$as_dir" && as_dir=. 10984 for ac_exec_ext in '' $ac_executable_extensions; do 10985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10986 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 10987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10988 break 2 10989 fi 10990 done 10991 done 10992 IFS=$as_save_IFS 10993 10994 ;; 10995 esac 10996 fi 10997 TEE=$ac_cv_path_TEE 10998 if test -n "$TEE"; then 10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11000 $as_echo "$TEE" >&6; } 11001 else 11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11003 $as_echo "no" >&6; } 11004 fi 11005 11006 11007 if test "x$TEE" = x; then 11008 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11009 fi 11010 else 11011 # Otherwise we believe it is a complete path. Use it as it is. 11012 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 11013 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11015 $as_echo_n "checking for TEE... " >&6; } 11016 if test ! -x "$tool_specified"; then 11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11018 $as_echo "not found" >&6; } 11019 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 11020 fi 11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11022 $as_echo "$tool_specified" >&6; } 11023 fi 11024 fi 11025 fi 11026 11027 fi 11028 11029 11030 11031 if test "x$TEE" = x; then 11032 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 11033 fi 11034 11035 11036 11037 11038 11039 # Publish this variable in the help. 11040 11041 11042 if [ -z "${TOUCH+x}" ]; then 11043 # The variable is not set by user, try to locate tool using the code snippet 11044 for ac_prog in touch 11045 do 11046 # Extract the first word of "$ac_prog", so it can be a program name with args. 11047 set dummy $ac_prog; ac_word=$2 11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11049 $as_echo_n "checking for $ac_word... " >&6; } 11050 if ${ac_cv_path_TOUCH+:} false; then : 11051 $as_echo_n "(cached) " >&6 11052 else 11053 case $TOUCH in 11054 [\\/]* | ?:[\\/]*) 11055 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11056 ;; 11057 *) 11058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11059 for as_dir in $PATH 11060 do 11061 IFS=$as_save_IFS 11062 test -z "$as_dir" && as_dir=. 11063 for ac_exec_ext in '' $ac_executable_extensions; do 11064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11065 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11067 break 2 11068 fi 11069 done 11070 done 11071 IFS=$as_save_IFS 11072 11073 ;; 11074 esac 11075 fi 11076 TOUCH=$ac_cv_path_TOUCH 11077 if test -n "$TOUCH"; then 11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11079 $as_echo "$TOUCH" >&6; } 11080 else 11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11082 $as_echo "no" >&6; } 11083 fi 11084 11085 11086 test -n "$TOUCH" && break 11087 done 11088 11089 else 11090 # The variable is set, but is it from the command line or the environment? 11091 11092 # Try to remove the string !TOUCH! from our list. 11093 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 11094 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11095 # If it failed, the variable was not from the command line. Ignore it, 11096 # but warn the user (except for BASH, which is always set by the calling BASH). 11097 if test "xTOUCH" != xBASH; then 11098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 11099 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 11100 fi 11101 # Try to locate tool using the code snippet 11102 for ac_prog in touch 11103 do 11104 # Extract the first word of "$ac_prog", so it can be a program name with args. 11105 set dummy $ac_prog; ac_word=$2 11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11107 $as_echo_n "checking for $ac_word... " >&6; } 11108 if ${ac_cv_path_TOUCH+:} false; then : 11109 $as_echo_n "(cached) " >&6 11110 else 11111 case $TOUCH in 11112 [\\/]* | ?:[\\/]*) 11113 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11114 ;; 11115 *) 11116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11117 for as_dir in $PATH 11118 do 11119 IFS=$as_save_IFS 11120 test -z "$as_dir" && as_dir=. 11121 for ac_exec_ext in '' $ac_executable_extensions; do 11122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11123 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11125 break 2 11126 fi 11127 done 11128 done 11129 IFS=$as_save_IFS 11130 11131 ;; 11132 esac 11133 fi 11134 TOUCH=$ac_cv_path_TOUCH 11135 if test -n "$TOUCH"; then 11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11137 $as_echo "$TOUCH" >&6; } 11138 else 11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11140 $as_echo "no" >&6; } 11141 fi 11142 11143 11144 test -n "$TOUCH" && break 11145 done 11146 11147 else 11148 # If it succeeded, then it was overridden by the user. We will use it 11149 # for the tool. 11150 11151 # First remove it from the list of overridden variables, so we can test 11152 # for unknown variables in the end. 11153 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11154 11155 # Check if we try to supply an empty value 11156 if test "x$TOUCH" = x; then 11157 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5 11158 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;} 11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11160 $as_echo_n "checking for TOUCH... " >&6; } 11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11162 $as_echo "disabled" >&6; } 11163 else 11164 # Check if the provided tool contains a complete path. 11165 tool_specified="$TOUCH" 11166 tool_basename="${tool_specified##*/}" 11167 if test "x$tool_basename" = "x$tool_specified"; then 11168 # A command without a complete path is provided, search $PATH. 11169 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 11170 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 11171 # Extract the first word of "$tool_basename", so it can be a program name with args. 11172 set dummy $tool_basename; ac_word=$2 11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11174 $as_echo_n "checking for $ac_word... " >&6; } 11175 if ${ac_cv_path_TOUCH+:} false; then : 11176 $as_echo_n "(cached) " >&6 11177 else 11178 case $TOUCH in 11179 [\\/]* | ?:[\\/]*) 11180 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11181 ;; 11182 *) 11183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11184 for as_dir in $PATH 11185 do 11186 IFS=$as_save_IFS 11187 test -z "$as_dir" && as_dir=. 11188 for ac_exec_ext in '' $ac_executable_extensions; do 11189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11190 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11192 break 2 11193 fi 11194 done 11195 done 11196 IFS=$as_save_IFS 11197 11198 ;; 11199 esac 11200 fi 11201 TOUCH=$ac_cv_path_TOUCH 11202 if test -n "$TOUCH"; then 11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11204 $as_echo "$TOUCH" >&6; } 11205 else 11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11207 $as_echo "no" >&6; } 11208 fi 11209 11210 11211 if test "x$TOUCH" = x; then 11212 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11213 fi 11214 else 11215 # Otherwise we believe it is a complete path. Use it as it is. 11216 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 11217 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11219 $as_echo_n "checking for TOUCH... " >&6; } 11220 if test ! -x "$tool_specified"; then 11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11222 $as_echo "not found" >&6; } 11223 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 11224 fi 11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11226 $as_echo "$tool_specified" >&6; } 11227 fi 11228 fi 11229 fi 11230 11231 fi 11232 11233 11234 11235 if test "x$TOUCH" = x; then 11236 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 11237 fi 11238 11239 11240 11241 11242 11243 # Publish this variable in the help. 11244 11245 11246 if [ -z "${TR+x}" ]; then 11247 # The variable is not set by user, try to locate tool using the code snippet 11248 for ac_prog in tr 11249 do 11250 # Extract the first word of "$ac_prog", so it can be a program name with args. 11251 set dummy $ac_prog; ac_word=$2 11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11253 $as_echo_n "checking for $ac_word... " >&6; } 11254 if ${ac_cv_path_TR+:} false; then : 11255 $as_echo_n "(cached) " >&6 11256 else 11257 case $TR in 11258 [\\/]* | ?:[\\/]*) 11259 ac_cv_path_TR="$TR" # Let the user override the test with a path. 11260 ;; 11261 *) 11262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11263 for as_dir in $PATH 11264 do 11265 IFS=$as_save_IFS 11266 test -z "$as_dir" && as_dir=. 11267 for ac_exec_ext in '' $ac_executable_extensions; do 11268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11269 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 11270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11271 break 2 11272 fi 11273 done 11274 done 11275 IFS=$as_save_IFS 11276 11277 ;; 11278 esac 11279 fi 11280 TR=$ac_cv_path_TR 11281 if test -n "$TR"; then 11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 11283 $as_echo "$TR" >&6; } 11284 else 11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11286 $as_echo "no" >&6; } 11287 fi 11288 11289 11290 test -n "$TR" && break 11291 done 11292 11293 else 11294 # The variable is set, but is it from the command line or the environment? 11295 11296 # Try to remove the string !TR! from our list. 11297 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 11298 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11299 # If it failed, the variable was not from the command line. Ignore it, 11300 # but warn the user (except for BASH, which is always set by the calling BASH). 11301 if test "xTR" != xBASH; then 11302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 11303 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 11304 fi 11305 # Try to locate tool using the code snippet 11306 for ac_prog in tr 11307 do 11308 # Extract the first word of "$ac_prog", so it can be a program name with args. 11309 set dummy $ac_prog; ac_word=$2 11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11311 $as_echo_n "checking for $ac_word... " >&6; } 11312 if ${ac_cv_path_TR+:} false; then : 11313 $as_echo_n "(cached) " >&6 11314 else 11315 case $TR in 11316 [\\/]* | ?:[\\/]*) 11317 ac_cv_path_TR="$TR" # Let the user override the test with a path. 11318 ;; 11319 *) 11320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11321 for as_dir in $PATH 11322 do 11323 IFS=$as_save_IFS 11324 test -z "$as_dir" && as_dir=. 11325 for ac_exec_ext in '' $ac_executable_extensions; do 11326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11327 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 11328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11329 break 2 11330 fi 11331 done 11332 done 11333 IFS=$as_save_IFS 11334 11335 ;; 11336 esac 11337 fi 11338 TR=$ac_cv_path_TR 11339 if test -n "$TR"; then 11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 11341 $as_echo "$TR" >&6; } 11342 else 11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11344 $as_echo "no" >&6; } 11345 fi 11346 11347 11348 test -n "$TR" && break 11349 done 11350 11351 else 11352 # If it succeeded, then it was overridden by the user. We will use it 11353 # for the tool. 11354 11355 # First remove it from the list of overridden variables, so we can test 11356 # for unknown variables in the end. 11357 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11358 11359 # Check if we try to supply an empty value 11360 if test "x$TR" = x; then 11361 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5 11362 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;} 11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 11364 $as_echo_n "checking for TR... " >&6; } 11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11366 $as_echo "disabled" >&6; } 11367 else 11368 # Check if the provided tool contains a complete path. 11369 tool_specified="$TR" 11370 tool_basename="${tool_specified##*/}" 11371 if test "x$tool_basename" = "x$tool_specified"; then 11372 # A command without a complete path is provided, search $PATH. 11373 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 11374 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 11375 # Extract the first word of "$tool_basename", so it can be a program name with args. 11376 set dummy $tool_basename; ac_word=$2 11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11378 $as_echo_n "checking for $ac_word... " >&6; } 11379 if ${ac_cv_path_TR+:} false; then : 11380 $as_echo_n "(cached) " >&6 11381 else 11382 case $TR in 11383 [\\/]* | ?:[\\/]*) 11384 ac_cv_path_TR="$TR" # Let the user override the test with a path. 11385 ;; 11386 *) 11387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11388 for as_dir in $PATH 11389 do 11390 IFS=$as_save_IFS 11391 test -z "$as_dir" && as_dir=. 11392 for ac_exec_ext in '' $ac_executable_extensions; do 11393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11394 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 11395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11396 break 2 11397 fi 11398 done 11399 done 11400 IFS=$as_save_IFS 11401 11402 ;; 11403 esac 11404 fi 11405 TR=$ac_cv_path_TR 11406 if test -n "$TR"; then 11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 11408 $as_echo "$TR" >&6; } 11409 else 11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11411 $as_echo "no" >&6; } 11412 fi 11413 11414 11415 if test "x$TR" = x; then 11416 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11417 fi 11418 else 11419 # Otherwise we believe it is a complete path. Use it as it is. 11420 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 11421 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 11423 $as_echo_n "checking for TR... " >&6; } 11424 if test ! -x "$tool_specified"; then 11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11426 $as_echo "not found" >&6; } 11427 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 11428 fi 11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11430 $as_echo "$tool_specified" >&6; } 11431 fi 11432 fi 11433 fi 11434 11435 fi 11436 11437 11438 11439 if test "x$TR" = x; then 11440 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 11441 fi 11442 11443 11444 11445 11446 11447 # Publish this variable in the help. 11448 11449 11450 if [ -z "${UNAME+x}" ]; then 11451 # The variable is not set by user, try to locate tool using the code snippet 11452 for ac_prog in uname 11453 do 11454 # Extract the first word of "$ac_prog", so it can be a program name with args. 11455 set dummy $ac_prog; ac_word=$2 11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11457 $as_echo_n "checking for $ac_word... " >&6; } 11458 if ${ac_cv_path_UNAME+:} false; then : 11459 $as_echo_n "(cached) " >&6 11460 else 11461 case $UNAME in 11462 [\\/]* | ?:[\\/]*) 11463 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 11464 ;; 11465 *) 11466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11467 for as_dir in $PATH 11468 do 11469 IFS=$as_save_IFS 11470 test -z "$as_dir" && as_dir=. 11471 for ac_exec_ext in '' $ac_executable_extensions; do 11472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11473 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 11474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11475 break 2 11476 fi 11477 done 11478 done 11479 IFS=$as_save_IFS 11480 11481 ;; 11482 esac 11483 fi 11484 UNAME=$ac_cv_path_UNAME 11485 if test -n "$UNAME"; then 11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 11487 $as_echo "$UNAME" >&6; } 11488 else 11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11490 $as_echo "no" >&6; } 11491 fi 11492 11493 11494 test -n "$UNAME" && break 11495 done 11496 11497 else 11498 # The variable is set, but is it from the command line or the environment? 11499 11500 # Try to remove the string !UNAME! from our list. 11501 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 11502 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11503 # If it failed, the variable was not from the command line. Ignore it, 11504 # but warn the user (except for BASH, which is always set by the calling BASH). 11505 if test "xUNAME" != xBASH; then 11506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 11507 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 11508 fi 11509 # Try to locate tool using the code snippet 11510 for ac_prog in uname 11511 do 11512 # Extract the first word of "$ac_prog", so it can be a program name with args. 11513 set dummy $ac_prog; ac_word=$2 11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11515 $as_echo_n "checking for $ac_word... " >&6; } 11516 if ${ac_cv_path_UNAME+:} false; then : 11517 $as_echo_n "(cached) " >&6 11518 else 11519 case $UNAME in 11520 [\\/]* | ?:[\\/]*) 11521 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 11522 ;; 11523 *) 11524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11525 for as_dir in $PATH 11526 do 11527 IFS=$as_save_IFS 11528 test -z "$as_dir" && as_dir=. 11529 for ac_exec_ext in '' $ac_executable_extensions; do 11530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11531 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 11532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11533 break 2 11534 fi 11535 done 11536 done 11537 IFS=$as_save_IFS 11538 11539 ;; 11540 esac 11541 fi 11542 UNAME=$ac_cv_path_UNAME 11543 if test -n "$UNAME"; then 11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 11545 $as_echo "$UNAME" >&6; } 11546 else 11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11548 $as_echo "no" >&6; } 11549 fi 11550 11551 11552 test -n "$UNAME" && break 11553 done 11554 11555 else 11556 # If it succeeded, then it was overridden by the user. We will use it 11557 # for the tool. 11558 11559 # First remove it from the list of overridden variables, so we can test 11560 # for unknown variables in the end. 11561 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11562 11563 # Check if we try to supply an empty value 11564 if test "x$UNAME" = x; then 11565 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5 11566 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;} 11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 11568 $as_echo_n "checking for UNAME... " >&6; } 11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11570 $as_echo "disabled" >&6; } 11571 else 11572 # Check if the provided tool contains a complete path. 11573 tool_specified="$UNAME" 11574 tool_basename="${tool_specified##*/}" 11575 if test "x$tool_basename" = "x$tool_specified"; then 11576 # A command without a complete path is provided, search $PATH. 11577 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 11578 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 11579 # Extract the first word of "$tool_basename", so it can be a program name with args. 11580 set dummy $tool_basename; ac_word=$2 11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11582 $as_echo_n "checking for $ac_word... " >&6; } 11583 if ${ac_cv_path_UNAME+:} false; then : 11584 $as_echo_n "(cached) " >&6 11585 else 11586 case $UNAME in 11587 [\\/]* | ?:[\\/]*) 11588 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 11589 ;; 11590 *) 11591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11592 for as_dir in $PATH 11593 do 11594 IFS=$as_save_IFS 11595 test -z "$as_dir" && as_dir=. 11596 for ac_exec_ext in '' $ac_executable_extensions; do 11597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11598 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 11599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11600 break 2 11601 fi 11602 done 11603 done 11604 IFS=$as_save_IFS 11605 11606 ;; 11607 esac 11608 fi 11609 UNAME=$ac_cv_path_UNAME 11610 if test -n "$UNAME"; then 11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 11612 $as_echo "$UNAME" >&6; } 11613 else 11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11615 $as_echo "no" >&6; } 11616 fi 11617 11618 11619 if test "x$UNAME" = x; then 11620 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11621 fi 11622 else 11623 # Otherwise we believe it is a complete path. Use it as it is. 11624 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 11625 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 11627 $as_echo_n "checking for UNAME... " >&6; } 11628 if test ! -x "$tool_specified"; then 11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11630 $as_echo "not found" >&6; } 11631 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 11632 fi 11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11634 $as_echo "$tool_specified" >&6; } 11635 fi 11636 fi 11637 fi 11638 11639 fi 11640 11641 11642 11643 if test "x$UNAME" = x; then 11644 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 11645 fi 11646 11647 11648 11649 11650 11651 # Publish this variable in the help. 11652 11653 11654 if [ -z "${UNIQ+x}" ]; then 11655 # The variable is not set by user, try to locate tool using the code snippet 11656 for ac_prog in uniq 11657 do 11658 # Extract the first word of "$ac_prog", so it can be a program name with args. 11659 set dummy $ac_prog; ac_word=$2 11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11661 $as_echo_n "checking for $ac_word... " >&6; } 11662 if ${ac_cv_path_UNIQ+:} false; then : 11663 $as_echo_n "(cached) " >&6 11664 else 11665 case $UNIQ in 11666 [\\/]* | ?:[\\/]*) 11667 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 11668 ;; 11669 *) 11670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11671 for as_dir in $PATH 11672 do 11673 IFS=$as_save_IFS 11674 test -z "$as_dir" && as_dir=. 11675 for ac_exec_ext in '' $ac_executable_extensions; do 11676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11677 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 11678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11679 break 2 11680 fi 11681 done 11682 done 11683 IFS=$as_save_IFS 11684 11685 ;; 11686 esac 11687 fi 11688 UNIQ=$ac_cv_path_UNIQ 11689 if test -n "$UNIQ"; then 11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 11691 $as_echo "$UNIQ" >&6; } 11692 else 11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11694 $as_echo "no" >&6; } 11695 fi 11696 11697 11698 test -n "$UNIQ" && break 11699 done 11700 11701 else 11702 # The variable is set, but is it from the command line or the environment? 11703 11704 # Try to remove the string !UNIQ! from our list. 11705 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 11706 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11707 # If it failed, the variable was not from the command line. Ignore it, 11708 # but warn the user (except for BASH, which is always set by the calling BASH). 11709 if test "xUNIQ" != xBASH; then 11710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 11711 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 11712 fi 11713 # Try to locate tool using the code snippet 11714 for ac_prog in uniq 11715 do 11716 # Extract the first word of "$ac_prog", so it can be a program name with args. 11717 set dummy $ac_prog; ac_word=$2 11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11719 $as_echo_n "checking for $ac_word... " >&6; } 11720 if ${ac_cv_path_UNIQ+:} false; then : 11721 $as_echo_n "(cached) " >&6 11722 else 11723 case $UNIQ in 11724 [\\/]* | ?:[\\/]*) 11725 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 11726 ;; 11727 *) 11728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11729 for as_dir in $PATH 11730 do 11731 IFS=$as_save_IFS 11732 test -z "$as_dir" && as_dir=. 11733 for ac_exec_ext in '' $ac_executable_extensions; do 11734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11735 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 11736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11737 break 2 11738 fi 11739 done 11740 done 11741 IFS=$as_save_IFS 11742 11743 ;; 11744 esac 11745 fi 11746 UNIQ=$ac_cv_path_UNIQ 11747 if test -n "$UNIQ"; then 11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 11749 $as_echo "$UNIQ" >&6; } 11750 else 11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11752 $as_echo "no" >&6; } 11753 fi 11754 11755 11756 test -n "$UNIQ" && break 11757 done 11758 11759 else 11760 # If it succeeded, then it was overridden by the user. We will use it 11761 # for the tool. 11762 11763 # First remove it from the list of overridden variables, so we can test 11764 # for unknown variables in the end. 11765 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11766 11767 # Check if we try to supply an empty value 11768 if test "x$UNIQ" = x; then 11769 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5 11770 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;} 11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 11772 $as_echo_n "checking for UNIQ... " >&6; } 11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11774 $as_echo "disabled" >&6; } 11775 else 11776 # Check if the provided tool contains a complete path. 11777 tool_specified="$UNIQ" 11778 tool_basename="${tool_specified##*/}" 11779 if test "x$tool_basename" = "x$tool_specified"; then 11780 # A command without a complete path is provided, search $PATH. 11781 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 11782 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 11783 # Extract the first word of "$tool_basename", so it can be a program name with args. 11784 set dummy $tool_basename; ac_word=$2 11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11786 $as_echo_n "checking for $ac_word... " >&6; } 11787 if ${ac_cv_path_UNIQ+:} false; then : 11788 $as_echo_n "(cached) " >&6 11789 else 11790 case $UNIQ in 11791 [\\/]* | ?:[\\/]*) 11792 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 11793 ;; 11794 *) 11795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11796 for as_dir in $PATH 11797 do 11798 IFS=$as_save_IFS 11799 test -z "$as_dir" && as_dir=. 11800 for ac_exec_ext in '' $ac_executable_extensions; do 11801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11802 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 11803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11804 break 2 11805 fi 11806 done 11807 done 11808 IFS=$as_save_IFS 11809 11810 ;; 11811 esac 11812 fi 11813 UNIQ=$ac_cv_path_UNIQ 11814 if test -n "$UNIQ"; then 11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 11816 $as_echo "$UNIQ" >&6; } 11817 else 11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11819 $as_echo "no" >&6; } 11820 fi 11821 11822 11823 if test "x$UNIQ" = x; then 11824 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11825 fi 11826 else 11827 # Otherwise we believe it is a complete path. Use it as it is. 11828 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 11829 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 11831 $as_echo_n "checking for UNIQ... " >&6; } 11832 if test ! -x "$tool_specified"; then 11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11834 $as_echo "not found" >&6; } 11835 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 11836 fi 11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11838 $as_echo "$tool_specified" >&6; } 11839 fi 11840 fi 11841 fi 11842 11843 fi 11844 11845 11846 11847 if test "x$UNIQ" = x; then 11848 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 11849 fi 11850 11851 11852 11853 11854 11855 # Publish this variable in the help. 11856 11857 11858 if [ -z "${WC+x}" ]; then 11859 # The variable is not set by user, try to locate tool using the code snippet 11860 for ac_prog in wc 11861 do 11862 # Extract the first word of "$ac_prog", so it can be a program name with args. 11863 set dummy $ac_prog; ac_word=$2 11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11865 $as_echo_n "checking for $ac_word... " >&6; } 11866 if ${ac_cv_path_WC+:} false; then : 11867 $as_echo_n "(cached) " >&6 11868 else 11869 case $WC in 11870 [\\/]* | ?:[\\/]*) 11871 ac_cv_path_WC="$WC" # Let the user override the test with a path. 11872 ;; 11873 *) 11874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11875 for as_dir in $PATH 11876 do 11877 IFS=$as_save_IFS 11878 test -z "$as_dir" && as_dir=. 11879 for ac_exec_ext in '' $ac_executable_extensions; do 11880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11881 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 11882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11883 break 2 11884 fi 11885 done 11886 done 11887 IFS=$as_save_IFS 11888 11889 ;; 11890 esac 11891 fi 11892 WC=$ac_cv_path_WC 11893 if test -n "$WC"; then 11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 11895 $as_echo "$WC" >&6; } 11896 else 11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11898 $as_echo "no" >&6; } 11899 fi 11900 11901 11902 test -n "$WC" && break 11903 done 11904 11905 else 11906 # The variable is set, but is it from the command line or the environment? 11907 11908 # Try to remove the string !WC! from our list. 11909 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 11910 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11911 # If it failed, the variable was not from the command line. Ignore it, 11912 # but warn the user (except for BASH, which is always set by the calling BASH). 11913 if test "xWC" != xBASH; then 11914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 11915 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 11916 fi 11917 # Try to locate tool using the code snippet 11918 for ac_prog in wc 11919 do 11920 # Extract the first word of "$ac_prog", so it can be a program name with args. 11921 set dummy $ac_prog; ac_word=$2 11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11923 $as_echo_n "checking for $ac_word... " >&6; } 11924 if ${ac_cv_path_WC+:} false; then : 11925 $as_echo_n "(cached) " >&6 11926 else 11927 case $WC in 11928 [\\/]* | ?:[\\/]*) 11929 ac_cv_path_WC="$WC" # Let the user override the test with a path. 11930 ;; 11931 *) 11932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11933 for as_dir in $PATH 11934 do 11935 IFS=$as_save_IFS 11936 test -z "$as_dir" && as_dir=. 11937 for ac_exec_ext in '' $ac_executable_extensions; do 11938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11939 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 11940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11941 break 2 11942 fi 11943 done 11944 done 11945 IFS=$as_save_IFS 11946 11947 ;; 11948 esac 11949 fi 11950 WC=$ac_cv_path_WC 11951 if test -n "$WC"; then 11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 11953 $as_echo "$WC" >&6; } 11954 else 11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11956 $as_echo "no" >&6; } 11957 fi 11958 11959 11960 test -n "$WC" && break 11961 done 11962 11963 else 11964 # If it succeeded, then it was overridden by the user. We will use it 11965 # for the tool. 11966 11967 # First remove it from the list of overridden variables, so we can test 11968 # for unknown variables in the end. 11969 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11970 11971 # Check if we try to supply an empty value 11972 if test "x$WC" = x; then 11973 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5 11974 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;} 11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 11976 $as_echo_n "checking for WC... " >&6; } 11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11978 $as_echo "disabled" >&6; } 11979 else 11980 # Check if the provided tool contains a complete path. 11981 tool_specified="$WC" 11982 tool_basename="${tool_specified##*/}" 11983 if test "x$tool_basename" = "x$tool_specified"; then 11984 # A command without a complete path is provided, search $PATH. 11985 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 11986 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 11987 # Extract the first word of "$tool_basename", so it can be a program name with args. 11988 set dummy $tool_basename; ac_word=$2 11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11990 $as_echo_n "checking for $ac_word... " >&6; } 11991 if ${ac_cv_path_WC+:} false; then : 11992 $as_echo_n "(cached) " >&6 11993 else 11994 case $WC in 11995 [\\/]* | ?:[\\/]*) 11996 ac_cv_path_WC="$WC" # Let the user override the test with a path. 11997 ;; 11998 *) 11999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12000 for as_dir in $PATH 12001 do 12002 IFS=$as_save_IFS 12003 test -z "$as_dir" && as_dir=. 12004 for ac_exec_ext in '' $ac_executable_extensions; do 12005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12006 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12008 break 2 12009 fi 12010 done 12011 done 12012 IFS=$as_save_IFS 12013 12014 ;; 12015 esac 12016 fi 12017 WC=$ac_cv_path_WC 12018 if test -n "$WC"; then 12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12020 $as_echo "$WC" >&6; } 12021 else 12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12023 $as_echo "no" >&6; } 12024 fi 12025 12026 12027 if test "x$WC" = x; then 12028 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12029 fi 12030 else 12031 # Otherwise we believe it is a complete path. Use it as it is. 12032 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 12033 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12035 $as_echo_n "checking for WC... " >&6; } 12036 if test ! -x "$tool_specified"; then 12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12038 $as_echo "not found" >&6; } 12039 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 12040 fi 12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12042 $as_echo "$tool_specified" >&6; } 12043 fi 12044 fi 12045 fi 12046 12047 fi 12048 12049 12050 12051 if test "x$WC" = x; then 12052 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 12053 fi 12054 12055 12056 12057 12058 12059 # Publish this variable in the help. 12060 12061 12062 if [ -z "${WHICH+x}" ]; then 12063 # The variable is not set by user, try to locate tool using the code snippet 12064 for ac_prog in which 12065 do 12066 # Extract the first word of "$ac_prog", so it can be a program name with args. 12067 set dummy $ac_prog; ac_word=$2 12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12069 $as_echo_n "checking for $ac_word... " >&6; } 12070 if ${ac_cv_path_WHICH+:} false; then : 12071 $as_echo_n "(cached) " >&6 12072 else 12073 case $WHICH in 12074 [\\/]* | ?:[\\/]*) 12075 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12076 ;; 12077 *) 12078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12079 for as_dir in $PATH 12080 do 12081 IFS=$as_save_IFS 12082 test -z "$as_dir" && as_dir=. 12083 for ac_exec_ext in '' $ac_executable_extensions; do 12084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12085 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12087 break 2 12088 fi 12089 done 12090 done 12091 IFS=$as_save_IFS 12092 12093 ;; 12094 esac 12095 fi 12096 WHICH=$ac_cv_path_WHICH 12097 if test -n "$WHICH"; then 12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12099 $as_echo "$WHICH" >&6; } 12100 else 12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12102 $as_echo "no" >&6; } 12103 fi 12104 12105 12106 test -n "$WHICH" && break 12107 done 12108 12109 else 12110 # The variable is set, but is it from the command line or the environment? 12111 12112 # Try to remove the string !WHICH! from our list. 12113 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 12114 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12115 # If it failed, the variable was not from the command line. Ignore it, 12116 # but warn the user (except for BASH, which is always set by the calling BASH). 12117 if test "xWHICH" != xBASH; then 12118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 12119 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 12120 fi 12121 # Try to locate tool using the code snippet 12122 for ac_prog in which 12123 do 12124 # Extract the first word of "$ac_prog", so it can be a program name with args. 12125 set dummy $ac_prog; ac_word=$2 12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12127 $as_echo_n "checking for $ac_word... " >&6; } 12128 if ${ac_cv_path_WHICH+:} false; then : 12129 $as_echo_n "(cached) " >&6 12130 else 12131 case $WHICH in 12132 [\\/]* | ?:[\\/]*) 12133 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12134 ;; 12135 *) 12136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12137 for as_dir in $PATH 12138 do 12139 IFS=$as_save_IFS 12140 test -z "$as_dir" && as_dir=. 12141 for ac_exec_ext in '' $ac_executable_extensions; do 12142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12143 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12145 break 2 12146 fi 12147 done 12148 done 12149 IFS=$as_save_IFS 12150 12151 ;; 12152 esac 12153 fi 12154 WHICH=$ac_cv_path_WHICH 12155 if test -n "$WHICH"; then 12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12157 $as_echo "$WHICH" >&6; } 12158 else 12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12160 $as_echo "no" >&6; } 12161 fi 12162 12163 12164 test -n "$WHICH" && break 12165 done 12166 12167 else 12168 # If it succeeded, then it was overridden by the user. We will use it 12169 # for the tool. 12170 12171 # First remove it from the list of overridden variables, so we can test 12172 # for unknown variables in the end. 12173 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12174 12175 # Check if we try to supply an empty value 12176 if test "x$WHICH" = x; then 12177 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5 12178 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;} 12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12180 $as_echo_n "checking for WHICH... " >&6; } 12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12182 $as_echo "disabled" >&6; } 12183 else 12184 # Check if the provided tool contains a complete path. 12185 tool_specified="$WHICH" 12186 tool_basename="${tool_specified##*/}" 12187 if test "x$tool_basename" = "x$tool_specified"; then 12188 # A command without a complete path is provided, search $PATH. 12189 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 12190 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 12191 # Extract the first word of "$tool_basename", so it can be a program name with args. 12192 set dummy $tool_basename; ac_word=$2 12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12194 $as_echo_n "checking for $ac_word... " >&6; } 12195 if ${ac_cv_path_WHICH+:} false; then : 12196 $as_echo_n "(cached) " >&6 12197 else 12198 case $WHICH in 12199 [\\/]* | ?:[\\/]*) 12200 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12201 ;; 12202 *) 12203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12204 for as_dir in $PATH 12205 do 12206 IFS=$as_save_IFS 12207 test -z "$as_dir" && as_dir=. 12208 for ac_exec_ext in '' $ac_executable_extensions; do 12209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12210 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12212 break 2 12213 fi 12214 done 12215 done 12216 IFS=$as_save_IFS 12217 12218 ;; 12219 esac 12220 fi 12221 WHICH=$ac_cv_path_WHICH 12222 if test -n "$WHICH"; then 12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12224 $as_echo "$WHICH" >&6; } 12225 else 12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12227 $as_echo "no" >&6; } 12228 fi 12229 12230 12231 if test "x$WHICH" = x; then 12232 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12233 fi 12234 else 12235 # Otherwise we believe it is a complete path. Use it as it is. 12236 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 12237 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12239 $as_echo_n "checking for WHICH... " >&6; } 12240 if test ! -x "$tool_specified"; then 12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12242 $as_echo "not found" >&6; } 12243 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 12244 fi 12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12246 $as_echo "$tool_specified" >&6; } 12247 fi 12248 fi 12249 fi 12250 12251 fi 12252 12253 12254 12255 if test "x$WHICH" = x; then 12256 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 12257 fi 12258 12259 12260 12261 12262 12263 # Publish this variable in the help. 12264 12265 12266 if [ -z "${XARGS+x}" ]; then 12267 # The variable is not set by user, try to locate tool using the code snippet 12268 for ac_prog in xargs 12269 do 12270 # Extract the first word of "$ac_prog", so it can be a program name with args. 12271 set dummy $ac_prog; ac_word=$2 12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12273 $as_echo_n "checking for $ac_word... " >&6; } 12274 if ${ac_cv_path_XARGS+:} false; then : 12275 $as_echo_n "(cached) " >&6 12276 else 12277 case $XARGS in 12278 [\\/]* | ?:[\\/]*) 12279 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 12280 ;; 12281 *) 12282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12283 for as_dir in $PATH 12284 do 12285 IFS=$as_save_IFS 12286 test -z "$as_dir" && as_dir=. 12287 for ac_exec_ext in '' $ac_executable_extensions; do 12288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12289 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 12290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12291 break 2 12292 fi 12293 done 12294 done 12295 IFS=$as_save_IFS 12296 12297 ;; 12298 esac 12299 fi 12300 XARGS=$ac_cv_path_XARGS 12301 if test -n "$XARGS"; then 12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 12303 $as_echo "$XARGS" >&6; } 12304 else 12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12306 $as_echo "no" >&6; } 12307 fi 12308 12309 12310 test -n "$XARGS" && break 12311 done 12312 12313 else 12314 # The variable is set, but is it from the command line or the environment? 12315 12316 # Try to remove the string !XARGS! from our list. 12317 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 12318 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12319 # If it failed, the variable was not from the command line. Ignore it, 12320 # but warn the user (except for BASH, which is always set by the calling BASH). 12321 if test "xXARGS" != xBASH; then 12322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 12323 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 12324 fi 12325 # Try to locate tool using the code snippet 12326 for ac_prog in xargs 12327 do 12328 # Extract the first word of "$ac_prog", so it can be a program name with args. 12329 set dummy $ac_prog; ac_word=$2 12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12331 $as_echo_n "checking for $ac_word... " >&6; } 12332 if ${ac_cv_path_XARGS+:} false; then : 12333 $as_echo_n "(cached) " >&6 12334 else 12335 case $XARGS in 12336 [\\/]* | ?:[\\/]*) 12337 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 12338 ;; 12339 *) 12340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12341 for as_dir in $PATH 12342 do 12343 IFS=$as_save_IFS 12344 test -z "$as_dir" && as_dir=. 12345 for ac_exec_ext in '' $ac_executable_extensions; do 12346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12347 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 12348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12349 break 2 12350 fi 12351 done 12352 done 12353 IFS=$as_save_IFS 12354 12355 ;; 12356 esac 12357 fi 12358 XARGS=$ac_cv_path_XARGS 12359 if test -n "$XARGS"; then 12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 12361 $as_echo "$XARGS" >&6; } 12362 else 12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12364 $as_echo "no" >&6; } 12365 fi 12366 12367 12368 test -n "$XARGS" && break 12369 done 12370 12371 else 12372 # If it succeeded, then it was overridden by the user. We will use it 12373 # for the tool. 12374 12375 # First remove it from the list of overridden variables, so we can test 12376 # for unknown variables in the end. 12377 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12378 12379 # Check if we try to supply an empty value 12380 if test "x$XARGS" = x; then 12381 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5 12382 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;} 12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 12384 $as_echo_n "checking for XARGS... " >&6; } 12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12386 $as_echo "disabled" >&6; } 12387 else 12388 # Check if the provided tool contains a complete path. 12389 tool_specified="$XARGS" 12390 tool_basename="${tool_specified##*/}" 12391 if test "x$tool_basename" = "x$tool_specified"; then 12392 # A command without a complete path is provided, search $PATH. 12393 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 12394 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 12395 # Extract the first word of "$tool_basename", so it can be a program name with args. 12396 set dummy $tool_basename; ac_word=$2 12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12398 $as_echo_n "checking for $ac_word... " >&6; } 12399 if ${ac_cv_path_XARGS+:} false; then : 12400 $as_echo_n "(cached) " >&6 12401 else 12402 case $XARGS in 12403 [\\/]* | ?:[\\/]*) 12404 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 12405 ;; 12406 *) 12407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12408 for as_dir in $PATH 12409 do 12410 IFS=$as_save_IFS 12411 test -z "$as_dir" && as_dir=. 12412 for ac_exec_ext in '' $ac_executable_extensions; do 12413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12414 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 12415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12416 break 2 12417 fi 12418 done 12419 done 12420 IFS=$as_save_IFS 12421 12422 ;; 12423 esac 12424 fi 12425 XARGS=$ac_cv_path_XARGS 12426 if test -n "$XARGS"; then 12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 12428 $as_echo "$XARGS" >&6; } 12429 else 12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12431 $as_echo "no" >&6; } 12432 fi 12433 12434 12435 if test "x$XARGS" = x; then 12436 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12437 fi 12438 else 12439 # Otherwise we believe it is a complete path. Use it as it is. 12440 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 12441 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 12443 $as_echo_n "checking for XARGS... " >&6; } 12444 if test ! -x "$tool_specified"; then 12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12446 $as_echo "not found" >&6; } 12447 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 12448 fi 12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12450 $as_echo "$tool_specified" >&6; } 12451 fi 12452 fi 12453 fi 12454 12455 fi 12456 12457 12458 12459 if test "x$XARGS" = x; then 12460 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 12461 fi 12462 12463 12464 12465 # Then required tools that require some special treatment. 12466 12467 12468 # Publish this variable in the help. 12469 12470 12471 if [ -z "${AWK+x}" ]; then 12472 # The variable is not set by user, try to locate tool using the code snippet 12473 for ac_prog in gawk mawk nawk awk 12474 do 12475 # Extract the first word of "$ac_prog", so it can be a program name with args. 12476 set dummy $ac_prog; ac_word=$2 12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12478 $as_echo_n "checking for $ac_word... " >&6; } 12479 if ${ac_cv_prog_AWK+:} false; then : 12480 $as_echo_n "(cached) " >&6 12481 else 12482 if test -n "$AWK"; then 12483 ac_cv_prog_AWK="$AWK" # Let the user override the test. 12484 else 12485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12486 for as_dir in $PATH 12487 do 12488 IFS=$as_save_IFS 12489 test -z "$as_dir" && as_dir=. 12490 for ac_exec_ext in '' $ac_executable_extensions; do 12491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12492 ac_cv_prog_AWK="$ac_prog" 12493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12494 break 2 12495 fi 12496 done 12497 done 12498 IFS=$as_save_IFS 12499 12500 fi 12501 fi 12502 AWK=$ac_cv_prog_AWK 12503 if test -n "$AWK"; then 12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 12505 $as_echo "$AWK" >&6; } 12506 else 12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12508 $as_echo "no" >&6; } 12509 fi 12510 12511 12512 test -n "$AWK" && break 12513 done 12514 12515 else 12516 # The variable is set, but is it from the command line or the environment? 12517 12518 # Try to remove the string !AWK! from our list. 12519 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 12520 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12521 # If it failed, the variable was not from the command line. Ignore it, 12522 # but warn the user (except for BASH, which is always set by the calling BASH). 12523 if test "xAWK" != xBASH; then 12524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 12525 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 12526 fi 12527 # Try to locate tool using the code snippet 12528 for ac_prog in gawk mawk nawk awk 12529 do 12530 # Extract the first word of "$ac_prog", so it can be a program name with args. 12531 set dummy $ac_prog; ac_word=$2 12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12533 $as_echo_n "checking for $ac_word... " >&6; } 12534 if ${ac_cv_prog_AWK+:} false; then : 12535 $as_echo_n "(cached) " >&6 12536 else 12537 if test -n "$AWK"; then 12538 ac_cv_prog_AWK="$AWK" # Let the user override the test. 12539 else 12540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12541 for as_dir in $PATH 12542 do 12543 IFS=$as_save_IFS 12544 test -z "$as_dir" && as_dir=. 12545 for ac_exec_ext in '' $ac_executable_extensions; do 12546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12547 ac_cv_prog_AWK="$ac_prog" 12548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12549 break 2 12550 fi 12551 done 12552 done 12553 IFS=$as_save_IFS 12554 12555 fi 12556 fi 12557 AWK=$ac_cv_prog_AWK 12558 if test -n "$AWK"; then 12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 12560 $as_echo "$AWK" >&6; } 12561 else 12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12563 $as_echo "no" >&6; } 12564 fi 12565 12566 12567 test -n "$AWK" && break 12568 done 12569 12570 else 12571 # If it succeeded, then it was overridden by the user. We will use it 12572 # for the tool. 12573 12574 # First remove it from the list of overridden variables, so we can test 12575 # for unknown variables in the end. 12576 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12577 12578 # Check if we try to supply an empty value 12579 if test "x$AWK" = x; then 12580 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5 12581 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;} 12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 12583 $as_echo_n "checking for AWK... " >&6; } 12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12585 $as_echo "disabled" >&6; } 12586 else 12587 # Check if the provided tool contains a complete path. 12588 tool_specified="$AWK" 12589 tool_basename="${tool_specified##*/}" 12590 if test "x$tool_basename" = "x$tool_specified"; then 12591 # A command without a complete path is provided, search $PATH. 12592 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 12593 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 12594 # Extract the first word of "$tool_basename", so it can be a program name with args. 12595 set dummy $tool_basename; ac_word=$2 12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12597 $as_echo_n "checking for $ac_word... " >&6; } 12598 if ${ac_cv_path_AWK+:} false; then : 12599 $as_echo_n "(cached) " >&6 12600 else 12601 case $AWK in 12602 [\\/]* | ?:[\\/]*) 12603 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 12604 ;; 12605 *) 12606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12607 for as_dir in $PATH 12608 do 12609 IFS=$as_save_IFS 12610 test -z "$as_dir" && as_dir=. 12611 for ac_exec_ext in '' $ac_executable_extensions; do 12612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12613 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 12614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12615 break 2 12616 fi 12617 done 12618 done 12619 IFS=$as_save_IFS 12620 12621 ;; 12622 esac 12623 fi 12624 AWK=$ac_cv_path_AWK 12625 if test -n "$AWK"; then 12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 12627 $as_echo "$AWK" >&6; } 12628 else 12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12630 $as_echo "no" >&6; } 12631 fi 12632 12633 12634 if test "x$AWK" = x; then 12635 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12636 fi 12637 else 12638 # Otherwise we believe it is a complete path. Use it as it is. 12639 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 12640 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 12642 $as_echo_n "checking for AWK... " >&6; } 12643 if test ! -x "$tool_specified"; then 12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12645 $as_echo "not found" >&6; } 12646 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 12647 fi 12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12649 $as_echo "$tool_specified" >&6; } 12650 fi 12651 fi 12652 fi 12653 12654 fi 12655 12656 12657 if test "x$AWK" = x; then 12658 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 12659 fi 12660 12661 12662 12663 12664 # Publish this variable in the help. 12665 12666 12667 if [ -z "${GREP+x}" ]; then 12668 # The variable is not set by user, try to locate tool using the code snippet 12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 12670 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 12671 if ${ac_cv_path_GREP+:} false; then : 12672 $as_echo_n "(cached) " >&6 12673 else 12674 if test -z "$GREP"; then 12675 ac_path_GREP_found=false 12676 # Loop through the user's path and test for each of PROGNAME-LIST 12677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12678 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12679 do 12680 IFS=$as_save_IFS 12681 test -z "$as_dir" && as_dir=. 12682 for ac_prog in grep ggrep; do 12683 for ac_exec_ext in '' $ac_executable_extensions; do 12684 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 12685 as_fn_executable_p "$ac_path_GREP" || continue 12686 # Check for GNU ac_path_GREP and select it if it is found. 12687 # Check for GNU $ac_path_GREP 12688 case `"$ac_path_GREP" --version 2>&1` in 12689 *GNU*) 12690 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 12691 *) 12692 ac_count=0 12693 $as_echo_n 0123456789 >"conftest.in" 12694 while : 12695 do 12696 cat "conftest.in" "conftest.in" >"conftest.tmp" 12697 mv "conftest.tmp" "conftest.in" 12698 cp "conftest.in" "conftest.nl" 12699 $as_echo 'GREP' >> "conftest.nl" 12700 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 12701 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12702 as_fn_arith $ac_count + 1 && ac_count=$as_val 12703 if test $ac_count -gt ${ac_path_GREP_max-0}; then 12704 # Best one so far, save it but keep looking for a better one 12705 ac_cv_path_GREP="$ac_path_GREP" 12706 ac_path_GREP_max=$ac_count 12707 fi 12708 # 10*(2^10) chars as input seems more than enough 12709 test $ac_count -gt 10 && break 12710 done 12711 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12712 esac 12713 12714 $ac_path_GREP_found && break 3 12715 done 12716 done 12717 done 12718 IFS=$as_save_IFS 12719 if test -z "$ac_cv_path_GREP"; then 12720 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12721 fi 12722 else 12723 ac_cv_path_GREP=$GREP 12724 fi 12725 12726 fi 12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 12728 $as_echo "$ac_cv_path_GREP" >&6; } 12729 GREP="$ac_cv_path_GREP" 12730 12731 12732 else 12733 # The variable is set, but is it from the command line or the environment? 12734 12735 # Try to remove the string !GREP! from our list. 12736 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 12737 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12738 # If it failed, the variable was not from the command line. Ignore it, 12739 # but warn the user (except for BASH, which is always set by the calling BASH). 12740 if test "xGREP" != xBASH; then 12741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 12742 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 12743 fi 12744 # Try to locate tool using the code snippet 12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 12746 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 12747 if ${ac_cv_path_GREP+:} false; then : 12748 $as_echo_n "(cached) " >&6 12749 else 12750 if test -z "$GREP"; then 12751 ac_path_GREP_found=false 12752 # Loop through the user's path and test for each of PROGNAME-LIST 12753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12754 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12755 do 12756 IFS=$as_save_IFS 12757 test -z "$as_dir" && as_dir=. 12758 for ac_prog in grep ggrep; do 12759 for ac_exec_ext in '' $ac_executable_extensions; do 12760 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 12761 as_fn_executable_p "$ac_path_GREP" || continue 12762 # Check for GNU ac_path_GREP and select it if it is found. 12763 # Check for GNU $ac_path_GREP 12764 case `"$ac_path_GREP" --version 2>&1` in 12765 *GNU*) 12766 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 12767 *) 12768 ac_count=0 12769 $as_echo_n 0123456789 >"conftest.in" 12770 while : 12771 do 12772 cat "conftest.in" "conftest.in" >"conftest.tmp" 12773 mv "conftest.tmp" "conftest.in" 12774 cp "conftest.in" "conftest.nl" 12775 $as_echo 'GREP' >> "conftest.nl" 12776 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 12777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12778 as_fn_arith $ac_count + 1 && ac_count=$as_val 12779 if test $ac_count -gt ${ac_path_GREP_max-0}; then 12780 # Best one so far, save it but keep looking for a better one 12781 ac_cv_path_GREP="$ac_path_GREP" 12782 ac_path_GREP_max=$ac_count 12783 fi 12784 # 10*(2^10) chars as input seems more than enough 12785 test $ac_count -gt 10 && break 12786 done 12787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12788 esac 12789 12790 $ac_path_GREP_found && break 3 12791 done 12792 done 12793 done 12794 IFS=$as_save_IFS 12795 if test -z "$ac_cv_path_GREP"; then 12796 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12797 fi 12798 else 12799 ac_cv_path_GREP=$GREP 12800 fi 12801 12802 fi 12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 12804 $as_echo "$ac_cv_path_GREP" >&6; } 12805 GREP="$ac_cv_path_GREP" 12806 12807 12808 else 12809 # If it succeeded, then it was overridden by the user. We will use it 12810 # for the tool. 12811 12812 # First remove it from the list of overridden variables, so we can test 12813 # for unknown variables in the end. 12814 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12815 12816 # Check if we try to supply an empty value 12817 if test "x$GREP" = x; then 12818 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5 12819 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;} 12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 12821 $as_echo_n "checking for GREP... " >&6; } 12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12823 $as_echo "disabled" >&6; } 12824 else 12825 # Check if the provided tool contains a complete path. 12826 tool_specified="$GREP" 12827 tool_basename="${tool_specified##*/}" 12828 if test "x$tool_basename" = "x$tool_specified"; then 12829 # A command without a complete path is provided, search $PATH. 12830 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 12831 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 12832 # Extract the first word of "$tool_basename", so it can be a program name with args. 12833 set dummy $tool_basename; ac_word=$2 12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12835 $as_echo_n "checking for $ac_word... " >&6; } 12836 if ${ac_cv_path_GREP+:} false; then : 12837 $as_echo_n "(cached) " >&6 12838 else 12839 case $GREP in 12840 [\\/]* | ?:[\\/]*) 12841 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 12842 ;; 12843 *) 12844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12845 for as_dir in $PATH 12846 do 12847 IFS=$as_save_IFS 12848 test -z "$as_dir" && as_dir=. 12849 for ac_exec_ext in '' $ac_executable_extensions; do 12850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12851 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 12852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12853 break 2 12854 fi 12855 done 12856 done 12857 IFS=$as_save_IFS 12858 12859 ;; 12860 esac 12861 fi 12862 GREP=$ac_cv_path_GREP 12863 if test -n "$GREP"; then 12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 12865 $as_echo "$GREP" >&6; } 12866 else 12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12868 $as_echo "no" >&6; } 12869 fi 12870 12871 12872 if test "x$GREP" = x; then 12873 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12874 fi 12875 else 12876 # Otherwise we believe it is a complete path. Use it as it is. 12877 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 12878 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 12880 $as_echo_n "checking for GREP... " >&6; } 12881 if test ! -x "$tool_specified"; then 12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12883 $as_echo "not found" >&6; } 12884 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12885 fi 12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12887 $as_echo "$tool_specified" >&6; } 12888 fi 12889 fi 12890 fi 12891 12892 fi 12893 12894 12895 if test "x$GREP" = x; then 12896 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 12897 fi 12898 12899 12900 12901 12902 # Publish this variable in the help. 12903 12904 12905 if [ -z "${EGREP+x}" ]; then 12906 # The variable is not set by user, try to locate tool using the code snippet 12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 12908 $as_echo_n "checking for egrep... " >&6; } 12909 if ${ac_cv_path_EGREP+:} false; then : 12910 $as_echo_n "(cached) " >&6 12911 else 12912 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 12913 then ac_cv_path_EGREP="$GREP -E" 12914 else 12915 if test -z "$EGREP"; then 12916 ac_path_EGREP_found=false 12917 # Loop through the user's path and test for each of PROGNAME-LIST 12918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12919 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12920 do 12921 IFS=$as_save_IFS 12922 test -z "$as_dir" && as_dir=. 12923 for ac_prog in egrep; do 12924 for ac_exec_ext in '' $ac_executable_extensions; do 12925 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 12926 as_fn_executable_p "$ac_path_EGREP" || continue 12927 # Check for GNU ac_path_EGREP and select it if it is found. 12928 # Check for GNU $ac_path_EGREP 12929 case `"$ac_path_EGREP" --version 2>&1` in 12930 *GNU*) 12931 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 12932 *) 12933 ac_count=0 12934 $as_echo_n 0123456789 >"conftest.in" 12935 while : 12936 do 12937 cat "conftest.in" "conftest.in" >"conftest.tmp" 12938 mv "conftest.tmp" "conftest.in" 12939 cp "conftest.in" "conftest.nl" 12940 $as_echo 'EGREP' >> "conftest.nl" 12941 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 12942 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12943 as_fn_arith $ac_count + 1 && ac_count=$as_val 12944 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 12945 # Best one so far, save it but keep looking for a better one 12946 ac_cv_path_EGREP="$ac_path_EGREP" 12947 ac_path_EGREP_max=$ac_count 12948 fi 12949 # 10*(2^10) chars as input seems more than enough 12950 test $ac_count -gt 10 && break 12951 done 12952 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12953 esac 12954 12955 $ac_path_EGREP_found && break 3 12956 done 12957 done 12958 done 12959 IFS=$as_save_IFS 12960 if test -z "$ac_cv_path_EGREP"; then 12961 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12962 fi 12963 else 12964 ac_cv_path_EGREP=$EGREP 12965 fi 12966 12967 fi 12968 fi 12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 12970 $as_echo "$ac_cv_path_EGREP" >&6; } 12971 EGREP="$ac_cv_path_EGREP" 12972 12973 12974 else 12975 # The variable is set, but is it from the command line or the environment? 12976 12977 # Try to remove the string !EGREP! from our list. 12978 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 12979 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12980 # If it failed, the variable was not from the command line. Ignore it, 12981 # but warn the user (except for BASH, which is always set by the calling BASH). 12982 if test "xEGREP" != xBASH; then 12983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 12984 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 12985 fi 12986 # Try to locate tool using the code snippet 12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 12988 $as_echo_n "checking for egrep... " >&6; } 12989 if ${ac_cv_path_EGREP+:} false; then : 12990 $as_echo_n "(cached) " >&6 12991 else 12992 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 12993 then ac_cv_path_EGREP="$GREP -E" 12994 else 12995 if test -z "$EGREP"; then 12996 ac_path_EGREP_found=false 12997 # Loop through the user's path and test for each of PROGNAME-LIST 12998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12999 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13000 do 13001 IFS=$as_save_IFS 13002 test -z "$as_dir" && as_dir=. 13003 for ac_prog in egrep; do 13004 for ac_exec_ext in '' $ac_executable_extensions; do 13005 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13006 as_fn_executable_p "$ac_path_EGREP" || continue 13007 # Check for GNU ac_path_EGREP and select it if it is found. 13008 # Check for GNU $ac_path_EGREP 13009 case `"$ac_path_EGREP" --version 2>&1` in 13010 *GNU*) 13011 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13012 *) 13013 ac_count=0 13014 $as_echo_n 0123456789 >"conftest.in" 13015 while : 13016 do 13017 cat "conftest.in" "conftest.in" >"conftest.tmp" 13018 mv "conftest.tmp" "conftest.in" 13019 cp "conftest.in" "conftest.nl" 13020 $as_echo 'EGREP' >> "conftest.nl" 13021 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13022 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13023 as_fn_arith $ac_count + 1 && ac_count=$as_val 13024 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13025 # Best one so far, save it but keep looking for a better one 13026 ac_cv_path_EGREP="$ac_path_EGREP" 13027 ac_path_EGREP_max=$ac_count 13028 fi 13029 # 10*(2^10) chars as input seems more than enough 13030 test $ac_count -gt 10 && break 13031 done 13032 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13033 esac 13034 13035 $ac_path_EGREP_found && break 3 13036 done 13037 done 13038 done 13039 IFS=$as_save_IFS 13040 if test -z "$ac_cv_path_EGREP"; then 13041 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13042 fi 13043 else 13044 ac_cv_path_EGREP=$EGREP 13045 fi 13046 13047 fi 13048 fi 13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13050 $as_echo "$ac_cv_path_EGREP" >&6; } 13051 EGREP="$ac_cv_path_EGREP" 13052 13053 13054 else 13055 # If it succeeded, then it was overridden by the user. We will use it 13056 # for the tool. 13057 13058 # First remove it from the list of overridden variables, so we can test 13059 # for unknown variables in the end. 13060 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13061 13062 # Check if we try to supply an empty value 13063 if test "x$EGREP" = x; then 13064 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5 13065 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;} 13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13067 $as_echo_n "checking for EGREP... " >&6; } 13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13069 $as_echo "disabled" >&6; } 13070 else 13071 # Check if the provided tool contains a complete path. 13072 tool_specified="$EGREP" 13073 tool_basename="${tool_specified##*/}" 13074 if test "x$tool_basename" = "x$tool_specified"; then 13075 # A command without a complete path is provided, search $PATH. 13076 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 13077 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 13078 # Extract the first word of "$tool_basename", so it can be a program name with args. 13079 set dummy $tool_basename; ac_word=$2 13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13081 $as_echo_n "checking for $ac_word... " >&6; } 13082 if ${ac_cv_path_EGREP+:} false; then : 13083 $as_echo_n "(cached) " >&6 13084 else 13085 case $EGREP in 13086 [\\/]* | ?:[\\/]*) 13087 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 13088 ;; 13089 *) 13090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13091 for as_dir in $PATH 13092 do 13093 IFS=$as_save_IFS 13094 test -z "$as_dir" && as_dir=. 13095 for ac_exec_ext in '' $ac_executable_extensions; do 13096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13097 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 13098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13099 break 2 13100 fi 13101 done 13102 done 13103 IFS=$as_save_IFS 13104 13105 ;; 13106 esac 13107 fi 13108 EGREP=$ac_cv_path_EGREP 13109 if test -n "$EGREP"; then 13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 13111 $as_echo "$EGREP" >&6; } 13112 else 13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13114 $as_echo "no" >&6; } 13115 fi 13116 13117 13118 if test "x$EGREP" = x; then 13119 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13120 fi 13121 else 13122 # Otherwise we believe it is a complete path. Use it as it is. 13123 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 13124 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13126 $as_echo_n "checking for EGREP... " >&6; } 13127 if test ! -x "$tool_specified"; then 13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13129 $as_echo "not found" >&6; } 13130 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13131 fi 13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13133 $as_echo "$tool_specified" >&6; } 13134 fi 13135 fi 13136 fi 13137 13138 fi 13139 13140 13141 if test "x$EGREP" = x; then 13142 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 13143 fi 13144 13145 13146 13147 13148 # Publish this variable in the help. 13149 13150 13151 if [ -z "${FGREP+x}" ]; then 13152 # The variable is not set by user, try to locate tool using the code snippet 13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13154 $as_echo_n "checking for fgrep... " >&6; } 13155 if ${ac_cv_path_FGREP+:} false; then : 13156 $as_echo_n "(cached) " >&6 13157 else 13158 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13159 then ac_cv_path_FGREP="$GREP -F" 13160 else 13161 if test -z "$FGREP"; then 13162 ac_path_FGREP_found=false 13163 # Loop through the user's path and test for each of PROGNAME-LIST 13164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13165 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13166 do 13167 IFS=$as_save_IFS 13168 test -z "$as_dir" && as_dir=. 13169 for ac_prog in fgrep; do 13170 for ac_exec_ext in '' $ac_executable_extensions; do 13171 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13172 as_fn_executable_p "$ac_path_FGREP" || continue 13173 # Check for GNU ac_path_FGREP and select it if it is found. 13174 # Check for GNU $ac_path_FGREP 13175 case `"$ac_path_FGREP" --version 2>&1` in 13176 *GNU*) 13177 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13178 *) 13179 ac_count=0 13180 $as_echo_n 0123456789 >"conftest.in" 13181 while : 13182 do 13183 cat "conftest.in" "conftest.in" >"conftest.tmp" 13184 mv "conftest.tmp" "conftest.in" 13185 cp "conftest.in" "conftest.nl" 13186 $as_echo 'FGREP' >> "conftest.nl" 13187 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13188 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13189 as_fn_arith $ac_count + 1 && ac_count=$as_val 13190 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13191 # Best one so far, save it but keep looking for a better one 13192 ac_cv_path_FGREP="$ac_path_FGREP" 13193 ac_path_FGREP_max=$ac_count 13194 fi 13195 # 10*(2^10) chars as input seems more than enough 13196 test $ac_count -gt 10 && break 13197 done 13198 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13199 esac 13200 13201 $ac_path_FGREP_found && break 3 13202 done 13203 done 13204 done 13205 IFS=$as_save_IFS 13206 if test -z "$ac_cv_path_FGREP"; then 13207 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13208 fi 13209 else 13210 ac_cv_path_FGREP=$FGREP 13211 fi 13212 13213 fi 13214 fi 13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13216 $as_echo "$ac_cv_path_FGREP" >&6; } 13217 FGREP="$ac_cv_path_FGREP" 13218 13219 13220 else 13221 # The variable is set, but is it from the command line or the environment? 13222 13223 # Try to remove the string !FGREP! from our list. 13224 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 13225 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13226 # If it failed, the variable was not from the command line. Ignore it, 13227 # but warn the user (except for BASH, which is always set by the calling BASH). 13228 if test "xFGREP" != xBASH; then 13229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 13230 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 13231 fi 13232 # Try to locate tool using the code snippet 13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13234 $as_echo_n "checking for fgrep... " >&6; } 13235 if ${ac_cv_path_FGREP+:} false; then : 13236 $as_echo_n "(cached) " >&6 13237 else 13238 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13239 then ac_cv_path_FGREP="$GREP -F" 13240 else 13241 if test -z "$FGREP"; then 13242 ac_path_FGREP_found=false 13243 # Loop through the user's path and test for each of PROGNAME-LIST 13244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13245 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13246 do 13247 IFS=$as_save_IFS 13248 test -z "$as_dir" && as_dir=. 13249 for ac_prog in fgrep; do 13250 for ac_exec_ext in '' $ac_executable_extensions; do 13251 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13252 as_fn_executable_p "$ac_path_FGREP" || continue 13253 # Check for GNU ac_path_FGREP and select it if it is found. 13254 # Check for GNU $ac_path_FGREP 13255 case `"$ac_path_FGREP" --version 2>&1` in 13256 *GNU*) 13257 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13258 *) 13259 ac_count=0 13260 $as_echo_n 0123456789 >"conftest.in" 13261 while : 13262 do 13263 cat "conftest.in" "conftest.in" >"conftest.tmp" 13264 mv "conftest.tmp" "conftest.in" 13265 cp "conftest.in" "conftest.nl" 13266 $as_echo 'FGREP' >> "conftest.nl" 13267 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13269 as_fn_arith $ac_count + 1 && ac_count=$as_val 13270 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13271 # Best one so far, save it but keep looking for a better one 13272 ac_cv_path_FGREP="$ac_path_FGREP" 13273 ac_path_FGREP_max=$ac_count 13274 fi 13275 # 10*(2^10) chars as input seems more than enough 13276 test $ac_count -gt 10 && break 13277 done 13278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13279 esac 13280 13281 $ac_path_FGREP_found && break 3 13282 done 13283 done 13284 done 13285 IFS=$as_save_IFS 13286 if test -z "$ac_cv_path_FGREP"; then 13287 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13288 fi 13289 else 13290 ac_cv_path_FGREP=$FGREP 13291 fi 13292 13293 fi 13294 fi 13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13296 $as_echo "$ac_cv_path_FGREP" >&6; } 13297 FGREP="$ac_cv_path_FGREP" 13298 13299 13300 else 13301 # If it succeeded, then it was overridden by the user. We will use it 13302 # for the tool. 13303 13304 # First remove it from the list of overridden variables, so we can test 13305 # for unknown variables in the end. 13306 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13307 13308 # Check if we try to supply an empty value 13309 if test "x$FGREP" = x; then 13310 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5 13311 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;} 13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 13313 $as_echo_n "checking for FGREP... " >&6; } 13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13315 $as_echo "disabled" >&6; } 13316 else 13317 # Check if the provided tool contains a complete path. 13318 tool_specified="$FGREP" 13319 tool_basename="${tool_specified##*/}" 13320 if test "x$tool_basename" = "x$tool_specified"; then 13321 # A command without a complete path is provided, search $PATH. 13322 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 13323 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 13324 # Extract the first word of "$tool_basename", so it can be a program name with args. 13325 set dummy $tool_basename; ac_word=$2 13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13327 $as_echo_n "checking for $ac_word... " >&6; } 13328 if ${ac_cv_path_FGREP+:} false; then : 13329 $as_echo_n "(cached) " >&6 13330 else 13331 case $FGREP in 13332 [\\/]* | ?:[\\/]*) 13333 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 13334 ;; 13335 *) 13336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13337 for as_dir in $PATH 13338 do 13339 IFS=$as_save_IFS 13340 test -z "$as_dir" && as_dir=. 13341 for ac_exec_ext in '' $ac_executable_extensions; do 13342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13343 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 13344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13345 break 2 13346 fi 13347 done 13348 done 13349 IFS=$as_save_IFS 13350 13351 ;; 13352 esac 13353 fi 13354 FGREP=$ac_cv_path_FGREP 13355 if test -n "$FGREP"; then 13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 13357 $as_echo "$FGREP" >&6; } 13358 else 13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13360 $as_echo "no" >&6; } 13361 fi 13362 13363 13364 if test "x$FGREP" = x; then 13365 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13366 fi 13367 else 13368 # Otherwise we believe it is a complete path. Use it as it is. 13369 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 13370 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 13372 $as_echo_n "checking for FGREP... " >&6; } 13373 if test ! -x "$tool_specified"; then 13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13375 $as_echo "not found" >&6; } 13376 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13377 fi 13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13379 $as_echo "$tool_specified" >&6; } 13380 fi 13381 fi 13382 fi 13383 13384 fi 13385 13386 13387 if test "x$FGREP" = x; then 13388 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 13389 fi 13390 13391 13392 13393 13394 # Publish this variable in the help. 13395 13396 13397 if [ -z "${SED+x}" ]; then 13398 # The variable is not set by user, try to locate tool using the code snippet 13399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 13400 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 13401 if ${ac_cv_path_SED+:} false; then : 13402 $as_echo_n "(cached) " >&6 13403 else 13404 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 13405 for ac_i in 1 2 3 4 5 6 7; do 13406 ac_script="$ac_script$as_nl$ac_script" 13407 done 13408 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 13409 { ac_script=; unset ac_script;} 13410 if test -z "$SED"; then 13411 ac_path_SED_found=false 13412 # Loop through the user's path and test for each of PROGNAME-LIST 13413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13414 for as_dir in $PATH 13415 do 13416 IFS=$as_save_IFS 13417 test -z "$as_dir" && as_dir=. 13418 for ac_prog in sed gsed; do 13419 for ac_exec_ext in '' $ac_executable_extensions; do 13420 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 13421 as_fn_executable_p "$ac_path_SED" || continue 13422 # Check for GNU ac_path_SED and select it if it is found. 13423 # Check for GNU $ac_path_SED 13424 case `"$ac_path_SED" --version 2>&1` in 13425 *GNU*) 13426 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 13427 *) 13428 ac_count=0 13429 $as_echo_n 0123456789 >"conftest.in" 13430 while : 13431 do 13432 cat "conftest.in" "conftest.in" >"conftest.tmp" 13433 mv "conftest.tmp" "conftest.in" 13434 cp "conftest.in" "conftest.nl" 13435 $as_echo '' >> "conftest.nl" 13436 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 13437 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13438 as_fn_arith $ac_count + 1 && ac_count=$as_val 13439 if test $ac_count -gt ${ac_path_SED_max-0}; then 13440 # Best one so far, save it but keep looking for a better one 13441 ac_cv_path_SED="$ac_path_SED" 13442 ac_path_SED_max=$ac_count 13443 fi 13444 # 10*(2^10) chars as input seems more than enough 13445 test $ac_count -gt 10 && break 13446 done 13447 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13448 esac 13449 13450 $ac_path_SED_found && break 3 13451 done 13452 done 13453 done 13454 IFS=$as_save_IFS 13455 if test -z "$ac_cv_path_SED"; then 13456 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 13457 fi 13458 else 13459 ac_cv_path_SED=$SED 13460 fi 13461 13462 fi 13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 13464 $as_echo "$ac_cv_path_SED" >&6; } 13465 SED="$ac_cv_path_SED" 13466 rm -f conftest.sed 13467 13468 else 13469 # The variable is set, but is it from the command line or the environment? 13470 13471 # Try to remove the string !SED! from our list. 13472 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 13473 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13474 # If it failed, the variable was not from the command line. Ignore it, 13475 # but warn the user (except for BASH, which is always set by the calling BASH). 13476 if test "xSED" != xBASH; then 13477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 13478 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 13479 fi 13480 # Try to locate tool using the code snippet 13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 13482 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 13483 if ${ac_cv_path_SED+:} false; then : 13484 $as_echo_n "(cached) " >&6 13485 else 13486 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 13487 for ac_i in 1 2 3 4 5 6 7; do 13488 ac_script="$ac_script$as_nl$ac_script" 13489 done 13490 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 13491 { ac_script=; unset ac_script;} 13492 if test -z "$SED"; then 13493 ac_path_SED_found=false 13494 # Loop through the user's path and test for each of PROGNAME-LIST 13495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13496 for as_dir in $PATH 13497 do 13498 IFS=$as_save_IFS 13499 test -z "$as_dir" && as_dir=. 13500 for ac_prog in sed gsed; do 13501 for ac_exec_ext in '' $ac_executable_extensions; do 13502 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 13503 as_fn_executable_p "$ac_path_SED" || continue 13504 # Check for GNU ac_path_SED and select it if it is found. 13505 # Check for GNU $ac_path_SED 13506 case `"$ac_path_SED" --version 2>&1` in 13507 *GNU*) 13508 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 13509 *) 13510 ac_count=0 13511 $as_echo_n 0123456789 >"conftest.in" 13512 while : 13513 do 13514 cat "conftest.in" "conftest.in" >"conftest.tmp" 13515 mv "conftest.tmp" "conftest.in" 13516 cp "conftest.in" "conftest.nl" 13517 $as_echo '' >> "conftest.nl" 13518 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 13519 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13520 as_fn_arith $ac_count + 1 && ac_count=$as_val 13521 if test $ac_count -gt ${ac_path_SED_max-0}; then 13522 # Best one so far, save it but keep looking for a better one 13523 ac_cv_path_SED="$ac_path_SED" 13524 ac_path_SED_max=$ac_count 13525 fi 13526 # 10*(2^10) chars as input seems more than enough 13527 test $ac_count -gt 10 && break 13528 done 13529 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13530 esac 13531 13532 $ac_path_SED_found && break 3 13533 done 13534 done 13535 done 13536 IFS=$as_save_IFS 13537 if test -z "$ac_cv_path_SED"; then 13538 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 13539 fi 13540 else 13541 ac_cv_path_SED=$SED 13542 fi 13543 13544 fi 13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 13546 $as_echo "$ac_cv_path_SED" >&6; } 13547 SED="$ac_cv_path_SED" 13548 rm -f conftest.sed 13549 13550 else 13551 # If it succeeded, then it was overridden by the user. We will use it 13552 # for the tool. 13553 13554 # First remove it from the list of overridden variables, so we can test 13555 # for unknown variables in the end. 13556 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13557 13558 # Check if we try to supply an empty value 13559 if test "x$SED" = x; then 13560 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5 13561 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;} 13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 13563 $as_echo_n "checking for SED... " >&6; } 13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13565 $as_echo "disabled" >&6; } 13566 else 13567 # Check if the provided tool contains a complete path. 13568 tool_specified="$SED" 13569 tool_basename="${tool_specified##*/}" 13570 if test "x$tool_basename" = "x$tool_specified"; then 13571 # A command without a complete path is provided, search $PATH. 13572 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 13573 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 13574 # Extract the first word of "$tool_basename", so it can be a program name with args. 13575 set dummy $tool_basename; ac_word=$2 13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13577 $as_echo_n "checking for $ac_word... " >&6; } 13578 if ${ac_cv_path_SED+:} false; then : 13579 $as_echo_n "(cached) " >&6 13580 else 13581 case $SED in 13582 [\\/]* | ?:[\\/]*) 13583 ac_cv_path_SED="$SED" # Let the user override the test with a path. 13584 ;; 13585 *) 13586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13587 for as_dir in $PATH 13588 do 13589 IFS=$as_save_IFS 13590 test -z "$as_dir" && as_dir=. 13591 for ac_exec_ext in '' $ac_executable_extensions; do 13592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13593 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 13594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13595 break 2 13596 fi 13597 done 13598 done 13599 IFS=$as_save_IFS 13600 13601 ;; 13602 esac 13603 fi 13604 SED=$ac_cv_path_SED 13605 if test -n "$SED"; then 13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 13607 $as_echo "$SED" >&6; } 13608 else 13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13610 $as_echo "no" >&6; } 13611 fi 13612 13613 13614 if test "x$SED" = x; then 13615 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13616 fi 13617 else 13618 # Otherwise we believe it is a complete path. Use it as it is. 13619 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 13620 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 13622 $as_echo_n "checking for SED... " >&6; } 13623 if test ! -x "$tool_specified"; then 13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13625 $as_echo "not found" >&6; } 13626 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 13627 fi 13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13629 $as_echo "$tool_specified" >&6; } 13630 fi 13631 fi 13632 fi 13633 13634 fi 13635 13636 13637 if test "x$SED" = x; then 13638 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 13639 fi 13640 13641 13642 13643 # Always force rm. 13644 RM="$RM -f" 13645 13646 # pwd behaves differently on various platforms and some don't support the -L flag. 13647 # Always use the bash builtin pwd to get uniform behavior. 13648 THEPWDCMD=pwd 13649 13650 # These are not required on all platforms 13651 13652 13653 # Publish this variable in the help. 13654 13655 13656 if [ -z "${CYGPATH+x}" ]; then 13657 # The variable is not set by user, try to locate tool using the code snippet 13658 for ac_prog in cygpath 13659 do 13660 # Extract the first word of "$ac_prog", so it can be a program name with args. 13661 set dummy $ac_prog; ac_word=$2 13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13663 $as_echo_n "checking for $ac_word... " >&6; } 13664 if ${ac_cv_path_CYGPATH+:} false; then : 13665 $as_echo_n "(cached) " >&6 13666 else 13667 case $CYGPATH in 13668 [\\/]* | ?:[\\/]*) 13669 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 13670 ;; 13671 *) 13672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13673 for as_dir in $PATH 13674 do 13675 IFS=$as_save_IFS 13676 test -z "$as_dir" && as_dir=. 13677 for ac_exec_ext in '' $ac_executable_extensions; do 13678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13679 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 13680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13681 break 2 13682 fi 13683 done 13684 done 13685 IFS=$as_save_IFS 13686 13687 ;; 13688 esac 13689 fi 13690 CYGPATH=$ac_cv_path_CYGPATH 13691 if test -n "$CYGPATH"; then 13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 13693 $as_echo "$CYGPATH" >&6; } 13694 else 13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13696 $as_echo "no" >&6; } 13697 fi 13698 13699 13700 test -n "$CYGPATH" && break 13701 done 13702 13703 else 13704 # The variable is set, but is it from the command line or the environment? 13705 13706 # Try to remove the string !CYGPATH! from our list. 13707 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 13708 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13709 # If it failed, the variable was not from the command line. Ignore it, 13710 # but warn the user (except for BASH, which is always set by the calling BASH). 13711 if test "xCYGPATH" != xBASH; then 13712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 13713 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 13714 fi 13715 # Try to locate tool using the code snippet 13716 for ac_prog in cygpath 13717 do 13718 # Extract the first word of "$ac_prog", so it can be a program name with args. 13719 set dummy $ac_prog; ac_word=$2 13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13721 $as_echo_n "checking for $ac_word... " >&6; } 13722 if ${ac_cv_path_CYGPATH+:} false; then : 13723 $as_echo_n "(cached) " >&6 13724 else 13725 case $CYGPATH in 13726 [\\/]* | ?:[\\/]*) 13727 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 13728 ;; 13729 *) 13730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13731 for as_dir in $PATH 13732 do 13733 IFS=$as_save_IFS 13734 test -z "$as_dir" && as_dir=. 13735 for ac_exec_ext in '' $ac_executable_extensions; do 13736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13737 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 13738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13739 break 2 13740 fi 13741 done 13742 done 13743 IFS=$as_save_IFS 13744 13745 ;; 13746 esac 13747 fi 13748 CYGPATH=$ac_cv_path_CYGPATH 13749 if test -n "$CYGPATH"; then 13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 13751 $as_echo "$CYGPATH" >&6; } 13752 else 13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13754 $as_echo "no" >&6; } 13755 fi 13756 13757 13758 test -n "$CYGPATH" && break 13759 done 13760 13761 else 13762 # If it succeeded, then it was overridden by the user. We will use it 13763 # for the tool. 13764 13765 # First remove it from the list of overridden variables, so we can test 13766 # for unknown variables in the end. 13767 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13768 13769 # Check if we try to supply an empty value 13770 if test "x$CYGPATH" = x; then 13771 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5 13772 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;} 13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 13774 $as_echo_n "checking for CYGPATH... " >&6; } 13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13776 $as_echo "disabled" >&6; } 13777 else 13778 # Check if the provided tool contains a complete path. 13779 tool_specified="$CYGPATH" 13780 tool_basename="${tool_specified##*/}" 13781 if test "x$tool_basename" = "x$tool_specified"; then 13782 # A command without a complete path is provided, search $PATH. 13783 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 13784 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 13785 # Extract the first word of "$tool_basename", so it can be a program name with args. 13786 set dummy $tool_basename; ac_word=$2 13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13788 $as_echo_n "checking for $ac_word... " >&6; } 13789 if ${ac_cv_path_CYGPATH+:} false; then : 13790 $as_echo_n "(cached) " >&6 13791 else 13792 case $CYGPATH in 13793 [\\/]* | ?:[\\/]*) 13794 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 13795 ;; 13796 *) 13797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13798 for as_dir in $PATH 13799 do 13800 IFS=$as_save_IFS 13801 test -z "$as_dir" && as_dir=. 13802 for ac_exec_ext in '' $ac_executable_extensions; do 13803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13804 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 13805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13806 break 2 13807 fi 13808 done 13809 done 13810 IFS=$as_save_IFS 13811 13812 ;; 13813 esac 13814 fi 13815 CYGPATH=$ac_cv_path_CYGPATH 13816 if test -n "$CYGPATH"; then 13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 13818 $as_echo "$CYGPATH" >&6; } 13819 else 13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13821 $as_echo "no" >&6; } 13822 fi 13823 13824 13825 if test "x$CYGPATH" = x; then 13826 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13827 fi 13828 else 13829 # Otherwise we believe it is a complete path. Use it as it is. 13830 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 13831 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 13833 $as_echo_n "checking for CYGPATH... " >&6; } 13834 if test ! -x "$tool_specified"; then 13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13836 $as_echo "not found" >&6; } 13837 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 13838 fi 13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13840 $as_echo "$tool_specified" >&6; } 13841 fi 13842 fi 13843 fi 13844 13845 fi 13846 13847 13848 13849 13850 # Publish this variable in the help. 13851 13852 13853 if [ -z "${READLINK+x}" ]; then 13854 # The variable is not set by user, try to locate tool using the code snippet 13855 for ac_prog in greadlink readlink 13856 do 13857 # Extract the first word of "$ac_prog", so it can be a program name with args. 13858 set dummy $ac_prog; ac_word=$2 13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13860 $as_echo_n "checking for $ac_word... " >&6; } 13861 if ${ac_cv_path_READLINK+:} false; then : 13862 $as_echo_n "(cached) " >&6 13863 else 13864 case $READLINK in 13865 [\\/]* | ?:[\\/]*) 13866 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 13867 ;; 13868 *) 13869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13870 for as_dir in $PATH 13871 do 13872 IFS=$as_save_IFS 13873 test -z "$as_dir" && as_dir=. 13874 for ac_exec_ext in '' $ac_executable_extensions; do 13875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13876 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 13877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13878 break 2 13879 fi 13880 done 13881 done 13882 IFS=$as_save_IFS 13883 13884 ;; 13885 esac 13886 fi 13887 READLINK=$ac_cv_path_READLINK 13888 if test -n "$READLINK"; then 13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 13890 $as_echo "$READLINK" >&6; } 13891 else 13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13893 $as_echo "no" >&6; } 13894 fi 13895 13896 13897 test -n "$READLINK" && break 13898 done 13899 13900 else 13901 # The variable is set, but is it from the command line or the environment? 13902 13903 # Try to remove the string !READLINK! from our list. 13904 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 13905 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13906 # If it failed, the variable was not from the command line. Ignore it, 13907 # but warn the user (except for BASH, which is always set by the calling BASH). 13908 if test "xREADLINK" != xBASH; then 13909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 13910 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 13911 fi 13912 # Try to locate tool using the code snippet 13913 for ac_prog in greadlink readlink 13914 do 13915 # Extract the first word of "$ac_prog", so it can be a program name with args. 13916 set dummy $ac_prog; ac_word=$2 13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13918 $as_echo_n "checking for $ac_word... " >&6; } 13919 if ${ac_cv_path_READLINK+:} false; then : 13920 $as_echo_n "(cached) " >&6 13921 else 13922 case $READLINK in 13923 [\\/]* | ?:[\\/]*) 13924 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 13925 ;; 13926 *) 13927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13928 for as_dir in $PATH 13929 do 13930 IFS=$as_save_IFS 13931 test -z "$as_dir" && as_dir=. 13932 for ac_exec_ext in '' $ac_executable_extensions; do 13933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13934 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 13935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13936 break 2 13937 fi 13938 done 13939 done 13940 IFS=$as_save_IFS 13941 13942 ;; 13943 esac 13944 fi 13945 READLINK=$ac_cv_path_READLINK 13946 if test -n "$READLINK"; then 13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 13948 $as_echo "$READLINK" >&6; } 13949 else 13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13951 $as_echo "no" >&6; } 13952 fi 13953 13954 13955 test -n "$READLINK" && break 13956 done 13957 13958 else 13959 # If it succeeded, then it was overridden by the user. We will use it 13960 # for the tool. 13961 13962 # First remove it from the list of overridden variables, so we can test 13963 # for unknown variables in the end. 13964 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13965 13966 # Check if we try to supply an empty value 13967 if test "x$READLINK" = x; then 13968 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5 13969 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;} 13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 13971 $as_echo_n "checking for READLINK... " >&6; } 13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13973 $as_echo "disabled" >&6; } 13974 else 13975 # Check if the provided tool contains a complete path. 13976 tool_specified="$READLINK" 13977 tool_basename="${tool_specified##*/}" 13978 if test "x$tool_basename" = "x$tool_specified"; then 13979 # A command without a complete path is provided, search $PATH. 13980 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 13981 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 13982 # Extract the first word of "$tool_basename", so it can be a program name with args. 13983 set dummy $tool_basename; ac_word=$2 13984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13985 $as_echo_n "checking for $ac_word... " >&6; } 13986 if ${ac_cv_path_READLINK+:} false; then : 13987 $as_echo_n "(cached) " >&6 13988 else 13989 case $READLINK in 13990 [\\/]* | ?:[\\/]*) 13991 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 13992 ;; 13993 *) 13994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13995 for as_dir in $PATH 13996 do 13997 IFS=$as_save_IFS 13998 test -z "$as_dir" && as_dir=. 13999 for ac_exec_ext in '' $ac_executable_extensions; do 14000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14001 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14003 break 2 14004 fi 14005 done 14006 done 14007 IFS=$as_save_IFS 14008 14009 ;; 14010 esac 14011 fi 14012 READLINK=$ac_cv_path_READLINK 14013 if test -n "$READLINK"; then 14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14015 $as_echo "$READLINK" >&6; } 14016 else 14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14018 $as_echo "no" >&6; } 14019 fi 14020 14021 14022 if test "x$READLINK" = x; then 14023 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14024 fi 14025 else 14026 # Otherwise we believe it is a complete path. Use it as it is. 14027 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 14028 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14030 $as_echo_n "checking for READLINK... " >&6; } 14031 if test ! -x "$tool_specified"; then 14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14033 $as_echo "not found" >&6; } 14034 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 14035 fi 14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14037 $as_echo "$tool_specified" >&6; } 14038 fi 14039 fi 14040 fi 14041 14042 fi 14043 14044 14045 14046 14047 # Publish this variable in the help. 14048 14049 14050 if [ -z "${DF+x}" ]; then 14051 # The variable is not set by user, try to locate tool using the code snippet 14052 for ac_prog in df 14053 do 14054 # Extract the first word of "$ac_prog", so it can be a program name with args. 14055 set dummy $ac_prog; ac_word=$2 14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14057 $as_echo_n "checking for $ac_word... " >&6; } 14058 if ${ac_cv_path_DF+:} false; then : 14059 $as_echo_n "(cached) " >&6 14060 else 14061 case $DF in 14062 [\\/]* | ?:[\\/]*) 14063 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14064 ;; 14065 *) 14066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14067 for as_dir in $PATH 14068 do 14069 IFS=$as_save_IFS 14070 test -z "$as_dir" && as_dir=. 14071 for ac_exec_ext in '' $ac_executable_extensions; do 14072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14073 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14075 break 2 14076 fi 14077 done 14078 done 14079 IFS=$as_save_IFS 14080 14081 ;; 14082 esac 14083 fi 14084 DF=$ac_cv_path_DF 14085 if test -n "$DF"; then 14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14087 $as_echo "$DF" >&6; } 14088 else 14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14090 $as_echo "no" >&6; } 14091 fi 14092 14093 14094 test -n "$DF" && break 14095 done 14096 14097 else 14098 # The variable is set, but is it from the command line or the environment? 14099 14100 # Try to remove the string !DF! from our list. 14101 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 14102 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14103 # If it failed, the variable was not from the command line. Ignore it, 14104 # but warn the user (except for BASH, which is always set by the calling BASH). 14105 if test "xDF" != xBASH; then 14106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 14107 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 14108 fi 14109 # Try to locate tool using the code snippet 14110 for ac_prog in df 14111 do 14112 # Extract the first word of "$ac_prog", so it can be a program name with args. 14113 set dummy $ac_prog; ac_word=$2 14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14115 $as_echo_n "checking for $ac_word... " >&6; } 14116 if ${ac_cv_path_DF+:} false; then : 14117 $as_echo_n "(cached) " >&6 14118 else 14119 case $DF in 14120 [\\/]* | ?:[\\/]*) 14121 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14122 ;; 14123 *) 14124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14125 for as_dir in $PATH 14126 do 14127 IFS=$as_save_IFS 14128 test -z "$as_dir" && as_dir=. 14129 for ac_exec_ext in '' $ac_executable_extensions; do 14130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14131 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14133 break 2 14134 fi 14135 done 14136 done 14137 IFS=$as_save_IFS 14138 14139 ;; 14140 esac 14141 fi 14142 DF=$ac_cv_path_DF 14143 if test -n "$DF"; then 14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14145 $as_echo "$DF" >&6; } 14146 else 14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14148 $as_echo "no" >&6; } 14149 fi 14150 14151 14152 test -n "$DF" && break 14153 done 14154 14155 else 14156 # If it succeeded, then it was overridden by the user. We will use it 14157 # for the tool. 14158 14159 # First remove it from the list of overridden variables, so we can test 14160 # for unknown variables in the end. 14161 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14162 14163 # Check if we try to supply an empty value 14164 if test "x$DF" = x; then 14165 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5 14166 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;} 14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14168 $as_echo_n "checking for DF... " >&6; } 14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14170 $as_echo "disabled" >&6; } 14171 else 14172 # Check if the provided tool contains a complete path. 14173 tool_specified="$DF" 14174 tool_basename="${tool_specified##*/}" 14175 if test "x$tool_basename" = "x$tool_specified"; then 14176 # A command without a complete path is provided, search $PATH. 14177 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 14178 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 14179 # Extract the first word of "$tool_basename", so it can be a program name with args. 14180 set dummy $tool_basename; ac_word=$2 14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14182 $as_echo_n "checking for $ac_word... " >&6; } 14183 if ${ac_cv_path_DF+:} false; then : 14184 $as_echo_n "(cached) " >&6 14185 else 14186 case $DF in 14187 [\\/]* | ?:[\\/]*) 14188 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14189 ;; 14190 *) 14191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14192 for as_dir in $PATH 14193 do 14194 IFS=$as_save_IFS 14195 test -z "$as_dir" && as_dir=. 14196 for ac_exec_ext in '' $ac_executable_extensions; do 14197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14198 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14200 break 2 14201 fi 14202 done 14203 done 14204 IFS=$as_save_IFS 14205 14206 ;; 14207 esac 14208 fi 14209 DF=$ac_cv_path_DF 14210 if test -n "$DF"; then 14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14212 $as_echo "$DF" >&6; } 14213 else 14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14215 $as_echo "no" >&6; } 14216 fi 14217 14218 14219 if test "x$DF" = x; then 14220 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14221 fi 14222 else 14223 # Otherwise we believe it is a complete path. Use it as it is. 14224 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 14225 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14227 $as_echo_n "checking for DF... " >&6; } 14228 if test ! -x "$tool_specified"; then 14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14230 $as_echo "not found" >&6; } 14231 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 14232 fi 14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14234 $as_echo "$tool_specified" >&6; } 14235 fi 14236 fi 14237 fi 14238 14239 fi 14240 14241 14242 14243 14244 # Publish this variable in the help. 14245 14246 14247 if [ -z "${CPIO+x}" ]; then 14248 # The variable is not set by user, try to locate tool using the code snippet 14249 for ac_prog in cpio bsdcpio 14250 do 14251 # Extract the first word of "$ac_prog", so it can be a program name with args. 14252 set dummy $ac_prog; ac_word=$2 14253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14254 $as_echo_n "checking for $ac_word... " >&6; } 14255 if ${ac_cv_path_CPIO+:} false; then : 14256 $as_echo_n "(cached) " >&6 14257 else 14258 case $CPIO in 14259 [\\/]* | ?:[\\/]*) 14260 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 14261 ;; 14262 *) 14263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14264 for as_dir in $PATH 14265 do 14266 IFS=$as_save_IFS 14267 test -z "$as_dir" && as_dir=. 14268 for ac_exec_ext in '' $ac_executable_extensions; do 14269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14270 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 14271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14272 break 2 14273 fi 14274 done 14275 done 14276 IFS=$as_save_IFS 14277 14278 ;; 14279 esac 14280 fi 14281 CPIO=$ac_cv_path_CPIO 14282 if test -n "$CPIO"; then 14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 14284 $as_echo "$CPIO" >&6; } 14285 else 14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14287 $as_echo "no" >&6; } 14288 fi 14289 14290 14291 test -n "$CPIO" && break 14292 done 14293 14294 else 14295 # The variable is set, but is it from the command line or the environment? 14296 14297 # Try to remove the string !CPIO! from our list. 14298 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 14299 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14300 # If it failed, the variable was not from the command line. Ignore it, 14301 # but warn the user (except for BASH, which is always set by the calling BASH). 14302 if test "xCPIO" != xBASH; then 14303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 14304 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 14305 fi 14306 # Try to locate tool using the code snippet 14307 for ac_prog in cpio bsdcpio 14308 do 14309 # Extract the first word of "$ac_prog", so it can be a program name with args. 14310 set dummy $ac_prog; ac_word=$2 14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14312 $as_echo_n "checking for $ac_word... " >&6; } 14313 if ${ac_cv_path_CPIO+:} false; then : 14314 $as_echo_n "(cached) " >&6 14315 else 14316 case $CPIO in 14317 [\\/]* | ?:[\\/]*) 14318 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 14319 ;; 14320 *) 14321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14322 for as_dir in $PATH 14323 do 14324 IFS=$as_save_IFS 14325 test -z "$as_dir" && as_dir=. 14326 for ac_exec_ext in '' $ac_executable_extensions; do 14327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14328 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 14329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14330 break 2 14331 fi 14332 done 14333 done 14334 IFS=$as_save_IFS 14335 14336 ;; 14337 esac 14338 fi 14339 CPIO=$ac_cv_path_CPIO 14340 if test -n "$CPIO"; then 14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 14342 $as_echo "$CPIO" >&6; } 14343 else 14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14345 $as_echo "no" >&6; } 14346 fi 14347 14348 14349 test -n "$CPIO" && break 14350 done 14351 14352 else 14353 # If it succeeded, then it was overridden by the user. We will use it 14354 # for the tool. 14355 14356 # First remove it from the list of overridden variables, so we can test 14357 # for unknown variables in the end. 14358 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14359 14360 # Check if we try to supply an empty value 14361 if test "x$CPIO" = x; then 14362 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5 14363 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;} 14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 14365 $as_echo_n "checking for CPIO... " >&6; } 14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14367 $as_echo "disabled" >&6; } 14368 else 14369 # Check if the provided tool contains a complete path. 14370 tool_specified="$CPIO" 14371 tool_basename="${tool_specified##*/}" 14372 if test "x$tool_basename" = "x$tool_specified"; then 14373 # A command without a complete path is provided, search $PATH. 14374 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 14375 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 14376 # Extract the first word of "$tool_basename", so it can be a program name with args. 14377 set dummy $tool_basename; ac_word=$2 14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14379 $as_echo_n "checking for $ac_word... " >&6; } 14380 if ${ac_cv_path_CPIO+:} false; then : 14381 $as_echo_n "(cached) " >&6 14382 else 14383 case $CPIO in 14384 [\\/]* | ?:[\\/]*) 14385 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 14386 ;; 14387 *) 14388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14389 for as_dir in $PATH 14390 do 14391 IFS=$as_save_IFS 14392 test -z "$as_dir" && as_dir=. 14393 for ac_exec_ext in '' $ac_executable_extensions; do 14394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14395 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 14396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14397 break 2 14398 fi 14399 done 14400 done 14401 IFS=$as_save_IFS 14402 14403 ;; 14404 esac 14405 fi 14406 CPIO=$ac_cv_path_CPIO 14407 if test -n "$CPIO"; then 14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 14409 $as_echo "$CPIO" >&6; } 14410 else 14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14412 $as_echo "no" >&6; } 14413 fi 14414 14415 14416 if test "x$CPIO" = x; then 14417 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14418 fi 14419 else 14420 # Otherwise we believe it is a complete path. Use it as it is. 14421 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 14422 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 14424 $as_echo_n "checking for CPIO... " >&6; } 14425 if test ! -x "$tool_specified"; then 14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14427 $as_echo "not found" >&6; } 14428 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 14429 fi 14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14431 $as_echo "$tool_specified" >&6; } 14432 fi 14433 fi 14434 fi 14435 14436 fi 14437 14438 14439 14440 14441 # Publish this variable in the help. 14442 14443 14444 if [ -z "${NICE+x}" ]; then 14445 # The variable is not set by user, try to locate tool using the code snippet 14446 for ac_prog in nice 14447 do 14448 # Extract the first word of "$ac_prog", so it can be a program name with args. 14449 set dummy $ac_prog; ac_word=$2 14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14451 $as_echo_n "checking for $ac_word... " >&6; } 14452 if ${ac_cv_path_NICE+:} false; then : 14453 $as_echo_n "(cached) " >&6 14454 else 14455 case $NICE in 14456 [\\/]* | ?:[\\/]*) 14457 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 14458 ;; 14459 *) 14460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14461 for as_dir in $PATH 14462 do 14463 IFS=$as_save_IFS 14464 test -z "$as_dir" && as_dir=. 14465 for ac_exec_ext in '' $ac_executable_extensions; do 14466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14467 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 14468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14469 break 2 14470 fi 14471 done 14472 done 14473 IFS=$as_save_IFS 14474 14475 ;; 14476 esac 14477 fi 14478 NICE=$ac_cv_path_NICE 14479 if test -n "$NICE"; then 14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 14481 $as_echo "$NICE" >&6; } 14482 else 14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14484 $as_echo "no" >&6; } 14485 fi 14486 14487 14488 test -n "$NICE" && break 14489 done 14490 14491 else 14492 # The variable is set, but is it from the command line or the environment? 14493 14494 # Try to remove the string !NICE! from our list. 14495 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/} 14496 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14497 # If it failed, the variable was not from the command line. Ignore it, 14498 # but warn the user (except for BASH, which is always set by the calling BASH). 14499 if test "xNICE" != xBASH; then 14500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5 14501 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;} 14502 fi 14503 # Try to locate tool using the code snippet 14504 for ac_prog in nice 14505 do 14506 # Extract the first word of "$ac_prog", so it can be a program name with args. 14507 set dummy $ac_prog; ac_word=$2 14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14509 $as_echo_n "checking for $ac_word... " >&6; } 14510 if ${ac_cv_path_NICE+:} false; then : 14511 $as_echo_n "(cached) " >&6 14512 else 14513 case $NICE in 14514 [\\/]* | ?:[\\/]*) 14515 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 14516 ;; 14517 *) 14518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14519 for as_dir in $PATH 14520 do 14521 IFS=$as_save_IFS 14522 test -z "$as_dir" && as_dir=. 14523 for ac_exec_ext in '' $ac_executable_extensions; do 14524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14525 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 14526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14527 break 2 14528 fi 14529 done 14530 done 14531 IFS=$as_save_IFS 14532 14533 ;; 14534 esac 14535 fi 14536 NICE=$ac_cv_path_NICE 14537 if test -n "$NICE"; then 14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 14539 $as_echo "$NICE" >&6; } 14540 else 14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14542 $as_echo "no" >&6; } 14543 fi 14544 14545 14546 test -n "$NICE" && break 14547 done 14548 14549 else 14550 # If it succeeded, then it was overridden by the user. We will use it 14551 # for the tool. 14552 14553 # First remove it from the list of overridden variables, so we can test 14554 # for unknown variables in the end. 14555 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14556 14557 # Check if we try to supply an empty value 14558 if test "x$NICE" = x; then 14559 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5 14560 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;} 14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 14562 $as_echo_n "checking for NICE... " >&6; } 14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14564 $as_echo "disabled" >&6; } 14565 else 14566 # Check if the provided tool contains a complete path. 14567 tool_specified="$NICE" 14568 tool_basename="${tool_specified##*/}" 14569 if test "x$tool_basename" = "x$tool_specified"; then 14570 # A command without a complete path is provided, search $PATH. 14571 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5 14572 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;} 14573 # Extract the first word of "$tool_basename", so it can be a program name with args. 14574 set dummy $tool_basename; ac_word=$2 14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14576 $as_echo_n "checking for $ac_word... " >&6; } 14577 if ${ac_cv_path_NICE+:} false; then : 14578 $as_echo_n "(cached) " >&6 14579 else 14580 case $NICE in 14581 [\\/]* | ?:[\\/]*) 14582 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 14583 ;; 14584 *) 14585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14586 for as_dir in $PATH 14587 do 14588 IFS=$as_save_IFS 14589 test -z "$as_dir" && as_dir=. 14590 for ac_exec_ext in '' $ac_executable_extensions; do 14591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14592 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 14593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14594 break 2 14595 fi 14596 done 14597 done 14598 IFS=$as_save_IFS 14599 14600 ;; 14601 esac 14602 fi 14603 NICE=$ac_cv_path_NICE 14604 if test -n "$NICE"; then 14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 14606 $as_echo "$NICE" >&6; } 14607 else 14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14609 $as_echo "no" >&6; } 14610 fi 14611 14612 14613 if test "x$NICE" = x; then 14614 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14615 fi 14616 else 14617 # Otherwise we believe it is a complete path. Use it as it is. 14618 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5 14619 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;} 14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 14621 $as_echo_n "checking for NICE... " >&6; } 14622 if test ! -x "$tool_specified"; then 14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14624 $as_echo "not found" >&6; } 14625 as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5 14626 fi 14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14628 $as_echo "$tool_specified" >&6; } 14629 fi 14630 fi 14631 fi 14632 14633 fi 14634 14635 14636 14637 14638 # Now we can determine OpenJDK build and target platforms. This is required to 14639 # have early on. 14640 # Make sure we can run config.sub. 14641 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 14642 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 14643 14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 14645 $as_echo_n "checking build system type... " >&6; } 14646 if ${ac_cv_build+:} false; then : 14647 $as_echo_n "(cached) " >&6 14648 else 14649 ac_build_alias=$build_alias 14650 test "x$ac_build_alias" = x && 14651 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 14652 test "x$ac_build_alias" = x && 14653 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 14654 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 14655 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 14656 14657 fi 14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 14659 $as_echo "$ac_cv_build" >&6; } 14660 case $ac_cv_build in 14661 *-*-*) ;; 14662 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 14663 esac 14664 build=$ac_cv_build 14665 ac_save_IFS=$IFS; IFS='-' 14666 set x $ac_cv_build 14667 shift 14668 build_cpu=$1 14669 build_vendor=$2 14670 shift; shift 14671 # Remember, the first character of IFS is used to create $*, 14672 # except with old shells: 14673 build_os=$* 14674 IFS=$ac_save_IFS 14675 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 14676 14677 14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 14679 $as_echo_n "checking host system type... " >&6; } 14680 if ${ac_cv_host+:} false; then : 14681 $as_echo_n "(cached) " >&6 14682 else 14683 if test "x$host_alias" = x; then 14684 ac_cv_host=$ac_cv_build 14685 else 14686 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 14687 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 14688 fi 14689 14690 fi 14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 14692 $as_echo "$ac_cv_host" >&6; } 14693 case $ac_cv_host in 14694 *-*-*) ;; 14695 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 14696 esac 14697 host=$ac_cv_host 14698 ac_save_IFS=$IFS; IFS='-' 14699 set x $ac_cv_host 14700 shift 14701 host_cpu=$1 14702 host_vendor=$2 14703 shift; shift 14704 # Remember, the first character of IFS is used to create $*, 14705 # except with old shells: 14706 host_os=$* 14707 IFS=$ac_save_IFS 14708 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 14709 14710 14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 14712 $as_echo_n "checking target system type... " >&6; } 14713 if ${ac_cv_target+:} false; then : 14714 $as_echo_n "(cached) " >&6 14715 else 14716 if test "x$target_alias" = x; then 14717 ac_cv_target=$ac_cv_host 14718 else 14719 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 14720 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 14721 fi 14722 14723 fi 14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 14725 $as_echo "$ac_cv_target" >&6; } 14726 case $ac_cv_target in 14727 *-*-*) ;; 14728 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 14729 esac 14730 target=$ac_cv_target 14731 ac_save_IFS=$IFS; IFS='-' 14732 set x $ac_cv_target 14733 shift 14734 target_cpu=$1 14735 target_vendor=$2 14736 shift; shift 14737 # Remember, the first character of IFS is used to create $*, 14738 # except with old shells: 14739 target_os=$* 14740 IFS=$ac_save_IFS 14741 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 14742 14743 14744 # The aliases save the names the user supplied, while $host etc. 14745 # will get canonicalized. 14746 test -n "$target_alias" && 14747 test "$program_prefix$program_suffix$program_transform_name" = \ 14748 NONENONEs,x,x, && 14749 program_prefix=${target_alias}- 14750 14751 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 14752 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 14753 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 14754 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 14755 # to use the configure naming style. 14756 14757 14758 14759 14760 14761 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 14762 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 14763 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 14764 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 14765 OPENJDK_TARGET_AUTOCONF_NAME="$host" 14766 OPENJDK_BUILD_AUTOCONF_NAME="$build" 14767 14768 14769 14770 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 14771 14772 case "$build_os" in 14773 *linux*) 14774 VAR_OS=linux 14775 VAR_OS_TYPE=unix 14776 ;; 14777 *solaris*) 14778 VAR_OS=solaris 14779 VAR_OS_TYPE=unix 14780 ;; 14781 *darwin*) 14782 VAR_OS=macosx 14783 VAR_OS_TYPE=unix 14784 ;; 14785 *bsd*) 14786 VAR_OS=bsd 14787 VAR_OS_TYPE=unix 14788 ;; 14789 *cygwin*) 14790 VAR_OS=windows 14791 VAR_OS_ENV=windows.cygwin 14792 ;; 14793 *mingw*) 14794 VAR_OS=windows 14795 VAR_OS_ENV=windows.msys 14796 ;; 14797 *aix*) 14798 VAR_OS=aix 14799 VAR_OS_TYPE=unix 14800 ;; 14801 *) 14802 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 14803 ;; 14804 esac 14805 14806 14807 # First argument is the cpu name from the trip/quad 14808 case "$build_cpu" in 14809 x86_64) 14810 VAR_CPU=x86_64 14811 VAR_CPU_ARCH=x86 14812 VAR_CPU_BITS=64 14813 VAR_CPU_ENDIAN=little 14814 ;; 14815 i?86) 14816 VAR_CPU=x86 14817 VAR_CPU_ARCH=x86 14818 VAR_CPU_BITS=32 14819 VAR_CPU_ENDIAN=little 14820 ;; 14821 arm*) 14822 VAR_CPU=arm 14823 VAR_CPU_ARCH=arm 14824 VAR_CPU_BITS=32 14825 VAR_CPU_ENDIAN=little 14826 ;; 14827 aarch64) 14828 VAR_CPU=aarch64 14829 VAR_CPU_ARCH=aarch64 14830 VAR_CPU_BITS=64 14831 VAR_CPU_ENDIAN=little 14832 ;; 14833 powerpc) 14834 VAR_CPU=ppc 14835 VAR_CPU_ARCH=ppc 14836 VAR_CPU_BITS=32 14837 VAR_CPU_ENDIAN=big 14838 ;; 14839 powerpc64) 14840 VAR_CPU=ppc64 14841 VAR_CPU_ARCH=ppc 14842 VAR_CPU_BITS=64 14843 VAR_CPU_ENDIAN=big 14844 ;; 14845 powerpc64le) 14846 VAR_CPU=ppc64le 14847 VAR_CPU_ARCH=ppc 14848 VAR_CPU_BITS=64 14849 VAR_CPU_ENDIAN=little 14850 ;; 14851 s390) 14852 VAR_CPU=s390 14853 VAR_CPU_ARCH=s390 14854 VAR_CPU_BITS=32 14855 VAR_CPU_ENDIAN=big 14856 ;; 14857 s390x) 14858 VAR_CPU=s390x 14859 VAR_CPU_ARCH=s390 14860 VAR_CPU_BITS=64 14861 VAR_CPU_ENDIAN=big 14862 ;; 14863 sparc) 14864 VAR_CPU=sparc 14865 VAR_CPU_ARCH=sparc 14866 VAR_CPU_BITS=32 14867 VAR_CPU_ENDIAN=big 14868 ;; 14869 sparcv9|sparc64) 14870 VAR_CPU=sparcv9 14871 VAR_CPU_ARCH=sparc 14872 VAR_CPU_BITS=64 14873 VAR_CPU_ENDIAN=big 14874 ;; 14875 *) 14876 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 14877 ;; 14878 esac 14879 14880 # ..and setup our own variables. (Do this explicitely to facilitate searching) 14881 OPENJDK_BUILD_OS="$VAR_OS" 14882 if test "x$VAR_OS_TYPE" != x; then 14883 OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE" 14884 else 14885 OPENJDK_BUILD_OS_TYPE="$VAR_OS" 14886 fi 14887 if test "x$VAR_OS_ENV" != x; then 14888 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 14889 else 14890 OPENJDK_BUILD_OS_ENV="$VAR_OS" 14891 fi 14892 OPENJDK_BUILD_CPU="$VAR_CPU" 14893 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 14894 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 14895 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 14896 14897 14898 14899 14900 14901 14902 14903 14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 14905 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 14907 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 14908 14909 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 14910 14911 case "$host_os" in 14912 *linux*) 14913 VAR_OS=linux 14914 VAR_OS_TYPE=unix 14915 ;; 14916 *solaris*) 14917 VAR_OS=solaris 14918 VAR_OS_TYPE=unix 14919 ;; 14920 *darwin*) 14921 VAR_OS=macosx 14922 VAR_OS_TYPE=unix 14923 ;; 14924 *bsd*) 14925 VAR_OS=bsd 14926 VAR_OS_TYPE=unix 14927 ;; 14928 *cygwin*) 14929 VAR_OS=windows 14930 VAR_OS_ENV=windows.cygwin 14931 ;; 14932 *mingw*) 14933 VAR_OS=windows 14934 VAR_OS_ENV=windows.msys 14935 ;; 14936 *aix*) 14937 VAR_OS=aix 14938 VAR_OS_TYPE=unix 14939 ;; 14940 *) 14941 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 14942 ;; 14943 esac 14944 14945 14946 # First argument is the cpu name from the trip/quad 14947 case "$host_cpu" in 14948 x86_64) 14949 VAR_CPU=x86_64 14950 VAR_CPU_ARCH=x86 14951 VAR_CPU_BITS=64 14952 VAR_CPU_ENDIAN=little 14953 ;; 14954 i?86) 14955 VAR_CPU=x86 14956 VAR_CPU_ARCH=x86 14957 VAR_CPU_BITS=32 14958 VAR_CPU_ENDIAN=little 14959 ;; 14960 arm*) 14961 VAR_CPU=arm 14962 VAR_CPU_ARCH=arm 14963 VAR_CPU_BITS=32 14964 VAR_CPU_ENDIAN=little 14965 ;; 14966 aarch64) 14967 VAR_CPU=aarch64 14968 VAR_CPU_ARCH=aarch64 14969 VAR_CPU_BITS=64 14970 VAR_CPU_ENDIAN=little 14971 ;; 14972 powerpc) 14973 VAR_CPU=ppc 14974 VAR_CPU_ARCH=ppc 14975 VAR_CPU_BITS=32 14976 VAR_CPU_ENDIAN=big 14977 ;; 14978 powerpc64) 14979 VAR_CPU=ppc64 14980 VAR_CPU_ARCH=ppc 14981 VAR_CPU_BITS=64 14982 VAR_CPU_ENDIAN=big 14983 ;; 14984 powerpc64le) 14985 VAR_CPU=ppc64le 14986 VAR_CPU_ARCH=ppc 14987 VAR_CPU_BITS=64 14988 VAR_CPU_ENDIAN=little 14989 ;; 14990 s390) 14991 VAR_CPU=s390 14992 VAR_CPU_ARCH=s390 14993 VAR_CPU_BITS=32 14994 VAR_CPU_ENDIAN=big 14995 ;; 14996 s390x) 14997 VAR_CPU=s390x 14998 VAR_CPU_ARCH=s390 14999 VAR_CPU_BITS=64 15000 VAR_CPU_ENDIAN=big 15001 ;; 15002 sparc) 15003 VAR_CPU=sparc 15004 VAR_CPU_ARCH=sparc 15005 VAR_CPU_BITS=32 15006 VAR_CPU_ENDIAN=big 15007 ;; 15008 sparcv9|sparc64) 15009 VAR_CPU=sparcv9 15010 VAR_CPU_ARCH=sparc 15011 VAR_CPU_BITS=64 15012 VAR_CPU_ENDIAN=big 15013 ;; 15014 *) 15015 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 15016 ;; 15017 esac 15018 15019 # ... and setup our own variables. (Do this explicitely to facilitate searching) 15020 OPENJDK_TARGET_OS="$VAR_OS" 15021 if test "x$VAR_OS_TYPE" != x; then 15022 OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE" 15023 else 15024 OPENJDK_TARGET_OS_TYPE="$VAR_OS" 15025 fi 15026 if test "x$VAR_OS_ENV" != x; then 15027 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 15028 else 15029 OPENJDK_TARGET_OS_ENV="$VAR_OS" 15030 fi 15031 OPENJDK_TARGET_CPU="$VAR_CPU" 15032 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 15033 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 15034 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 15035 15036 15037 15038 15039 15040 15041 15042 15043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 15044 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 15046 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 15047 15048 15049 15050 # Check whether --with-target-bits was given. 15051 if test "${with_target_bits+set}" = set; then : 15052 withval=$with_target_bits; 15053 fi 15054 15055 15056 # We have three types of compiles: 15057 # native == normal compilation, target system == build system 15058 # cross == traditional cross compilation, target system != build system; special toolchain needed 15059 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 15060 # 15061 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 15062 # We're doing a proper cross-compilation 15063 COMPILE_TYPE="cross" 15064 else 15065 COMPILE_TYPE="native" 15066 fi 15067 15068 if test "x$with_target_bits" != x; then 15069 if test "x$COMPILE_TYPE" = "xcross"; then 15070 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 15071 fi 15072 15073 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 15074 # A reduced build is requested 15075 COMPILE_TYPE="reduced" 15076 OPENJDK_TARGET_CPU_BITS=32 15077 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 15078 OPENJDK_TARGET_CPU=x86 15079 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 15080 OPENJDK_TARGET_CPU=sparc 15081 else 15082 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 15083 fi 15084 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 15085 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 15086 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 15087 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 15088 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 15089 else 15090 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 15091 fi 15092 fi 15093 15094 15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 15096 $as_echo_n "checking compilation type... " >&6; } 15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 15098 $as_echo "$COMPILE_TYPE" >&6; } 15099 15100 15101 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 15102 REQUIRED_OS_NAME=SunOS 15103 REQUIRED_OS_VERSION=5.10 15104 fi 15105 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 15106 REQUIRED_OS_NAME=Linux 15107 REQUIRED_OS_VERSION=2.6 15108 fi 15109 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 15110 REQUIRED_OS_NAME=Windows 15111 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 15112 REQUIRED_OS_VERSION=5.2 15113 else 15114 REQUIRED_OS_VERSION=5.1 15115 fi 15116 fi 15117 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 15118 REQUIRED_OS_NAME=Darwin 15119 REQUIRED_OS_VERSION=11.2 15120 fi 15121 15122 15123 15124 15125 15126 # Also store the legacy naming of the cpu. 15127 # Ie i586 and amd64 instead of x86 and x86_64 15128 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 15129 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15130 OPENJDK_TARGET_CPU_LEGACY="i586" 15131 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15132 # On all platforms except MacOSX replace x86_64 with amd64. 15133 OPENJDK_TARGET_CPU_LEGACY="amd64" 15134 fi 15135 15136 15137 # And the second legacy naming of the cpu. 15138 # Ie i386 and amd64 instead of x86 and x86_64. 15139 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 15140 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15141 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 15142 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15143 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 15144 fi 15145 15146 15147 # This is the name of the cpu (but using i386 and amd64 instead of 15148 # x86 and x86_64, respectively), preceeded by a /, to be used when 15149 # locating libraries. On macosx, it's empty, though. 15150 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 15151 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 15152 OPENJDK_TARGET_CPU_LIBDIR="" 15153 fi 15154 15155 15156 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 15157 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 15158 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 15159 OPENJDK_TARGET_CPU_ISADIR="" 15160 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 15161 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15162 OPENJDK_TARGET_CPU_ISADIR="/amd64" 15163 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 15164 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 15165 fi 15166 fi 15167 15168 15169 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 15170 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 15171 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 15172 # On linux only, we replace x86 with i386. 15173 OPENJDK_TARGET_CPU_OSARCH="i386" 15174 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15175 # On all platforms except macosx, we replace x86_64 with amd64. 15176 OPENJDK_TARGET_CPU_OSARCH="amd64" 15177 fi 15178 15179 15180 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 15181 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15182 OPENJDK_TARGET_CPU_JLI="i386" 15183 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15184 # On all platforms except macosx, we replace x86_64 with amd64. 15185 OPENJDK_TARGET_CPU_JLI="amd64" 15186 fi 15187 # Now setup the -D flags for building libjli. 15188 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 15189 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 15190 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 15191 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 15192 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 15193 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 15194 fi 15195 fi 15196 15197 15198 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 15199 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 15200 else 15201 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE} 15202 fi 15203 15204 15205 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 15206 A_LP64="LP64:=" 15207 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 15208 # unpack200.exe 15209 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 15210 ADD_LP64="-D_LP64=1" 15211 fi 15212 fi 15213 LP64=$A_LP64 15214 15215 15216 if test "x$COMPILE_TYPE" = "xcross"; then 15217 # FIXME: ... or should this include reduced builds..? 15218 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 15219 else 15220 DEFINE_CROSS_COMPILE_ARCH="" 15221 fi 15222 15223 15224 # ZERO_ARCHDEF is used to enable architecture-specific code 15225 case "${OPENJDK_TARGET_CPU}" in 15226 ppc) ZERO_ARCHDEF=PPC32 ;; 15227 ppc64) ZERO_ARCHDEF=PPC64 ;; 15228 s390*) ZERO_ARCHDEF=S390 ;; 15229 sparc*) ZERO_ARCHDEF=SPARC ;; 15230 x86_64*) ZERO_ARCHDEF=AMD64 ;; 15231 x86) ZERO_ARCHDEF=IA32 ;; 15232 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z) 15233 esac 15234 15235 15236 15237 15238 # Continue setting up basic stuff. Most remaining code require fundamental tools. 15239 15240 # Save the current directory this script was started from 15241 CURDIR="$PWD" 15242 15243 # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them 15244 # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED 15245 # was not available at that time. 15246 REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'` 15247 if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then 15248 ORIGINAL_PATH="$REWRITTEN_PATH" 15249 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5 15250 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;} 15251 fi 15252 15253 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 15254 PATH_SEP=";" 15255 15256 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 15257 if test $SRC_ROOT_LENGTH -gt 100; then 15258 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 15259 fi 15260 15261 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 15263 $as_echo_n "checking cygwin release... " >&6; } 15264 CYGWIN_VERSION=`$UNAME -r` 15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 15266 $as_echo "$CYGWIN_VERSION" >&6; } 15267 WINDOWS_ENV_VENDOR='cygwin' 15268 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 15269 15270 CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'` 15271 if test "x$CYGWIN_VERSION_OLD" != x; then 15272 { $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 15273 $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;} 15274 as_fn_error $? "Cannot continue" "$LINENO" 5 15275 fi 15276 if test "x$CYGPATH" = x; then 15277 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 15278 fi 15279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 15280 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 15281 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 15282 cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"` 15283 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 15284 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 15286 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 15287 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 15288 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 15289 if test "x$test_cygdrive_prefix" = x; then 15290 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 15291 fi 15292 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 15294 $as_echo_n "checking msys release... " >&6; } 15295 MSYS_VERSION=`$UNAME -r` 15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 15297 $as_echo "$MSYS_VERSION" >&6; } 15298 15299 WINDOWS_ENV_VENDOR='msys' 15300 WINDOWS_ENV_VERSION="$MSYS_VERSION" 15301 15302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 15303 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 15304 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 15305 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 15306 15307 windows_path="$MSYS_ROOT_PATH" 15308 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15309 unix_path=`$CYGPATH -u "$windows_path"` 15310 MSYS_ROOT_PATH="$unix_path" 15311 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15312 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15313 MSYS_ROOT_PATH="$unix_path" 15314 fi 15315 15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 15317 $as_echo "$MSYS_ROOT_PATH" >&6; } 15318 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 15319 else 15320 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 15321 fi 15322 15323 # Test if windows or unix (cygwin/msys) find is first in path. 15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 15325 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 15326 FIND_BINARY_OUTPUT=`find --version 2>&1` 15327 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 15329 $as_echo "unix style" >&6; } 15330 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 15331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 15332 $as_echo "Windows" >&6; } 15333 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 15334 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 15335 { $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 15336 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 15337 as_fn_error $? "Cannot continue" "$LINENO" 5 15338 else 15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 15340 $as_echo "unknown" >&6; } 15341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 15342 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 15343 fi 15344 15345 else 15346 PATH_SEP=":" 15347 fi 15348 15349 15350 # We get the top-level directory from the supporting wrappers. 15351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 15352 $as_echo_n "checking for top-level directory... " >&6; } 15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 15354 $as_echo "$TOPDIR" >&6; } 15355 15356 15357 # Save the original version of TOPDIR for string comparisons 15358 ORIGINAL_TOPDIR="$TOPDIR" 15359 15360 15361 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 15362 15363 # Only process if variable expands to non-empty 15364 15365 if test "x$CURDIR" != x; then 15366 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15367 15368 # Input might be given as Windows format, start by converting to 15369 # unix format. 15370 path="$CURDIR" 15371 new_path=`$CYGPATH -u "$path"` 15372 15373 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15374 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15375 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15376 # "foo.exe" is OK but "foo" is an error. 15377 # 15378 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15379 # It is also a way to make sure we got the proper file name for the real test later on. 15380 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15381 if test "x$test_shortpath" = x; then 15382 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 15383 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 15384 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 15385 fi 15386 15387 # Call helper function which possibly converts this using DOS-style short mode. 15388 # If so, the updated path is stored in $new_path. 15389 15390 input_path="$new_path" 15391 # Check if we need to convert this using DOS-style short mode. If the path 15392 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15393 # take no chances and rewrite it. 15394 # Note: m4 eats our [], so we need to use [ and ] instead. 15395 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15396 if test "x$has_forbidden_chars" != x; then 15397 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15398 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15399 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15400 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15401 # Going to short mode and back again did indeed matter. Since short mode is 15402 # case insensitive, let's make it lowercase to improve readability. 15403 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15404 # Now convert it back to Unix-style (cygpath) 15405 input_path=`$CYGPATH -u "$shortmode_path"` 15406 new_path="$input_path" 15407 fi 15408 fi 15409 15410 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15411 if test "x$test_cygdrive_prefix" = x; then 15412 # As a simple fix, exclude /usr/bin since it's not a real path. 15413 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15414 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15415 # a path prefixed by /cygdrive for fixpath to work. 15416 new_path="$CYGWIN_ROOT_PATH$input_path" 15417 fi 15418 fi 15419 15420 15421 if test "x$path" != "x$new_path"; then 15422 CURDIR="$new_path" 15423 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 15424 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 15425 fi 15426 15427 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15428 15429 path="$CURDIR" 15430 has_colon=`$ECHO $path | $GREP ^.:` 15431 new_path="$path" 15432 if test "x$has_colon" = x; then 15433 # Not in mixed or Windows style, start by that. 15434 new_path=`cmd //c echo $path` 15435 fi 15436 15437 15438 input_path="$new_path" 15439 # Check if we need to convert this using DOS-style short mode. If the path 15440 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15441 # take no chances and rewrite it. 15442 # Note: m4 eats our [], so we need to use [ and ] instead. 15443 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15444 if test "x$has_forbidden_chars" != x; then 15445 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15446 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15447 fi 15448 15449 15450 windows_path="$new_path" 15451 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15452 unix_path=`$CYGPATH -u "$windows_path"` 15453 new_path="$unix_path" 15454 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15455 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15456 new_path="$unix_path" 15457 fi 15458 15459 if test "x$path" != "x$new_path"; then 15460 CURDIR="$new_path" 15461 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 15462 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 15463 fi 15464 15465 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15466 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15467 15468 else 15469 # We're on a unix platform. Hooray! :) 15470 path="$CURDIR" 15471 has_space=`$ECHO "$path" | $GREP " "` 15472 if test "x$has_space" != x; then 15473 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 15474 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 15475 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15476 fi 15477 15478 # Use eval to expand a potential ~ 15479 eval path="$path" 15480 if test ! -f "$path" && test ! -d "$path"; then 15481 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 15482 fi 15483 15484 if test -d "$path"; then 15485 CURDIR="`cd "$path"; $THEPWDCMD -L`" 15486 else 15487 dir="`$DIRNAME "$path"`" 15488 base="`$BASENAME "$path"`" 15489 CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 15490 fi 15491 fi 15492 fi 15493 15494 15495 # Only process if variable expands to non-empty 15496 15497 if test "x$TOPDIR" != x; then 15498 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15499 15500 # Input might be given as Windows format, start by converting to 15501 # unix format. 15502 path="$TOPDIR" 15503 new_path=`$CYGPATH -u "$path"` 15504 15505 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15506 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15507 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15508 # "foo.exe" is OK but "foo" is an error. 15509 # 15510 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15511 # It is also a way to make sure we got the proper file name for the real test later on. 15512 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15513 if test "x$test_shortpath" = x; then 15514 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 15515 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 15516 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 15517 fi 15518 15519 # Call helper function which possibly converts this using DOS-style short mode. 15520 # If so, the updated path is stored in $new_path. 15521 15522 input_path="$new_path" 15523 # Check if we need to convert this using DOS-style short mode. If the path 15524 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15525 # take no chances and rewrite it. 15526 # Note: m4 eats our [], so we need to use [ and ] instead. 15527 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15528 if test "x$has_forbidden_chars" != x; then 15529 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15530 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15531 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15532 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15533 # Going to short mode and back again did indeed matter. Since short mode is 15534 # case insensitive, let's make it lowercase to improve readability. 15535 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15536 # Now convert it back to Unix-style (cygpath) 15537 input_path=`$CYGPATH -u "$shortmode_path"` 15538 new_path="$input_path" 15539 fi 15540 fi 15541 15542 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15543 if test "x$test_cygdrive_prefix" = x; then 15544 # As a simple fix, exclude /usr/bin since it's not a real path. 15545 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15546 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15547 # a path prefixed by /cygdrive for fixpath to work. 15548 new_path="$CYGWIN_ROOT_PATH$input_path" 15549 fi 15550 fi 15551 15552 15553 if test "x$path" != "x$new_path"; then 15554 TOPDIR="$new_path" 15555 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 15556 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 15557 fi 15558 15559 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15560 15561 path="$TOPDIR" 15562 has_colon=`$ECHO $path | $GREP ^.:` 15563 new_path="$path" 15564 if test "x$has_colon" = x; then 15565 # Not in mixed or Windows style, start by that. 15566 new_path=`cmd //c echo $path` 15567 fi 15568 15569 15570 input_path="$new_path" 15571 # Check if we need to convert this using DOS-style short mode. If the path 15572 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15573 # take no chances and rewrite it. 15574 # Note: m4 eats our [], so we need to use [ and ] instead. 15575 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15576 if test "x$has_forbidden_chars" != x; then 15577 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15578 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15579 fi 15580 15581 15582 windows_path="$new_path" 15583 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15584 unix_path=`$CYGPATH -u "$windows_path"` 15585 new_path="$unix_path" 15586 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15587 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15588 new_path="$unix_path" 15589 fi 15590 15591 if test "x$path" != "x$new_path"; then 15592 TOPDIR="$new_path" 15593 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 15594 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 15595 fi 15596 15597 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15598 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15599 15600 else 15601 # We're on a unix platform. Hooray! :) 15602 path="$TOPDIR" 15603 has_space=`$ECHO "$path" | $GREP " "` 15604 if test "x$has_space" != x; then 15605 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 15606 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 15607 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15608 fi 15609 15610 # Use eval to expand a potential ~ 15611 eval path="$path" 15612 if test ! -f "$path" && test ! -d "$path"; then 15613 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 15614 fi 15615 15616 if test -d "$path"; then 15617 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 15618 else 15619 dir="`$DIRNAME "$path"`" 15620 base="`$BASENAME "$path"`" 15621 TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 15622 fi 15623 fi 15624 fi 15625 15626 # SRC_ROOT is a traditional alias for TOPDIR. 15627 SRC_ROOT=$TOPDIR 15628 15629 # Calculate a canonical version of TOPDIR for string comparisons 15630 CANONICAL_TOPDIR=$TOPDIR 15631 15632 if test "x$OPENJDK_BUILD_OS" != xwindows; then 15633 # Follow a chain of symbolic links. Use readlink 15634 # where it exists, else fall back to horribly 15635 # complicated shell code. 15636 if test "x$READLINK_TESTED" != yes; then 15637 # On MacOSX there is a readlink tool with a different 15638 # purpose than the GNU readlink tool. Check the found readlink. 15639 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 15640 if test "x$ISGNU" = x; then 15641 # A readlink that we do not know how to use. 15642 # Are there other non-GNU readlinks out there? 15643 READLINK_TESTED=yes 15644 READLINK= 15645 fi 15646 fi 15647 15648 if test "x$READLINK" != x; then 15649 CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR` 15650 else 15651 # Save the current directory for restoring afterwards 15652 STARTDIR=$PWD 15653 COUNTER=0 15654 sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR` 15655 sym_link_file=`$BASENAME $CANONICAL_TOPDIR` 15656 cd $sym_link_dir 15657 # Use -P flag to resolve symlinks in directories. 15658 cd `$THEPWDCMD -P` 15659 sym_link_dir=`$THEPWDCMD -P` 15660 # Resolve file symlinks 15661 while test $COUNTER -lt 20; do 15662 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 15663 if test "x$ISLINK" == x; then 15664 # This is not a symbolic link! We are done! 15665 break 15666 fi 15667 # Again resolve directory symlinks since the target of the just found 15668 # link could be in a different directory 15669 cd `$DIRNAME $ISLINK` 15670 sym_link_dir=`$THEPWDCMD -P` 15671 sym_link_file=`$BASENAME $ISLINK` 15672 let COUNTER=COUNTER+1 15673 done 15674 cd $STARTDIR 15675 CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file 15676 fi 15677 fi 15678 15679 15680 15681 # Locate the directory of this script. 15682 AUTOCONF_DIR=$TOPDIR/common/autoconf 15683 15684 # Setup username (for use in adhoc version strings etc) 15685 # Outer [ ] to quote m4. 15686 USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'` 15687 15688 15689 15690 # Check if it's a pure open build or if custom sources are to be used. 15691 15692 # Check whether --enable-openjdk-only was given. 15693 if test "${enable_openjdk_only+set}" = set; then : 15694 enableval=$enable_openjdk_only; 15695 else 15696 enable_openjdk_only="no" 15697 fi 15698 15699 15700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 15701 $as_echo_n "checking for presence of closed sources... " >&6; } 15702 if test -d "$SRC_ROOT/jdk/src/closed"; then 15703 CLOSED_SOURCE_PRESENT=yes 15704 else 15705 CLOSED_SOURCE_PRESENT=no 15706 fi 15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 15708 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 15709 15710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 15711 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 15712 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 15714 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 15715 15716 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 15717 OPENJDK=true 15718 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 15719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 15720 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 15721 fi 15722 else 15723 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 15724 OPENJDK=true 15725 else 15726 OPENJDK=false 15727 fi 15728 fi 15729 15730 if test "x$OPENJDK" = "xtrue"; then 15731 SET_OPENJDK="OPENJDK=true" 15732 fi 15733 15734 15735 15736 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 15737 # the IncludeCustomExtension macro. 15738 15739 15740 # Check whether --with-custom-make-dir was given. 15741 if test "${with_custom_make_dir+set}" = set; then : 15742 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 15743 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 15744 fi 15745 15746 15747 15748 15749 # These are needed to be able to create a configuration name (and thus the output directory) 15750 15751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 15752 $as_echo_n "checking which variant of the JDK to build... " >&6; } 15753 15754 # Check whether --with-jdk-variant was given. 15755 if test "${with_jdk_variant+set}" = set; then : 15756 withval=$with_jdk_variant; 15757 fi 15758 15759 15760 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 15761 JDK_VARIANT="normal" 15762 else 15763 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 15764 fi 15765 15766 15767 15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 15769 $as_echo "$JDK_VARIANT" >&6; } 15770 15771 15772 15773 # Check whether --with-jvm-interpreter was given. 15774 if test "${with_jvm_interpreter+set}" = set; then : 15775 withval=$with_jvm_interpreter; 15776 fi 15777 15778 15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5 15780 $as_echo_n "checking which interpreter of the JVM to build... " >&6; } 15781 if test "x$with_jvm_interpreter" = x; then 15782 JVM_INTERPRETER="template" 15783 else 15784 JVM_INTERPRETER="$with_jvm_interpreter" 15785 fi 15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_INTERPRETER" >&5 15787 $as_echo "$JVM_INTERPRETER" >&6; } 15788 15789 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then 15790 as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5 15791 fi 15792 15793 15794 15795 15796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 15797 $as_echo_n "checking which variants of the JVM to build... " >&6; } 15798 15799 # Check whether --with-jvm-variants was given. 15800 if test "${with_jvm_variants+set}" = set; then : 15801 withval=$with_jvm_variants; 15802 fi 15803 15804 15805 if test "x$with_jvm_variants" = x; then 15806 with_jvm_variants="server" 15807 fi 15808 15809 JVM_VARIANTS=",$with_jvm_variants," 15810 TEST_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,//' -e 's/client,//' -e 's/minimal1,//' -e 's/zero,//' -e 's/zeroshark,//' -e 's/core,//'` 15811 15812 if test "x$TEST_VARIANTS" != "x,"; then 15813 as_fn_error $? "The available JVM variants are: server, client, minimal1, zero, zeroshark, core" "$LINENO" 5 15814 fi 15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 15816 $as_echo "$with_jvm_variants" >&6; } 15817 15818 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 15819 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 15820 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'` 15821 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 15822 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 15823 JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'` 15824 15825 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 15826 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 15827 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 15828 fi 15829 fi 15830 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 15831 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 15832 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 15833 fi 15834 fi 15835 15836 # Replace the commas with AND for use in the build directory name. 15837 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'` 15838 COUNT_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,/1/' -e 's/client,/1/' -e 's/minimal1,/1/' -e 's/zero,/1/' -e 's/zeroshark,/1/' -e 's/core,/1/'` 15839 if test "x$COUNT_VARIANTS" != "x,1"; then 15840 BUILDING_MULTIPLE_JVM_VARIANTS=yes 15841 else 15842 BUILDING_MULTIPLE_JVM_VARIANTS=no 15843 fi 15844 15845 if test "x$JVM_VARIANT_ZERO" = xtrue && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xyes; then 15846 as_fn_error $? "You cannot build multiple variants with zero." "$LINENO" 5 15847 fi 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 15858 MACOSX_UNIVERSAL="true" 15859 fi 15860 15861 15862 15863 15864 DEBUG_LEVEL="release" 15865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 15866 $as_echo_n "checking which debug level to use... " >&6; } 15867 # Check whether --enable-debug was given. 15868 if test "${enable_debug+set}" = set; then : 15869 enableval=$enable_debug; 15870 ENABLE_DEBUG="${enableval}" 15871 DEBUG_LEVEL="fastdebug" 15872 15873 else 15874 ENABLE_DEBUG="no" 15875 fi 15876 15877 15878 15879 # Check whether --with-debug-level was given. 15880 if test "${with_debug_level+set}" = set; then : 15881 withval=$with_debug_level; 15882 DEBUG_LEVEL="${withval}" 15883 if test "x$ENABLE_DEBUG" = xyes; then 15884 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 15885 fi 15886 15887 fi 15888 15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 15890 $as_echo "$DEBUG_LEVEL" >&6; } 15891 15892 if test "x$DEBUG_LEVEL" != xrelease && \ 15893 test "x$DEBUG_LEVEL" != xoptimized && \ 15894 test "x$DEBUG_LEVEL" != xfastdebug && \ 15895 test "x$DEBUG_LEVEL" != xslowdebug; then 15896 as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5 15897 fi 15898 15899 15900 case $DEBUG_LEVEL in 15901 release ) 15902 VARIANT="OPT" 15903 FASTDEBUG="false" 15904 DEBUG_CLASSFILES="false" 15905 BUILD_VARIANT_RELEASE="" 15906 HOTSPOT_DEBUG_LEVEL="product" 15907 HOTSPOT_EXPORT="product" 15908 ;; 15909 fastdebug ) 15910 VARIANT="DBG" 15911 FASTDEBUG="true" 15912 DEBUG_CLASSFILES="true" 15913 BUILD_VARIANT_RELEASE="-fastdebug" 15914 HOTSPOT_DEBUG_LEVEL="fastdebug" 15915 HOTSPOT_EXPORT="fastdebug" 15916 ;; 15917 slowdebug ) 15918 VARIANT="DBG" 15919 FASTDEBUG="false" 15920 DEBUG_CLASSFILES="true" 15921 BUILD_VARIANT_RELEASE="-debug" 15922 HOTSPOT_DEBUG_LEVEL="debug" 15923 HOTSPOT_EXPORT="debug" 15924 ;; 15925 optimized ) 15926 VARIANT="OPT" 15927 FASTDEBUG="false" 15928 DEBUG_CLASSFILES="false" 15929 BUILD_VARIANT_RELEASE="-optimized" 15930 HOTSPOT_DEBUG_LEVEL="optimized" 15931 HOTSPOT_EXPORT="optimized" 15932 ;; 15933 esac 15934 15935 # The debug level 'optimized' is a little special because it is currently only 15936 # applicable to the HotSpot build where it means to build a completely 15937 # optimized version of the VM without any debugging code (like for the 15938 # 'release' debug level which is called 'product' in the HotSpot build) but 15939 # with the exception that it can contain additional code which is otherwise 15940 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 15941 # test new and/or experimental features which are not intended for customer 15942 # shipment. Because these new features need to be tested and benchmarked in 15943 # real world scenarios, we want to build the containing JDK at the 'release' 15944 # debug level. 15945 if test "x$DEBUG_LEVEL" = xoptimized; then 15946 DEBUG_LEVEL="release" 15947 fi 15948 15949 ##### 15950 # Generate the legacy makefile targets for hotspot. 15951 # The hotspot api for selecting the build artifacts, really, needs to be improved. 15952 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to 15953 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc 15954 # But until then ... 15955 HOTSPOT_TARGET="" 15956 15957 if test "x$JVM_VARIANT_SERVER" = xtrue; then 15958 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 15959 fi 15960 15961 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 15962 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 15963 fi 15964 15965 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 15966 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 15967 fi 15968 15969 if test "x$JVM_VARIANT_ZERO" = xtrue; then 15970 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 15971 fi 15972 15973 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 15974 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 15975 fi 15976 15977 if test "x$JVM_VARIANT_CORE" = xtrue; then 15978 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core " 15979 fi 15980 15981 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 15982 15983 # On Macosx universal binaries are produced, but they only contain 15984 # 64 bit intel. This invalidates control of which jvms are built 15985 # from configure, but only server is valid anyway. Fix this 15986 # when hotspot makefiles are rewritten. 15987 if test "x$MACOSX_UNIVERSAL" = xtrue; then 15988 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT} 15989 fi 15990 15991 ##### 15992 15993 15994 15995 15996 15997 15998 15999 16000 # With basic setup done, call the custom early hook. 16001 16002 16003 # Check if we have devkits, extra paths or sysroot set. 16004 16005 16006 # Check whether --with-devkit was given. 16007 if test "${with_devkit+set}" = set; then : 16008 withval=$with_devkit; 16009 16010 # Only process if variable expands to non-empty 16011 16012 if test "x$with_devkit" != x; then 16013 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16014 16015 # Input might be given as Windows format, start by converting to 16016 # unix format. 16017 path="$with_devkit" 16018 new_path=`$CYGPATH -u "$path"` 16019 16020 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16021 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16022 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16023 # "foo.exe" is OK but "foo" is an error. 16024 # 16025 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16026 # It is also a way to make sure we got the proper file name for the real test later on. 16027 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16028 if test "x$test_shortpath" = x; then 16029 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 16030 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 16031 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 16032 fi 16033 16034 # Call helper function which possibly converts this using DOS-style short mode. 16035 # If so, the updated path is stored in $new_path. 16036 16037 input_path="$new_path" 16038 # Check if we need to convert this using DOS-style short mode. If the path 16039 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16040 # take no chances and rewrite it. 16041 # Note: m4 eats our [], so we need to use [ and ] instead. 16042 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16043 if test "x$has_forbidden_chars" != x; then 16044 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16045 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16046 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16047 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16048 # Going to short mode and back again did indeed matter. Since short mode is 16049 # case insensitive, let's make it lowercase to improve readability. 16050 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16051 # Now convert it back to Unix-style (cygpath) 16052 input_path=`$CYGPATH -u "$shortmode_path"` 16053 new_path="$input_path" 16054 fi 16055 fi 16056 16057 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16058 if test "x$test_cygdrive_prefix" = x; then 16059 # As a simple fix, exclude /usr/bin since it's not a real path. 16060 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16061 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16062 # a path prefixed by /cygdrive for fixpath to work. 16063 new_path="$CYGWIN_ROOT_PATH$input_path" 16064 fi 16065 fi 16066 16067 16068 if test "x$path" != "x$new_path"; then 16069 with_devkit="$new_path" 16070 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 16071 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 16072 fi 16073 16074 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16075 16076 path="$with_devkit" 16077 has_colon=`$ECHO $path | $GREP ^.:` 16078 new_path="$path" 16079 if test "x$has_colon" = x; then 16080 # Not in mixed or Windows style, start by that. 16081 new_path=`cmd //c echo $path` 16082 fi 16083 16084 16085 input_path="$new_path" 16086 # Check if we need to convert this using DOS-style short mode. If the path 16087 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16088 # take no chances and rewrite it. 16089 # Note: m4 eats our [], so we need to use [ and ] instead. 16090 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16091 if test "x$has_forbidden_chars" != x; then 16092 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16093 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16094 fi 16095 16096 16097 windows_path="$new_path" 16098 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16099 unix_path=`$CYGPATH -u "$windows_path"` 16100 new_path="$unix_path" 16101 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16102 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16103 new_path="$unix_path" 16104 fi 16105 16106 if test "x$path" != "x$new_path"; then 16107 with_devkit="$new_path" 16108 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 16109 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 16110 fi 16111 16112 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16113 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16114 16115 else 16116 # We're on a unix platform. Hooray! :) 16117 path="$with_devkit" 16118 has_space=`$ECHO "$path" | $GREP " "` 16119 if test "x$has_space" != x; then 16120 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 16121 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 16122 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16123 fi 16124 16125 # Use eval to expand a potential ~ 16126 eval path="$path" 16127 if test ! -f "$path" && test ! -d "$path"; then 16128 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 16129 fi 16130 16131 if test -d "$path"; then 16132 with_devkit="`cd "$path"; $THEPWDCMD -L`" 16133 else 16134 dir="`$DIRNAME "$path"`" 16135 base="`$BASENAME "$path"`" 16136 with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 16137 fi 16138 fi 16139 fi 16140 16141 DEVKIT_ROOT="$with_devkit" 16142 # Check for a meta data info file in the root of the devkit 16143 if test -f "$DEVKIT_ROOT/devkit.info"; then 16144 . $DEVKIT_ROOT/devkit.info 16145 # This potentially sets the following: 16146 # A descriptive name of the devkit 16147 16148 if test "x$DEVKIT_NAME" = x; then 16149 eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 16150 fi 16151 16152 # Corresponds to --with-extra-path 16153 16154 if test "x$DEVKIT_EXTRA_PATH" = x; then 16155 eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 16156 fi 16157 16158 # Corresponds to --with-toolchain-path 16159 16160 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 16161 eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 16162 fi 16163 16164 # Corresponds to --with-sysroot 16165 16166 if test "x$DEVKIT_SYSROOT" = x; then 16167 eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 16168 fi 16169 16170 16171 # Identifies the Visual Studio version in the devkit 16172 16173 if test "x$DEVKIT_VS_VERSION" = x; then 16174 eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}" 16175 fi 16176 16177 # The Visual Studio include environment variable 16178 16179 if test "x$DEVKIT_VS_INCLUDE" = x; then 16180 eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}" 16181 fi 16182 16183 # The Visual Studio lib environment variable 16184 16185 if test "x$DEVKIT_VS_LIB" = x; then 16186 eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}" 16187 fi 16188 16189 # Corresponds to --with-msvcr-dll 16190 16191 if test "x$DEVKIT_MSVCR_DLL" = x; then 16192 eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}" 16193 fi 16194 16195 # Corresponds to --with-msvcp-dll 16196 16197 if test "x$DEVKIT_MSVCP_DLL" = x; then 16198 eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}" 16199 fi 16200 16201 fi 16202 16203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 16204 $as_echo_n "checking for devkit... " >&6; } 16205 if test "x$DEVKIT_NAME" != x; then 16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 16207 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 16208 else 16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 16210 $as_echo "$DEVKIT_ROOT" >&6; } 16211 fi 16212 16213 16214 if test "x$DEVKIT_EXTRA_PATH" != x; then 16215 if test "x$EXTRA_PATH" = x; then 16216 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 16217 else 16218 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 16219 fi 16220 fi 16221 16222 16223 # Fallback default of just /bin if DEVKIT_PATH is not defined 16224 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 16225 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 16226 fi 16227 16228 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 16229 if test "x$TOOLCHAIN_PATH" = x; then 16230 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 16231 else 16232 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 16233 fi 16234 fi 16235 16236 16237 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 16238 # places for backwards compatiblity. 16239 if test "x$DEVKIT_SYSROOT" != x; then 16240 SYSROOT="$DEVKIT_SYSROOT" 16241 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 16242 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 16243 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 16244 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 16245 fi 16246 16247 16248 fi 16249 16250 16251 # You can force the sysroot if the sysroot encoded into the compiler tools 16252 # is not correct. 16253 16254 # Check whether --with-sys-root was given. 16255 if test "${with_sys_root+set}" = set; then : 16256 withval=$with_sys_root; SYSROOT=$with_sys_root 16257 16258 fi 16259 16260 16261 16262 # Check whether --with-sysroot was given. 16263 if test "${with_sysroot+set}" = set; then : 16264 withval=$with_sysroot; SYSROOT=$with_sysroot 16265 16266 fi 16267 16268 16269 16270 # Check whether --with-tools-dir was given. 16271 if test "${with_tools_dir+set}" = set; then : 16272 withval=$with_tools_dir; 16273 if test "x$with_tools_dir" != x; then 16274 if test "x$TOOLCHAIN_PATH" = x; then 16275 TOOLCHAIN_PATH="$with_tools_dir" 16276 else 16277 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 16278 fi 16279 fi 16280 16281 16282 fi 16283 16284 16285 16286 # Check whether --with-toolchain-path was given. 16287 if test "${with_toolchain_path+set}" = set; then : 16288 withval=$with_toolchain_path; 16289 if test "x$with_toolchain_path" != x; then 16290 if test "x$TOOLCHAIN_PATH" = x; then 16291 TOOLCHAIN_PATH="$with_toolchain_path" 16292 else 16293 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 16294 fi 16295 fi 16296 16297 16298 fi 16299 16300 16301 16302 # Check whether --with-extra-path was given. 16303 if test "${with_extra_path+set}" = set; then : 16304 withval=$with_extra_path; 16305 if test "x$with_extra_path" != x; then 16306 if test "x$EXTRA_PATH" = x; then 16307 EXTRA_PATH="$with_extra_path" 16308 else 16309 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 16310 fi 16311 fi 16312 16313 16314 fi 16315 16316 16317 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 16318 # If a devkit has been supplied, find xcodebuild in the toolchain_path. 16319 # If not, detect if Xcode is installed by running xcodebuild -version 16320 # if no Xcode installed, xcodebuild exits with 1 16321 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 16322 if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then 16323 # We need to use xcodebuild in the toolchain dir provided by the user, this will 16324 # fall back on the stub binary in /usr/bin/xcodebuild 16325 # Extract the first word of "xcodebuild", so it can be a program name with args. 16326 set dummy xcodebuild; ac_word=$2 16327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16328 $as_echo_n "checking for $ac_word... " >&6; } 16329 if ${ac_cv_path_XCODEBUILD+:} false; then : 16330 $as_echo_n "(cached) " >&6 16331 else 16332 case $XCODEBUILD in 16333 [\\/]* | ?:[\\/]*) 16334 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 16335 ;; 16336 *) 16337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16338 for as_dir in $TOOLCHAIN_PATH 16339 do 16340 IFS=$as_save_IFS 16341 test -z "$as_dir" && as_dir=. 16342 for ac_exec_ext in '' $ac_executable_extensions; do 16343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16344 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 16345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16346 break 2 16347 fi 16348 done 16349 done 16350 IFS=$as_save_IFS 16351 16352 test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild" 16353 ;; 16354 esac 16355 fi 16356 XCODEBUILD=$ac_cv_path_XCODEBUILD 16357 if test -n "$XCODEBUILD"; then 16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 16359 $as_echo "$XCODEBUILD" >&6; } 16360 else 16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16362 $as_echo "no" >&6; } 16363 fi 16364 16365 16366 else 16367 # this should result in SYSROOT being empty, unless --with-sysroot is provided 16368 # when only the command line tools are installed there are no SDKs, so headers 16369 # are copied into the system frameworks 16370 XCODEBUILD= 16371 16372 fi 16373 16374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5 16375 $as_echo_n "checking for sdk name... " >&6; } 16376 16377 # Check whether --with-sdk-name was given. 16378 if test "${with_sdk_name+set}" = set; then : 16379 withval=$with_sdk_name; SDKNAME=$with_sdk_name 16380 16381 fi 16382 16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5 16384 $as_echo "$SDKNAME" >&6; } 16385 16386 # if toolchain path is specified then don't rely on system headers, they may not compile 16387 HAVE_SYSTEM_FRAMEWORK_HEADERS=0 16388 test -z "$TOOLCHAIN_PATH" && \ 16389 HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?` 16390 16391 if test -z "$SYSROOT"; then 16392 if test -n "$XCODEBUILD"; then 16393 # if we don't have system headers, use default SDK name (last resort) 16394 if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 16395 SDKNAME=${SDKNAME:-macosx} 16396 fi 16397 16398 if test -n "$SDKNAME"; then 16399 # Call xcodebuild to determine SYSROOT 16400 SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'` 16401 fi 16402 else 16403 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 16404 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 16405 fi 16406 fi 16407 else 16408 # warn user if --with-sdk-name was also set 16409 if test -n "$with_sdk_name"; then 16410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5 16411 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;} 16412 fi 16413 fi 16414 16415 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then 16416 # If no system framework headers, then SYSROOT must be set, or we won't build 16417 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 16418 fi 16419 16420 # Perform a basic sanity test 16421 if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 16422 if test -z "$SYSROOT"; then 16423 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 16424 else 16425 as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5 16426 fi 16427 fi 16428 16429 # set SDKROOT too, Xcode tools will pick it up 16430 SDKROOT=$SYSROOT 16431 16432 fi 16433 16434 # Prepend the extra path to the global path 16435 16436 if test "x$EXTRA_PATH" != x; then 16437 if test "x$PATH" = x; then 16438 PATH="$EXTRA_PATH" 16439 else 16440 PATH="$EXTRA_PATH:$PATH" 16441 fi 16442 fi 16443 16444 16445 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 16446 # Add extra search paths on solaris for utilities like ar and as etc... 16447 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin" 16448 fi 16449 16450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 16451 $as_echo_n "checking for sysroot... " >&6; } 16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 16453 $as_echo "$SYSROOT" >&6; } 16454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 16455 $as_echo_n "checking for toolchain path... " >&6; } 16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 16457 $as_echo "$TOOLCHAIN_PATH" >&6; } 16458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 16459 $as_echo_n "checking for extra path... " >&6; } 16460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 16461 $as_echo "$EXTRA_PATH" >&6; } 16462 16463 16464 # To properly create a configuration name, we need to have the OpenJDK target 16465 # and options (variants and debug level) parsed. 16466 16467 16468 16469 # Check whether --with-conf-name was given. 16470 if test "${with_conf_name+set}" = set; then : 16471 withval=$with_conf_name; CONF_NAME=${with_conf_name} 16472 fi 16473 16474 16475 # Test from where we are running configure, in or outside of src root. 16476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 16477 $as_echo_n "checking where to store configuration... " >&6; } 16478 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 16479 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 16480 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 16481 # We are running configure from the src root. 16482 # Create a default ./build/target-variant-debuglevel output root. 16483 if test "x${CONF_NAME}" = x; then 16484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 16485 $as_echo "in default location" >&6; } 16486 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 16487 else 16488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 16489 $as_echo "in build directory with custom name" >&6; } 16490 fi 16491 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 16492 $MKDIR -p "$OUTPUT_ROOT" 16493 if test ! -d "$OUTPUT_ROOT"; then 16494 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 16495 fi 16496 else 16497 # We are running configure from outside of the src dir. 16498 # Then use the current directory as output dir! 16499 # If configuration is situated in normal build directory, just use the build 16500 # directory name as configuration name, otherwise use the complete path. 16501 if test "x${CONF_NAME}" = x; then 16502 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 16503 fi 16504 OUTPUT_ROOT="$CURDIR" 16505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 16506 $as_echo "in current directory" >&6; } 16507 16508 # WARNING: This might be a bad thing to do. You need to be sure you want to 16509 # have a configuration in this directory. Do some sanity checks! 16510 16511 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 16512 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 16513 # other files 16514 files_present=`$LS $OUTPUT_ROOT` 16515 # Configure has already touched config.log and confdefs.h in the current dir when this check 16516 # is performed. 16517 filtered_files=`$ECHO "$files_present" \ 16518 | $SED -e 's/config.log//g' \ 16519 -e 's/configure.log//g' \ 16520 -e 's/confdefs.h//g' \ 16521 -e 's/ //g' \ 16522 | $TR -d '\n'` 16523 if test "x$filtered_files" != x; then 16524 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 16525 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 16526 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 16527 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 16528 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 16529 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 16530 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 16531 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 16532 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 16533 $as_echo "$as_me: seriously mess up just about everything." >&6;} 16534 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 16535 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 16536 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 16537 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 16538 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 16539 fi 16540 fi 16541 fi 16542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 16543 $as_echo_n "checking what configuration name to use... " >&6; } 16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 16545 $as_echo "$CONF_NAME" >&6; } 16546 16547 16548 # Only process if variable expands to non-empty 16549 16550 if test "x$OUTPUT_ROOT" != x; then 16551 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16552 16553 # Input might be given as Windows format, start by converting to 16554 # unix format. 16555 path="$OUTPUT_ROOT" 16556 new_path=`$CYGPATH -u "$path"` 16557 16558 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16559 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16560 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16561 # "foo.exe" is OK but "foo" is an error. 16562 # 16563 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16564 # It is also a way to make sure we got the proper file name for the real test later on. 16565 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16566 if test "x$test_shortpath" = x; then 16567 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 16568 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 16569 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 16570 fi 16571 16572 # Call helper function which possibly converts this using DOS-style short mode. 16573 # If so, the updated path is stored in $new_path. 16574 16575 input_path="$new_path" 16576 # Check if we need to convert this using DOS-style short mode. If the path 16577 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16578 # take no chances and rewrite it. 16579 # Note: m4 eats our [], so we need to use [ and ] instead. 16580 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16581 if test "x$has_forbidden_chars" != x; then 16582 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16583 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16584 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16585 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16586 # Going to short mode and back again did indeed matter. Since short mode is 16587 # case insensitive, let's make it lowercase to improve readability. 16588 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16589 # Now convert it back to Unix-style (cygpath) 16590 input_path=`$CYGPATH -u "$shortmode_path"` 16591 new_path="$input_path" 16592 fi 16593 fi 16594 16595 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16596 if test "x$test_cygdrive_prefix" = x; then 16597 # As a simple fix, exclude /usr/bin since it's not a real path. 16598 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16599 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16600 # a path prefixed by /cygdrive for fixpath to work. 16601 new_path="$CYGWIN_ROOT_PATH$input_path" 16602 fi 16603 fi 16604 16605 16606 if test "x$path" != "x$new_path"; then 16607 OUTPUT_ROOT="$new_path" 16608 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 16609 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 16610 fi 16611 16612 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16613 16614 path="$OUTPUT_ROOT" 16615 has_colon=`$ECHO $path | $GREP ^.:` 16616 new_path="$path" 16617 if test "x$has_colon" = x; then 16618 # Not in mixed or Windows style, start by that. 16619 new_path=`cmd //c echo $path` 16620 fi 16621 16622 16623 input_path="$new_path" 16624 # Check if we need to convert this using DOS-style short mode. If the path 16625 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16626 # take no chances and rewrite it. 16627 # Note: m4 eats our [], so we need to use [ and ] instead. 16628 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16629 if test "x$has_forbidden_chars" != x; then 16630 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16631 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16632 fi 16633 16634 16635 windows_path="$new_path" 16636 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16637 unix_path=`$CYGPATH -u "$windows_path"` 16638 new_path="$unix_path" 16639 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16640 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16641 new_path="$unix_path" 16642 fi 16643 16644 if test "x$path" != "x$new_path"; then 16645 OUTPUT_ROOT="$new_path" 16646 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 16647 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 16648 fi 16649 16650 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16651 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16652 16653 else 16654 # We're on a unix platform. Hooray! :) 16655 path="$OUTPUT_ROOT" 16656 has_space=`$ECHO "$path" | $GREP " "` 16657 if test "x$has_space" != x; then 16658 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 16659 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 16660 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16661 fi 16662 16663 # Use eval to expand a potential ~ 16664 eval path="$path" 16665 if test ! -f "$path" && test ! -d "$path"; then 16666 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 16667 fi 16668 16669 if test -d "$path"; then 16670 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 16671 else 16672 dir="`$DIRNAME "$path"`" 16673 base="`$BASENAME "$path"`" 16674 OUTPUT_ROOT="`cd "$dir"; $THEPWDCMD -L`/$base" 16675 fi 16676 fi 16677 fi 16678 16679 16680 CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support" 16681 $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR" 16682 16683 SPEC=$OUTPUT_ROOT/spec.gmk 16684 16685 CONF_NAME=$CONF_NAME 16686 16687 OUTPUT_ROOT=$OUTPUT_ROOT 16688 16689 16690 16691 # The spec.gmk file contains all variables for the make system. 16692 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 16693 16694 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 16695 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 16696 16697 # The bootcycle-spec.gmk file contains support for boot cycle builds. 16698 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 16699 16700 # The compare.sh is used to compare the build output to other builds. 16701 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 16702 16703 # The generated Makefile knows where the spec.gmk is and where the source is. 16704 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 16705 # which will look for generated configurations 16706 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 16707 16708 16709 16710 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 16711 16712 for ac_prog in apt-get yum port pkgutil pkgadd 16713 do 16714 # Extract the first word of "$ac_prog", so it can be a program name with args. 16715 set dummy $ac_prog; ac_word=$2 16716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16717 $as_echo_n "checking for $ac_word... " >&6; } 16718 if ${ac_cv_prog_PKGHANDLER+:} false; then : 16719 $as_echo_n "(cached) " >&6 16720 else 16721 if test -n "$PKGHANDLER"; then 16722 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 16723 else 16724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16725 for as_dir in $PATH 16726 do 16727 IFS=$as_save_IFS 16728 test -z "$as_dir" && as_dir=. 16729 for ac_exec_ext in '' $ac_executable_extensions; do 16730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16731 ac_cv_prog_PKGHANDLER="$ac_prog" 16732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16733 break 2 16734 fi 16735 done 16736 done 16737 IFS=$as_save_IFS 16738 16739 fi 16740 fi 16741 PKGHANDLER=$ac_cv_prog_PKGHANDLER 16742 if test -n "$PKGHANDLER"; then 16743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 16744 $as_echo "$PKGHANDLER" >&6; } 16745 else 16746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16747 $as_echo "no" >&6; } 16748 fi 16749 16750 16751 test -n "$PKGHANDLER" && break 16752 done 16753 16754 16755 16756 # Setup tools that requires more complex handling, or that is not needed by the configure script. 16757 16758 16759 16760 # Publish this variable in the help. 16761 16762 16763 if [ -z "${MAKE+x}" ]; then 16764 # The variable is not set by user, try to locate tool using the code snippet 16765 16766 # Try our hardest to locate a correct version of GNU make 16767 for ac_prog in gmake 16768 do 16769 # Extract the first word of "$ac_prog", so it can be a program name with args. 16770 set dummy $ac_prog; ac_word=$2 16771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16772 $as_echo_n "checking for $ac_word... " >&6; } 16773 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 16774 $as_echo_n "(cached) " >&6 16775 else 16776 case $CHECK_GMAKE in 16777 [\\/]* | ?:[\\/]*) 16778 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 16779 ;; 16780 *) 16781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16782 for as_dir in $PATH 16783 do 16784 IFS=$as_save_IFS 16785 test -z "$as_dir" && as_dir=. 16786 for ac_exec_ext in '' $ac_executable_extensions; do 16787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16788 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 16789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16790 break 2 16791 fi 16792 done 16793 done 16794 IFS=$as_save_IFS 16795 16796 ;; 16797 esac 16798 fi 16799 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 16800 if test -n "$CHECK_GMAKE"; then 16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 16802 $as_echo "$CHECK_GMAKE" >&6; } 16803 else 16804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16805 $as_echo "no" >&6; } 16806 fi 16807 16808 16809 test -n "$CHECK_GMAKE" && break 16810 done 16811 16812 16813 MAKE_CANDIDATE=""$CHECK_GMAKE"" 16814 DESCRIPTION="gmake in PATH" 16815 16816 # On Cygwin, we require a newer version of make than on other platforms 16817 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16818 MAKE_VERSION_EXPR="-e 4\." 16819 MAKE_REQUIRED_VERSION="4.0" 16820 else 16821 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 16822 MAKE_REQUIRED_VERSION="3.81" 16823 fi 16824 16825 if test "x$MAKE_CANDIDATE" != x; then 16826 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16827 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16828 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16829 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16830 if test "x$IS_GNU_MAKE" = x; then 16831 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16832 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16833 else 16834 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 16835 if test "x$IS_MODERN_MAKE" = x; then 16836 { $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 16837 $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;} 16838 else 16839 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16840 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16841 MAKE_EXPECTED_ENV='cygwin' 16842 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16843 MAKE_EXPECTED_ENV='msys' 16844 else 16845 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16846 fi 16847 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16848 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16849 else 16850 # Not relevant for non-Windows 16851 IS_MAKE_CORRECT_ENV=true 16852 fi 16853 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16854 { $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 16855 $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;} 16856 else 16857 FOUND_MAKE=$MAKE_CANDIDATE 16858 16859 # Only process if variable expands to non-empty 16860 16861 if test "x$FOUND_MAKE" != x; then 16862 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16863 16864 # First separate the path from the arguments. This will split at the first 16865 # space. 16866 complete="$FOUND_MAKE" 16867 path="${complete%% *}" 16868 tmp="$complete EOL" 16869 arguments="${tmp#* }" 16870 16871 # Input might be given as Windows format, start by converting to 16872 # unix format. 16873 new_path=`$CYGPATH -u "$path"` 16874 16875 # Now try to locate executable using which 16876 new_path=`$WHICH "$new_path" 2> /dev/null` 16877 # bat and cmd files are not always considered executable in cygwin causing which 16878 # to not find them 16879 if test "x$new_path" = x \ 16880 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16881 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16882 new_path=`$CYGPATH -u "$path"` 16883 fi 16884 if test "x$new_path" = x; then 16885 # Oops. Which didn't find the executable. 16886 # The splitting of arguments from the executable at a space might have been incorrect, 16887 # since paths with space are more likely in Windows. Give it another try with the whole 16888 # argument. 16889 path="$complete" 16890 arguments="EOL" 16891 new_path=`$CYGPATH -u "$path"` 16892 new_path=`$WHICH "$new_path" 2> /dev/null` 16893 # bat and cmd files are not always considered executable in cygwin causing which 16894 # to not find them 16895 if test "x$new_path" = x \ 16896 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16897 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16898 new_path=`$CYGPATH -u "$path"` 16899 fi 16900 if test "x$new_path" = x; then 16901 # It's still not found. Now this is an unrecoverable error. 16902 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16903 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16904 has_space=`$ECHO "$complete" | $GREP " "` 16905 if test "x$has_space" != x; then 16906 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16907 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16908 fi 16909 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16910 fi 16911 fi 16912 16913 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16914 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16915 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16916 # "foo.exe" is OK but "foo" is an error. 16917 # 16918 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16919 # It is also a way to make sure we got the proper file name for the real test later on. 16920 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16921 if test "x$test_shortpath" = x; then 16922 # Short path failed, file does not exist as specified. 16923 # Try adding .exe or .cmd 16924 if test -f "${new_path}.exe"; then 16925 input_to_shortpath="${new_path}.exe" 16926 elif test -f "${new_path}.cmd"; then 16927 input_to_shortpath="${new_path}.cmd" 16928 else 16929 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16930 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16931 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16932 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16933 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16934 fi 16935 else 16936 input_to_shortpath="$new_path" 16937 fi 16938 16939 # Call helper function which possibly converts this using DOS-style short mode. 16940 # If so, the updated path is stored in $new_path. 16941 new_path="$input_to_shortpath" 16942 16943 input_path="$input_to_shortpath" 16944 # Check if we need to convert this using DOS-style short mode. If the path 16945 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16946 # take no chances and rewrite it. 16947 # Note: m4 eats our [], so we need to use [ and ] instead. 16948 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16949 if test "x$has_forbidden_chars" != x; then 16950 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16951 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16952 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16953 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16954 # Going to short mode and back again did indeed matter. Since short mode is 16955 # case insensitive, let's make it lowercase to improve readability. 16956 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16957 # Now convert it back to Unix-style (cygpath) 16958 input_path=`$CYGPATH -u "$shortmode_path"` 16959 new_path="$input_path" 16960 fi 16961 fi 16962 16963 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16964 if test "x$test_cygdrive_prefix" = x; then 16965 # As a simple fix, exclude /usr/bin since it's not a real path. 16966 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16967 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16968 # a path prefixed by /cygdrive for fixpath to work. 16969 new_path="$CYGWIN_ROOT_PATH$input_path" 16970 fi 16971 fi 16972 16973 # remove trailing .exe if any 16974 new_path="${new_path/%.exe/}" 16975 16976 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16977 16978 # First separate the path from the arguments. This will split at the first 16979 # space. 16980 complete="$FOUND_MAKE" 16981 path="${complete%% *}" 16982 tmp="$complete EOL" 16983 arguments="${tmp#* }" 16984 16985 # Input might be given as Windows format, start by converting to 16986 # unix format. 16987 new_path="$path" 16988 16989 windows_path="$new_path" 16990 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16991 unix_path=`$CYGPATH -u "$windows_path"` 16992 new_path="$unix_path" 16993 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16994 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16995 new_path="$unix_path" 16996 fi 16997 16998 16999 # Now try to locate executable using which 17000 new_path=`$WHICH "$new_path" 2> /dev/null` 17001 17002 if test "x$new_path" = x; then 17003 # Oops. Which didn't find the executable. 17004 # The splitting of arguments from the executable at a space might have been incorrect, 17005 # since paths with space are more likely in Windows. Give it another try with the whole 17006 # argument. 17007 path="$complete" 17008 arguments="EOL" 17009 new_path="$path" 17010 17011 windows_path="$new_path" 17012 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17013 unix_path=`$CYGPATH -u "$windows_path"` 17014 new_path="$unix_path" 17015 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17016 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17017 new_path="$unix_path" 17018 fi 17019 17020 17021 new_path=`$WHICH "$new_path" 2> /dev/null` 17022 # bat and cmd files are not always considered executable in MSYS causing which 17023 # to not find them 17024 if test "x$new_path" = x \ 17025 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17026 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17027 new_path="$path" 17028 17029 windows_path="$new_path" 17030 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17031 unix_path=`$CYGPATH -u "$windows_path"` 17032 new_path="$unix_path" 17033 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17034 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17035 new_path="$unix_path" 17036 fi 17037 17038 fi 17039 17040 if test "x$new_path" = x; then 17041 # It's still not found. Now this is an unrecoverable error. 17042 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17043 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17044 has_space=`$ECHO "$complete" | $GREP " "` 17045 if test "x$has_space" != x; then 17046 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17047 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17048 fi 17049 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17050 fi 17051 fi 17052 17053 # Now new_path has a complete unix path to the binary 17054 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17055 # Keep paths in /bin as-is, but remove trailing .exe if any 17056 new_path="${new_path/%.exe/}" 17057 # Do not save /bin paths to all_fixpath_prefixes! 17058 else 17059 # Not in mixed or Windows style, start by that. 17060 new_path=`cmd //c echo $new_path` 17061 17062 input_path="$new_path" 17063 # Check if we need to convert this using DOS-style short mode. If the path 17064 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17065 # take no chances and rewrite it. 17066 # Note: m4 eats our [], so we need to use [ and ] instead. 17067 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17068 if test "x$has_forbidden_chars" != x; then 17069 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17070 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17071 fi 17072 17073 # Output is in $new_path 17074 17075 windows_path="$new_path" 17076 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17077 unix_path=`$CYGPATH -u "$windows_path"` 17078 new_path="$unix_path" 17079 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17080 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17081 new_path="$unix_path" 17082 fi 17083 17084 # remove trailing .exe if any 17085 new_path="${new_path/%.exe/}" 17086 17087 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17088 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17089 fi 17090 17091 else 17092 # We're on a unix platform. Hooray! :) 17093 # First separate the path from the arguments. This will split at the first 17094 # space. 17095 complete="$FOUND_MAKE" 17096 path="${complete%% *}" 17097 tmp="$complete EOL" 17098 arguments="${tmp#* }" 17099 17100 # Cannot rely on the command "which" here since it doesn't always work. 17101 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17102 if test -z "$is_absolute_path"; then 17103 # Path to executable is not absolute. Find it. 17104 IFS_save="$IFS" 17105 IFS=: 17106 for p in $PATH; do 17107 if test -f "$p/$path" && test -x "$p/$path"; then 17108 new_path="$p/$path" 17109 break 17110 fi 17111 done 17112 IFS="$IFS_save" 17113 else 17114 # This is an absolute path, we can use it without further modifications. 17115 new_path="$path" 17116 fi 17117 17118 if test "x$new_path" = x; then 17119 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17120 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17121 has_space=`$ECHO "$complete" | $GREP " "` 17122 if test "x$has_space" != x; then 17123 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17124 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17125 fi 17126 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17127 fi 17128 fi 17129 17130 # Now join together the path and the arguments once again 17131 if test "x$arguments" != xEOL; then 17132 new_complete="$new_path ${arguments% *}" 17133 else 17134 new_complete="$new_path" 17135 fi 17136 17137 if test "x$complete" != "x$new_complete"; then 17138 FOUND_MAKE="$new_complete" 17139 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17140 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17141 fi 17142 fi 17143 17144 fi 17145 fi 17146 fi 17147 fi 17148 17149 17150 if test "x$FOUND_MAKE" = x; then 17151 for ac_prog in make 17152 do 17153 # Extract the first word of "$ac_prog", so it can be a program name with args. 17154 set dummy $ac_prog; ac_word=$2 17155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17156 $as_echo_n "checking for $ac_word... " >&6; } 17157 if ${ac_cv_path_CHECK_MAKE+:} false; then : 17158 $as_echo_n "(cached) " >&6 17159 else 17160 case $CHECK_MAKE in 17161 [\\/]* | ?:[\\/]*) 17162 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 17163 ;; 17164 *) 17165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17166 for as_dir in $PATH 17167 do 17168 IFS=$as_save_IFS 17169 test -z "$as_dir" && as_dir=. 17170 for ac_exec_ext in '' $ac_executable_extensions; do 17171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17172 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 17173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17174 break 2 17175 fi 17176 done 17177 done 17178 IFS=$as_save_IFS 17179 17180 ;; 17181 esac 17182 fi 17183 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 17184 if test -n "$CHECK_MAKE"; then 17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 17186 $as_echo "$CHECK_MAKE" >&6; } 17187 else 17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17189 $as_echo "no" >&6; } 17190 fi 17191 17192 17193 test -n "$CHECK_MAKE" && break 17194 done 17195 17196 17197 MAKE_CANDIDATE=""$CHECK_MAKE"" 17198 DESCRIPTION="make in PATH" 17199 17200 # On Cygwin, we require a newer version of make than on other platforms 17201 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17202 MAKE_VERSION_EXPR="-e 4\." 17203 MAKE_REQUIRED_VERSION="4.0" 17204 else 17205 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17206 MAKE_REQUIRED_VERSION="3.81" 17207 fi 17208 17209 if test "x$MAKE_CANDIDATE" != x; then 17210 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17211 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17212 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17213 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17214 if test "x$IS_GNU_MAKE" = x; then 17215 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17216 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17217 else 17218 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 17219 if test "x$IS_MODERN_MAKE" = x; then 17220 { $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 17221 $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;} 17222 else 17223 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17224 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17225 MAKE_EXPECTED_ENV='cygwin' 17226 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17227 MAKE_EXPECTED_ENV='msys' 17228 else 17229 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17230 fi 17231 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17232 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17233 else 17234 # Not relevant for non-Windows 17235 IS_MAKE_CORRECT_ENV=true 17236 fi 17237 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17238 { $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 17239 $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;} 17240 else 17241 FOUND_MAKE=$MAKE_CANDIDATE 17242 17243 # Only process if variable expands to non-empty 17244 17245 if test "x$FOUND_MAKE" != x; then 17246 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17247 17248 # First separate the path from the arguments. This will split at the first 17249 # space. 17250 complete="$FOUND_MAKE" 17251 path="${complete%% *}" 17252 tmp="$complete EOL" 17253 arguments="${tmp#* }" 17254 17255 # Input might be given as Windows format, start by converting to 17256 # unix format. 17257 new_path=`$CYGPATH -u "$path"` 17258 17259 # Now try to locate executable using which 17260 new_path=`$WHICH "$new_path" 2> /dev/null` 17261 # bat and cmd files are not always considered executable in cygwin causing which 17262 # to not find them 17263 if test "x$new_path" = x \ 17264 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17265 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17266 new_path=`$CYGPATH -u "$path"` 17267 fi 17268 if test "x$new_path" = x; then 17269 # Oops. Which didn't find the executable. 17270 # The splitting of arguments from the executable at a space might have been incorrect, 17271 # since paths with space are more likely in Windows. Give it another try with the whole 17272 # argument. 17273 path="$complete" 17274 arguments="EOL" 17275 new_path=`$CYGPATH -u "$path"` 17276 new_path=`$WHICH "$new_path" 2> /dev/null` 17277 # bat and cmd files are not always considered executable in cygwin causing which 17278 # to not find them 17279 if test "x$new_path" = x \ 17280 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17281 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17282 new_path=`$CYGPATH -u "$path"` 17283 fi 17284 if test "x$new_path" = x; then 17285 # It's still not found. Now this is an unrecoverable error. 17286 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17287 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17288 has_space=`$ECHO "$complete" | $GREP " "` 17289 if test "x$has_space" != x; then 17290 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17291 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17292 fi 17293 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17294 fi 17295 fi 17296 17297 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17298 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17299 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17300 # "foo.exe" is OK but "foo" is an error. 17301 # 17302 # This test is therefore slightly more accurate than "test -f" to check for file presence. 17303 # It is also a way to make sure we got the proper file name for the real test later on. 17304 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17305 if test "x$test_shortpath" = x; then 17306 # Short path failed, file does not exist as specified. 17307 # Try adding .exe or .cmd 17308 if test -f "${new_path}.exe"; then 17309 input_to_shortpath="${new_path}.exe" 17310 elif test -f "${new_path}.cmd"; then 17311 input_to_shortpath="${new_path}.cmd" 17312 else 17313 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17314 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17315 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17316 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17317 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17318 fi 17319 else 17320 input_to_shortpath="$new_path" 17321 fi 17322 17323 # Call helper function which possibly converts this using DOS-style short mode. 17324 # If so, the updated path is stored in $new_path. 17325 new_path="$input_to_shortpath" 17326 17327 input_path="$input_to_shortpath" 17328 # Check if we need to convert this using DOS-style short mode. If the path 17329 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17330 # take no chances and rewrite it. 17331 # Note: m4 eats our [], so we need to use [ and ] instead. 17332 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17333 if test "x$has_forbidden_chars" != x; then 17334 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17335 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17336 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17337 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17338 # Going to short mode and back again did indeed matter. Since short mode is 17339 # case insensitive, let's make it lowercase to improve readability. 17340 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17341 # Now convert it back to Unix-style (cygpath) 17342 input_path=`$CYGPATH -u "$shortmode_path"` 17343 new_path="$input_path" 17344 fi 17345 fi 17346 17347 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17348 if test "x$test_cygdrive_prefix" = x; then 17349 # As a simple fix, exclude /usr/bin since it's not a real path. 17350 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17351 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17352 # a path prefixed by /cygdrive for fixpath to work. 17353 new_path="$CYGWIN_ROOT_PATH$input_path" 17354 fi 17355 fi 17356 17357 # remove trailing .exe if any 17358 new_path="${new_path/%.exe/}" 17359 17360 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17361 17362 # First separate the path from the arguments. This will split at the first 17363 # space. 17364 complete="$FOUND_MAKE" 17365 path="${complete%% *}" 17366 tmp="$complete EOL" 17367 arguments="${tmp#* }" 17368 17369 # Input might be given as Windows format, start by converting to 17370 # unix format. 17371 new_path="$path" 17372 17373 windows_path="$new_path" 17374 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17375 unix_path=`$CYGPATH -u "$windows_path"` 17376 new_path="$unix_path" 17377 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17378 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17379 new_path="$unix_path" 17380 fi 17381 17382 17383 # Now try to locate executable using which 17384 new_path=`$WHICH "$new_path" 2> /dev/null` 17385 17386 if test "x$new_path" = x; then 17387 # Oops. Which didn't find the executable. 17388 # The splitting of arguments from the executable at a space might have been incorrect, 17389 # since paths with space are more likely in Windows. Give it another try with the whole 17390 # argument. 17391 path="$complete" 17392 arguments="EOL" 17393 new_path="$path" 17394 17395 windows_path="$new_path" 17396 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17397 unix_path=`$CYGPATH -u "$windows_path"` 17398 new_path="$unix_path" 17399 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17400 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17401 new_path="$unix_path" 17402 fi 17403 17404 17405 new_path=`$WHICH "$new_path" 2> /dev/null` 17406 # bat and cmd files are not always considered executable in MSYS causing which 17407 # to not find them 17408 if test "x$new_path" = x \ 17409 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17410 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17411 new_path="$path" 17412 17413 windows_path="$new_path" 17414 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17415 unix_path=`$CYGPATH -u "$windows_path"` 17416 new_path="$unix_path" 17417 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17418 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17419 new_path="$unix_path" 17420 fi 17421 17422 fi 17423 17424 if test "x$new_path" = x; then 17425 # It's still not found. Now this is an unrecoverable error. 17426 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17427 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17428 has_space=`$ECHO "$complete" | $GREP " "` 17429 if test "x$has_space" != x; then 17430 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17431 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17432 fi 17433 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17434 fi 17435 fi 17436 17437 # Now new_path has a complete unix path to the binary 17438 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17439 # Keep paths in /bin as-is, but remove trailing .exe if any 17440 new_path="${new_path/%.exe/}" 17441 # Do not save /bin paths to all_fixpath_prefixes! 17442 else 17443 # Not in mixed or Windows style, start by that. 17444 new_path=`cmd //c echo $new_path` 17445 17446 input_path="$new_path" 17447 # Check if we need to convert this using DOS-style short mode. If the path 17448 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17449 # take no chances and rewrite it. 17450 # Note: m4 eats our [], so we need to use [ and ] instead. 17451 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17452 if test "x$has_forbidden_chars" != x; then 17453 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17454 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17455 fi 17456 17457 # Output is in $new_path 17458 17459 windows_path="$new_path" 17460 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17461 unix_path=`$CYGPATH -u "$windows_path"` 17462 new_path="$unix_path" 17463 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17464 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17465 new_path="$unix_path" 17466 fi 17467 17468 # remove trailing .exe if any 17469 new_path="${new_path/%.exe/}" 17470 17471 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17472 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17473 fi 17474 17475 else 17476 # We're on a unix platform. Hooray! :) 17477 # First separate the path from the arguments. This will split at the first 17478 # space. 17479 complete="$FOUND_MAKE" 17480 path="${complete%% *}" 17481 tmp="$complete EOL" 17482 arguments="${tmp#* }" 17483 17484 # Cannot rely on the command "which" here since it doesn't always work. 17485 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17486 if test -z "$is_absolute_path"; then 17487 # Path to executable is not absolute. Find it. 17488 IFS_save="$IFS" 17489 IFS=: 17490 for p in $PATH; do 17491 if test -f "$p/$path" && test -x "$p/$path"; then 17492 new_path="$p/$path" 17493 break 17494 fi 17495 done 17496 IFS="$IFS_save" 17497 else 17498 # This is an absolute path, we can use it without further modifications. 17499 new_path="$path" 17500 fi 17501 17502 if test "x$new_path" = x; then 17503 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17504 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17505 has_space=`$ECHO "$complete" | $GREP " "` 17506 if test "x$has_space" != x; then 17507 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17508 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17509 fi 17510 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17511 fi 17512 fi 17513 17514 # Now join together the path and the arguments once again 17515 if test "x$arguments" != xEOL; then 17516 new_complete="$new_path ${arguments% *}" 17517 else 17518 new_complete="$new_path" 17519 fi 17520 17521 if test "x$complete" != "x$new_complete"; then 17522 FOUND_MAKE="$new_complete" 17523 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17524 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17525 fi 17526 fi 17527 17528 fi 17529 fi 17530 fi 17531 fi 17532 17533 fi 17534 17535 if test "x$FOUND_MAKE" = x; then 17536 if test "x$TOOLCHAIN_PATH" != x; then 17537 # We have a toolchain path, check that as well before giving up. 17538 OLD_PATH=$PATH 17539 PATH=$TOOLCHAIN_PATH:$PATH 17540 for ac_prog in gmake 17541 do 17542 # Extract the first word of "$ac_prog", so it can be a program name with args. 17543 set dummy $ac_prog; ac_word=$2 17544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17545 $as_echo_n "checking for $ac_word... " >&6; } 17546 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 17547 $as_echo_n "(cached) " >&6 17548 else 17549 case $CHECK_TOOLSDIR_GMAKE in 17550 [\\/]* | ?:[\\/]*) 17551 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 17552 ;; 17553 *) 17554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17555 for as_dir in $PATH 17556 do 17557 IFS=$as_save_IFS 17558 test -z "$as_dir" && as_dir=. 17559 for ac_exec_ext in '' $ac_executable_extensions; do 17560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17561 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 17562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17563 break 2 17564 fi 17565 done 17566 done 17567 IFS=$as_save_IFS 17568 17569 ;; 17570 esac 17571 fi 17572 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 17573 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 17575 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 17576 else 17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17578 $as_echo "no" >&6; } 17579 fi 17580 17581 17582 test -n "$CHECK_TOOLSDIR_GMAKE" && break 17583 done 17584 17585 17586 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 17587 DESCRIPTION="gmake in tools-dir" 17588 17589 # On Cygwin, we require a newer version of make than on other platforms 17590 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17591 MAKE_VERSION_EXPR="-e 4\." 17592 MAKE_REQUIRED_VERSION="4.0" 17593 else 17594 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17595 MAKE_REQUIRED_VERSION="3.81" 17596 fi 17597 17598 if test "x$MAKE_CANDIDATE" != x; then 17599 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17600 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17601 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17602 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17603 if test "x$IS_GNU_MAKE" = x; then 17604 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17605 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17606 else 17607 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 17608 if test "x$IS_MODERN_MAKE" = x; then 17609 { $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 17610 $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;} 17611 else 17612 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17613 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17614 MAKE_EXPECTED_ENV='cygwin' 17615 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17616 MAKE_EXPECTED_ENV='msys' 17617 else 17618 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17619 fi 17620 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17621 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17622 else 17623 # Not relevant for non-Windows 17624 IS_MAKE_CORRECT_ENV=true 17625 fi 17626 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17627 { $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 17628 $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;} 17629 else 17630 FOUND_MAKE=$MAKE_CANDIDATE 17631 17632 # Only process if variable expands to non-empty 17633 17634 if test "x$FOUND_MAKE" != x; then 17635 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17636 17637 # First separate the path from the arguments. This will split at the first 17638 # space. 17639 complete="$FOUND_MAKE" 17640 path="${complete%% *}" 17641 tmp="$complete EOL" 17642 arguments="${tmp#* }" 17643 17644 # Input might be given as Windows format, start by converting to 17645 # unix format. 17646 new_path=`$CYGPATH -u "$path"` 17647 17648 # Now try to locate executable using which 17649 new_path=`$WHICH "$new_path" 2> /dev/null` 17650 # bat and cmd files are not always considered executable in cygwin causing which 17651 # to not find them 17652 if test "x$new_path" = x \ 17653 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17654 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17655 new_path=`$CYGPATH -u "$path"` 17656 fi 17657 if test "x$new_path" = x; then 17658 # Oops. Which didn't find the executable. 17659 # The splitting of arguments from the executable at a space might have been incorrect, 17660 # since paths with space are more likely in Windows. Give it another try with the whole 17661 # argument. 17662 path="$complete" 17663 arguments="EOL" 17664 new_path=`$CYGPATH -u "$path"` 17665 new_path=`$WHICH "$new_path" 2> /dev/null` 17666 # bat and cmd files are not always considered executable in cygwin causing which 17667 # to not find them 17668 if test "x$new_path" = x \ 17669 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17670 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17671 new_path=`$CYGPATH -u "$path"` 17672 fi 17673 if test "x$new_path" = x; then 17674 # It's still not found. Now this is an unrecoverable error. 17675 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17676 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17677 has_space=`$ECHO "$complete" | $GREP " "` 17678 if test "x$has_space" != x; then 17679 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17680 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17681 fi 17682 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17683 fi 17684 fi 17685 17686 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17687 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17688 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17689 # "foo.exe" is OK but "foo" is an error. 17690 # 17691 # This test is therefore slightly more accurate than "test -f" to check for file presence. 17692 # It is also a way to make sure we got the proper file name for the real test later on. 17693 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17694 if test "x$test_shortpath" = x; then 17695 # Short path failed, file does not exist as specified. 17696 # Try adding .exe or .cmd 17697 if test -f "${new_path}.exe"; then 17698 input_to_shortpath="${new_path}.exe" 17699 elif test -f "${new_path}.cmd"; then 17700 input_to_shortpath="${new_path}.cmd" 17701 else 17702 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17703 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17704 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17705 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17706 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17707 fi 17708 else 17709 input_to_shortpath="$new_path" 17710 fi 17711 17712 # Call helper function which possibly converts this using DOS-style short mode. 17713 # If so, the updated path is stored in $new_path. 17714 new_path="$input_to_shortpath" 17715 17716 input_path="$input_to_shortpath" 17717 # Check if we need to convert this using DOS-style short mode. If the path 17718 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17719 # take no chances and rewrite it. 17720 # Note: m4 eats our [], so we need to use [ and ] instead. 17721 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17722 if test "x$has_forbidden_chars" != x; then 17723 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17724 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17725 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17726 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17727 # Going to short mode and back again did indeed matter. Since short mode is 17728 # case insensitive, let's make it lowercase to improve readability. 17729 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17730 # Now convert it back to Unix-style (cygpath) 17731 input_path=`$CYGPATH -u "$shortmode_path"` 17732 new_path="$input_path" 17733 fi 17734 fi 17735 17736 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17737 if test "x$test_cygdrive_prefix" = x; then 17738 # As a simple fix, exclude /usr/bin since it's not a real path. 17739 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17740 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17741 # a path prefixed by /cygdrive for fixpath to work. 17742 new_path="$CYGWIN_ROOT_PATH$input_path" 17743 fi 17744 fi 17745 17746 # remove trailing .exe if any 17747 new_path="${new_path/%.exe/}" 17748 17749 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17750 17751 # First separate the path from the arguments. This will split at the first 17752 # space. 17753 complete="$FOUND_MAKE" 17754 path="${complete%% *}" 17755 tmp="$complete EOL" 17756 arguments="${tmp#* }" 17757 17758 # Input might be given as Windows format, start by converting to 17759 # unix format. 17760 new_path="$path" 17761 17762 windows_path="$new_path" 17763 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17764 unix_path=`$CYGPATH -u "$windows_path"` 17765 new_path="$unix_path" 17766 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17767 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17768 new_path="$unix_path" 17769 fi 17770 17771 17772 # Now try to locate executable using which 17773 new_path=`$WHICH "$new_path" 2> /dev/null` 17774 17775 if test "x$new_path" = x; then 17776 # Oops. Which didn't find the executable. 17777 # The splitting of arguments from the executable at a space might have been incorrect, 17778 # since paths with space are more likely in Windows. Give it another try with the whole 17779 # argument. 17780 path="$complete" 17781 arguments="EOL" 17782 new_path="$path" 17783 17784 windows_path="$new_path" 17785 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17786 unix_path=`$CYGPATH -u "$windows_path"` 17787 new_path="$unix_path" 17788 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17789 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17790 new_path="$unix_path" 17791 fi 17792 17793 17794 new_path=`$WHICH "$new_path" 2> /dev/null` 17795 # bat and cmd files are not always considered executable in MSYS causing which 17796 # to not find them 17797 if test "x$new_path" = x \ 17798 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17799 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17800 new_path="$path" 17801 17802 windows_path="$new_path" 17803 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17804 unix_path=`$CYGPATH -u "$windows_path"` 17805 new_path="$unix_path" 17806 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17807 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17808 new_path="$unix_path" 17809 fi 17810 17811 fi 17812 17813 if test "x$new_path" = x; then 17814 # It's still not found. Now this is an unrecoverable error. 17815 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17816 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17817 has_space=`$ECHO "$complete" | $GREP " "` 17818 if test "x$has_space" != x; then 17819 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17820 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17821 fi 17822 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17823 fi 17824 fi 17825 17826 # Now new_path has a complete unix path to the binary 17827 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17828 # Keep paths in /bin as-is, but remove trailing .exe if any 17829 new_path="${new_path/%.exe/}" 17830 # Do not save /bin paths to all_fixpath_prefixes! 17831 else 17832 # Not in mixed or Windows style, start by that. 17833 new_path=`cmd //c echo $new_path` 17834 17835 input_path="$new_path" 17836 # Check if we need to convert this using DOS-style short mode. If the path 17837 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17838 # take no chances and rewrite it. 17839 # Note: m4 eats our [], so we need to use [ and ] instead. 17840 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17841 if test "x$has_forbidden_chars" != x; then 17842 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17843 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17844 fi 17845 17846 # Output is in $new_path 17847 17848 windows_path="$new_path" 17849 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17850 unix_path=`$CYGPATH -u "$windows_path"` 17851 new_path="$unix_path" 17852 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17853 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17854 new_path="$unix_path" 17855 fi 17856 17857 # remove trailing .exe if any 17858 new_path="${new_path/%.exe/}" 17859 17860 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17861 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17862 fi 17863 17864 else 17865 # We're on a unix platform. Hooray! :) 17866 # First separate the path from the arguments. This will split at the first 17867 # space. 17868 complete="$FOUND_MAKE" 17869 path="${complete%% *}" 17870 tmp="$complete EOL" 17871 arguments="${tmp#* }" 17872 17873 # Cannot rely on the command "which" here since it doesn't always work. 17874 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17875 if test -z "$is_absolute_path"; then 17876 # Path to executable is not absolute. Find it. 17877 IFS_save="$IFS" 17878 IFS=: 17879 for p in $PATH; do 17880 if test -f "$p/$path" && test -x "$p/$path"; then 17881 new_path="$p/$path" 17882 break 17883 fi 17884 done 17885 IFS="$IFS_save" 17886 else 17887 # This is an absolute path, we can use it without further modifications. 17888 new_path="$path" 17889 fi 17890 17891 if test "x$new_path" = x; then 17892 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17893 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17894 has_space=`$ECHO "$complete" | $GREP " "` 17895 if test "x$has_space" != x; then 17896 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17897 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17898 fi 17899 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17900 fi 17901 fi 17902 17903 # Now join together the path and the arguments once again 17904 if test "x$arguments" != xEOL; then 17905 new_complete="$new_path ${arguments% *}" 17906 else 17907 new_complete="$new_path" 17908 fi 17909 17910 if test "x$complete" != "x$new_complete"; then 17911 FOUND_MAKE="$new_complete" 17912 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17913 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17914 fi 17915 fi 17916 17917 fi 17918 fi 17919 fi 17920 fi 17921 17922 if test "x$FOUND_MAKE" = x; then 17923 for ac_prog in make 17924 do 17925 # Extract the first word of "$ac_prog", so it can be a program name with args. 17926 set dummy $ac_prog; ac_word=$2 17927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17928 $as_echo_n "checking for $ac_word... " >&6; } 17929 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 17930 $as_echo_n "(cached) " >&6 17931 else 17932 case $CHECK_TOOLSDIR_MAKE in 17933 [\\/]* | ?:[\\/]*) 17934 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 17935 ;; 17936 *) 17937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17938 for as_dir in $PATH 17939 do 17940 IFS=$as_save_IFS 17941 test -z "$as_dir" && as_dir=. 17942 for ac_exec_ext in '' $ac_executable_extensions; do 17943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17944 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 17945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17946 break 2 17947 fi 17948 done 17949 done 17950 IFS=$as_save_IFS 17951 17952 ;; 17953 esac 17954 fi 17955 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 17956 if test -n "$CHECK_TOOLSDIR_MAKE"; then 17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 17958 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 17959 else 17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17961 $as_echo "no" >&6; } 17962 fi 17963 17964 17965 test -n "$CHECK_TOOLSDIR_MAKE" && break 17966 done 17967 17968 17969 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 17970 DESCRIPTION="make in tools-dir" 17971 17972 # On Cygwin, we require a newer version of make than on other platforms 17973 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17974 MAKE_VERSION_EXPR="-e 4\." 17975 MAKE_REQUIRED_VERSION="4.0" 17976 else 17977 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17978 MAKE_REQUIRED_VERSION="3.81" 17979 fi 17980 17981 if test "x$MAKE_CANDIDATE" != x; then 17982 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17983 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17984 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17985 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17986 if test "x$IS_GNU_MAKE" = x; then 17987 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17988 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17989 else 17990 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 17991 if test "x$IS_MODERN_MAKE" = x; then 17992 { $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 17993 $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;} 17994 else 17995 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17996 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17997 MAKE_EXPECTED_ENV='cygwin' 17998 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17999 MAKE_EXPECTED_ENV='msys' 18000 else 18001 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18002 fi 18003 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18004 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18005 else 18006 # Not relevant for non-Windows 18007 IS_MAKE_CORRECT_ENV=true 18008 fi 18009 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18010 { $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 18011 $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;} 18012 else 18013 FOUND_MAKE=$MAKE_CANDIDATE 18014 18015 # Only process if variable expands to non-empty 18016 18017 if test "x$FOUND_MAKE" != x; then 18018 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18019 18020 # First separate the path from the arguments. This will split at the first 18021 # space. 18022 complete="$FOUND_MAKE" 18023 path="${complete%% *}" 18024 tmp="$complete EOL" 18025 arguments="${tmp#* }" 18026 18027 # Input might be given as Windows format, start by converting to 18028 # unix format. 18029 new_path=`$CYGPATH -u "$path"` 18030 18031 # Now try to locate executable using which 18032 new_path=`$WHICH "$new_path" 2> /dev/null` 18033 # bat and cmd files are not always considered executable in cygwin causing which 18034 # to not find them 18035 if test "x$new_path" = x \ 18036 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18037 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18038 new_path=`$CYGPATH -u "$path"` 18039 fi 18040 if test "x$new_path" = x; then 18041 # Oops. Which didn't find the executable. 18042 # The splitting of arguments from the executable at a space might have been incorrect, 18043 # since paths with space are more likely in Windows. Give it another try with the whole 18044 # argument. 18045 path="$complete" 18046 arguments="EOL" 18047 new_path=`$CYGPATH -u "$path"` 18048 new_path=`$WHICH "$new_path" 2> /dev/null` 18049 # bat and cmd files are not always considered executable in cygwin causing which 18050 # to not find them 18051 if test "x$new_path" = x \ 18052 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18053 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18054 new_path=`$CYGPATH -u "$path"` 18055 fi 18056 if test "x$new_path" = x; then 18057 # It's still not found. Now this is an unrecoverable error. 18058 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18059 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18060 has_space=`$ECHO "$complete" | $GREP " "` 18061 if test "x$has_space" != x; then 18062 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18063 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18064 fi 18065 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18066 fi 18067 fi 18068 18069 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18070 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18071 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18072 # "foo.exe" is OK but "foo" is an error. 18073 # 18074 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18075 # It is also a way to make sure we got the proper file name for the real test later on. 18076 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18077 if test "x$test_shortpath" = x; then 18078 # Short path failed, file does not exist as specified. 18079 # Try adding .exe or .cmd 18080 if test -f "${new_path}.exe"; then 18081 input_to_shortpath="${new_path}.exe" 18082 elif test -f "${new_path}.cmd"; then 18083 input_to_shortpath="${new_path}.cmd" 18084 else 18085 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18086 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18087 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18088 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18089 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18090 fi 18091 else 18092 input_to_shortpath="$new_path" 18093 fi 18094 18095 # Call helper function which possibly converts this using DOS-style short mode. 18096 # If so, the updated path is stored in $new_path. 18097 new_path="$input_to_shortpath" 18098 18099 input_path="$input_to_shortpath" 18100 # Check if we need to convert this using DOS-style short mode. If the path 18101 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18102 # take no chances and rewrite it. 18103 # Note: m4 eats our [], so we need to use [ and ] instead. 18104 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18105 if test "x$has_forbidden_chars" != x; then 18106 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18107 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18108 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18109 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18110 # Going to short mode and back again did indeed matter. Since short mode is 18111 # case insensitive, let's make it lowercase to improve readability. 18112 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18113 # Now convert it back to Unix-style (cygpath) 18114 input_path=`$CYGPATH -u "$shortmode_path"` 18115 new_path="$input_path" 18116 fi 18117 fi 18118 18119 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18120 if test "x$test_cygdrive_prefix" = x; then 18121 # As a simple fix, exclude /usr/bin since it's not a real path. 18122 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18123 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18124 # a path prefixed by /cygdrive for fixpath to work. 18125 new_path="$CYGWIN_ROOT_PATH$input_path" 18126 fi 18127 fi 18128 18129 # remove trailing .exe if any 18130 new_path="${new_path/%.exe/}" 18131 18132 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18133 18134 # First separate the path from the arguments. This will split at the first 18135 # space. 18136 complete="$FOUND_MAKE" 18137 path="${complete%% *}" 18138 tmp="$complete EOL" 18139 arguments="${tmp#* }" 18140 18141 # Input might be given as Windows format, start by converting to 18142 # unix format. 18143 new_path="$path" 18144 18145 windows_path="$new_path" 18146 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18147 unix_path=`$CYGPATH -u "$windows_path"` 18148 new_path="$unix_path" 18149 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18150 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18151 new_path="$unix_path" 18152 fi 18153 18154 18155 # Now try to locate executable using which 18156 new_path=`$WHICH "$new_path" 2> /dev/null` 18157 18158 if test "x$new_path" = x; then 18159 # Oops. Which didn't find the executable. 18160 # The splitting of arguments from the executable at a space might have been incorrect, 18161 # since paths with space are more likely in Windows. Give it another try with the whole 18162 # argument. 18163 path="$complete" 18164 arguments="EOL" 18165 new_path="$path" 18166 18167 windows_path="$new_path" 18168 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18169 unix_path=`$CYGPATH -u "$windows_path"` 18170 new_path="$unix_path" 18171 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18172 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18173 new_path="$unix_path" 18174 fi 18175 18176 18177 new_path=`$WHICH "$new_path" 2> /dev/null` 18178 # bat and cmd files are not always considered executable in MSYS causing which 18179 # to not find them 18180 if test "x$new_path" = x \ 18181 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18182 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18183 new_path="$path" 18184 18185 windows_path="$new_path" 18186 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18187 unix_path=`$CYGPATH -u "$windows_path"` 18188 new_path="$unix_path" 18189 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18190 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18191 new_path="$unix_path" 18192 fi 18193 18194 fi 18195 18196 if test "x$new_path" = x; then 18197 # It's still not found. Now this is an unrecoverable error. 18198 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18199 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18200 has_space=`$ECHO "$complete" | $GREP " "` 18201 if test "x$has_space" != x; then 18202 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18203 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18204 fi 18205 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18206 fi 18207 fi 18208 18209 # Now new_path has a complete unix path to the binary 18210 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18211 # Keep paths in /bin as-is, but remove trailing .exe if any 18212 new_path="${new_path/%.exe/}" 18213 # Do not save /bin paths to all_fixpath_prefixes! 18214 else 18215 # Not in mixed or Windows style, start by that. 18216 new_path=`cmd //c echo $new_path` 18217 18218 input_path="$new_path" 18219 # Check if we need to convert this using DOS-style short mode. If the path 18220 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18221 # take no chances and rewrite it. 18222 # Note: m4 eats our [], so we need to use [ and ] instead. 18223 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18224 if test "x$has_forbidden_chars" != x; then 18225 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18226 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18227 fi 18228 18229 # Output is in $new_path 18230 18231 windows_path="$new_path" 18232 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18233 unix_path=`$CYGPATH -u "$windows_path"` 18234 new_path="$unix_path" 18235 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18236 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18237 new_path="$unix_path" 18238 fi 18239 18240 # remove trailing .exe if any 18241 new_path="${new_path/%.exe/}" 18242 18243 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18244 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18245 fi 18246 18247 else 18248 # We're on a unix platform. Hooray! :) 18249 # First separate the path from the arguments. This will split at the first 18250 # space. 18251 complete="$FOUND_MAKE" 18252 path="${complete%% *}" 18253 tmp="$complete EOL" 18254 arguments="${tmp#* }" 18255 18256 # Cannot rely on the command "which" here since it doesn't always work. 18257 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18258 if test -z "$is_absolute_path"; then 18259 # Path to executable is not absolute. Find it. 18260 IFS_save="$IFS" 18261 IFS=: 18262 for p in $PATH; do 18263 if test -f "$p/$path" && test -x "$p/$path"; then 18264 new_path="$p/$path" 18265 break 18266 fi 18267 done 18268 IFS="$IFS_save" 18269 else 18270 # This is an absolute path, we can use it without further modifications. 18271 new_path="$path" 18272 fi 18273 18274 if test "x$new_path" = x; then 18275 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18276 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18277 has_space=`$ECHO "$complete" | $GREP " "` 18278 if test "x$has_space" != x; then 18279 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18280 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18281 fi 18282 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18283 fi 18284 fi 18285 18286 # Now join together the path and the arguments once again 18287 if test "x$arguments" != xEOL; then 18288 new_complete="$new_path ${arguments% *}" 18289 else 18290 new_complete="$new_path" 18291 fi 18292 18293 if test "x$complete" != "x$new_complete"; then 18294 FOUND_MAKE="$new_complete" 18295 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18296 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18297 fi 18298 fi 18299 18300 fi 18301 fi 18302 fi 18303 fi 18304 18305 fi 18306 PATH=$OLD_PATH 18307 fi 18308 fi 18309 18310 if test "x$FOUND_MAKE" = x; then 18311 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 18312 fi 18313 18314 else 18315 # The variable is set, but is it from the command line or the environment? 18316 18317 # Try to remove the string !MAKE! from our list. 18318 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/} 18319 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18320 # If it failed, the variable was not from the command line. Ignore it, 18321 # but warn the user (except for BASH, which is always set by the calling BASH). 18322 if test "xMAKE" != xBASH; then 18323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5 18324 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;} 18325 fi 18326 # Try to locate tool using the code snippet 18327 18328 # Try our hardest to locate a correct version of GNU make 18329 for ac_prog in gmake 18330 do 18331 # Extract the first word of "$ac_prog", so it can be a program name with args. 18332 set dummy $ac_prog; ac_word=$2 18333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18334 $as_echo_n "checking for $ac_word... " >&6; } 18335 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 18336 $as_echo_n "(cached) " >&6 18337 else 18338 case $CHECK_GMAKE in 18339 [\\/]* | ?:[\\/]*) 18340 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 18341 ;; 18342 *) 18343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18344 for as_dir in $PATH 18345 do 18346 IFS=$as_save_IFS 18347 test -z "$as_dir" && as_dir=. 18348 for ac_exec_ext in '' $ac_executable_extensions; do 18349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18350 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 18351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18352 break 2 18353 fi 18354 done 18355 done 18356 IFS=$as_save_IFS 18357 18358 ;; 18359 esac 18360 fi 18361 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 18362 if test -n "$CHECK_GMAKE"; then 18363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 18364 $as_echo "$CHECK_GMAKE" >&6; } 18365 else 18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18367 $as_echo "no" >&6; } 18368 fi 18369 18370 18371 test -n "$CHECK_GMAKE" && break 18372 done 18373 18374 18375 MAKE_CANDIDATE=""$CHECK_GMAKE"" 18376 DESCRIPTION="gmake in PATH" 18377 18378 # On Cygwin, we require a newer version of make than on other platforms 18379 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18380 MAKE_VERSION_EXPR="-e 4\." 18381 MAKE_REQUIRED_VERSION="4.0" 18382 else 18383 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18384 MAKE_REQUIRED_VERSION="3.81" 18385 fi 18386 18387 if test "x$MAKE_CANDIDATE" != x; then 18388 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18389 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18390 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18391 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18392 if test "x$IS_GNU_MAKE" = x; then 18393 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18394 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18395 else 18396 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18397 if test "x$IS_MODERN_MAKE" = x; then 18398 { $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 18399 $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;} 18400 else 18401 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18402 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18403 MAKE_EXPECTED_ENV='cygwin' 18404 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18405 MAKE_EXPECTED_ENV='msys' 18406 else 18407 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18408 fi 18409 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18410 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18411 else 18412 # Not relevant for non-Windows 18413 IS_MAKE_CORRECT_ENV=true 18414 fi 18415 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18416 { $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 18417 $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;} 18418 else 18419 FOUND_MAKE=$MAKE_CANDIDATE 18420 18421 # Only process if variable expands to non-empty 18422 18423 if test "x$FOUND_MAKE" != x; then 18424 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18425 18426 # First separate the path from the arguments. This will split at the first 18427 # space. 18428 complete="$FOUND_MAKE" 18429 path="${complete%% *}" 18430 tmp="$complete EOL" 18431 arguments="${tmp#* }" 18432 18433 # Input might be given as Windows format, start by converting to 18434 # unix format. 18435 new_path=`$CYGPATH -u "$path"` 18436 18437 # Now try to locate executable using which 18438 new_path=`$WHICH "$new_path" 2> /dev/null` 18439 # bat and cmd files are not always considered executable in cygwin causing which 18440 # to not find them 18441 if test "x$new_path" = x \ 18442 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18443 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18444 new_path=`$CYGPATH -u "$path"` 18445 fi 18446 if test "x$new_path" = x; then 18447 # Oops. Which didn't find the executable. 18448 # The splitting of arguments from the executable at a space might have been incorrect, 18449 # since paths with space are more likely in Windows. Give it another try with the whole 18450 # argument. 18451 path="$complete" 18452 arguments="EOL" 18453 new_path=`$CYGPATH -u "$path"` 18454 new_path=`$WHICH "$new_path" 2> /dev/null` 18455 # bat and cmd files are not always considered executable in cygwin causing which 18456 # to not find them 18457 if test "x$new_path" = x \ 18458 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18459 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18460 new_path=`$CYGPATH -u "$path"` 18461 fi 18462 if test "x$new_path" = x; then 18463 # It's still not found. Now this is an unrecoverable error. 18464 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18465 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18466 has_space=`$ECHO "$complete" | $GREP " "` 18467 if test "x$has_space" != x; then 18468 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18469 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18470 fi 18471 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18472 fi 18473 fi 18474 18475 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18476 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18477 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18478 # "foo.exe" is OK but "foo" is an error. 18479 # 18480 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18481 # It is also a way to make sure we got the proper file name for the real test later on. 18482 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18483 if test "x$test_shortpath" = x; then 18484 # Short path failed, file does not exist as specified. 18485 # Try adding .exe or .cmd 18486 if test -f "${new_path}.exe"; then 18487 input_to_shortpath="${new_path}.exe" 18488 elif test -f "${new_path}.cmd"; then 18489 input_to_shortpath="${new_path}.cmd" 18490 else 18491 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18492 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18493 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18494 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18495 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18496 fi 18497 else 18498 input_to_shortpath="$new_path" 18499 fi 18500 18501 # Call helper function which possibly converts this using DOS-style short mode. 18502 # If so, the updated path is stored in $new_path. 18503 new_path="$input_to_shortpath" 18504 18505 input_path="$input_to_shortpath" 18506 # Check if we need to convert this using DOS-style short mode. If the path 18507 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18508 # take no chances and rewrite it. 18509 # Note: m4 eats our [], so we need to use [ and ] instead. 18510 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18511 if test "x$has_forbidden_chars" != x; then 18512 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18513 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18514 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18515 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18516 # Going to short mode and back again did indeed matter. Since short mode is 18517 # case insensitive, let's make it lowercase to improve readability. 18518 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18519 # Now convert it back to Unix-style (cygpath) 18520 input_path=`$CYGPATH -u "$shortmode_path"` 18521 new_path="$input_path" 18522 fi 18523 fi 18524 18525 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18526 if test "x$test_cygdrive_prefix" = x; then 18527 # As a simple fix, exclude /usr/bin since it's not a real path. 18528 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18529 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18530 # a path prefixed by /cygdrive for fixpath to work. 18531 new_path="$CYGWIN_ROOT_PATH$input_path" 18532 fi 18533 fi 18534 18535 # remove trailing .exe if any 18536 new_path="${new_path/%.exe/}" 18537 18538 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18539 18540 # First separate the path from the arguments. This will split at the first 18541 # space. 18542 complete="$FOUND_MAKE" 18543 path="${complete%% *}" 18544 tmp="$complete EOL" 18545 arguments="${tmp#* }" 18546 18547 # Input might be given as Windows format, start by converting to 18548 # unix format. 18549 new_path="$path" 18550 18551 windows_path="$new_path" 18552 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18553 unix_path=`$CYGPATH -u "$windows_path"` 18554 new_path="$unix_path" 18555 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18556 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18557 new_path="$unix_path" 18558 fi 18559 18560 18561 # Now try to locate executable using which 18562 new_path=`$WHICH "$new_path" 2> /dev/null` 18563 18564 if test "x$new_path" = x; then 18565 # Oops. Which didn't find the executable. 18566 # The splitting of arguments from the executable at a space might have been incorrect, 18567 # since paths with space are more likely in Windows. Give it another try with the whole 18568 # argument. 18569 path="$complete" 18570 arguments="EOL" 18571 new_path="$path" 18572 18573 windows_path="$new_path" 18574 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18575 unix_path=`$CYGPATH -u "$windows_path"` 18576 new_path="$unix_path" 18577 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18578 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18579 new_path="$unix_path" 18580 fi 18581 18582 18583 new_path=`$WHICH "$new_path" 2> /dev/null` 18584 # bat and cmd files are not always considered executable in MSYS causing which 18585 # to not find them 18586 if test "x$new_path" = x \ 18587 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18588 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18589 new_path="$path" 18590 18591 windows_path="$new_path" 18592 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18593 unix_path=`$CYGPATH -u "$windows_path"` 18594 new_path="$unix_path" 18595 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18596 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18597 new_path="$unix_path" 18598 fi 18599 18600 fi 18601 18602 if test "x$new_path" = x; then 18603 # It's still not found. Now this is an unrecoverable error. 18604 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18605 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18606 has_space=`$ECHO "$complete" | $GREP " "` 18607 if test "x$has_space" != x; then 18608 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18609 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18610 fi 18611 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18612 fi 18613 fi 18614 18615 # Now new_path has a complete unix path to the binary 18616 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18617 # Keep paths in /bin as-is, but remove trailing .exe if any 18618 new_path="${new_path/%.exe/}" 18619 # Do not save /bin paths to all_fixpath_prefixes! 18620 else 18621 # Not in mixed or Windows style, start by that. 18622 new_path=`cmd //c echo $new_path` 18623 18624 input_path="$new_path" 18625 # Check if we need to convert this using DOS-style short mode. If the path 18626 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18627 # take no chances and rewrite it. 18628 # Note: m4 eats our [], so we need to use [ and ] instead. 18629 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18630 if test "x$has_forbidden_chars" != x; then 18631 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18632 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18633 fi 18634 18635 # Output is in $new_path 18636 18637 windows_path="$new_path" 18638 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18639 unix_path=`$CYGPATH -u "$windows_path"` 18640 new_path="$unix_path" 18641 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18642 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18643 new_path="$unix_path" 18644 fi 18645 18646 # remove trailing .exe if any 18647 new_path="${new_path/%.exe/}" 18648 18649 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18650 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18651 fi 18652 18653 else 18654 # We're on a unix platform. Hooray! :) 18655 # First separate the path from the arguments. This will split at the first 18656 # space. 18657 complete="$FOUND_MAKE" 18658 path="${complete%% *}" 18659 tmp="$complete EOL" 18660 arguments="${tmp#* }" 18661 18662 # Cannot rely on the command "which" here since it doesn't always work. 18663 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18664 if test -z "$is_absolute_path"; then 18665 # Path to executable is not absolute. Find it. 18666 IFS_save="$IFS" 18667 IFS=: 18668 for p in $PATH; do 18669 if test -f "$p/$path" && test -x "$p/$path"; then 18670 new_path="$p/$path" 18671 break 18672 fi 18673 done 18674 IFS="$IFS_save" 18675 else 18676 # This is an absolute path, we can use it without further modifications. 18677 new_path="$path" 18678 fi 18679 18680 if test "x$new_path" = x; then 18681 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18682 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18683 has_space=`$ECHO "$complete" | $GREP " "` 18684 if test "x$has_space" != x; then 18685 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18686 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18687 fi 18688 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18689 fi 18690 fi 18691 18692 # Now join together the path and the arguments once again 18693 if test "x$arguments" != xEOL; then 18694 new_complete="$new_path ${arguments% *}" 18695 else 18696 new_complete="$new_path" 18697 fi 18698 18699 if test "x$complete" != "x$new_complete"; then 18700 FOUND_MAKE="$new_complete" 18701 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18702 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18703 fi 18704 fi 18705 18706 fi 18707 fi 18708 fi 18709 fi 18710 18711 18712 if test "x$FOUND_MAKE" = x; then 18713 for ac_prog in make 18714 do 18715 # Extract the first word of "$ac_prog", so it can be a program name with args. 18716 set dummy $ac_prog; ac_word=$2 18717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18718 $as_echo_n "checking for $ac_word... " >&6; } 18719 if ${ac_cv_path_CHECK_MAKE+:} false; then : 18720 $as_echo_n "(cached) " >&6 18721 else 18722 case $CHECK_MAKE in 18723 [\\/]* | ?:[\\/]*) 18724 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 18725 ;; 18726 *) 18727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18728 for as_dir in $PATH 18729 do 18730 IFS=$as_save_IFS 18731 test -z "$as_dir" && as_dir=. 18732 for ac_exec_ext in '' $ac_executable_extensions; do 18733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18734 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 18735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18736 break 2 18737 fi 18738 done 18739 done 18740 IFS=$as_save_IFS 18741 18742 ;; 18743 esac 18744 fi 18745 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 18746 if test -n "$CHECK_MAKE"; then 18747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 18748 $as_echo "$CHECK_MAKE" >&6; } 18749 else 18750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18751 $as_echo "no" >&6; } 18752 fi 18753 18754 18755 test -n "$CHECK_MAKE" && break 18756 done 18757 18758 18759 MAKE_CANDIDATE=""$CHECK_MAKE"" 18760 DESCRIPTION="make in PATH" 18761 18762 # On Cygwin, we require a newer version of make than on other platforms 18763 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18764 MAKE_VERSION_EXPR="-e 4\." 18765 MAKE_REQUIRED_VERSION="4.0" 18766 else 18767 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18768 MAKE_REQUIRED_VERSION="3.81" 18769 fi 18770 18771 if test "x$MAKE_CANDIDATE" != x; then 18772 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18773 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18774 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18775 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18776 if test "x$IS_GNU_MAKE" = x; then 18777 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18778 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18779 else 18780 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18781 if test "x$IS_MODERN_MAKE" = x; then 18782 { $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 18783 $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;} 18784 else 18785 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18786 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18787 MAKE_EXPECTED_ENV='cygwin' 18788 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18789 MAKE_EXPECTED_ENV='msys' 18790 else 18791 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18792 fi 18793 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18794 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18795 else 18796 # Not relevant for non-Windows 18797 IS_MAKE_CORRECT_ENV=true 18798 fi 18799 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18800 { $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 18801 $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;} 18802 else 18803 FOUND_MAKE=$MAKE_CANDIDATE 18804 18805 # Only process if variable expands to non-empty 18806 18807 if test "x$FOUND_MAKE" != x; then 18808 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18809 18810 # First separate the path from the arguments. This will split at the first 18811 # space. 18812 complete="$FOUND_MAKE" 18813 path="${complete%% *}" 18814 tmp="$complete EOL" 18815 arguments="${tmp#* }" 18816 18817 # Input might be given as Windows format, start by converting to 18818 # unix format. 18819 new_path=`$CYGPATH -u "$path"` 18820 18821 # Now try to locate executable using which 18822 new_path=`$WHICH "$new_path" 2> /dev/null` 18823 # bat and cmd files are not always considered executable in cygwin causing which 18824 # to not find them 18825 if test "x$new_path" = x \ 18826 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18827 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18828 new_path=`$CYGPATH -u "$path"` 18829 fi 18830 if test "x$new_path" = x; then 18831 # Oops. Which didn't find the executable. 18832 # The splitting of arguments from the executable at a space might have been incorrect, 18833 # since paths with space are more likely in Windows. Give it another try with the whole 18834 # argument. 18835 path="$complete" 18836 arguments="EOL" 18837 new_path=`$CYGPATH -u "$path"` 18838 new_path=`$WHICH "$new_path" 2> /dev/null` 18839 # bat and cmd files are not always considered executable in cygwin causing which 18840 # to not find them 18841 if test "x$new_path" = x \ 18842 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18843 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18844 new_path=`$CYGPATH -u "$path"` 18845 fi 18846 if test "x$new_path" = x; then 18847 # It's still not found. Now this is an unrecoverable error. 18848 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18849 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18850 has_space=`$ECHO "$complete" | $GREP " "` 18851 if test "x$has_space" != x; then 18852 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18853 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18854 fi 18855 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18856 fi 18857 fi 18858 18859 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18860 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18861 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18862 # "foo.exe" is OK but "foo" is an error. 18863 # 18864 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18865 # It is also a way to make sure we got the proper file name for the real test later on. 18866 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18867 if test "x$test_shortpath" = x; then 18868 # Short path failed, file does not exist as specified. 18869 # Try adding .exe or .cmd 18870 if test -f "${new_path}.exe"; then 18871 input_to_shortpath="${new_path}.exe" 18872 elif test -f "${new_path}.cmd"; then 18873 input_to_shortpath="${new_path}.cmd" 18874 else 18875 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18876 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18877 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18878 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18879 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18880 fi 18881 else 18882 input_to_shortpath="$new_path" 18883 fi 18884 18885 # Call helper function which possibly converts this using DOS-style short mode. 18886 # If so, the updated path is stored in $new_path. 18887 new_path="$input_to_shortpath" 18888 18889 input_path="$input_to_shortpath" 18890 # Check if we need to convert this using DOS-style short mode. If the path 18891 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18892 # take no chances and rewrite it. 18893 # Note: m4 eats our [], so we need to use [ and ] instead. 18894 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18895 if test "x$has_forbidden_chars" != x; then 18896 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18897 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18898 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18899 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18900 # Going to short mode and back again did indeed matter. Since short mode is 18901 # case insensitive, let's make it lowercase to improve readability. 18902 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18903 # Now convert it back to Unix-style (cygpath) 18904 input_path=`$CYGPATH -u "$shortmode_path"` 18905 new_path="$input_path" 18906 fi 18907 fi 18908 18909 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18910 if test "x$test_cygdrive_prefix" = x; then 18911 # As a simple fix, exclude /usr/bin since it's not a real path. 18912 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18913 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18914 # a path prefixed by /cygdrive for fixpath to work. 18915 new_path="$CYGWIN_ROOT_PATH$input_path" 18916 fi 18917 fi 18918 18919 # remove trailing .exe if any 18920 new_path="${new_path/%.exe/}" 18921 18922 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18923 18924 # First separate the path from the arguments. This will split at the first 18925 # space. 18926 complete="$FOUND_MAKE" 18927 path="${complete%% *}" 18928 tmp="$complete EOL" 18929 arguments="${tmp#* }" 18930 18931 # Input might be given as Windows format, start by converting to 18932 # unix format. 18933 new_path="$path" 18934 18935 windows_path="$new_path" 18936 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18937 unix_path=`$CYGPATH -u "$windows_path"` 18938 new_path="$unix_path" 18939 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18940 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18941 new_path="$unix_path" 18942 fi 18943 18944 18945 # Now try to locate executable using which 18946 new_path=`$WHICH "$new_path" 2> /dev/null` 18947 18948 if test "x$new_path" = x; then 18949 # Oops. Which didn't find the executable. 18950 # The splitting of arguments from the executable at a space might have been incorrect, 18951 # since paths with space are more likely in Windows. Give it another try with the whole 18952 # argument. 18953 path="$complete" 18954 arguments="EOL" 18955 new_path="$path" 18956 18957 windows_path="$new_path" 18958 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18959 unix_path=`$CYGPATH -u "$windows_path"` 18960 new_path="$unix_path" 18961 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18962 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18963 new_path="$unix_path" 18964 fi 18965 18966 18967 new_path=`$WHICH "$new_path" 2> /dev/null` 18968 # bat and cmd files are not always considered executable in MSYS causing which 18969 # to not find them 18970 if test "x$new_path" = x \ 18971 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18972 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18973 new_path="$path" 18974 18975 windows_path="$new_path" 18976 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18977 unix_path=`$CYGPATH -u "$windows_path"` 18978 new_path="$unix_path" 18979 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18980 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18981 new_path="$unix_path" 18982 fi 18983 18984 fi 18985 18986 if test "x$new_path" = x; then 18987 # It's still not found. Now this is an unrecoverable error. 18988 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18989 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18990 has_space=`$ECHO "$complete" | $GREP " "` 18991 if test "x$has_space" != x; then 18992 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18993 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18994 fi 18995 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18996 fi 18997 fi 18998 18999 # Now new_path has a complete unix path to the binary 19000 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19001 # Keep paths in /bin as-is, but remove trailing .exe if any 19002 new_path="${new_path/%.exe/}" 19003 # Do not save /bin paths to all_fixpath_prefixes! 19004 else 19005 # Not in mixed or Windows style, start by that. 19006 new_path=`cmd //c echo $new_path` 19007 19008 input_path="$new_path" 19009 # Check if we need to convert this using DOS-style short mode. If the path 19010 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19011 # take no chances and rewrite it. 19012 # Note: m4 eats our [], so we need to use [ and ] instead. 19013 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19014 if test "x$has_forbidden_chars" != x; then 19015 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19016 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19017 fi 19018 19019 # Output is in $new_path 19020 19021 windows_path="$new_path" 19022 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19023 unix_path=`$CYGPATH -u "$windows_path"` 19024 new_path="$unix_path" 19025 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19026 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19027 new_path="$unix_path" 19028 fi 19029 19030 # remove trailing .exe if any 19031 new_path="${new_path/%.exe/}" 19032 19033 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19034 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19035 fi 19036 19037 else 19038 # We're on a unix platform. Hooray! :) 19039 # First separate the path from the arguments. This will split at the first 19040 # space. 19041 complete="$FOUND_MAKE" 19042 path="${complete%% *}" 19043 tmp="$complete EOL" 19044 arguments="${tmp#* }" 19045 19046 # Cannot rely on the command "which" here since it doesn't always work. 19047 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19048 if test -z "$is_absolute_path"; then 19049 # Path to executable is not absolute. Find it. 19050 IFS_save="$IFS" 19051 IFS=: 19052 for p in $PATH; do 19053 if test -f "$p/$path" && test -x "$p/$path"; then 19054 new_path="$p/$path" 19055 break 19056 fi 19057 done 19058 IFS="$IFS_save" 19059 else 19060 # This is an absolute path, we can use it without further modifications. 19061 new_path="$path" 19062 fi 19063 19064 if test "x$new_path" = x; then 19065 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19066 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19067 has_space=`$ECHO "$complete" | $GREP " "` 19068 if test "x$has_space" != x; then 19069 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19070 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19071 fi 19072 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19073 fi 19074 fi 19075 19076 # Now join together the path and the arguments once again 19077 if test "x$arguments" != xEOL; then 19078 new_complete="$new_path ${arguments% *}" 19079 else 19080 new_complete="$new_path" 19081 fi 19082 19083 if test "x$complete" != "x$new_complete"; then 19084 FOUND_MAKE="$new_complete" 19085 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19086 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19087 fi 19088 fi 19089 19090 fi 19091 fi 19092 fi 19093 fi 19094 19095 fi 19096 19097 if test "x$FOUND_MAKE" = x; then 19098 if test "x$TOOLCHAIN_PATH" != x; then 19099 # We have a toolchain path, check that as well before giving up. 19100 OLD_PATH=$PATH 19101 PATH=$TOOLCHAIN_PATH:$PATH 19102 for ac_prog in gmake 19103 do 19104 # Extract the first word of "$ac_prog", so it can be a program name with args. 19105 set dummy $ac_prog; ac_word=$2 19106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19107 $as_echo_n "checking for $ac_word... " >&6; } 19108 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 19109 $as_echo_n "(cached) " >&6 19110 else 19111 case $CHECK_TOOLSDIR_GMAKE in 19112 [\\/]* | ?:[\\/]*) 19113 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 19114 ;; 19115 *) 19116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19117 for as_dir in $PATH 19118 do 19119 IFS=$as_save_IFS 19120 test -z "$as_dir" && as_dir=. 19121 for ac_exec_ext in '' $ac_executable_extensions; do 19122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19123 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 19124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19125 break 2 19126 fi 19127 done 19128 done 19129 IFS=$as_save_IFS 19130 19131 ;; 19132 esac 19133 fi 19134 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 19135 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 19137 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 19138 else 19139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19140 $as_echo "no" >&6; } 19141 fi 19142 19143 19144 test -n "$CHECK_TOOLSDIR_GMAKE" && break 19145 done 19146 19147 19148 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 19149 DESCRIPTION="gmake in tools-dir" 19150 19151 # On Cygwin, we require a newer version of make than on other platforms 19152 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19153 MAKE_VERSION_EXPR="-e 4\." 19154 MAKE_REQUIRED_VERSION="4.0" 19155 else 19156 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19157 MAKE_REQUIRED_VERSION="3.81" 19158 fi 19159 19160 if test "x$MAKE_CANDIDATE" != x; then 19161 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19162 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19163 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19164 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19165 if test "x$IS_GNU_MAKE" = x; then 19166 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19167 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19168 else 19169 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19170 if test "x$IS_MODERN_MAKE" = x; then 19171 { $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 19172 $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;} 19173 else 19174 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19175 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19176 MAKE_EXPECTED_ENV='cygwin' 19177 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19178 MAKE_EXPECTED_ENV='msys' 19179 else 19180 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19181 fi 19182 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19183 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19184 else 19185 # Not relevant for non-Windows 19186 IS_MAKE_CORRECT_ENV=true 19187 fi 19188 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19189 { $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 19190 $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;} 19191 else 19192 FOUND_MAKE=$MAKE_CANDIDATE 19193 19194 # Only process if variable expands to non-empty 19195 19196 if test "x$FOUND_MAKE" != x; then 19197 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19198 19199 # First separate the path from the arguments. This will split at the first 19200 # space. 19201 complete="$FOUND_MAKE" 19202 path="${complete%% *}" 19203 tmp="$complete EOL" 19204 arguments="${tmp#* }" 19205 19206 # Input might be given as Windows format, start by converting to 19207 # unix format. 19208 new_path=`$CYGPATH -u "$path"` 19209 19210 # Now try to locate executable using which 19211 new_path=`$WHICH "$new_path" 2> /dev/null` 19212 # bat and cmd files are not always considered executable in cygwin causing which 19213 # to not find them 19214 if test "x$new_path" = x \ 19215 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19216 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19217 new_path=`$CYGPATH -u "$path"` 19218 fi 19219 if test "x$new_path" = x; then 19220 # Oops. Which didn't find the executable. 19221 # The splitting of arguments from the executable at a space might have been incorrect, 19222 # since paths with space are more likely in Windows. Give it another try with the whole 19223 # argument. 19224 path="$complete" 19225 arguments="EOL" 19226 new_path=`$CYGPATH -u "$path"` 19227 new_path=`$WHICH "$new_path" 2> /dev/null` 19228 # bat and cmd files are not always considered executable in cygwin causing which 19229 # to not find them 19230 if test "x$new_path" = x \ 19231 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19232 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19233 new_path=`$CYGPATH -u "$path"` 19234 fi 19235 if test "x$new_path" = x; then 19236 # It's still not found. Now this is an unrecoverable error. 19237 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19238 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19239 has_space=`$ECHO "$complete" | $GREP " "` 19240 if test "x$has_space" != x; then 19241 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19242 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19243 fi 19244 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19245 fi 19246 fi 19247 19248 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19249 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19250 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19251 # "foo.exe" is OK but "foo" is an error. 19252 # 19253 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19254 # It is also a way to make sure we got the proper file name for the real test later on. 19255 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19256 if test "x$test_shortpath" = x; then 19257 # Short path failed, file does not exist as specified. 19258 # Try adding .exe or .cmd 19259 if test -f "${new_path}.exe"; then 19260 input_to_shortpath="${new_path}.exe" 19261 elif test -f "${new_path}.cmd"; then 19262 input_to_shortpath="${new_path}.cmd" 19263 else 19264 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19265 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19266 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19267 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19268 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19269 fi 19270 else 19271 input_to_shortpath="$new_path" 19272 fi 19273 19274 # Call helper function which possibly converts this using DOS-style short mode. 19275 # If so, the updated path is stored in $new_path. 19276 new_path="$input_to_shortpath" 19277 19278 input_path="$input_to_shortpath" 19279 # Check if we need to convert this using DOS-style short mode. If the path 19280 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19281 # take no chances and rewrite it. 19282 # Note: m4 eats our [], so we need to use [ and ] instead. 19283 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19284 if test "x$has_forbidden_chars" != x; then 19285 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19286 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19287 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19288 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19289 # Going to short mode and back again did indeed matter. Since short mode is 19290 # case insensitive, let's make it lowercase to improve readability. 19291 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19292 # Now convert it back to Unix-style (cygpath) 19293 input_path=`$CYGPATH -u "$shortmode_path"` 19294 new_path="$input_path" 19295 fi 19296 fi 19297 19298 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19299 if test "x$test_cygdrive_prefix" = x; then 19300 # As a simple fix, exclude /usr/bin since it's not a real path. 19301 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19302 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19303 # a path prefixed by /cygdrive for fixpath to work. 19304 new_path="$CYGWIN_ROOT_PATH$input_path" 19305 fi 19306 fi 19307 19308 # remove trailing .exe if any 19309 new_path="${new_path/%.exe/}" 19310 19311 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19312 19313 # First separate the path from the arguments. This will split at the first 19314 # space. 19315 complete="$FOUND_MAKE" 19316 path="${complete%% *}" 19317 tmp="$complete EOL" 19318 arguments="${tmp#* }" 19319 19320 # Input might be given as Windows format, start by converting to 19321 # unix format. 19322 new_path="$path" 19323 19324 windows_path="$new_path" 19325 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19326 unix_path=`$CYGPATH -u "$windows_path"` 19327 new_path="$unix_path" 19328 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19329 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19330 new_path="$unix_path" 19331 fi 19332 19333 19334 # Now try to locate executable using which 19335 new_path=`$WHICH "$new_path" 2> /dev/null` 19336 19337 if test "x$new_path" = x; then 19338 # Oops. Which didn't find the executable. 19339 # The splitting of arguments from the executable at a space might have been incorrect, 19340 # since paths with space are more likely in Windows. Give it another try with the whole 19341 # argument. 19342 path="$complete" 19343 arguments="EOL" 19344 new_path="$path" 19345 19346 windows_path="$new_path" 19347 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19348 unix_path=`$CYGPATH -u "$windows_path"` 19349 new_path="$unix_path" 19350 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19351 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19352 new_path="$unix_path" 19353 fi 19354 19355 19356 new_path=`$WHICH "$new_path" 2> /dev/null` 19357 # bat and cmd files are not always considered executable in MSYS causing which 19358 # to not find them 19359 if test "x$new_path" = x \ 19360 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19361 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19362 new_path="$path" 19363 19364 windows_path="$new_path" 19365 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19366 unix_path=`$CYGPATH -u "$windows_path"` 19367 new_path="$unix_path" 19368 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19369 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19370 new_path="$unix_path" 19371 fi 19372 19373 fi 19374 19375 if test "x$new_path" = x; then 19376 # It's still not found. Now this is an unrecoverable error. 19377 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19378 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19379 has_space=`$ECHO "$complete" | $GREP " "` 19380 if test "x$has_space" != x; then 19381 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19382 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19383 fi 19384 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19385 fi 19386 fi 19387 19388 # Now new_path has a complete unix path to the binary 19389 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19390 # Keep paths in /bin as-is, but remove trailing .exe if any 19391 new_path="${new_path/%.exe/}" 19392 # Do not save /bin paths to all_fixpath_prefixes! 19393 else 19394 # Not in mixed or Windows style, start by that. 19395 new_path=`cmd //c echo $new_path` 19396 19397 input_path="$new_path" 19398 # Check if we need to convert this using DOS-style short mode. If the path 19399 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19400 # take no chances and rewrite it. 19401 # Note: m4 eats our [], so we need to use [ and ] instead. 19402 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19403 if test "x$has_forbidden_chars" != x; then 19404 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19405 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19406 fi 19407 19408 # Output is in $new_path 19409 19410 windows_path="$new_path" 19411 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19412 unix_path=`$CYGPATH -u "$windows_path"` 19413 new_path="$unix_path" 19414 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19415 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19416 new_path="$unix_path" 19417 fi 19418 19419 # remove trailing .exe if any 19420 new_path="${new_path/%.exe/}" 19421 19422 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19423 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19424 fi 19425 19426 else 19427 # We're on a unix platform. Hooray! :) 19428 # First separate the path from the arguments. This will split at the first 19429 # space. 19430 complete="$FOUND_MAKE" 19431 path="${complete%% *}" 19432 tmp="$complete EOL" 19433 arguments="${tmp#* }" 19434 19435 # Cannot rely on the command "which" here since it doesn't always work. 19436 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19437 if test -z "$is_absolute_path"; then 19438 # Path to executable is not absolute. Find it. 19439 IFS_save="$IFS" 19440 IFS=: 19441 for p in $PATH; do 19442 if test -f "$p/$path" && test -x "$p/$path"; then 19443 new_path="$p/$path" 19444 break 19445 fi 19446 done 19447 IFS="$IFS_save" 19448 else 19449 # This is an absolute path, we can use it without further modifications. 19450 new_path="$path" 19451 fi 19452 19453 if test "x$new_path" = x; then 19454 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19455 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19456 has_space=`$ECHO "$complete" | $GREP " "` 19457 if test "x$has_space" != x; then 19458 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19459 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19460 fi 19461 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19462 fi 19463 fi 19464 19465 # Now join together the path and the arguments once again 19466 if test "x$arguments" != xEOL; then 19467 new_complete="$new_path ${arguments% *}" 19468 else 19469 new_complete="$new_path" 19470 fi 19471 19472 if test "x$complete" != "x$new_complete"; then 19473 FOUND_MAKE="$new_complete" 19474 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19475 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19476 fi 19477 fi 19478 19479 fi 19480 fi 19481 fi 19482 fi 19483 19484 if test "x$FOUND_MAKE" = x; then 19485 for ac_prog in make 19486 do 19487 # Extract the first word of "$ac_prog", so it can be a program name with args. 19488 set dummy $ac_prog; ac_word=$2 19489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19490 $as_echo_n "checking for $ac_word... " >&6; } 19491 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 19492 $as_echo_n "(cached) " >&6 19493 else 19494 case $CHECK_TOOLSDIR_MAKE in 19495 [\\/]* | ?:[\\/]*) 19496 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 19497 ;; 19498 *) 19499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19500 for as_dir in $PATH 19501 do 19502 IFS=$as_save_IFS 19503 test -z "$as_dir" && as_dir=. 19504 for ac_exec_ext in '' $ac_executable_extensions; do 19505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19506 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 19507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19508 break 2 19509 fi 19510 done 19511 done 19512 IFS=$as_save_IFS 19513 19514 ;; 19515 esac 19516 fi 19517 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 19518 if test -n "$CHECK_TOOLSDIR_MAKE"; then 19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 19520 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 19521 else 19522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19523 $as_echo "no" >&6; } 19524 fi 19525 19526 19527 test -n "$CHECK_TOOLSDIR_MAKE" && break 19528 done 19529 19530 19531 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 19532 DESCRIPTION="make in tools-dir" 19533 19534 # On Cygwin, we require a newer version of make than on other platforms 19535 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19536 MAKE_VERSION_EXPR="-e 4\." 19537 MAKE_REQUIRED_VERSION="4.0" 19538 else 19539 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19540 MAKE_REQUIRED_VERSION="3.81" 19541 fi 19542 19543 if test "x$MAKE_CANDIDATE" != x; then 19544 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19545 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19546 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19547 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19548 if test "x$IS_GNU_MAKE" = x; then 19549 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19550 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19551 else 19552 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19553 if test "x$IS_MODERN_MAKE" = x; then 19554 { $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 19555 $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;} 19556 else 19557 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19558 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19559 MAKE_EXPECTED_ENV='cygwin' 19560 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19561 MAKE_EXPECTED_ENV='msys' 19562 else 19563 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19564 fi 19565 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19566 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19567 else 19568 # Not relevant for non-Windows 19569 IS_MAKE_CORRECT_ENV=true 19570 fi 19571 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19572 { $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 19573 $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;} 19574 else 19575 FOUND_MAKE=$MAKE_CANDIDATE 19576 19577 # Only process if variable expands to non-empty 19578 19579 if test "x$FOUND_MAKE" != x; then 19580 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19581 19582 # First separate the path from the arguments. This will split at the first 19583 # space. 19584 complete="$FOUND_MAKE" 19585 path="${complete%% *}" 19586 tmp="$complete EOL" 19587 arguments="${tmp#* }" 19588 19589 # Input might be given as Windows format, start by converting to 19590 # unix format. 19591 new_path=`$CYGPATH -u "$path"` 19592 19593 # Now try to locate executable using which 19594 new_path=`$WHICH "$new_path" 2> /dev/null` 19595 # bat and cmd files are not always considered executable in cygwin causing which 19596 # to not find them 19597 if test "x$new_path" = x \ 19598 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19599 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19600 new_path=`$CYGPATH -u "$path"` 19601 fi 19602 if test "x$new_path" = x; then 19603 # Oops. Which didn't find the executable. 19604 # The splitting of arguments from the executable at a space might have been incorrect, 19605 # since paths with space are more likely in Windows. Give it another try with the whole 19606 # argument. 19607 path="$complete" 19608 arguments="EOL" 19609 new_path=`$CYGPATH -u "$path"` 19610 new_path=`$WHICH "$new_path" 2> /dev/null` 19611 # bat and cmd files are not always considered executable in cygwin causing which 19612 # to not find them 19613 if test "x$new_path" = x \ 19614 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19615 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19616 new_path=`$CYGPATH -u "$path"` 19617 fi 19618 if test "x$new_path" = x; then 19619 # It's still not found. Now this is an unrecoverable error. 19620 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19621 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19622 has_space=`$ECHO "$complete" | $GREP " "` 19623 if test "x$has_space" != x; then 19624 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19625 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19626 fi 19627 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19628 fi 19629 fi 19630 19631 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19632 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19633 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19634 # "foo.exe" is OK but "foo" is an error. 19635 # 19636 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19637 # It is also a way to make sure we got the proper file name for the real test later on. 19638 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19639 if test "x$test_shortpath" = x; then 19640 # Short path failed, file does not exist as specified. 19641 # Try adding .exe or .cmd 19642 if test -f "${new_path}.exe"; then 19643 input_to_shortpath="${new_path}.exe" 19644 elif test -f "${new_path}.cmd"; then 19645 input_to_shortpath="${new_path}.cmd" 19646 else 19647 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19648 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19649 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19650 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19651 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19652 fi 19653 else 19654 input_to_shortpath="$new_path" 19655 fi 19656 19657 # Call helper function which possibly converts this using DOS-style short mode. 19658 # If so, the updated path is stored in $new_path. 19659 new_path="$input_to_shortpath" 19660 19661 input_path="$input_to_shortpath" 19662 # Check if we need to convert this using DOS-style short mode. If the path 19663 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19664 # take no chances and rewrite it. 19665 # Note: m4 eats our [], so we need to use [ and ] instead. 19666 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19667 if test "x$has_forbidden_chars" != x; then 19668 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19669 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19670 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19671 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19672 # Going to short mode and back again did indeed matter. Since short mode is 19673 # case insensitive, let's make it lowercase to improve readability. 19674 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19675 # Now convert it back to Unix-style (cygpath) 19676 input_path=`$CYGPATH -u "$shortmode_path"` 19677 new_path="$input_path" 19678 fi 19679 fi 19680 19681 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19682 if test "x$test_cygdrive_prefix" = x; then 19683 # As a simple fix, exclude /usr/bin since it's not a real path. 19684 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19685 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19686 # a path prefixed by /cygdrive for fixpath to work. 19687 new_path="$CYGWIN_ROOT_PATH$input_path" 19688 fi 19689 fi 19690 19691 # remove trailing .exe if any 19692 new_path="${new_path/%.exe/}" 19693 19694 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19695 19696 # First separate the path from the arguments. This will split at the first 19697 # space. 19698 complete="$FOUND_MAKE" 19699 path="${complete%% *}" 19700 tmp="$complete EOL" 19701 arguments="${tmp#* }" 19702 19703 # Input might be given as Windows format, start by converting to 19704 # unix format. 19705 new_path="$path" 19706 19707 windows_path="$new_path" 19708 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19709 unix_path=`$CYGPATH -u "$windows_path"` 19710 new_path="$unix_path" 19711 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19712 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19713 new_path="$unix_path" 19714 fi 19715 19716 19717 # Now try to locate executable using which 19718 new_path=`$WHICH "$new_path" 2> /dev/null` 19719 19720 if test "x$new_path" = x; then 19721 # Oops. Which didn't find the executable. 19722 # The splitting of arguments from the executable at a space might have been incorrect, 19723 # since paths with space are more likely in Windows. Give it another try with the whole 19724 # argument. 19725 path="$complete" 19726 arguments="EOL" 19727 new_path="$path" 19728 19729 windows_path="$new_path" 19730 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19731 unix_path=`$CYGPATH -u "$windows_path"` 19732 new_path="$unix_path" 19733 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19734 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19735 new_path="$unix_path" 19736 fi 19737 19738 19739 new_path=`$WHICH "$new_path" 2> /dev/null` 19740 # bat and cmd files are not always considered executable in MSYS causing which 19741 # to not find them 19742 if test "x$new_path" = x \ 19743 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19744 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19745 new_path="$path" 19746 19747 windows_path="$new_path" 19748 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19749 unix_path=`$CYGPATH -u "$windows_path"` 19750 new_path="$unix_path" 19751 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19752 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19753 new_path="$unix_path" 19754 fi 19755 19756 fi 19757 19758 if test "x$new_path" = x; then 19759 # It's still not found. Now this is an unrecoverable error. 19760 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19761 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19762 has_space=`$ECHO "$complete" | $GREP " "` 19763 if test "x$has_space" != x; then 19764 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19765 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19766 fi 19767 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19768 fi 19769 fi 19770 19771 # Now new_path has a complete unix path to the binary 19772 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19773 # Keep paths in /bin as-is, but remove trailing .exe if any 19774 new_path="${new_path/%.exe/}" 19775 # Do not save /bin paths to all_fixpath_prefixes! 19776 else 19777 # Not in mixed or Windows style, start by that. 19778 new_path=`cmd //c echo $new_path` 19779 19780 input_path="$new_path" 19781 # Check if we need to convert this using DOS-style short mode. If the path 19782 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19783 # take no chances and rewrite it. 19784 # Note: m4 eats our [], so we need to use [ and ] instead. 19785 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19786 if test "x$has_forbidden_chars" != x; then 19787 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19788 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19789 fi 19790 19791 # Output is in $new_path 19792 19793 windows_path="$new_path" 19794 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19795 unix_path=`$CYGPATH -u "$windows_path"` 19796 new_path="$unix_path" 19797 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19798 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19799 new_path="$unix_path" 19800 fi 19801 19802 # remove trailing .exe if any 19803 new_path="${new_path/%.exe/}" 19804 19805 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19806 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19807 fi 19808 19809 else 19810 # We're on a unix platform. Hooray! :) 19811 # First separate the path from the arguments. This will split at the first 19812 # space. 19813 complete="$FOUND_MAKE" 19814 path="${complete%% *}" 19815 tmp="$complete EOL" 19816 arguments="${tmp#* }" 19817 19818 # Cannot rely on the command "which" here since it doesn't always work. 19819 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19820 if test -z "$is_absolute_path"; then 19821 # Path to executable is not absolute. Find it. 19822 IFS_save="$IFS" 19823 IFS=: 19824 for p in $PATH; do 19825 if test -f "$p/$path" && test -x "$p/$path"; then 19826 new_path="$p/$path" 19827 break 19828 fi 19829 done 19830 IFS="$IFS_save" 19831 else 19832 # This is an absolute path, we can use it without further modifications. 19833 new_path="$path" 19834 fi 19835 19836 if test "x$new_path" = x; then 19837 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19838 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19839 has_space=`$ECHO "$complete" | $GREP " "` 19840 if test "x$has_space" != x; then 19841 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19842 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19843 fi 19844 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19845 fi 19846 fi 19847 19848 # Now join together the path and the arguments once again 19849 if test "x$arguments" != xEOL; then 19850 new_complete="$new_path ${arguments% *}" 19851 else 19852 new_complete="$new_path" 19853 fi 19854 19855 if test "x$complete" != "x$new_complete"; then 19856 FOUND_MAKE="$new_complete" 19857 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19858 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19859 fi 19860 fi 19861 19862 fi 19863 fi 19864 fi 19865 fi 19866 19867 fi 19868 PATH=$OLD_PATH 19869 fi 19870 fi 19871 19872 if test "x$FOUND_MAKE" = x; then 19873 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 19874 fi 19875 19876 else 19877 # If it succeeded, then it was overridden by the user. We will use it 19878 # for the tool. 19879 19880 # First remove it from the list of overridden variables, so we can test 19881 # for unknown variables in the end. 19882 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19883 19884 # Check if we try to supply an empty value 19885 if test "x$MAKE" = x; then 19886 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5 19887 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;} 19888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 19889 $as_echo_n "checking for MAKE... " >&6; } 19890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 19891 $as_echo "disabled" >&6; } 19892 else 19893 # Check if the provided tool contains a complete path. 19894 tool_specified="$MAKE" 19895 tool_basename="${tool_specified##*/}" 19896 if test "x$tool_basename" = "x$tool_specified"; then 19897 # A command without a complete path is provided, search $PATH. 19898 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5 19899 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;} 19900 # Extract the first word of "$tool_basename", so it can be a program name with args. 19901 set dummy $tool_basename; ac_word=$2 19902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19903 $as_echo_n "checking for $ac_word... " >&6; } 19904 if ${ac_cv_path_MAKE+:} false; then : 19905 $as_echo_n "(cached) " >&6 19906 else 19907 case $MAKE in 19908 [\\/]* | ?:[\\/]*) 19909 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path. 19910 ;; 19911 *) 19912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19913 for as_dir in $PATH 19914 do 19915 IFS=$as_save_IFS 19916 test -z "$as_dir" && as_dir=. 19917 for ac_exec_ext in '' $ac_executable_extensions; do 19918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19919 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext" 19920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19921 break 2 19922 fi 19923 done 19924 done 19925 IFS=$as_save_IFS 19926 19927 ;; 19928 esac 19929 fi 19930 MAKE=$ac_cv_path_MAKE 19931 if test -n "$MAKE"; then 19932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 19933 $as_echo "$MAKE" >&6; } 19934 else 19935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19936 $as_echo "no" >&6; } 19937 fi 19938 19939 19940 if test "x$MAKE" = x; then 19941 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19942 fi 19943 else 19944 # Otherwise we believe it is a complete path. Use it as it is. 19945 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5 19946 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;} 19947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 19948 $as_echo_n "checking for MAKE... " >&6; } 19949 if test ! -x "$tool_specified"; then 19950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19951 $as_echo "not found" >&6; } 19952 as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5 19953 fi 19954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19955 $as_echo "$tool_specified" >&6; } 19956 fi 19957 fi 19958 fi 19959 19960 # If MAKE was set by user, verify the version 19961 19962 MAKE_CANDIDATE=""$MAKE"" 19963 DESCRIPTION="user supplied MAKE=$MAKE" 19964 19965 # On Cygwin, we require a newer version of make than on other platforms 19966 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19967 MAKE_VERSION_EXPR="-e 4\." 19968 MAKE_REQUIRED_VERSION="4.0" 19969 else 19970 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19971 MAKE_REQUIRED_VERSION="3.81" 19972 fi 19973 19974 if test "x$MAKE_CANDIDATE" != x; then 19975 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19976 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19977 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19978 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19979 if test "x$IS_GNU_MAKE" = x; then 19980 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19981 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19982 else 19983 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19984 if test "x$IS_MODERN_MAKE" = x; then 19985 { $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 19986 $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;} 19987 else 19988 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19989 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19990 MAKE_EXPECTED_ENV='cygwin' 19991 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19992 MAKE_EXPECTED_ENV='msys' 19993 else 19994 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19995 fi 19996 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19997 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19998 else 19999 # Not relevant for non-Windows 20000 IS_MAKE_CORRECT_ENV=true 20001 fi 20002 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20003 { $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 20004 $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;} 20005 else 20006 FOUND_MAKE=$MAKE_CANDIDATE 20007 20008 # Only process if variable expands to non-empty 20009 20010 if test "x$FOUND_MAKE" != x; then 20011 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20012 20013 # First separate the path from the arguments. This will split at the first 20014 # space. 20015 complete="$FOUND_MAKE" 20016 path="${complete%% *}" 20017 tmp="$complete EOL" 20018 arguments="${tmp#* }" 20019 20020 # Input might be given as Windows format, start by converting to 20021 # unix format. 20022 new_path=`$CYGPATH -u "$path"` 20023 20024 # Now try to locate executable using which 20025 new_path=`$WHICH "$new_path" 2> /dev/null` 20026 # bat and cmd files are not always considered executable in cygwin causing which 20027 # to not find them 20028 if test "x$new_path" = x \ 20029 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20030 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20031 new_path=`$CYGPATH -u "$path"` 20032 fi 20033 if test "x$new_path" = x; then 20034 # Oops. Which didn't find the executable. 20035 # The splitting of arguments from the executable at a space might have been incorrect, 20036 # since paths with space are more likely in Windows. Give it another try with the whole 20037 # argument. 20038 path="$complete" 20039 arguments="EOL" 20040 new_path=`$CYGPATH -u "$path"` 20041 new_path=`$WHICH "$new_path" 2> /dev/null` 20042 # bat and cmd files are not always considered executable in cygwin causing which 20043 # to not find them 20044 if test "x$new_path" = x \ 20045 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20046 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20047 new_path=`$CYGPATH -u "$path"` 20048 fi 20049 if test "x$new_path" = x; then 20050 # It's still not found. Now this is an unrecoverable error. 20051 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20052 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20053 has_space=`$ECHO "$complete" | $GREP " "` 20054 if test "x$has_space" != x; then 20055 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20056 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20057 fi 20058 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20059 fi 20060 fi 20061 20062 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20063 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20064 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20065 # "foo.exe" is OK but "foo" is an error. 20066 # 20067 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20068 # It is also a way to make sure we got the proper file name for the real test later on. 20069 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20070 if test "x$test_shortpath" = x; then 20071 # Short path failed, file does not exist as specified. 20072 # Try adding .exe or .cmd 20073 if test -f "${new_path}.exe"; then 20074 input_to_shortpath="${new_path}.exe" 20075 elif test -f "${new_path}.cmd"; then 20076 input_to_shortpath="${new_path}.cmd" 20077 else 20078 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20079 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20080 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20081 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20082 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20083 fi 20084 else 20085 input_to_shortpath="$new_path" 20086 fi 20087 20088 # Call helper function which possibly converts this using DOS-style short mode. 20089 # If so, the updated path is stored in $new_path. 20090 new_path="$input_to_shortpath" 20091 20092 input_path="$input_to_shortpath" 20093 # Check if we need to convert this using DOS-style short mode. If the path 20094 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20095 # take no chances and rewrite it. 20096 # Note: m4 eats our [], so we need to use [ and ] instead. 20097 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20098 if test "x$has_forbidden_chars" != x; then 20099 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20100 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20101 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20102 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20103 # Going to short mode and back again did indeed matter. Since short mode is 20104 # case insensitive, let's make it lowercase to improve readability. 20105 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20106 # Now convert it back to Unix-style (cygpath) 20107 input_path=`$CYGPATH -u "$shortmode_path"` 20108 new_path="$input_path" 20109 fi 20110 fi 20111 20112 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20113 if test "x$test_cygdrive_prefix" = x; then 20114 # As a simple fix, exclude /usr/bin since it's not a real path. 20115 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20116 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20117 # a path prefixed by /cygdrive for fixpath to work. 20118 new_path="$CYGWIN_ROOT_PATH$input_path" 20119 fi 20120 fi 20121 20122 # remove trailing .exe if any 20123 new_path="${new_path/%.exe/}" 20124 20125 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20126 20127 # First separate the path from the arguments. This will split at the first 20128 # space. 20129 complete="$FOUND_MAKE" 20130 path="${complete%% *}" 20131 tmp="$complete EOL" 20132 arguments="${tmp#* }" 20133 20134 # Input might be given as Windows format, start by converting to 20135 # unix format. 20136 new_path="$path" 20137 20138 windows_path="$new_path" 20139 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20140 unix_path=`$CYGPATH -u "$windows_path"` 20141 new_path="$unix_path" 20142 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20143 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20144 new_path="$unix_path" 20145 fi 20146 20147 20148 # Now try to locate executable using which 20149 new_path=`$WHICH "$new_path" 2> /dev/null` 20150 20151 if test "x$new_path" = x; then 20152 # Oops. Which didn't find the executable. 20153 # The splitting of arguments from the executable at a space might have been incorrect, 20154 # since paths with space are more likely in Windows. Give it another try with the whole 20155 # argument. 20156 path="$complete" 20157 arguments="EOL" 20158 new_path="$path" 20159 20160 windows_path="$new_path" 20161 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20162 unix_path=`$CYGPATH -u "$windows_path"` 20163 new_path="$unix_path" 20164 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20165 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20166 new_path="$unix_path" 20167 fi 20168 20169 20170 new_path=`$WHICH "$new_path" 2> /dev/null` 20171 # bat and cmd files are not always considered executable in MSYS causing which 20172 # to not find them 20173 if test "x$new_path" = x \ 20174 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20175 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20176 new_path="$path" 20177 20178 windows_path="$new_path" 20179 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20180 unix_path=`$CYGPATH -u "$windows_path"` 20181 new_path="$unix_path" 20182 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20183 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20184 new_path="$unix_path" 20185 fi 20186 20187 fi 20188 20189 if test "x$new_path" = x; then 20190 # It's still not found. Now this is an unrecoverable error. 20191 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20192 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20193 has_space=`$ECHO "$complete" | $GREP " "` 20194 if test "x$has_space" != x; then 20195 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20196 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20197 fi 20198 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20199 fi 20200 fi 20201 20202 # Now new_path has a complete unix path to the binary 20203 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20204 # Keep paths in /bin as-is, but remove trailing .exe if any 20205 new_path="${new_path/%.exe/}" 20206 # Do not save /bin paths to all_fixpath_prefixes! 20207 else 20208 # Not in mixed or Windows style, start by that. 20209 new_path=`cmd //c echo $new_path` 20210 20211 input_path="$new_path" 20212 # Check if we need to convert this using DOS-style short mode. If the path 20213 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20214 # take no chances and rewrite it. 20215 # Note: m4 eats our [], so we need to use [ and ] instead. 20216 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20217 if test "x$has_forbidden_chars" != x; then 20218 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20219 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20220 fi 20221 20222 # Output is in $new_path 20223 20224 windows_path="$new_path" 20225 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20226 unix_path=`$CYGPATH -u "$windows_path"` 20227 new_path="$unix_path" 20228 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20229 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20230 new_path="$unix_path" 20231 fi 20232 20233 # remove trailing .exe if any 20234 new_path="${new_path/%.exe/}" 20235 20236 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20237 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20238 fi 20239 20240 else 20241 # We're on a unix platform. Hooray! :) 20242 # First separate the path from the arguments. This will split at the first 20243 # space. 20244 complete="$FOUND_MAKE" 20245 path="${complete%% *}" 20246 tmp="$complete EOL" 20247 arguments="${tmp#* }" 20248 20249 # Cannot rely on the command "which" here since it doesn't always work. 20250 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20251 if test -z "$is_absolute_path"; then 20252 # Path to executable is not absolute. Find it. 20253 IFS_save="$IFS" 20254 IFS=: 20255 for p in $PATH; do 20256 if test -f "$p/$path" && test -x "$p/$path"; then 20257 new_path="$p/$path" 20258 break 20259 fi 20260 done 20261 IFS="$IFS_save" 20262 else 20263 # This is an absolute path, we can use it without further modifications. 20264 new_path="$path" 20265 fi 20266 20267 if test "x$new_path" = x; then 20268 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20269 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20270 has_space=`$ECHO "$complete" | $GREP " "` 20271 if test "x$has_space" != x; then 20272 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20273 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20274 fi 20275 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20276 fi 20277 fi 20278 20279 # Now join together the path and the arguments once again 20280 if test "x$arguments" != xEOL; then 20281 new_complete="$new_path ${arguments% *}" 20282 else 20283 new_complete="$new_path" 20284 fi 20285 20286 if test "x$complete" != "x$new_complete"; then 20287 FOUND_MAKE="$new_complete" 20288 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20289 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20290 fi 20291 fi 20292 20293 fi 20294 fi 20295 fi 20296 fi 20297 20298 if test "x$FOUND_MAKE" = x; then 20299 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5 20300 fi 20301 20302 fi 20303 20304 20305 MAKE=$FOUND_MAKE 20306 20307 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 20308 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 20309 20310 20311 # Check if make supports the output sync option and if so, setup using it. 20312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5 20313 $as_echo_n "checking if make --output-sync is supported... " >&6; } 20314 if $MAKE --version -O > /dev/null 2>&1; then 20315 OUTPUT_SYNC_SUPPORTED=true 20316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20317 $as_echo "yes" >&6; } 20318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5 20319 $as_echo_n "checking for output-sync value... " >&6; } 20320 20321 # Check whether --with-output-sync was given. 20322 if test "${with_output_sync+set}" = set; then : 20323 withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync 20324 fi 20325 20326 if test "x$OUTPUT_SYNC" = "x"; then 20327 OUTPUT_SYNC=none 20328 fi 20329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5 20330 $as_echo "$OUTPUT_SYNC" >&6; } 20331 if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then 20332 as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5 20333 fi 20334 else 20335 OUTPUT_SYNC_SUPPORTED=false 20336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20337 $as_echo "no" >&6; } 20338 fi 20339 20340 20341 20342 20343 20344 20345 # Test if find supports -delete 20346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 20347 $as_echo_n "checking if find supports -delete... " >&6; } 20348 FIND_DELETE="-delete" 20349 20350 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 20351 20352 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 20353 20354 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 20355 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 20356 # No, it does not. 20357 rm $DELETEDIR/TestIfFindSupportsDelete 20358 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 20359 # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list 20360 FIND_DELETE="-print | xargs rm" 20361 else 20362 FIND_DELETE="-exec rm \{\} \+" 20363 fi 20364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20365 $as_echo "no" >&6; } 20366 else 20367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20368 $as_echo "yes" >&6; } 20369 fi 20370 rmdir $DELETEDIR 20371 20372 20373 20374 # These tools might not be installed by default, 20375 # need hint on how to install them. 20376 20377 20378 20379 # Publish this variable in the help. 20380 20381 20382 if [ -z "${UNZIP+x}" ]; then 20383 # The variable is not set by user, try to locate tool using the code snippet 20384 for ac_prog in unzip 20385 do 20386 # Extract the first word of "$ac_prog", so it can be a program name with args. 20387 set dummy $ac_prog; ac_word=$2 20388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20389 $as_echo_n "checking for $ac_word... " >&6; } 20390 if ${ac_cv_path_UNZIP+:} false; then : 20391 $as_echo_n "(cached) " >&6 20392 else 20393 case $UNZIP in 20394 [\\/]* | ?:[\\/]*) 20395 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 20396 ;; 20397 *) 20398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20399 for as_dir in $PATH 20400 do 20401 IFS=$as_save_IFS 20402 test -z "$as_dir" && as_dir=. 20403 for ac_exec_ext in '' $ac_executable_extensions; do 20404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20405 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 20406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20407 break 2 20408 fi 20409 done 20410 done 20411 IFS=$as_save_IFS 20412 20413 ;; 20414 esac 20415 fi 20416 UNZIP=$ac_cv_path_UNZIP 20417 if test -n "$UNZIP"; then 20418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 20419 $as_echo "$UNZIP" >&6; } 20420 else 20421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20422 $as_echo "no" >&6; } 20423 fi 20424 20425 20426 test -n "$UNZIP" && break 20427 done 20428 20429 else 20430 # The variable is set, but is it from the command line or the environment? 20431 20432 # Try to remove the string !UNZIP! from our list. 20433 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 20434 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 20435 # If it failed, the variable was not from the command line. Ignore it, 20436 # but warn the user (except for BASH, which is always set by the calling BASH). 20437 if test "xUNZIP" != xBASH; then 20438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 20439 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 20440 fi 20441 # Try to locate tool using the code snippet 20442 for ac_prog in unzip 20443 do 20444 # Extract the first word of "$ac_prog", so it can be a program name with args. 20445 set dummy $ac_prog; ac_word=$2 20446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20447 $as_echo_n "checking for $ac_word... " >&6; } 20448 if ${ac_cv_path_UNZIP+:} false; then : 20449 $as_echo_n "(cached) " >&6 20450 else 20451 case $UNZIP in 20452 [\\/]* | ?:[\\/]*) 20453 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 20454 ;; 20455 *) 20456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20457 for as_dir in $PATH 20458 do 20459 IFS=$as_save_IFS 20460 test -z "$as_dir" && as_dir=. 20461 for ac_exec_ext in '' $ac_executable_extensions; do 20462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20463 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 20464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20465 break 2 20466 fi 20467 done 20468 done 20469 IFS=$as_save_IFS 20470 20471 ;; 20472 esac 20473 fi 20474 UNZIP=$ac_cv_path_UNZIP 20475 if test -n "$UNZIP"; then 20476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 20477 $as_echo "$UNZIP" >&6; } 20478 else 20479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20480 $as_echo "no" >&6; } 20481 fi 20482 20483 20484 test -n "$UNZIP" && break 20485 done 20486 20487 else 20488 # If it succeeded, then it was overridden by the user. We will use it 20489 # for the tool. 20490 20491 # First remove it from the list of overridden variables, so we can test 20492 # for unknown variables in the end. 20493 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 20494 20495 # Check if we try to supply an empty value 20496 if test "x$UNZIP" = x; then 20497 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5 20498 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;} 20499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 20500 $as_echo_n "checking for UNZIP... " >&6; } 20501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 20502 $as_echo "disabled" >&6; } 20503 else 20504 # Check if the provided tool contains a complete path. 20505 tool_specified="$UNZIP" 20506 tool_basename="${tool_specified##*/}" 20507 if test "x$tool_basename" = "x$tool_specified"; then 20508 # A command without a complete path is provided, search $PATH. 20509 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 20510 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 20511 # Extract the first word of "$tool_basename", so it can be a program name with args. 20512 set dummy $tool_basename; ac_word=$2 20513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20514 $as_echo_n "checking for $ac_word... " >&6; } 20515 if ${ac_cv_path_UNZIP+:} false; then : 20516 $as_echo_n "(cached) " >&6 20517 else 20518 case $UNZIP in 20519 [\\/]* | ?:[\\/]*) 20520 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 20521 ;; 20522 *) 20523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20524 for as_dir in $PATH 20525 do 20526 IFS=$as_save_IFS 20527 test -z "$as_dir" && as_dir=. 20528 for ac_exec_ext in '' $ac_executable_extensions; do 20529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20530 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 20531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20532 break 2 20533 fi 20534 done 20535 done 20536 IFS=$as_save_IFS 20537 20538 ;; 20539 esac 20540 fi 20541 UNZIP=$ac_cv_path_UNZIP 20542 if test -n "$UNZIP"; then 20543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 20544 $as_echo "$UNZIP" >&6; } 20545 else 20546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20547 $as_echo "no" >&6; } 20548 fi 20549 20550 20551 if test "x$UNZIP" = x; then 20552 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 20553 fi 20554 else 20555 # Otherwise we believe it is a complete path. Use it as it is. 20556 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 20557 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 20558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 20559 $as_echo_n "checking for UNZIP... " >&6; } 20560 if test ! -x "$tool_specified"; then 20561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 20562 $as_echo "not found" >&6; } 20563 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 20564 fi 20565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 20566 $as_echo "$tool_specified" >&6; } 20567 fi 20568 fi 20569 fi 20570 20571 fi 20572 20573 20574 20575 if test "x$UNZIP" = x; then 20576 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 20577 fi 20578 20579 20580 20581 20582 20583 # Publish this variable in the help. 20584 20585 20586 if [ -z "${ZIP+x}" ]; then 20587 # The variable is not set by user, try to locate tool using the code snippet 20588 for ac_prog in zip 20589 do 20590 # Extract the first word of "$ac_prog", so it can be a program name with args. 20591 set dummy $ac_prog; ac_word=$2 20592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20593 $as_echo_n "checking for $ac_word... " >&6; } 20594 if ${ac_cv_path_ZIP+:} false; then : 20595 $as_echo_n "(cached) " >&6 20596 else 20597 case $ZIP in 20598 [\\/]* | ?:[\\/]*) 20599 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 20600 ;; 20601 *) 20602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20603 for as_dir in $PATH 20604 do 20605 IFS=$as_save_IFS 20606 test -z "$as_dir" && as_dir=. 20607 for ac_exec_ext in '' $ac_executable_extensions; do 20608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20609 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 20610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20611 break 2 20612 fi 20613 done 20614 done 20615 IFS=$as_save_IFS 20616 20617 ;; 20618 esac 20619 fi 20620 ZIP=$ac_cv_path_ZIP 20621 if test -n "$ZIP"; then 20622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 20623 $as_echo "$ZIP" >&6; } 20624 else 20625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20626 $as_echo "no" >&6; } 20627 fi 20628 20629 20630 test -n "$ZIP" && break 20631 done 20632 20633 else 20634 # The variable is set, but is it from the command line or the environment? 20635 20636 # Try to remove the string !ZIP! from our list. 20637 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 20638 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 20639 # If it failed, the variable was not from the command line. Ignore it, 20640 # but warn the user (except for BASH, which is always set by the calling BASH). 20641 if test "xZIP" != xBASH; then 20642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 20643 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 20644 fi 20645 # Try to locate tool using the code snippet 20646 for ac_prog in zip 20647 do 20648 # Extract the first word of "$ac_prog", so it can be a program name with args. 20649 set dummy $ac_prog; ac_word=$2 20650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20651 $as_echo_n "checking for $ac_word... " >&6; } 20652 if ${ac_cv_path_ZIP+:} false; then : 20653 $as_echo_n "(cached) " >&6 20654 else 20655 case $ZIP in 20656 [\\/]* | ?:[\\/]*) 20657 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 20658 ;; 20659 *) 20660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20661 for as_dir in $PATH 20662 do 20663 IFS=$as_save_IFS 20664 test -z "$as_dir" && as_dir=. 20665 for ac_exec_ext in '' $ac_executable_extensions; do 20666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20667 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 20668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20669 break 2 20670 fi 20671 done 20672 done 20673 IFS=$as_save_IFS 20674 20675 ;; 20676 esac 20677 fi 20678 ZIP=$ac_cv_path_ZIP 20679 if test -n "$ZIP"; then 20680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 20681 $as_echo "$ZIP" >&6; } 20682 else 20683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20684 $as_echo "no" >&6; } 20685 fi 20686 20687 20688 test -n "$ZIP" && break 20689 done 20690 20691 else 20692 # If it succeeded, then it was overridden by the user. We will use it 20693 # for the tool. 20694 20695 # First remove it from the list of overridden variables, so we can test 20696 # for unknown variables in the end. 20697 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 20698 20699 # Check if we try to supply an empty value 20700 if test "x$ZIP" = x; then 20701 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIP= (no value)" >&5 20702 $as_echo "$as_me: Setting user supplied tool ZIP= (no value)" >&6;} 20703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 20704 $as_echo_n "checking for ZIP... " >&6; } 20705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 20706 $as_echo "disabled" >&6; } 20707 else 20708 # Check if the provided tool contains a complete path. 20709 tool_specified="$ZIP" 20710 tool_basename="${tool_specified##*/}" 20711 if test "x$tool_basename" = "x$tool_specified"; then 20712 # A command without a complete path is provided, search $PATH. 20713 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 20714 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 20715 # Extract the first word of "$tool_basename", so it can be a program name with args. 20716 set dummy $tool_basename; ac_word=$2 20717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20718 $as_echo_n "checking for $ac_word... " >&6; } 20719 if ${ac_cv_path_ZIP+:} false; then : 20720 $as_echo_n "(cached) " >&6 20721 else 20722 case $ZIP in 20723 [\\/]* | ?:[\\/]*) 20724 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 20725 ;; 20726 *) 20727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20728 for as_dir in $PATH 20729 do 20730 IFS=$as_save_IFS 20731 test -z "$as_dir" && as_dir=. 20732 for ac_exec_ext in '' $ac_executable_extensions; do 20733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20734 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 20735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20736 break 2 20737 fi 20738 done 20739 done 20740 IFS=$as_save_IFS 20741 20742 ;; 20743 esac 20744 fi 20745 ZIP=$ac_cv_path_ZIP 20746 if test -n "$ZIP"; then 20747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 20748 $as_echo "$ZIP" >&6; } 20749 else 20750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20751 $as_echo "no" >&6; } 20752 fi 20753 20754 20755 if test "x$ZIP" = x; then 20756 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 20757 fi 20758 else 20759 # Otherwise we believe it is a complete path. Use it as it is. 20760 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 20761 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 20762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 20763 $as_echo_n "checking for ZIP... " >&6; } 20764 if test ! -x "$tool_specified"; then 20765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 20766 $as_echo "not found" >&6; } 20767 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 20768 fi 20769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 20770 $as_echo "$tool_specified" >&6; } 20771 fi 20772 fi 20773 fi 20774 20775 fi 20776 20777 20778 20779 if test "x$ZIP" = x; then 20780 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 20781 fi 20782 20783 20784 20785 # Non-required basic tools 20786 20787 20788 20789 # Publish this variable in the help. 20790 20791 20792 if [ -z "${LDD+x}" ]; then 20793 # The variable is not set by user, try to locate tool using the code snippet 20794 for ac_prog in ldd 20795 do 20796 # Extract the first word of "$ac_prog", so it can be a program name with args. 20797 set dummy $ac_prog; ac_word=$2 20798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20799 $as_echo_n "checking for $ac_word... " >&6; } 20800 if ${ac_cv_path_LDD+:} false; then : 20801 $as_echo_n "(cached) " >&6 20802 else 20803 case $LDD in 20804 [\\/]* | ?:[\\/]*) 20805 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 20806 ;; 20807 *) 20808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20809 for as_dir in $PATH 20810 do 20811 IFS=$as_save_IFS 20812 test -z "$as_dir" && as_dir=. 20813 for ac_exec_ext in '' $ac_executable_extensions; do 20814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20815 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 20816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20817 break 2 20818 fi 20819 done 20820 done 20821 IFS=$as_save_IFS 20822 20823 ;; 20824 esac 20825 fi 20826 LDD=$ac_cv_path_LDD 20827 if test -n "$LDD"; then 20828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 20829 $as_echo "$LDD" >&6; } 20830 else 20831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20832 $as_echo "no" >&6; } 20833 fi 20834 20835 20836 test -n "$LDD" && break 20837 done 20838 20839 else 20840 # The variable is set, but is it from the command line or the environment? 20841 20842 # Try to remove the string !LDD! from our list. 20843 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 20844 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 20845 # If it failed, the variable was not from the command line. Ignore it, 20846 # but warn the user (except for BASH, which is always set by the calling BASH). 20847 if test "xLDD" != xBASH; then 20848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 20849 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 20850 fi 20851 # Try to locate tool using the code snippet 20852 for ac_prog in ldd 20853 do 20854 # Extract the first word of "$ac_prog", so it can be a program name with args. 20855 set dummy $ac_prog; ac_word=$2 20856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20857 $as_echo_n "checking for $ac_word... " >&6; } 20858 if ${ac_cv_path_LDD+:} false; then : 20859 $as_echo_n "(cached) " >&6 20860 else 20861 case $LDD in 20862 [\\/]* | ?:[\\/]*) 20863 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 20864 ;; 20865 *) 20866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20867 for as_dir in $PATH 20868 do 20869 IFS=$as_save_IFS 20870 test -z "$as_dir" && as_dir=. 20871 for ac_exec_ext in '' $ac_executable_extensions; do 20872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20873 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 20874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20875 break 2 20876 fi 20877 done 20878 done 20879 IFS=$as_save_IFS 20880 20881 ;; 20882 esac 20883 fi 20884 LDD=$ac_cv_path_LDD 20885 if test -n "$LDD"; then 20886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 20887 $as_echo "$LDD" >&6; } 20888 else 20889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20890 $as_echo "no" >&6; } 20891 fi 20892 20893 20894 test -n "$LDD" && break 20895 done 20896 20897 else 20898 # If it succeeded, then it was overridden by the user. We will use it 20899 # for the tool. 20900 20901 # First remove it from the list of overridden variables, so we can test 20902 # for unknown variables in the end. 20903 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 20904 20905 # Check if we try to supply an empty value 20906 if test "x$LDD" = x; then 20907 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5 20908 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;} 20909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 20910 $as_echo_n "checking for LDD... " >&6; } 20911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 20912 $as_echo "disabled" >&6; } 20913 else 20914 # Check if the provided tool contains a complete path. 20915 tool_specified="$LDD" 20916 tool_basename="${tool_specified##*/}" 20917 if test "x$tool_basename" = "x$tool_specified"; then 20918 # A command without a complete path is provided, search $PATH. 20919 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 20920 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 20921 # Extract the first word of "$tool_basename", so it can be a program name with args. 20922 set dummy $tool_basename; ac_word=$2 20923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20924 $as_echo_n "checking for $ac_word... " >&6; } 20925 if ${ac_cv_path_LDD+:} false; then : 20926 $as_echo_n "(cached) " >&6 20927 else 20928 case $LDD in 20929 [\\/]* | ?:[\\/]*) 20930 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 20931 ;; 20932 *) 20933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20934 for as_dir in $PATH 20935 do 20936 IFS=$as_save_IFS 20937 test -z "$as_dir" && as_dir=. 20938 for ac_exec_ext in '' $ac_executable_extensions; do 20939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20940 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 20941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20942 break 2 20943 fi 20944 done 20945 done 20946 IFS=$as_save_IFS 20947 20948 ;; 20949 esac 20950 fi 20951 LDD=$ac_cv_path_LDD 20952 if test -n "$LDD"; then 20953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 20954 $as_echo "$LDD" >&6; } 20955 else 20956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20957 $as_echo "no" >&6; } 20958 fi 20959 20960 20961 if test "x$LDD" = x; then 20962 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 20963 fi 20964 else 20965 # Otherwise we believe it is a complete path. Use it as it is. 20966 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 20967 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 20968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 20969 $as_echo_n "checking for LDD... " >&6; } 20970 if test ! -x "$tool_specified"; then 20971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 20972 $as_echo "not found" >&6; } 20973 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 20974 fi 20975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 20976 $as_echo "$tool_specified" >&6; } 20977 fi 20978 fi 20979 fi 20980 20981 fi 20982 20983 20984 if test "x$LDD" = "x"; then 20985 # List shared lib dependencies is used for 20986 # debug output and checking for forbidden dependencies. 20987 # We can build without it. 20988 LDD="true" 20989 fi 20990 20991 20992 # Publish this variable in the help. 20993 20994 20995 if [ -z "${OTOOL+x}" ]; then 20996 # The variable is not set by user, try to locate tool using the code snippet 20997 for ac_prog in otool 20998 do 20999 # Extract the first word of "$ac_prog", so it can be a program name with args. 21000 set dummy $ac_prog; ac_word=$2 21001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21002 $as_echo_n "checking for $ac_word... " >&6; } 21003 if ${ac_cv_path_OTOOL+:} false; then : 21004 $as_echo_n "(cached) " >&6 21005 else 21006 case $OTOOL in 21007 [\\/]* | ?:[\\/]*) 21008 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 21009 ;; 21010 *) 21011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21012 for as_dir in $PATH 21013 do 21014 IFS=$as_save_IFS 21015 test -z "$as_dir" && as_dir=. 21016 for ac_exec_ext in '' $ac_executable_extensions; do 21017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21018 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 21019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21020 break 2 21021 fi 21022 done 21023 done 21024 IFS=$as_save_IFS 21025 21026 ;; 21027 esac 21028 fi 21029 OTOOL=$ac_cv_path_OTOOL 21030 if test -n "$OTOOL"; then 21031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 21032 $as_echo "$OTOOL" >&6; } 21033 else 21034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21035 $as_echo "no" >&6; } 21036 fi 21037 21038 21039 test -n "$OTOOL" && break 21040 done 21041 21042 else 21043 # The variable is set, but is it from the command line or the environment? 21044 21045 # Try to remove the string !OTOOL! from our list. 21046 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 21047 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21048 # If it failed, the variable was not from the command line. Ignore it, 21049 # but warn the user (except for BASH, which is always set by the calling BASH). 21050 if test "xOTOOL" != xBASH; then 21051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 21052 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 21053 fi 21054 # Try to locate tool using the code snippet 21055 for ac_prog in otool 21056 do 21057 # Extract the first word of "$ac_prog", so it can be a program name with args. 21058 set dummy $ac_prog; ac_word=$2 21059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21060 $as_echo_n "checking for $ac_word... " >&6; } 21061 if ${ac_cv_path_OTOOL+:} false; then : 21062 $as_echo_n "(cached) " >&6 21063 else 21064 case $OTOOL in 21065 [\\/]* | ?:[\\/]*) 21066 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 21067 ;; 21068 *) 21069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21070 for as_dir in $PATH 21071 do 21072 IFS=$as_save_IFS 21073 test -z "$as_dir" && as_dir=. 21074 for ac_exec_ext in '' $ac_executable_extensions; do 21075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21076 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 21077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21078 break 2 21079 fi 21080 done 21081 done 21082 IFS=$as_save_IFS 21083 21084 ;; 21085 esac 21086 fi 21087 OTOOL=$ac_cv_path_OTOOL 21088 if test -n "$OTOOL"; then 21089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 21090 $as_echo "$OTOOL" >&6; } 21091 else 21092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21093 $as_echo "no" >&6; } 21094 fi 21095 21096 21097 test -n "$OTOOL" && break 21098 done 21099 21100 else 21101 # If it succeeded, then it was overridden by the user. We will use it 21102 # for the tool. 21103 21104 # First remove it from the list of overridden variables, so we can test 21105 # for unknown variables in the end. 21106 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21107 21108 # Check if we try to supply an empty value 21109 if test "x$OTOOL" = x; then 21110 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5 21111 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;} 21112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 21113 $as_echo_n "checking for OTOOL... " >&6; } 21114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21115 $as_echo "disabled" >&6; } 21116 else 21117 # Check if the provided tool contains a complete path. 21118 tool_specified="$OTOOL" 21119 tool_basename="${tool_specified##*/}" 21120 if test "x$tool_basename" = "x$tool_specified"; then 21121 # A command without a complete path is provided, search $PATH. 21122 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 21123 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 21124 # Extract the first word of "$tool_basename", so it can be a program name with args. 21125 set dummy $tool_basename; ac_word=$2 21126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21127 $as_echo_n "checking for $ac_word... " >&6; } 21128 if ${ac_cv_path_OTOOL+:} false; then : 21129 $as_echo_n "(cached) " >&6 21130 else 21131 case $OTOOL in 21132 [\\/]* | ?:[\\/]*) 21133 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 21134 ;; 21135 *) 21136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21137 for as_dir in $PATH 21138 do 21139 IFS=$as_save_IFS 21140 test -z "$as_dir" && as_dir=. 21141 for ac_exec_ext in '' $ac_executable_extensions; do 21142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21143 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 21144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21145 break 2 21146 fi 21147 done 21148 done 21149 IFS=$as_save_IFS 21150 21151 ;; 21152 esac 21153 fi 21154 OTOOL=$ac_cv_path_OTOOL 21155 if test -n "$OTOOL"; then 21156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 21157 $as_echo "$OTOOL" >&6; } 21158 else 21159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21160 $as_echo "no" >&6; } 21161 fi 21162 21163 21164 if test "x$OTOOL" = x; then 21165 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21166 fi 21167 else 21168 # Otherwise we believe it is a complete path. Use it as it is. 21169 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 21170 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 21171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 21172 $as_echo_n "checking for OTOOL... " >&6; } 21173 if test ! -x "$tool_specified"; then 21174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21175 $as_echo "not found" >&6; } 21176 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 21177 fi 21178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21179 $as_echo "$tool_specified" >&6; } 21180 fi 21181 fi 21182 fi 21183 21184 fi 21185 21186 21187 if test "x$OTOOL" = "x"; then 21188 OTOOL="true" 21189 fi 21190 21191 21192 # Publish this variable in the help. 21193 21194 21195 if [ -z "${READELF+x}" ]; then 21196 # The variable is not set by user, try to locate tool using the code snippet 21197 for ac_prog in greadelf readelf 21198 do 21199 # Extract the first word of "$ac_prog", so it can be a program name with args. 21200 set dummy $ac_prog; ac_word=$2 21201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21202 $as_echo_n "checking for $ac_word... " >&6; } 21203 if ${ac_cv_path_READELF+:} false; then : 21204 $as_echo_n "(cached) " >&6 21205 else 21206 case $READELF in 21207 [\\/]* | ?:[\\/]*) 21208 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 21209 ;; 21210 *) 21211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21212 for as_dir in $PATH 21213 do 21214 IFS=$as_save_IFS 21215 test -z "$as_dir" && as_dir=. 21216 for ac_exec_ext in '' $ac_executable_extensions; do 21217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21218 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 21219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21220 break 2 21221 fi 21222 done 21223 done 21224 IFS=$as_save_IFS 21225 21226 ;; 21227 esac 21228 fi 21229 READELF=$ac_cv_path_READELF 21230 if test -n "$READELF"; then 21231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 21232 $as_echo "$READELF" >&6; } 21233 else 21234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21235 $as_echo "no" >&6; } 21236 fi 21237 21238 21239 test -n "$READELF" && break 21240 done 21241 21242 else 21243 # The variable is set, but is it from the command line or the environment? 21244 21245 # Try to remove the string !READELF! from our list. 21246 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 21247 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21248 # If it failed, the variable was not from the command line. Ignore it, 21249 # but warn the user (except for BASH, which is always set by the calling BASH). 21250 if test "xREADELF" != xBASH; then 21251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 21252 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 21253 fi 21254 # Try to locate tool using the code snippet 21255 for ac_prog in greadelf readelf 21256 do 21257 # Extract the first word of "$ac_prog", so it can be a program name with args. 21258 set dummy $ac_prog; ac_word=$2 21259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21260 $as_echo_n "checking for $ac_word... " >&6; } 21261 if ${ac_cv_path_READELF+:} false; then : 21262 $as_echo_n "(cached) " >&6 21263 else 21264 case $READELF in 21265 [\\/]* | ?:[\\/]*) 21266 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 21267 ;; 21268 *) 21269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21270 for as_dir in $PATH 21271 do 21272 IFS=$as_save_IFS 21273 test -z "$as_dir" && as_dir=. 21274 for ac_exec_ext in '' $ac_executable_extensions; do 21275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21276 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 21277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21278 break 2 21279 fi 21280 done 21281 done 21282 IFS=$as_save_IFS 21283 21284 ;; 21285 esac 21286 fi 21287 READELF=$ac_cv_path_READELF 21288 if test -n "$READELF"; then 21289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 21290 $as_echo "$READELF" >&6; } 21291 else 21292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21293 $as_echo "no" >&6; } 21294 fi 21295 21296 21297 test -n "$READELF" && break 21298 done 21299 21300 else 21301 # If it succeeded, then it was overridden by the user. We will use it 21302 # for the tool. 21303 21304 # First remove it from the list of overridden variables, so we can test 21305 # for unknown variables in the end. 21306 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21307 21308 # Check if we try to supply an empty value 21309 if test "x$READELF" = x; then 21310 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5 21311 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;} 21312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 21313 $as_echo_n "checking for READELF... " >&6; } 21314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21315 $as_echo "disabled" >&6; } 21316 else 21317 # Check if the provided tool contains a complete path. 21318 tool_specified="$READELF" 21319 tool_basename="${tool_specified##*/}" 21320 if test "x$tool_basename" = "x$tool_specified"; then 21321 # A command without a complete path is provided, search $PATH. 21322 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 21323 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 21324 # Extract the first word of "$tool_basename", so it can be a program name with args. 21325 set dummy $tool_basename; ac_word=$2 21326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21327 $as_echo_n "checking for $ac_word... " >&6; } 21328 if ${ac_cv_path_READELF+:} false; then : 21329 $as_echo_n "(cached) " >&6 21330 else 21331 case $READELF in 21332 [\\/]* | ?:[\\/]*) 21333 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 21334 ;; 21335 *) 21336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21337 for as_dir in $PATH 21338 do 21339 IFS=$as_save_IFS 21340 test -z "$as_dir" && as_dir=. 21341 for ac_exec_ext in '' $ac_executable_extensions; do 21342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21343 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 21344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21345 break 2 21346 fi 21347 done 21348 done 21349 IFS=$as_save_IFS 21350 21351 ;; 21352 esac 21353 fi 21354 READELF=$ac_cv_path_READELF 21355 if test -n "$READELF"; then 21356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 21357 $as_echo "$READELF" >&6; } 21358 else 21359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21360 $as_echo "no" >&6; } 21361 fi 21362 21363 21364 if test "x$READELF" = x; then 21365 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21366 fi 21367 else 21368 # Otherwise we believe it is a complete path. Use it as it is. 21369 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 21370 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 21371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 21372 $as_echo_n "checking for READELF... " >&6; } 21373 if test ! -x "$tool_specified"; then 21374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21375 $as_echo "not found" >&6; } 21376 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 21377 fi 21378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21379 $as_echo "$tool_specified" >&6; } 21380 fi 21381 fi 21382 fi 21383 21384 fi 21385 21386 21387 21388 21389 # Publish this variable in the help. 21390 21391 21392 if [ -z "${HG+x}" ]; then 21393 # The variable is not set by user, try to locate tool using the code snippet 21394 for ac_prog in hg 21395 do 21396 # Extract the first word of "$ac_prog", so it can be a program name with args. 21397 set dummy $ac_prog; ac_word=$2 21398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21399 $as_echo_n "checking for $ac_word... " >&6; } 21400 if ${ac_cv_path_HG+:} false; then : 21401 $as_echo_n "(cached) " >&6 21402 else 21403 case $HG in 21404 [\\/]* | ?:[\\/]*) 21405 ac_cv_path_HG="$HG" # Let the user override the test with a path. 21406 ;; 21407 *) 21408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21409 for as_dir in $PATH 21410 do 21411 IFS=$as_save_IFS 21412 test -z "$as_dir" && as_dir=. 21413 for ac_exec_ext in '' $ac_executable_extensions; do 21414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21415 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 21416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21417 break 2 21418 fi 21419 done 21420 done 21421 IFS=$as_save_IFS 21422 21423 ;; 21424 esac 21425 fi 21426 HG=$ac_cv_path_HG 21427 if test -n "$HG"; then 21428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 21429 $as_echo "$HG" >&6; } 21430 else 21431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21432 $as_echo "no" >&6; } 21433 fi 21434 21435 21436 test -n "$HG" && break 21437 done 21438 21439 else 21440 # The variable is set, but is it from the command line or the environment? 21441 21442 # Try to remove the string !HG! from our list. 21443 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 21444 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21445 # If it failed, the variable was not from the command line. Ignore it, 21446 # but warn the user (except for BASH, which is always set by the calling BASH). 21447 if test "xHG" != xBASH; then 21448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 21449 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 21450 fi 21451 # Try to locate tool using the code snippet 21452 for ac_prog in hg 21453 do 21454 # Extract the first word of "$ac_prog", so it can be a program name with args. 21455 set dummy $ac_prog; ac_word=$2 21456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21457 $as_echo_n "checking for $ac_word... " >&6; } 21458 if ${ac_cv_path_HG+:} false; then : 21459 $as_echo_n "(cached) " >&6 21460 else 21461 case $HG in 21462 [\\/]* | ?:[\\/]*) 21463 ac_cv_path_HG="$HG" # Let the user override the test with a path. 21464 ;; 21465 *) 21466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21467 for as_dir in $PATH 21468 do 21469 IFS=$as_save_IFS 21470 test -z "$as_dir" && as_dir=. 21471 for ac_exec_ext in '' $ac_executable_extensions; do 21472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21473 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 21474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21475 break 2 21476 fi 21477 done 21478 done 21479 IFS=$as_save_IFS 21480 21481 ;; 21482 esac 21483 fi 21484 HG=$ac_cv_path_HG 21485 if test -n "$HG"; then 21486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 21487 $as_echo "$HG" >&6; } 21488 else 21489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21490 $as_echo "no" >&6; } 21491 fi 21492 21493 21494 test -n "$HG" && break 21495 done 21496 21497 else 21498 # If it succeeded, then it was overridden by the user. We will use it 21499 # for the tool. 21500 21501 # First remove it from the list of overridden variables, so we can test 21502 # for unknown variables in the end. 21503 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21504 21505 # Check if we try to supply an empty value 21506 if test "x$HG" = x; then 21507 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5 21508 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;} 21509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 21510 $as_echo_n "checking for HG... " >&6; } 21511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21512 $as_echo "disabled" >&6; } 21513 else 21514 # Check if the provided tool contains a complete path. 21515 tool_specified="$HG" 21516 tool_basename="${tool_specified##*/}" 21517 if test "x$tool_basename" = "x$tool_specified"; then 21518 # A command without a complete path is provided, search $PATH. 21519 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 21520 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 21521 # Extract the first word of "$tool_basename", so it can be a program name with args. 21522 set dummy $tool_basename; ac_word=$2 21523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21524 $as_echo_n "checking for $ac_word... " >&6; } 21525 if ${ac_cv_path_HG+:} false; then : 21526 $as_echo_n "(cached) " >&6 21527 else 21528 case $HG in 21529 [\\/]* | ?:[\\/]*) 21530 ac_cv_path_HG="$HG" # Let the user override the test with a path. 21531 ;; 21532 *) 21533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21534 for as_dir in $PATH 21535 do 21536 IFS=$as_save_IFS 21537 test -z "$as_dir" && as_dir=. 21538 for ac_exec_ext in '' $ac_executable_extensions; do 21539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21540 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 21541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21542 break 2 21543 fi 21544 done 21545 done 21546 IFS=$as_save_IFS 21547 21548 ;; 21549 esac 21550 fi 21551 HG=$ac_cv_path_HG 21552 if test -n "$HG"; then 21553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 21554 $as_echo "$HG" >&6; } 21555 else 21556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21557 $as_echo "no" >&6; } 21558 fi 21559 21560 21561 if test "x$HG" = x; then 21562 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21563 fi 21564 else 21565 # Otherwise we believe it is a complete path. Use it as it is. 21566 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 21567 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 21568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 21569 $as_echo_n "checking for HG... " >&6; } 21570 if test ! -x "$tool_specified"; then 21571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21572 $as_echo "not found" >&6; } 21573 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 21574 fi 21575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21576 $as_echo "$tool_specified" >&6; } 21577 fi 21578 fi 21579 fi 21580 21581 fi 21582 21583 21584 21585 21586 # Publish this variable in the help. 21587 21588 21589 if [ -z "${STAT+x}" ]; then 21590 # The variable is not set by user, try to locate tool using the code snippet 21591 for ac_prog in stat 21592 do 21593 # Extract the first word of "$ac_prog", so it can be a program name with args. 21594 set dummy $ac_prog; ac_word=$2 21595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21596 $as_echo_n "checking for $ac_word... " >&6; } 21597 if ${ac_cv_path_STAT+:} false; then : 21598 $as_echo_n "(cached) " >&6 21599 else 21600 case $STAT in 21601 [\\/]* | ?:[\\/]*) 21602 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 21603 ;; 21604 *) 21605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21606 for as_dir in $PATH 21607 do 21608 IFS=$as_save_IFS 21609 test -z "$as_dir" && as_dir=. 21610 for ac_exec_ext in '' $ac_executable_extensions; do 21611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21612 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 21613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21614 break 2 21615 fi 21616 done 21617 done 21618 IFS=$as_save_IFS 21619 21620 ;; 21621 esac 21622 fi 21623 STAT=$ac_cv_path_STAT 21624 if test -n "$STAT"; then 21625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 21626 $as_echo "$STAT" >&6; } 21627 else 21628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21629 $as_echo "no" >&6; } 21630 fi 21631 21632 21633 test -n "$STAT" && break 21634 done 21635 21636 else 21637 # The variable is set, but is it from the command line or the environment? 21638 21639 # Try to remove the string !STAT! from our list. 21640 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 21641 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21642 # If it failed, the variable was not from the command line. Ignore it, 21643 # but warn the user (except for BASH, which is always set by the calling BASH). 21644 if test "xSTAT" != xBASH; then 21645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 21646 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 21647 fi 21648 # Try to locate tool using the code snippet 21649 for ac_prog in stat 21650 do 21651 # Extract the first word of "$ac_prog", so it can be a program name with args. 21652 set dummy $ac_prog; ac_word=$2 21653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21654 $as_echo_n "checking for $ac_word... " >&6; } 21655 if ${ac_cv_path_STAT+:} false; then : 21656 $as_echo_n "(cached) " >&6 21657 else 21658 case $STAT in 21659 [\\/]* | ?:[\\/]*) 21660 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 21661 ;; 21662 *) 21663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21664 for as_dir in $PATH 21665 do 21666 IFS=$as_save_IFS 21667 test -z "$as_dir" && as_dir=. 21668 for ac_exec_ext in '' $ac_executable_extensions; do 21669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21670 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 21671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21672 break 2 21673 fi 21674 done 21675 done 21676 IFS=$as_save_IFS 21677 21678 ;; 21679 esac 21680 fi 21681 STAT=$ac_cv_path_STAT 21682 if test -n "$STAT"; then 21683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 21684 $as_echo "$STAT" >&6; } 21685 else 21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21687 $as_echo "no" >&6; } 21688 fi 21689 21690 21691 test -n "$STAT" && break 21692 done 21693 21694 else 21695 # If it succeeded, then it was overridden by the user. We will use it 21696 # for the tool. 21697 21698 # First remove it from the list of overridden variables, so we can test 21699 # for unknown variables in the end. 21700 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21701 21702 # Check if we try to supply an empty value 21703 if test "x$STAT" = x; then 21704 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5 21705 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;} 21706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 21707 $as_echo_n "checking for STAT... " >&6; } 21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21709 $as_echo "disabled" >&6; } 21710 else 21711 # Check if the provided tool contains a complete path. 21712 tool_specified="$STAT" 21713 tool_basename="${tool_specified##*/}" 21714 if test "x$tool_basename" = "x$tool_specified"; then 21715 # A command without a complete path is provided, search $PATH. 21716 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 21717 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 21718 # Extract the first word of "$tool_basename", so it can be a program name with args. 21719 set dummy $tool_basename; ac_word=$2 21720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21721 $as_echo_n "checking for $ac_word... " >&6; } 21722 if ${ac_cv_path_STAT+:} false; then : 21723 $as_echo_n "(cached) " >&6 21724 else 21725 case $STAT in 21726 [\\/]* | ?:[\\/]*) 21727 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 21728 ;; 21729 *) 21730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21731 for as_dir in $PATH 21732 do 21733 IFS=$as_save_IFS 21734 test -z "$as_dir" && as_dir=. 21735 for ac_exec_ext in '' $ac_executable_extensions; do 21736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21737 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 21738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21739 break 2 21740 fi 21741 done 21742 done 21743 IFS=$as_save_IFS 21744 21745 ;; 21746 esac 21747 fi 21748 STAT=$ac_cv_path_STAT 21749 if test -n "$STAT"; then 21750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 21751 $as_echo "$STAT" >&6; } 21752 else 21753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21754 $as_echo "no" >&6; } 21755 fi 21756 21757 21758 if test "x$STAT" = x; then 21759 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21760 fi 21761 else 21762 # Otherwise we believe it is a complete path. Use it as it is. 21763 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 21764 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 21765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 21766 $as_echo_n "checking for STAT... " >&6; } 21767 if test ! -x "$tool_specified"; then 21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21769 $as_echo "not found" >&6; } 21770 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 21771 fi 21772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21773 $as_echo "$tool_specified" >&6; } 21774 fi 21775 fi 21776 fi 21777 21778 fi 21779 21780 21781 21782 21783 # Publish this variable in the help. 21784 21785 21786 if [ -z "${TIME+x}" ]; then 21787 # The variable is not set by user, try to locate tool using the code snippet 21788 for ac_prog in time 21789 do 21790 # Extract the first word of "$ac_prog", so it can be a program name with args. 21791 set dummy $ac_prog; ac_word=$2 21792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21793 $as_echo_n "checking for $ac_word... " >&6; } 21794 if ${ac_cv_path_TIME+:} false; then : 21795 $as_echo_n "(cached) " >&6 21796 else 21797 case $TIME in 21798 [\\/]* | ?:[\\/]*) 21799 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 21800 ;; 21801 *) 21802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21803 for as_dir in $PATH 21804 do 21805 IFS=$as_save_IFS 21806 test -z "$as_dir" && as_dir=. 21807 for ac_exec_ext in '' $ac_executable_extensions; do 21808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21809 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 21810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21811 break 2 21812 fi 21813 done 21814 done 21815 IFS=$as_save_IFS 21816 21817 ;; 21818 esac 21819 fi 21820 TIME=$ac_cv_path_TIME 21821 if test -n "$TIME"; then 21822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 21823 $as_echo "$TIME" >&6; } 21824 else 21825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21826 $as_echo "no" >&6; } 21827 fi 21828 21829 21830 test -n "$TIME" && break 21831 done 21832 21833 else 21834 # The variable is set, but is it from the command line or the environment? 21835 21836 # Try to remove the string !TIME! from our list. 21837 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 21838 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21839 # If it failed, the variable was not from the command line. Ignore it, 21840 # but warn the user (except for BASH, which is always set by the calling BASH). 21841 if test "xTIME" != xBASH; then 21842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 21843 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 21844 fi 21845 # Try to locate tool using the code snippet 21846 for ac_prog in time 21847 do 21848 # Extract the first word of "$ac_prog", so it can be a program name with args. 21849 set dummy $ac_prog; ac_word=$2 21850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21851 $as_echo_n "checking for $ac_word... " >&6; } 21852 if ${ac_cv_path_TIME+:} false; then : 21853 $as_echo_n "(cached) " >&6 21854 else 21855 case $TIME in 21856 [\\/]* | ?:[\\/]*) 21857 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 21858 ;; 21859 *) 21860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21861 for as_dir in $PATH 21862 do 21863 IFS=$as_save_IFS 21864 test -z "$as_dir" && as_dir=. 21865 for ac_exec_ext in '' $ac_executable_extensions; do 21866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21867 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 21868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21869 break 2 21870 fi 21871 done 21872 done 21873 IFS=$as_save_IFS 21874 21875 ;; 21876 esac 21877 fi 21878 TIME=$ac_cv_path_TIME 21879 if test -n "$TIME"; then 21880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 21881 $as_echo "$TIME" >&6; } 21882 else 21883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21884 $as_echo "no" >&6; } 21885 fi 21886 21887 21888 test -n "$TIME" && break 21889 done 21890 21891 else 21892 # If it succeeded, then it was overridden by the user. We will use it 21893 # for the tool. 21894 21895 # First remove it from the list of overridden variables, so we can test 21896 # for unknown variables in the end. 21897 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21898 21899 # Check if we try to supply an empty value 21900 if test "x$TIME" = x; then 21901 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5 21902 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;} 21903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 21904 $as_echo_n "checking for TIME... " >&6; } 21905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21906 $as_echo "disabled" >&6; } 21907 else 21908 # Check if the provided tool contains a complete path. 21909 tool_specified="$TIME" 21910 tool_basename="${tool_specified##*/}" 21911 if test "x$tool_basename" = "x$tool_specified"; then 21912 # A command without a complete path is provided, search $PATH. 21913 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 21914 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 21915 # Extract the first word of "$tool_basename", so it can be a program name with args. 21916 set dummy $tool_basename; ac_word=$2 21917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21918 $as_echo_n "checking for $ac_word... " >&6; } 21919 if ${ac_cv_path_TIME+:} false; then : 21920 $as_echo_n "(cached) " >&6 21921 else 21922 case $TIME in 21923 [\\/]* | ?:[\\/]*) 21924 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 21925 ;; 21926 *) 21927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21928 for as_dir in $PATH 21929 do 21930 IFS=$as_save_IFS 21931 test -z "$as_dir" && as_dir=. 21932 for ac_exec_ext in '' $ac_executable_extensions; do 21933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21934 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 21935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21936 break 2 21937 fi 21938 done 21939 done 21940 IFS=$as_save_IFS 21941 21942 ;; 21943 esac 21944 fi 21945 TIME=$ac_cv_path_TIME 21946 if test -n "$TIME"; then 21947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 21948 $as_echo "$TIME" >&6; } 21949 else 21950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21951 $as_echo "no" >&6; } 21952 fi 21953 21954 21955 if test "x$TIME" = x; then 21956 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21957 fi 21958 else 21959 # Otherwise we believe it is a complete path. Use it as it is. 21960 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 21961 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 21962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 21963 $as_echo_n "checking for TIME... " >&6; } 21964 if test ! -x "$tool_specified"; then 21965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21966 $as_echo "not found" >&6; } 21967 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 21968 fi 21969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21970 $as_echo "$tool_specified" >&6; } 21971 fi 21972 fi 21973 fi 21974 21975 fi 21976 21977 21978 21979 21980 # Publish this variable in the help. 21981 21982 21983 if [ -z "${PATCH+x}" ]; then 21984 # The variable is not set by user, try to locate tool using the code snippet 21985 for ac_prog in gpatch patch 21986 do 21987 # Extract the first word of "$ac_prog", so it can be a program name with args. 21988 set dummy $ac_prog; ac_word=$2 21989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21990 $as_echo_n "checking for $ac_word... " >&6; } 21991 if ${ac_cv_path_PATCH+:} false; then : 21992 $as_echo_n "(cached) " >&6 21993 else 21994 case $PATCH in 21995 [\\/]* | ?:[\\/]*) 21996 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 21997 ;; 21998 *) 21999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22000 for as_dir in $PATH 22001 do 22002 IFS=$as_save_IFS 22003 test -z "$as_dir" && as_dir=. 22004 for ac_exec_ext in '' $ac_executable_extensions; do 22005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22006 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 22007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22008 break 2 22009 fi 22010 done 22011 done 22012 IFS=$as_save_IFS 22013 22014 ;; 22015 esac 22016 fi 22017 PATCH=$ac_cv_path_PATCH 22018 if test -n "$PATCH"; then 22019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 22020 $as_echo "$PATCH" >&6; } 22021 else 22022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22023 $as_echo "no" >&6; } 22024 fi 22025 22026 22027 test -n "$PATCH" && break 22028 done 22029 22030 else 22031 # The variable is set, but is it from the command line or the environment? 22032 22033 # Try to remove the string !PATCH! from our list. 22034 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/} 22035 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22036 # If it failed, the variable was not from the command line. Ignore it, 22037 # but warn the user (except for BASH, which is always set by the calling BASH). 22038 if test "xPATCH" != xBASH; then 22039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5 22040 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;} 22041 fi 22042 # Try to locate tool using the code snippet 22043 for ac_prog in gpatch patch 22044 do 22045 # Extract the first word of "$ac_prog", so it can be a program name with args. 22046 set dummy $ac_prog; ac_word=$2 22047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22048 $as_echo_n "checking for $ac_word... " >&6; } 22049 if ${ac_cv_path_PATCH+:} false; then : 22050 $as_echo_n "(cached) " >&6 22051 else 22052 case $PATCH in 22053 [\\/]* | ?:[\\/]*) 22054 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 22055 ;; 22056 *) 22057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22058 for as_dir in $PATH 22059 do 22060 IFS=$as_save_IFS 22061 test -z "$as_dir" && as_dir=. 22062 for ac_exec_ext in '' $ac_executable_extensions; do 22063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22064 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 22065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22066 break 2 22067 fi 22068 done 22069 done 22070 IFS=$as_save_IFS 22071 22072 ;; 22073 esac 22074 fi 22075 PATCH=$ac_cv_path_PATCH 22076 if test -n "$PATCH"; then 22077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 22078 $as_echo "$PATCH" >&6; } 22079 else 22080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22081 $as_echo "no" >&6; } 22082 fi 22083 22084 22085 test -n "$PATCH" && break 22086 done 22087 22088 else 22089 # If it succeeded, then it was overridden by the user. We will use it 22090 # for the tool. 22091 22092 # First remove it from the list of overridden variables, so we can test 22093 # for unknown variables in the end. 22094 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22095 22096 # Check if we try to supply an empty value 22097 if test "x$PATCH" = x; then 22098 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5 22099 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;} 22100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 22101 $as_echo_n "checking for PATCH... " >&6; } 22102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22103 $as_echo "disabled" >&6; } 22104 else 22105 # Check if the provided tool contains a complete path. 22106 tool_specified="$PATCH" 22107 tool_basename="${tool_specified##*/}" 22108 if test "x$tool_basename" = "x$tool_specified"; then 22109 # A command without a complete path is provided, search $PATH. 22110 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5 22111 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;} 22112 # Extract the first word of "$tool_basename", so it can be a program name with args. 22113 set dummy $tool_basename; ac_word=$2 22114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22115 $as_echo_n "checking for $ac_word... " >&6; } 22116 if ${ac_cv_path_PATCH+:} false; then : 22117 $as_echo_n "(cached) " >&6 22118 else 22119 case $PATCH in 22120 [\\/]* | ?:[\\/]*) 22121 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 22122 ;; 22123 *) 22124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22125 for as_dir in $PATH 22126 do 22127 IFS=$as_save_IFS 22128 test -z "$as_dir" && as_dir=. 22129 for ac_exec_ext in '' $ac_executable_extensions; do 22130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22131 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 22132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22133 break 2 22134 fi 22135 done 22136 done 22137 IFS=$as_save_IFS 22138 22139 ;; 22140 esac 22141 fi 22142 PATCH=$ac_cv_path_PATCH 22143 if test -n "$PATCH"; then 22144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 22145 $as_echo "$PATCH" >&6; } 22146 else 22147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22148 $as_echo "no" >&6; } 22149 fi 22150 22151 22152 if test "x$PATCH" = x; then 22153 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22154 fi 22155 else 22156 # Otherwise we believe it is a complete path. Use it as it is. 22157 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5 22158 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;} 22159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 22160 $as_echo_n "checking for PATCH... " >&6; } 22161 if test ! -x "$tool_specified"; then 22162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22163 $as_echo "not found" >&6; } 22164 as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5 22165 fi 22166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22167 $as_echo "$tool_specified" >&6; } 22168 fi 22169 fi 22170 fi 22171 22172 fi 22173 22174 22175 # Check if it's GNU time 22176 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 22177 if test "x$IS_GNU_TIME" != x; then 22178 IS_GNU_TIME=yes 22179 else 22180 IS_GNU_TIME=no 22181 fi 22182 22183 22184 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 22185 22186 22187 22188 # Publish this variable in the help. 22189 22190 22191 if [ -z "${DSYMUTIL+x}" ]; then 22192 # The variable is not set by user, try to locate tool using the code snippet 22193 for ac_prog in dsymutil 22194 do 22195 # Extract the first word of "$ac_prog", so it can be a program name with args. 22196 set dummy $ac_prog; ac_word=$2 22197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22198 $as_echo_n "checking for $ac_word... " >&6; } 22199 if ${ac_cv_path_DSYMUTIL+:} false; then : 22200 $as_echo_n "(cached) " >&6 22201 else 22202 case $DSYMUTIL in 22203 [\\/]* | ?:[\\/]*) 22204 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 22205 ;; 22206 *) 22207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22208 for as_dir in $PATH 22209 do 22210 IFS=$as_save_IFS 22211 test -z "$as_dir" && as_dir=. 22212 for ac_exec_ext in '' $ac_executable_extensions; do 22213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22214 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 22215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22216 break 2 22217 fi 22218 done 22219 done 22220 IFS=$as_save_IFS 22221 22222 ;; 22223 esac 22224 fi 22225 DSYMUTIL=$ac_cv_path_DSYMUTIL 22226 if test -n "$DSYMUTIL"; then 22227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 22228 $as_echo "$DSYMUTIL" >&6; } 22229 else 22230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22231 $as_echo "no" >&6; } 22232 fi 22233 22234 22235 test -n "$DSYMUTIL" && break 22236 done 22237 22238 else 22239 # The variable is set, but is it from the command line or the environment? 22240 22241 # Try to remove the string !DSYMUTIL! from our list. 22242 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 22243 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22244 # If it failed, the variable was not from the command line. Ignore it, 22245 # but warn the user (except for BASH, which is always set by the calling BASH). 22246 if test "xDSYMUTIL" != xBASH; then 22247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 22248 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 22249 fi 22250 # Try to locate tool using the code snippet 22251 for ac_prog in dsymutil 22252 do 22253 # Extract the first word of "$ac_prog", so it can be a program name with args. 22254 set dummy $ac_prog; ac_word=$2 22255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22256 $as_echo_n "checking for $ac_word... " >&6; } 22257 if ${ac_cv_path_DSYMUTIL+:} false; then : 22258 $as_echo_n "(cached) " >&6 22259 else 22260 case $DSYMUTIL in 22261 [\\/]* | ?:[\\/]*) 22262 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 22263 ;; 22264 *) 22265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22266 for as_dir in $PATH 22267 do 22268 IFS=$as_save_IFS 22269 test -z "$as_dir" && as_dir=. 22270 for ac_exec_ext in '' $ac_executable_extensions; do 22271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22272 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 22273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22274 break 2 22275 fi 22276 done 22277 done 22278 IFS=$as_save_IFS 22279 22280 ;; 22281 esac 22282 fi 22283 DSYMUTIL=$ac_cv_path_DSYMUTIL 22284 if test -n "$DSYMUTIL"; then 22285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 22286 $as_echo "$DSYMUTIL" >&6; } 22287 else 22288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22289 $as_echo "no" >&6; } 22290 fi 22291 22292 22293 test -n "$DSYMUTIL" && break 22294 done 22295 22296 else 22297 # If it succeeded, then it was overridden by the user. We will use it 22298 # for the tool. 22299 22300 # First remove it from the list of overridden variables, so we can test 22301 # for unknown variables in the end. 22302 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22303 22304 # Check if we try to supply an empty value 22305 if test "x$DSYMUTIL" = x; then 22306 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5 22307 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;} 22308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 22309 $as_echo_n "checking for DSYMUTIL... " >&6; } 22310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22311 $as_echo "disabled" >&6; } 22312 else 22313 # Check if the provided tool contains a complete path. 22314 tool_specified="$DSYMUTIL" 22315 tool_basename="${tool_specified##*/}" 22316 if test "x$tool_basename" = "x$tool_specified"; then 22317 # A command without a complete path is provided, search $PATH. 22318 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 22319 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 22320 # Extract the first word of "$tool_basename", so it can be a program name with args. 22321 set dummy $tool_basename; ac_word=$2 22322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22323 $as_echo_n "checking for $ac_word... " >&6; } 22324 if ${ac_cv_path_DSYMUTIL+:} false; then : 22325 $as_echo_n "(cached) " >&6 22326 else 22327 case $DSYMUTIL in 22328 [\\/]* | ?:[\\/]*) 22329 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 22330 ;; 22331 *) 22332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22333 for as_dir in $PATH 22334 do 22335 IFS=$as_save_IFS 22336 test -z "$as_dir" && as_dir=. 22337 for ac_exec_ext in '' $ac_executable_extensions; do 22338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22339 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 22340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22341 break 2 22342 fi 22343 done 22344 done 22345 IFS=$as_save_IFS 22346 22347 ;; 22348 esac 22349 fi 22350 DSYMUTIL=$ac_cv_path_DSYMUTIL 22351 if test -n "$DSYMUTIL"; then 22352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 22353 $as_echo "$DSYMUTIL" >&6; } 22354 else 22355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22356 $as_echo "no" >&6; } 22357 fi 22358 22359 22360 if test "x$DSYMUTIL" = x; then 22361 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22362 fi 22363 else 22364 # Otherwise we believe it is a complete path. Use it as it is. 22365 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 22366 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 22367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 22368 $as_echo_n "checking for DSYMUTIL... " >&6; } 22369 if test ! -x "$tool_specified"; then 22370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22371 $as_echo "not found" >&6; } 22372 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 22373 fi 22374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22375 $as_echo "$tool_specified" >&6; } 22376 fi 22377 fi 22378 fi 22379 22380 fi 22381 22382 22383 22384 if test "x$DSYMUTIL" = x; then 22385 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 22386 fi 22387 22388 22389 22390 22391 22392 # Publish this variable in the help. 22393 22394 22395 if [ -z "${XATTR+x}" ]; then 22396 # The variable is not set by user, try to locate tool using the code snippet 22397 for ac_prog in xattr 22398 do 22399 # Extract the first word of "$ac_prog", so it can be a program name with args. 22400 set dummy $ac_prog; ac_word=$2 22401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22402 $as_echo_n "checking for $ac_word... " >&6; } 22403 if ${ac_cv_path_XATTR+:} false; then : 22404 $as_echo_n "(cached) " >&6 22405 else 22406 case $XATTR in 22407 [\\/]* | ?:[\\/]*) 22408 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 22409 ;; 22410 *) 22411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22412 for as_dir in $PATH 22413 do 22414 IFS=$as_save_IFS 22415 test -z "$as_dir" && as_dir=. 22416 for ac_exec_ext in '' $ac_executable_extensions; do 22417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22418 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 22419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22420 break 2 22421 fi 22422 done 22423 done 22424 IFS=$as_save_IFS 22425 22426 ;; 22427 esac 22428 fi 22429 XATTR=$ac_cv_path_XATTR 22430 if test -n "$XATTR"; then 22431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 22432 $as_echo "$XATTR" >&6; } 22433 else 22434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22435 $as_echo "no" >&6; } 22436 fi 22437 22438 22439 test -n "$XATTR" && break 22440 done 22441 22442 else 22443 # The variable is set, but is it from the command line or the environment? 22444 22445 # Try to remove the string !XATTR! from our list. 22446 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 22447 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22448 # If it failed, the variable was not from the command line. Ignore it, 22449 # but warn the user (except for BASH, which is always set by the calling BASH). 22450 if test "xXATTR" != xBASH; then 22451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 22452 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 22453 fi 22454 # Try to locate tool using the code snippet 22455 for ac_prog in xattr 22456 do 22457 # Extract the first word of "$ac_prog", so it can be a program name with args. 22458 set dummy $ac_prog; ac_word=$2 22459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22460 $as_echo_n "checking for $ac_word... " >&6; } 22461 if ${ac_cv_path_XATTR+:} false; then : 22462 $as_echo_n "(cached) " >&6 22463 else 22464 case $XATTR in 22465 [\\/]* | ?:[\\/]*) 22466 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 22467 ;; 22468 *) 22469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22470 for as_dir in $PATH 22471 do 22472 IFS=$as_save_IFS 22473 test -z "$as_dir" && as_dir=. 22474 for ac_exec_ext in '' $ac_executable_extensions; do 22475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22476 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 22477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22478 break 2 22479 fi 22480 done 22481 done 22482 IFS=$as_save_IFS 22483 22484 ;; 22485 esac 22486 fi 22487 XATTR=$ac_cv_path_XATTR 22488 if test -n "$XATTR"; then 22489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 22490 $as_echo "$XATTR" >&6; } 22491 else 22492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22493 $as_echo "no" >&6; } 22494 fi 22495 22496 22497 test -n "$XATTR" && break 22498 done 22499 22500 else 22501 # If it succeeded, then it was overridden by the user. We will use it 22502 # for the tool. 22503 22504 # First remove it from the list of overridden variables, so we can test 22505 # for unknown variables in the end. 22506 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22507 22508 # Check if we try to supply an empty value 22509 if test "x$XATTR" = x; then 22510 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5 22511 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;} 22512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 22513 $as_echo_n "checking for XATTR... " >&6; } 22514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22515 $as_echo "disabled" >&6; } 22516 else 22517 # Check if the provided tool contains a complete path. 22518 tool_specified="$XATTR" 22519 tool_basename="${tool_specified##*/}" 22520 if test "x$tool_basename" = "x$tool_specified"; then 22521 # A command without a complete path is provided, search $PATH. 22522 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 22523 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 22524 # Extract the first word of "$tool_basename", so it can be a program name with args. 22525 set dummy $tool_basename; ac_word=$2 22526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22527 $as_echo_n "checking for $ac_word... " >&6; } 22528 if ${ac_cv_path_XATTR+:} false; then : 22529 $as_echo_n "(cached) " >&6 22530 else 22531 case $XATTR in 22532 [\\/]* | ?:[\\/]*) 22533 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 22534 ;; 22535 *) 22536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22537 for as_dir in $PATH 22538 do 22539 IFS=$as_save_IFS 22540 test -z "$as_dir" && as_dir=. 22541 for ac_exec_ext in '' $ac_executable_extensions; do 22542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22543 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 22544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22545 break 2 22546 fi 22547 done 22548 done 22549 IFS=$as_save_IFS 22550 22551 ;; 22552 esac 22553 fi 22554 XATTR=$ac_cv_path_XATTR 22555 if test -n "$XATTR"; then 22556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 22557 $as_echo "$XATTR" >&6; } 22558 else 22559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22560 $as_echo "no" >&6; } 22561 fi 22562 22563 22564 if test "x$XATTR" = x; then 22565 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22566 fi 22567 else 22568 # Otherwise we believe it is a complete path. Use it as it is. 22569 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 22570 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 22571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 22572 $as_echo_n "checking for XATTR... " >&6; } 22573 if test ! -x "$tool_specified"; then 22574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22575 $as_echo "not found" >&6; } 22576 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 22577 fi 22578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22579 $as_echo "$tool_specified" >&6; } 22580 fi 22581 fi 22582 fi 22583 22584 fi 22585 22586 22587 22588 if test "x$XATTR" = x; then 22589 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 22590 fi 22591 22592 22593 22594 22595 # Publish this variable in the help. 22596 22597 22598 if [ -z "${CODESIGN+x}" ]; then 22599 # The variable is not set by user, try to locate tool using the code snippet 22600 for ac_prog in codesign 22601 do 22602 # Extract the first word of "$ac_prog", so it can be a program name with args. 22603 set dummy $ac_prog; ac_word=$2 22604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22605 $as_echo_n "checking for $ac_word... " >&6; } 22606 if ${ac_cv_path_CODESIGN+:} false; then : 22607 $as_echo_n "(cached) " >&6 22608 else 22609 case $CODESIGN in 22610 [\\/]* | ?:[\\/]*) 22611 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 22612 ;; 22613 *) 22614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22615 for as_dir in $PATH 22616 do 22617 IFS=$as_save_IFS 22618 test -z "$as_dir" && as_dir=. 22619 for ac_exec_ext in '' $ac_executable_extensions; do 22620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22621 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 22622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22623 break 2 22624 fi 22625 done 22626 done 22627 IFS=$as_save_IFS 22628 22629 ;; 22630 esac 22631 fi 22632 CODESIGN=$ac_cv_path_CODESIGN 22633 if test -n "$CODESIGN"; then 22634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 22635 $as_echo "$CODESIGN" >&6; } 22636 else 22637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22638 $as_echo "no" >&6; } 22639 fi 22640 22641 22642 test -n "$CODESIGN" && break 22643 done 22644 22645 else 22646 # The variable is set, but is it from the command line or the environment? 22647 22648 # Try to remove the string !CODESIGN! from our list. 22649 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 22650 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22651 # If it failed, the variable was not from the command line. Ignore it, 22652 # but warn the user (except for BASH, which is always set by the calling BASH). 22653 if test "xCODESIGN" != xBASH; then 22654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 22655 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 22656 fi 22657 # Try to locate tool using the code snippet 22658 for ac_prog in codesign 22659 do 22660 # Extract the first word of "$ac_prog", so it can be a program name with args. 22661 set dummy $ac_prog; ac_word=$2 22662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22663 $as_echo_n "checking for $ac_word... " >&6; } 22664 if ${ac_cv_path_CODESIGN+:} false; then : 22665 $as_echo_n "(cached) " >&6 22666 else 22667 case $CODESIGN in 22668 [\\/]* | ?:[\\/]*) 22669 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 22670 ;; 22671 *) 22672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22673 for as_dir in $PATH 22674 do 22675 IFS=$as_save_IFS 22676 test -z "$as_dir" && as_dir=. 22677 for ac_exec_ext in '' $ac_executable_extensions; do 22678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22679 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 22680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22681 break 2 22682 fi 22683 done 22684 done 22685 IFS=$as_save_IFS 22686 22687 ;; 22688 esac 22689 fi 22690 CODESIGN=$ac_cv_path_CODESIGN 22691 if test -n "$CODESIGN"; then 22692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 22693 $as_echo "$CODESIGN" >&6; } 22694 else 22695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22696 $as_echo "no" >&6; } 22697 fi 22698 22699 22700 test -n "$CODESIGN" && break 22701 done 22702 22703 else 22704 # If it succeeded, then it was overridden by the user. We will use it 22705 # for the tool. 22706 22707 # First remove it from the list of overridden variables, so we can test 22708 # for unknown variables in the end. 22709 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22710 22711 # Check if we try to supply an empty value 22712 if test "x$CODESIGN" = x; then 22713 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5 22714 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;} 22715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 22716 $as_echo_n "checking for CODESIGN... " >&6; } 22717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22718 $as_echo "disabled" >&6; } 22719 else 22720 # Check if the provided tool contains a complete path. 22721 tool_specified="$CODESIGN" 22722 tool_basename="${tool_specified##*/}" 22723 if test "x$tool_basename" = "x$tool_specified"; then 22724 # A command without a complete path is provided, search $PATH. 22725 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 22726 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 22727 # Extract the first word of "$tool_basename", so it can be a program name with args. 22728 set dummy $tool_basename; ac_word=$2 22729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22730 $as_echo_n "checking for $ac_word... " >&6; } 22731 if ${ac_cv_path_CODESIGN+:} false; then : 22732 $as_echo_n "(cached) " >&6 22733 else 22734 case $CODESIGN in 22735 [\\/]* | ?:[\\/]*) 22736 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 22737 ;; 22738 *) 22739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22740 for as_dir in $PATH 22741 do 22742 IFS=$as_save_IFS 22743 test -z "$as_dir" && as_dir=. 22744 for ac_exec_ext in '' $ac_executable_extensions; do 22745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22746 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 22747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22748 break 2 22749 fi 22750 done 22751 done 22752 IFS=$as_save_IFS 22753 22754 ;; 22755 esac 22756 fi 22757 CODESIGN=$ac_cv_path_CODESIGN 22758 if test -n "$CODESIGN"; then 22759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 22760 $as_echo "$CODESIGN" >&6; } 22761 else 22762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22763 $as_echo "no" >&6; } 22764 fi 22765 22766 22767 if test "x$CODESIGN" = x; then 22768 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22769 fi 22770 else 22771 # Otherwise we believe it is a complete path. Use it as it is. 22772 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 22773 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 22774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 22775 $as_echo_n "checking for CODESIGN... " >&6; } 22776 if test ! -x "$tool_specified"; then 22777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22778 $as_echo "not found" >&6; } 22779 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 22780 fi 22781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22782 $as_echo "$tool_specified" >&6; } 22783 fi 22784 fi 22785 fi 22786 22787 fi 22788 22789 22790 if test "x$CODESIGN" != "x"; then 22791 # Verify that the openjdk_codesign certificate is present 22792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 22793 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 22794 rm -f codesign-testfile 22795 touch codesign-testfile 22796 codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 22797 rm -f codesign-testfile 22798 if test "x$CODESIGN" = x; then 22799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22800 $as_echo "no" >&6; } 22801 else 22802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22803 $as_echo "yes" >&6; } 22804 fi 22805 fi 22806 22807 22808 22809 # Publish this variable in the help. 22810 22811 22812 if [ -z "${SETFILE+x}" ]; then 22813 # The variable is not set by user, try to locate tool using the code snippet 22814 for ac_prog in SetFile 22815 do 22816 # Extract the first word of "$ac_prog", so it can be a program name with args. 22817 set dummy $ac_prog; ac_word=$2 22818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22819 $as_echo_n "checking for $ac_word... " >&6; } 22820 if ${ac_cv_path_SETFILE+:} false; then : 22821 $as_echo_n "(cached) " >&6 22822 else 22823 case $SETFILE in 22824 [\\/]* | ?:[\\/]*) 22825 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 22826 ;; 22827 *) 22828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22829 for as_dir in $PATH 22830 do 22831 IFS=$as_save_IFS 22832 test -z "$as_dir" && as_dir=. 22833 for ac_exec_ext in '' $ac_executable_extensions; do 22834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22835 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 22836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22837 break 2 22838 fi 22839 done 22840 done 22841 IFS=$as_save_IFS 22842 22843 ;; 22844 esac 22845 fi 22846 SETFILE=$ac_cv_path_SETFILE 22847 if test -n "$SETFILE"; then 22848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 22849 $as_echo "$SETFILE" >&6; } 22850 else 22851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22852 $as_echo "no" >&6; } 22853 fi 22854 22855 22856 test -n "$SETFILE" && break 22857 done 22858 22859 else 22860 # The variable is set, but is it from the command line or the environment? 22861 22862 # Try to remove the string !SETFILE! from our list. 22863 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 22864 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22865 # If it failed, the variable was not from the command line. Ignore it, 22866 # but warn the user (except for BASH, which is always set by the calling BASH). 22867 if test "xSETFILE" != xBASH; then 22868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 22869 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 22870 fi 22871 # Try to locate tool using the code snippet 22872 for ac_prog in SetFile 22873 do 22874 # Extract the first word of "$ac_prog", so it can be a program name with args. 22875 set dummy $ac_prog; ac_word=$2 22876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22877 $as_echo_n "checking for $ac_word... " >&6; } 22878 if ${ac_cv_path_SETFILE+:} false; then : 22879 $as_echo_n "(cached) " >&6 22880 else 22881 case $SETFILE in 22882 [\\/]* | ?:[\\/]*) 22883 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 22884 ;; 22885 *) 22886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22887 for as_dir in $PATH 22888 do 22889 IFS=$as_save_IFS 22890 test -z "$as_dir" && as_dir=. 22891 for ac_exec_ext in '' $ac_executable_extensions; do 22892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22893 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 22894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22895 break 2 22896 fi 22897 done 22898 done 22899 IFS=$as_save_IFS 22900 22901 ;; 22902 esac 22903 fi 22904 SETFILE=$ac_cv_path_SETFILE 22905 if test -n "$SETFILE"; then 22906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 22907 $as_echo "$SETFILE" >&6; } 22908 else 22909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22910 $as_echo "no" >&6; } 22911 fi 22912 22913 22914 test -n "$SETFILE" && break 22915 done 22916 22917 else 22918 # If it succeeded, then it was overridden by the user. We will use it 22919 # for the tool. 22920 22921 # First remove it from the list of overridden variables, so we can test 22922 # for unknown variables in the end. 22923 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22924 22925 # Check if we try to supply an empty value 22926 if test "x$SETFILE" = x; then 22927 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5 22928 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;} 22929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 22930 $as_echo_n "checking for SETFILE... " >&6; } 22931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22932 $as_echo "disabled" >&6; } 22933 else 22934 # Check if the provided tool contains a complete path. 22935 tool_specified="$SETFILE" 22936 tool_basename="${tool_specified##*/}" 22937 if test "x$tool_basename" = "x$tool_specified"; then 22938 # A command without a complete path is provided, search $PATH. 22939 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 22940 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 22941 # Extract the first word of "$tool_basename", so it can be a program name with args. 22942 set dummy $tool_basename; ac_word=$2 22943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22944 $as_echo_n "checking for $ac_word... " >&6; } 22945 if ${ac_cv_path_SETFILE+:} false; then : 22946 $as_echo_n "(cached) " >&6 22947 else 22948 case $SETFILE in 22949 [\\/]* | ?:[\\/]*) 22950 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 22951 ;; 22952 *) 22953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22954 for as_dir in $PATH 22955 do 22956 IFS=$as_save_IFS 22957 test -z "$as_dir" && as_dir=. 22958 for ac_exec_ext in '' $ac_executable_extensions; do 22959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22960 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 22961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22962 break 2 22963 fi 22964 done 22965 done 22966 IFS=$as_save_IFS 22967 22968 ;; 22969 esac 22970 fi 22971 SETFILE=$ac_cv_path_SETFILE 22972 if test -n "$SETFILE"; then 22973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 22974 $as_echo "$SETFILE" >&6; } 22975 else 22976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22977 $as_echo "no" >&6; } 22978 fi 22979 22980 22981 if test "x$SETFILE" = x; then 22982 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22983 fi 22984 else 22985 # Otherwise we believe it is a complete path. Use it as it is. 22986 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 22987 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 22988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 22989 $as_echo_n "checking for SETFILE... " >&6; } 22990 if test ! -x "$tool_specified"; then 22991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22992 $as_echo "not found" >&6; } 22993 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 22994 fi 22995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22996 $as_echo "$tool_specified" >&6; } 22997 fi 22998 fi 22999 fi 23000 23001 fi 23002 23003 23004 23005 if test "x$SETFILE" = x; then 23006 as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5 23007 fi 23008 23009 23010 fi 23011 23012 23013 # Test if bash supports pipefail. 23014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5 23015 $as_echo_n "checking if bash supports pipefail... " >&6; } 23016 if ${BASH} -c 'set -o pipefail'; then 23017 BASH_ARGS="$BASH_ARGS -o pipefail" 23018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23019 $as_echo "yes" >&6; } 23020 else 23021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23022 $as_echo "no" >&6; } 23023 fi 23024 23025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5 23026 $as_echo_n "checking if bash supports errexit (-e)... " >&6; } 23027 if ${BASH} -e -c 'true'; then 23028 BASH_ARGS="$BASH_ARGS -e" 23029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23030 $as_echo "yes" >&6; } 23031 else 23032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23033 $as_echo "no" >&6; } 23034 fi 23035 23036 23037 23038 23039 # Check if pkg-config is available. 23040 23041 23042 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 23043 if test -n "$ac_tool_prefix"; then 23044 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 23045 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 23046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23047 $as_echo_n "checking for $ac_word... " >&6; } 23048 if ${ac_cv_path_PKG_CONFIG+:} false; then : 23049 $as_echo_n "(cached) " >&6 23050 else 23051 case $PKG_CONFIG in 23052 [\\/]* | ?:[\\/]*) 23053 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 23054 ;; 23055 *) 23056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23057 for as_dir in $PATH 23058 do 23059 IFS=$as_save_IFS 23060 test -z "$as_dir" && as_dir=. 23061 for ac_exec_ext in '' $ac_executable_extensions; do 23062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23063 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 23064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23065 break 2 23066 fi 23067 done 23068 done 23069 IFS=$as_save_IFS 23070 23071 ;; 23072 esac 23073 fi 23074 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 23075 if test -n "$PKG_CONFIG"; then 23076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 23077 $as_echo "$PKG_CONFIG" >&6; } 23078 else 23079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23080 $as_echo "no" >&6; } 23081 fi 23082 23083 23084 fi 23085 if test -z "$ac_cv_path_PKG_CONFIG"; then 23086 ac_pt_PKG_CONFIG=$PKG_CONFIG 23087 # Extract the first word of "pkg-config", so it can be a program name with args. 23088 set dummy pkg-config; ac_word=$2 23089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23090 $as_echo_n "checking for $ac_word... " >&6; } 23091 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 23092 $as_echo_n "(cached) " >&6 23093 else 23094 case $ac_pt_PKG_CONFIG in 23095 [\\/]* | ?:[\\/]*) 23096 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 23097 ;; 23098 *) 23099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23100 for as_dir in $PATH 23101 do 23102 IFS=$as_save_IFS 23103 test -z "$as_dir" && as_dir=. 23104 for ac_exec_ext in '' $ac_executable_extensions; do 23105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23106 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 23107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23108 break 2 23109 fi 23110 done 23111 done 23112 IFS=$as_save_IFS 23113 23114 ;; 23115 esac 23116 fi 23117 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 23118 if test -n "$ac_pt_PKG_CONFIG"; then 23119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 23120 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 23121 else 23122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23123 $as_echo "no" >&6; } 23124 fi 23125 23126 if test "x$ac_pt_PKG_CONFIG" = x; then 23127 PKG_CONFIG="" 23128 else 23129 case $cross_compiling:$ac_tool_warned in 23130 yes:) 23131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 23132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 23133 ac_tool_warned=yes ;; 23134 esac 23135 PKG_CONFIG=$ac_pt_PKG_CONFIG 23136 fi 23137 else 23138 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 23139 fi 23140 23141 fi 23142 if test -n "$PKG_CONFIG"; then 23143 _pkg_min_version=0.9.0 23144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 23145 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 23146 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 23147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23148 $as_echo "yes" >&6; } 23149 else 23150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23151 $as_echo "no" >&6; } 23152 PKG_CONFIG="" 23153 fi 23154 23155 fi 23156 23157 # After basic tools have been setup, we can check build os specific details. 23158 23159 ############################################################################### 23160 23161 # Note that this is the build platform OS version! 23162 23163 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 23164 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 23165 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 23166 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 23167 23168 23169 23170 23171 23172 # Misc basic settings 23173 23174 23175 # Check whether --with-default-make-target was given. 23176 if test "${with_default_make_target+set}" = set; then : 23177 withval=$with_default_make_target; 23178 fi 23179 23180 if test "x$with_default_make_target" = "x" \ 23181 || test "x$with_default_make_target" = "xyes"; then 23182 DEFAULT_MAKE_TARGET="exploded-image" 23183 elif test "x$with_default_make_target" = "xno"; then 23184 as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5 23185 else 23186 DEFAULT_MAKE_TARGET="$with_default_make_target" 23187 fi 23188 23189 23190 23191 23192 ############################################################################### 23193 # 23194 # Determine OpenJDK variants, options and version numbers. 23195 # 23196 ############################################################################### 23197 23198 # We need build & target for this. 23199 23200 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 23201 # We always build headless support. 23202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 23203 $as_echo_n "checking headful support... " >&6; } 23204 # Check whether --enable-headful was given. 23205 if test "${enable_headful+set}" = set; then : 23206 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 23207 else 23208 SUPPORT_HEADFUL=yes 23209 fi 23210 23211 23212 SUPPORT_HEADLESS=yes 23213 BUILD_HEADLESS="BUILD_HEADLESS:=true" 23214 23215 if test "x$SUPPORT_HEADFUL" = xyes; then 23216 # We are building both headful and headless. 23217 headful_msg="include support for both headful and headless" 23218 fi 23219 23220 if test "x$SUPPORT_HEADFUL" = xno; then 23221 # Thus we are building headless only. 23222 BUILD_HEADLESS="BUILD_HEADLESS:=true" 23223 headful_msg="headless only" 23224 fi 23225 23226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 23227 $as_echo "$headful_msg" >&6; } 23228 23229 23230 23231 23232 23233 # Choose cacerts source file 23234 23235 # Check whether --with-cacerts-file was given. 23236 if test "${with_cacerts_file+set}" = set; then : 23237 withval=$with_cacerts_file; 23238 fi 23239 23240 if test "x$with_cacerts_file" != x; then 23241 CACERTS_FILE=$with_cacerts_file 23242 fi 23243 23244 23245 # Enable or disable unlimited crypto 23246 # Check whether --enable-unlimited-crypto was given. 23247 if test "${enable_unlimited_crypto+set}" = set; then : 23248 enableval=$enable_unlimited_crypto; 23249 else 23250 enable_unlimited_crypto=no 23251 fi 23252 23253 if test "x$enable_unlimited_crypto" = "xyes"; then 23254 UNLIMITED_CRYPTO=true 23255 else 23256 UNLIMITED_CRYPTO=false 23257 fi 23258 23259 23260 # Should we build the serviceability agent (SA)? 23261 INCLUDE_SA=true 23262 if test "x$JVM_VARIANT_ZERO" = xtrue ; then 23263 INCLUDE_SA=false 23264 fi 23265 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then 23266 INCLUDE_SA=false 23267 fi 23268 if test "x$OPENJDK_TARGET_OS" = xaix ; then 23269 INCLUDE_SA=false 23270 fi 23271 if test "x$OPENJDK_TARGET_CPU" = xaarch64; then 23272 INCLUDE_SA=false 23273 fi 23274 23275 23276 # Compress jars 23277 COMPRESS_JARS=false 23278 23279 23280 23281 # Setup default copyright year. Mostly overridden when building close to a new year. 23282 23283 # Check whether --with-copyright-year was given. 23284 if test "${with_copyright_year+set}" = set; then : 23285 withval=$with_copyright_year; 23286 fi 23287 23288 if test "x$with_copyright_year" = xyes; then 23289 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 23290 elif test "x$with_copyright_year" != x; then 23291 COPYRIGHT_YEAR="$with_copyright_year" 23292 else 23293 COPYRIGHT_YEAR=`date +'%Y'` 23294 fi 23295 23296 23297 23298 # Control wether Hotspot runs Queens test after build. 23299 # Check whether --enable-hotspot-test-in-build was given. 23300 if test "${enable_hotspot_test_in_build+set}" = set; then : 23301 enableval=$enable_hotspot_test_in_build; 23302 else 23303 enable_hotspot_test_in_build=no 23304 fi 23305 23306 if test "x$enable_hotspot_test_in_build" = "xyes"; then 23307 TEST_IN_BUILD=true 23308 else 23309 TEST_IN_BUILD=false 23310 fi 23311 23312 23313 23314 # Warn user that old version arguments are deprecated. 23315 23316 23317 # Check whether --with-milestone was given. 23318 if test "${with_milestone+set}" = set; then : 23319 withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5 23320 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;} 23321 fi 23322 23323 23324 23325 23326 # Check whether --with-update-version was given. 23327 if test "${with_update_version+set}" = set; then : 23328 withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5 23329 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;} 23330 fi 23331 23332 23333 23334 23335 # Check whether --with-user-release-suffix was given. 23336 if test "${with_user_release_suffix+set}" = set; then : 23337 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 23338 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;} 23339 fi 23340 23341 23342 23343 23344 # Check whether --with-build-number was given. 23345 if test "${with_build_number+set}" = set; then : 23346 withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5 23347 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;} 23348 fi 23349 23350 23351 23352 # Source the version numbers file 23353 . $AUTOCONF_DIR/version-numbers 23354 23355 # Some non-version number information is set in that file 23356 23357 23358 23359 23360 23361 23362 23363 23364 # Override version from arguments 23365 23366 # If --with-version-string is set, process it first. It is possible to 23367 # override parts with more specific flags, since these are processed later. 23368 23369 # Check whether --with-version-string was given. 23370 if test "${with_version_string+set}" = set; then : 23371 withval=$with_version_string; 23372 fi 23373 23374 if test "x$with_version_string" = xyes; then 23375 as_fn_error $? "--with-version-string must have a value" "$LINENO" 5 23376 elif test "x$with_version_string" != x; then 23377 # Additional [] needed to keep m4 from mangling shell constructs. 23378 if [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then 23379 VERSION_MAJOR=${BASH_REMATCH[1]} 23380 VERSION_MINOR=${BASH_REMATCH[3]} 23381 VERSION_SECURITY=${BASH_REMATCH[5]} 23382 VERSION_PATCH=${BASH_REMATCH[7]} 23383 VERSION_PRE=${BASH_REMATCH[9]} 23384 version_plus_separator=${BASH_REMATCH[11]} 23385 VERSION_BUILD=${BASH_REMATCH[12]} 23386 VERSION_OPT=${BASH_REMATCH[14]} 23387 # Unspecified numerical fields are interpreted as 0. 23388 if test "x$VERSION_MINOR" = x; then 23389 VERSION_MINOR=0 23390 fi 23391 if test "x$VERSION_SECURITY" = x; then 23392 VERSION_SECURITY=0 23393 fi 23394 if test "x$VERSION_PATCH" = x; then 23395 VERSION_PATCH=0 23396 fi 23397 if test "x$version_plus_separator" != x \ 23398 && test "x$VERSION_BUILD$VERSION_OPT" = x; then 23399 as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5 23400 fi 23401 # Stop the version part process from setting default values. 23402 # We still allow them to explicitely override though. 23403 NO_DEFAULT_VERSION_PARTS=true 23404 else 23405 as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5 23406 fi 23407 fi 23408 23409 23410 # Check whether --with-version-pre was given. 23411 if test "${with_version_pre+set}" = set; then : 23412 withval=$with_version_pre; with_version_pre_present=true 23413 else 23414 with_version_pre_present=false 23415 fi 23416 23417 23418 if test "x$with_version_pre_present" = xtrue; then 23419 if test "x$with_version_pre" = xyes; then 23420 as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5 23421 elif test "x$with_version_pre" = xno; then 23422 # Interpret --without-* as empty string instead of the literal "no" 23423 VERSION_PRE= 23424 else 23425 # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4. 23426 VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'` 23427 if test "x$VERSION_PRE" != "x$with_version_pre"; then 23428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5 23429 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;} 23430 fi 23431 fi 23432 else 23433 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 23434 # Default is to use "internal" as pre 23435 VERSION_PRE="internal" 23436 fi 23437 fi 23438 23439 23440 # Check whether --with-version-opt was given. 23441 if test "${with_version_opt+set}" = set; then : 23442 withval=$with_version_opt; with_version_opt_present=true 23443 else 23444 with_version_opt_present=false 23445 fi 23446 23447 23448 if test "x$with_version_opt_present" = xtrue; then 23449 if test "x$with_version_opt" = xyes; then 23450 as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5 23451 elif test "x$with_version_opt" = xno; then 23452 # Interpret --without-* as empty string instead of the literal "no" 23453 VERSION_OPT= 23454 else 23455 # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4. 23456 VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'` 23457 if test "x$VERSION_OPT" != "x$with_version_opt"; then 23458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5 23459 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;} 23460 fi 23461 fi 23462 else 23463 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 23464 # Default is to calculate a string like this <timestamp>.<username>.<base dir name> 23465 timestamp=`$DATE '+%Y-%m-%d-%H%M%S'` 23466 # Outer [ ] to quote m4. 23467 basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'` 23468 VERSION_OPT="$timestamp.$USERNAME.$basedirname" 23469 fi 23470 fi 23471 23472 23473 # Check whether --with-version-build was given. 23474 if test "${with_version_build+set}" = set; then : 23475 withval=$with_version_build; with_version_build_present=true 23476 else 23477 with_version_build_present=false 23478 fi 23479 23480 23481 if test "x$with_version_build_present" = xtrue; then 23482 if test "x$with_version_build" = xyes; then 23483 as_fn_error $? "--with-version-build must have a value" "$LINENO" 5 23484 elif test "x$with_version_build" = xno; then 23485 # Interpret --without-* as empty string instead of the literal "no" 23486 VERSION_BUILD= 23487 elif test "x$with_version_build" = x; then 23488 VERSION_BUILD= 23489 else 23490 23491 # Additional [] needed to keep m4 from mangling shell constructs. 23492 if ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 23493 as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5 23494 fi 23495 # Extract the version number without leading zeros. 23496 cleaned_value=${BASH_REMATCH[1]} 23497 if test "x$cleaned_value" = x; then 23498 # Special case for zero 23499 cleaned_value=${BASH_REMATCH[2]} 23500 fi 23501 23502 if test $cleaned_value -gt 255; then 23503 as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5 23504 fi 23505 if test "x$cleaned_value" != "x$with_version_build"; then 23506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5 23507 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;} 23508 fi 23509 VERSION_BUILD=$cleaned_value 23510 23511 fi 23512 else 23513 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 23514 # Default is to not have a build number. 23515 VERSION_BUILD="" 23516 # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0. 23517 VERSION_BUILD=0 23518 fi 23519 fi 23520 23521 23522 # Check whether --with-version-major was given. 23523 if test "${with_version_major+set}" = set; then : 23524 withval=$with_version_major; with_version_major_present=true 23525 else 23526 with_version_major_present=false 23527 fi 23528 23529 23530 if test "x$with_version_major_present" = xtrue; then 23531 if test "x$with_version_major" = xyes; then 23532 as_fn_error $? "--with-version-major must have a value" "$LINENO" 5 23533 else 23534 23535 # Additional [] needed to keep m4 from mangling shell constructs. 23536 if ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 23537 as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5 23538 fi 23539 # Extract the version number without leading zeros. 23540 cleaned_value=${BASH_REMATCH[1]} 23541 if test "x$cleaned_value" = x; then 23542 # Special case for zero 23543 cleaned_value=${BASH_REMATCH[2]} 23544 fi 23545 23546 if test $cleaned_value -gt 255; then 23547 as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5 23548 fi 23549 if test "x$cleaned_value" != "x$with_version_major"; then 23550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5 23551 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;} 23552 fi 23553 VERSION_MAJOR=$cleaned_value 23554 23555 fi 23556 else 23557 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 23558 # Default is to get value from version-numbers 23559 VERSION_MAJOR="$DEFAULT_VERSION_MAJOR" 23560 fi 23561 fi 23562 23563 23564 # Check whether --with-version-minor was given. 23565 if test "${with_version_minor+set}" = set; then : 23566 withval=$with_version_minor; with_version_minor_present=true 23567 else 23568 with_version_minor_present=false 23569 fi 23570 23571 23572 if test "x$with_version_minor_present" = xtrue; then 23573 if test "x$with_version_minor" = xyes; then 23574 as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5 23575 elif test "x$with_version_minor" = xno; then 23576 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 23577 VERSION_MINOR=0 23578 elif test "x$with_version_minor" = x; then 23579 VERSION_MINOR=0 23580 else 23581 23582 # Additional [] needed to keep m4 from mangling shell constructs. 23583 if ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 23584 as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5 23585 fi 23586 # Extract the version number without leading zeros. 23587 cleaned_value=${BASH_REMATCH[1]} 23588 if test "x$cleaned_value" = x; then 23589 # Special case for zero 23590 cleaned_value=${BASH_REMATCH[2]} 23591 fi 23592 23593 if test $cleaned_value -gt 255; then 23594 as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5 23595 fi 23596 if test "x$cleaned_value" != "x$with_version_minor"; then 23597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5 23598 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;} 23599 fi 23600 VERSION_MINOR=$cleaned_value 23601 23602 fi 23603 else 23604 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 23605 # Default is 0, if unspecified 23606 VERSION_MINOR=0 23607 fi 23608 fi 23609 23610 23611 # Check whether --with-version-security was given. 23612 if test "${with_version_security+set}" = set; then : 23613 withval=$with_version_security; with_version_security_present=true 23614 else 23615 with_version_security_present=false 23616 fi 23617 23618 23619 if test "x$with_version_security_present" = xtrue; then 23620 if test "x$with_version_security" = xyes; then 23621 as_fn_error $? "--with-version-security must have a value" "$LINENO" 5 23622 elif test "x$with_version_security" = xno; then 23623 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 23624 VERSION_SECURITY=0 23625 elif test "x$with_version_security" = x; then 23626 VERSION_SECURITY=0 23627 else 23628 23629 # Additional [] needed to keep m4 from mangling shell constructs. 23630 if ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 23631 as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5 23632 fi 23633 # Extract the version number without leading zeros. 23634 cleaned_value=${BASH_REMATCH[1]} 23635 if test "x$cleaned_value" = x; then 23636 # Special case for zero 23637 cleaned_value=${BASH_REMATCH[2]} 23638 fi 23639 23640 if test $cleaned_value -gt 255; then 23641 as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5 23642 fi 23643 if test "x$cleaned_value" != "x$with_version_security"; then 23644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5 23645 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;} 23646 fi 23647 VERSION_SECURITY=$cleaned_value 23648 23649 fi 23650 else 23651 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 23652 # Default is 0, if unspecified 23653 VERSION_SECURITY=0 23654 fi 23655 fi 23656 23657 23658 # Check whether --with-version-patch was given. 23659 if test "${with_version_patch+set}" = set; then : 23660 withval=$with_version_patch; with_version_patch_present=true 23661 else 23662 with_version_patch_present=false 23663 fi 23664 23665 23666 if test "x$with_version_patch_present" = xtrue; then 23667 if test "x$with_version_patch" = xyes; then 23668 as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5 23669 elif test "x$with_version_patch" = xno; then 23670 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 23671 VERSION_PATCH=0 23672 elif test "x$with_version_patch" = x; then 23673 VERSION_PATCH=0 23674 else 23675 23676 # Additional [] needed to keep m4 from mangling shell constructs. 23677 if ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 23678 as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5 23679 fi 23680 # Extract the version number without leading zeros. 23681 cleaned_value=${BASH_REMATCH[1]} 23682 if test "x$cleaned_value" = x; then 23683 # Special case for zero 23684 cleaned_value=${BASH_REMATCH[2]} 23685 fi 23686 23687 if test $cleaned_value -gt 255; then 23688 as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5 23689 fi 23690 if test "x$cleaned_value" != "x$with_version_patch"; then 23691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5 23692 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;} 23693 fi 23694 VERSION_PATCH=$cleaned_value 23695 23696 fi 23697 else 23698 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 23699 # Default is 0, if unspecified 23700 VERSION_PATCH=0 23701 fi 23702 fi 23703 23704 # Calculate derived version properties 23705 23706 # Set VERSION_IS_GA based on if VERSION_PRE has a value 23707 if test "x$VERSION_PRE" = x; then 23708 VERSION_IS_GA=true 23709 else 23710 VERSION_IS_GA=false 23711 fi 23712 23713 # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions. 23714 VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH 23715 23716 stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS 23717 # Strip trailing zeroes from stripped_version_number 23718 for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done 23719 VERSION_NUMBER=$stripped_version_number 23720 23721 # The complete version string, with additional build information 23722 if test "x$VERSION_BUILD$VERSION_OPT" = x; then 23723 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 23724 else 23725 # If either build or opt is set, we need a + separator 23726 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT} 23727 fi 23728 23729 # The short version string, just VERSION_NUMBER and PRE, if present. 23730 VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 23731 23732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5 23733 $as_echo_n "checking for version string... " >&6; } 23734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5 23735 $as_echo "$VERSION_STRING" >&6; } 23736 23737 23738 23739 23740 23741 23742 23743 23744 23745 23746 23747 23748 23749 23750 23751 ############################################################################### 23752 # 23753 # Setup BootJDK, used to bootstrap the build. 23754 # 23755 ############################################################################### 23756 23757 23758 BOOT_JDK_FOUND=no 23759 23760 # Check whether --with-boot-jdk was given. 23761 if test "${with_boot_jdk+set}" = set; then : 23762 withval=$with_boot_jdk; 23763 fi 23764 23765 23766 # We look for the Boot JDK through various means, going from more certain to 23767 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 23768 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 23769 # must check if this is indeed valid; otherwise we'll continue looking. 23770 23771 # Test: Is bootjdk explicitely set by command line arguments? 23772 23773 if test "x$BOOT_JDK_FOUND" = xno; then 23774 # Now execute the test 23775 23776 if test "x$with_boot_jdk" != x; then 23777 BOOT_JDK=$with_boot_jdk 23778 BOOT_JDK_FOUND=maybe 23779 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 23780 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 23781 fi 23782 23783 23784 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23785 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23786 # Do we have a bin/java? 23787 if test ! -x "$BOOT_JDK/bin/java"; then 23788 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23789 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23790 BOOT_JDK_FOUND=no 23791 else 23792 # Do we have a bin/javac? 23793 if test ! -x "$BOOT_JDK/bin/javac"; then 23794 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23795 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23796 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23797 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23798 BOOT_JDK_FOUND=no 23799 else 23800 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23801 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23802 23803 # Extra M4 quote needed to protect [] in grep expression. 23804 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 23805 if test "x$FOUND_CORRECT_VERSION" = x; then 23806 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23807 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23808 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23809 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23810 BOOT_JDK_FOUND=no 23811 else 23812 # We're done! :-) 23813 BOOT_JDK_FOUND=yes 23814 23815 # Only process if variable expands to non-empty 23816 23817 if test "x$BOOT_JDK" != x; then 23818 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23819 23820 # Input might be given as Windows format, start by converting to 23821 # unix format. 23822 path="$BOOT_JDK" 23823 new_path=`$CYGPATH -u "$path"` 23824 23825 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23826 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23827 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23828 # "foo.exe" is OK but "foo" is an error. 23829 # 23830 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23831 # It is also a way to make sure we got the proper file name for the real test later on. 23832 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23833 if test "x$test_shortpath" = x; then 23834 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23835 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23836 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23837 fi 23838 23839 # Call helper function which possibly converts this using DOS-style short mode. 23840 # If so, the updated path is stored in $new_path. 23841 23842 input_path="$new_path" 23843 # Check if we need to convert this using DOS-style short mode. If the path 23844 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23845 # take no chances and rewrite it. 23846 # Note: m4 eats our [], so we need to use [ and ] instead. 23847 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23848 if test "x$has_forbidden_chars" != x; then 23849 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23850 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23851 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23852 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23853 # Going to short mode and back again did indeed matter. Since short mode is 23854 # case insensitive, let's make it lowercase to improve readability. 23855 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23856 # Now convert it back to Unix-style (cygpath) 23857 input_path=`$CYGPATH -u "$shortmode_path"` 23858 new_path="$input_path" 23859 fi 23860 fi 23861 23862 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23863 if test "x$test_cygdrive_prefix" = x; then 23864 # As a simple fix, exclude /usr/bin since it's not a real path. 23865 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23866 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23867 # a path prefixed by /cygdrive for fixpath to work. 23868 new_path="$CYGWIN_ROOT_PATH$input_path" 23869 fi 23870 fi 23871 23872 23873 if test "x$path" != "x$new_path"; then 23874 BOOT_JDK="$new_path" 23875 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23876 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23877 fi 23878 23879 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23880 23881 path="$BOOT_JDK" 23882 has_colon=`$ECHO $path | $GREP ^.:` 23883 new_path="$path" 23884 if test "x$has_colon" = x; then 23885 # Not in mixed or Windows style, start by that. 23886 new_path=`cmd //c echo $path` 23887 fi 23888 23889 23890 input_path="$new_path" 23891 # Check if we need to convert this using DOS-style short mode. If the path 23892 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23893 # take no chances and rewrite it. 23894 # Note: m4 eats our [], so we need to use [ and ] instead. 23895 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23896 if test "x$has_forbidden_chars" != x; then 23897 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23898 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23899 fi 23900 23901 23902 windows_path="$new_path" 23903 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23904 unix_path=`$CYGPATH -u "$windows_path"` 23905 new_path="$unix_path" 23906 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23907 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23908 new_path="$unix_path" 23909 fi 23910 23911 if test "x$path" != "x$new_path"; then 23912 BOOT_JDK="$new_path" 23913 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23914 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23915 fi 23916 23917 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23918 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23919 23920 else 23921 # We're on a unix platform. Hooray! :) 23922 path="$BOOT_JDK" 23923 has_space=`$ECHO "$path" | $GREP " "` 23924 if test "x$has_space" != x; then 23925 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23926 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23927 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23928 fi 23929 23930 # Use eval to expand a potential ~ 23931 eval path="$path" 23932 if test ! -f "$path" && test ! -d "$path"; then 23933 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23934 fi 23935 23936 if test -d "$path"; then 23937 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23938 else 23939 dir="`$DIRNAME "$path"`" 23940 base="`$BASENAME "$path"`" 23941 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 23942 fi 23943 fi 23944 fi 23945 23946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23947 $as_echo_n "checking for Boot JDK... " >&6; } 23948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23949 $as_echo "$BOOT_JDK" >&6; } 23950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23951 $as_echo_n "checking Boot JDK version... " >&6; } 23952 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23954 $as_echo "$BOOT_JDK_VERSION" >&6; } 23955 fi # end check jdk version 23956 fi # end check javac 23957 fi # end check java 23958 fi # end check boot jdk found 23959 fi 23960 23961 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 23962 # Having specified an argument which is incorrect will produce an instant failure; 23963 # we should not go on looking 23964 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 23965 fi 23966 23967 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 23968 23969 if test "x$BOOT_JDK_FOUND" = xno; then 23970 # Now execute the test 23971 23972 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 23973 # First check at user selected default 23974 23975 if test "x$BOOT_JDK_FOUND" = xno; then 23976 # Now execute the test 23977 23978 if test -x /usr/libexec/java_home; then 23979 BOOT_JDK=`/usr/libexec/java_home ` 23980 BOOT_JDK_FOUND=maybe 23981 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 23982 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 23983 fi 23984 23985 23986 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23987 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23988 # Do we have a bin/java? 23989 if test ! -x "$BOOT_JDK/bin/java"; then 23990 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23991 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23992 BOOT_JDK_FOUND=no 23993 else 23994 # Do we have a bin/javac? 23995 if test ! -x "$BOOT_JDK/bin/javac"; then 23996 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23997 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23998 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23999 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24000 BOOT_JDK_FOUND=no 24001 else 24002 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24003 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24004 24005 # Extra M4 quote needed to protect [] in grep expression. 24006 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 24007 if test "x$FOUND_CORRECT_VERSION" = x; then 24008 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24009 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24010 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24011 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24012 BOOT_JDK_FOUND=no 24013 else 24014 # We're done! :-) 24015 BOOT_JDK_FOUND=yes 24016 24017 # Only process if variable expands to non-empty 24018 24019 if test "x$BOOT_JDK" != x; then 24020 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24021 24022 # Input might be given as Windows format, start by converting to 24023 # unix format. 24024 path="$BOOT_JDK" 24025 new_path=`$CYGPATH -u "$path"` 24026 24027 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24028 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24029 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24030 # "foo.exe" is OK but "foo" is an error. 24031 # 24032 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24033 # It is also a way to make sure we got the proper file name for the real test later on. 24034 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24035 if test "x$test_shortpath" = x; then 24036 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24037 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24038 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24039 fi 24040 24041 # Call helper function which possibly converts this using DOS-style short mode. 24042 # If so, the updated path is stored in $new_path. 24043 24044 input_path="$new_path" 24045 # Check if we need to convert this using DOS-style short mode. If the path 24046 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24047 # take no chances and rewrite it. 24048 # Note: m4 eats our [], so we need to use [ and ] instead. 24049 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24050 if test "x$has_forbidden_chars" != x; then 24051 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24052 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24053 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24054 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24055 # Going to short mode and back again did indeed matter. Since short mode is 24056 # case insensitive, let's make it lowercase to improve readability. 24057 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24058 # Now convert it back to Unix-style (cygpath) 24059 input_path=`$CYGPATH -u "$shortmode_path"` 24060 new_path="$input_path" 24061 fi 24062 fi 24063 24064 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24065 if test "x$test_cygdrive_prefix" = x; then 24066 # As a simple fix, exclude /usr/bin since it's not a real path. 24067 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24068 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24069 # a path prefixed by /cygdrive for fixpath to work. 24070 new_path="$CYGWIN_ROOT_PATH$input_path" 24071 fi 24072 fi 24073 24074 24075 if test "x$path" != "x$new_path"; then 24076 BOOT_JDK="$new_path" 24077 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24078 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24079 fi 24080 24081 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24082 24083 path="$BOOT_JDK" 24084 has_colon=`$ECHO $path | $GREP ^.:` 24085 new_path="$path" 24086 if test "x$has_colon" = x; then 24087 # Not in mixed or Windows style, start by that. 24088 new_path=`cmd //c echo $path` 24089 fi 24090 24091 24092 input_path="$new_path" 24093 # Check if we need to convert this using DOS-style short mode. If the path 24094 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24095 # take no chances and rewrite it. 24096 # Note: m4 eats our [], so we need to use [ and ] instead. 24097 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24098 if test "x$has_forbidden_chars" != x; then 24099 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24100 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24101 fi 24102 24103 24104 windows_path="$new_path" 24105 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24106 unix_path=`$CYGPATH -u "$windows_path"` 24107 new_path="$unix_path" 24108 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24109 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24110 new_path="$unix_path" 24111 fi 24112 24113 if test "x$path" != "x$new_path"; then 24114 BOOT_JDK="$new_path" 24115 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24116 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24117 fi 24118 24119 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24120 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24121 24122 else 24123 # We're on a unix platform. Hooray! :) 24124 path="$BOOT_JDK" 24125 has_space=`$ECHO "$path" | $GREP " "` 24126 if test "x$has_space" != x; then 24127 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24128 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24129 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24130 fi 24131 24132 # Use eval to expand a potential ~ 24133 eval path="$path" 24134 if test ! -f "$path" && test ! -d "$path"; then 24135 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24136 fi 24137 24138 if test -d "$path"; then 24139 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24140 else 24141 dir="`$DIRNAME "$path"`" 24142 base="`$BASENAME "$path"`" 24143 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 24144 fi 24145 fi 24146 fi 24147 24148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24149 $as_echo_n "checking for Boot JDK... " >&6; } 24150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24151 $as_echo "$BOOT_JDK" >&6; } 24152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24153 $as_echo_n "checking Boot JDK version... " >&6; } 24154 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24156 $as_echo "$BOOT_JDK_VERSION" >&6; } 24157 fi # end check jdk version 24158 fi # end check javac 24159 fi # end check java 24160 fi # end check boot jdk found 24161 fi 24162 24163 # If that did not work out (e.g. too old), try explicit versions instead 24164 24165 if test "x$BOOT_JDK_FOUND" = xno; then 24166 # Now execute the test 24167 24168 if test -x /usr/libexec/java_home; then 24169 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 24170 BOOT_JDK_FOUND=maybe 24171 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 24172 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 24173 fi 24174 24175 24176 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24177 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24178 # Do we have a bin/java? 24179 if test ! -x "$BOOT_JDK/bin/java"; then 24180 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24181 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24182 BOOT_JDK_FOUND=no 24183 else 24184 # Do we have a bin/javac? 24185 if test ! -x "$BOOT_JDK/bin/javac"; then 24186 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24187 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24188 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24189 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24190 BOOT_JDK_FOUND=no 24191 else 24192 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24193 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24194 24195 # Extra M4 quote needed to protect [] in grep expression. 24196 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 24197 if test "x$FOUND_CORRECT_VERSION" = x; then 24198 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24199 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24200 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24201 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24202 BOOT_JDK_FOUND=no 24203 else 24204 # We're done! :-) 24205 BOOT_JDK_FOUND=yes 24206 24207 # Only process if variable expands to non-empty 24208 24209 if test "x$BOOT_JDK" != x; then 24210 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24211 24212 # Input might be given as Windows format, start by converting to 24213 # unix format. 24214 path="$BOOT_JDK" 24215 new_path=`$CYGPATH -u "$path"` 24216 24217 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24218 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24219 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24220 # "foo.exe" is OK but "foo" is an error. 24221 # 24222 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24223 # It is also a way to make sure we got the proper file name for the real test later on. 24224 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24225 if test "x$test_shortpath" = x; then 24226 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24227 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24228 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24229 fi 24230 24231 # Call helper function which possibly converts this using DOS-style short mode. 24232 # If so, the updated path is stored in $new_path. 24233 24234 input_path="$new_path" 24235 # Check if we need to convert this using DOS-style short mode. If the path 24236 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24237 # take no chances and rewrite it. 24238 # Note: m4 eats our [], so we need to use [ and ] instead. 24239 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24240 if test "x$has_forbidden_chars" != x; then 24241 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24242 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24243 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24244 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24245 # Going to short mode and back again did indeed matter. Since short mode is 24246 # case insensitive, let's make it lowercase to improve readability. 24247 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24248 # Now convert it back to Unix-style (cygpath) 24249 input_path=`$CYGPATH -u "$shortmode_path"` 24250 new_path="$input_path" 24251 fi 24252 fi 24253 24254 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24255 if test "x$test_cygdrive_prefix" = x; then 24256 # As a simple fix, exclude /usr/bin since it's not a real path. 24257 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24258 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24259 # a path prefixed by /cygdrive for fixpath to work. 24260 new_path="$CYGWIN_ROOT_PATH$input_path" 24261 fi 24262 fi 24263 24264 24265 if test "x$path" != "x$new_path"; then 24266 BOOT_JDK="$new_path" 24267 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24268 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24269 fi 24270 24271 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24272 24273 path="$BOOT_JDK" 24274 has_colon=`$ECHO $path | $GREP ^.:` 24275 new_path="$path" 24276 if test "x$has_colon" = x; then 24277 # Not in mixed or Windows style, start by that. 24278 new_path=`cmd //c echo $path` 24279 fi 24280 24281 24282 input_path="$new_path" 24283 # Check if we need to convert this using DOS-style short mode. If the path 24284 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24285 # take no chances and rewrite it. 24286 # Note: m4 eats our [], so we need to use [ and ] instead. 24287 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24288 if test "x$has_forbidden_chars" != x; then 24289 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24290 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24291 fi 24292 24293 24294 windows_path="$new_path" 24295 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24296 unix_path=`$CYGPATH -u "$windows_path"` 24297 new_path="$unix_path" 24298 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24299 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24300 new_path="$unix_path" 24301 fi 24302 24303 if test "x$path" != "x$new_path"; then 24304 BOOT_JDK="$new_path" 24305 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24306 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24307 fi 24308 24309 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24310 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24311 24312 else 24313 # We're on a unix platform. Hooray! :) 24314 path="$BOOT_JDK" 24315 has_space=`$ECHO "$path" | $GREP " "` 24316 if test "x$has_space" != x; then 24317 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24318 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24319 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24320 fi 24321 24322 # Use eval to expand a potential ~ 24323 eval path="$path" 24324 if test ! -f "$path" && test ! -d "$path"; then 24325 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24326 fi 24327 24328 if test -d "$path"; then 24329 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24330 else 24331 dir="`$DIRNAME "$path"`" 24332 base="`$BASENAME "$path"`" 24333 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 24334 fi 24335 fi 24336 fi 24337 24338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24339 $as_echo_n "checking for Boot JDK... " >&6; } 24340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24341 $as_echo "$BOOT_JDK" >&6; } 24342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24343 $as_echo_n "checking Boot JDK version... " >&6; } 24344 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24346 $as_echo "$BOOT_JDK_VERSION" >&6; } 24347 fi # end check jdk version 24348 fi # end check javac 24349 fi # end check java 24350 fi # end check boot jdk found 24351 fi 24352 24353 24354 if test "x$BOOT_JDK_FOUND" = xno; then 24355 # Now execute the test 24356 24357 if test -x /usr/libexec/java_home; then 24358 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 24359 BOOT_JDK_FOUND=maybe 24360 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 24361 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 24362 fi 24363 24364 24365 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24366 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24367 # Do we have a bin/java? 24368 if test ! -x "$BOOT_JDK/bin/java"; then 24369 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24370 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24371 BOOT_JDK_FOUND=no 24372 else 24373 # Do we have a bin/javac? 24374 if test ! -x "$BOOT_JDK/bin/javac"; then 24375 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24376 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24377 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24378 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24379 BOOT_JDK_FOUND=no 24380 else 24381 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24382 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24383 24384 # Extra M4 quote needed to protect [] in grep expression. 24385 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 24386 if test "x$FOUND_CORRECT_VERSION" = x; then 24387 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24388 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24389 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24390 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24391 BOOT_JDK_FOUND=no 24392 else 24393 # We're done! :-) 24394 BOOT_JDK_FOUND=yes 24395 24396 # Only process if variable expands to non-empty 24397 24398 if test "x$BOOT_JDK" != x; then 24399 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24400 24401 # Input might be given as Windows format, start by converting to 24402 # unix format. 24403 path="$BOOT_JDK" 24404 new_path=`$CYGPATH -u "$path"` 24405 24406 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24407 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24408 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24409 # "foo.exe" is OK but "foo" is an error. 24410 # 24411 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24412 # It is also a way to make sure we got the proper file name for the real test later on. 24413 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24414 if test "x$test_shortpath" = x; then 24415 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24416 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24417 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24418 fi 24419 24420 # Call helper function which possibly converts this using DOS-style short mode. 24421 # If so, the updated path is stored in $new_path. 24422 24423 input_path="$new_path" 24424 # Check if we need to convert this using DOS-style short mode. If the path 24425 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24426 # take no chances and rewrite it. 24427 # Note: m4 eats our [], so we need to use [ and ] instead. 24428 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24429 if test "x$has_forbidden_chars" != x; then 24430 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24431 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24432 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24433 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24434 # Going to short mode and back again did indeed matter. Since short mode is 24435 # case insensitive, let's make it lowercase to improve readability. 24436 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24437 # Now convert it back to Unix-style (cygpath) 24438 input_path=`$CYGPATH -u "$shortmode_path"` 24439 new_path="$input_path" 24440 fi 24441 fi 24442 24443 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24444 if test "x$test_cygdrive_prefix" = x; then 24445 # As a simple fix, exclude /usr/bin since it's not a real path. 24446 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24447 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24448 # a path prefixed by /cygdrive for fixpath to work. 24449 new_path="$CYGWIN_ROOT_PATH$input_path" 24450 fi 24451 fi 24452 24453 24454 if test "x$path" != "x$new_path"; then 24455 BOOT_JDK="$new_path" 24456 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24457 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24458 fi 24459 24460 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24461 24462 path="$BOOT_JDK" 24463 has_colon=`$ECHO $path | $GREP ^.:` 24464 new_path="$path" 24465 if test "x$has_colon" = x; then 24466 # Not in mixed or Windows style, start by that. 24467 new_path=`cmd //c echo $path` 24468 fi 24469 24470 24471 input_path="$new_path" 24472 # Check if we need to convert this using DOS-style short mode. If the path 24473 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24474 # take no chances and rewrite it. 24475 # Note: m4 eats our [], so we need to use [ and ] instead. 24476 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24477 if test "x$has_forbidden_chars" != x; then 24478 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24479 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24480 fi 24481 24482 24483 windows_path="$new_path" 24484 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24485 unix_path=`$CYGPATH -u "$windows_path"` 24486 new_path="$unix_path" 24487 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24488 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24489 new_path="$unix_path" 24490 fi 24491 24492 if test "x$path" != "x$new_path"; then 24493 BOOT_JDK="$new_path" 24494 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24495 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24496 fi 24497 24498 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24499 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24500 24501 else 24502 # We're on a unix platform. Hooray! :) 24503 path="$BOOT_JDK" 24504 has_space=`$ECHO "$path" | $GREP " "` 24505 if test "x$has_space" != x; then 24506 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24507 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24508 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24509 fi 24510 24511 # Use eval to expand a potential ~ 24512 eval path="$path" 24513 if test ! -f "$path" && test ! -d "$path"; then 24514 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24515 fi 24516 24517 if test -d "$path"; then 24518 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24519 else 24520 dir="`$DIRNAME "$path"`" 24521 base="`$BASENAME "$path"`" 24522 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 24523 fi 24524 fi 24525 fi 24526 24527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24528 $as_echo_n "checking for Boot JDK... " >&6; } 24529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24530 $as_echo "$BOOT_JDK" >&6; } 24531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24532 $as_echo_n "checking Boot JDK version... " >&6; } 24533 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24535 $as_echo "$BOOT_JDK_VERSION" >&6; } 24536 fi # end check jdk version 24537 fi # end check javac 24538 fi # end check java 24539 fi # end check boot jdk found 24540 fi 24541 24542 24543 if test "x$BOOT_JDK_FOUND" = xno; then 24544 # Now execute the test 24545 24546 if test -x /usr/libexec/java_home; then 24547 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 24548 BOOT_JDK_FOUND=maybe 24549 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 24550 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 24551 fi 24552 24553 24554 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24555 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24556 # Do we have a bin/java? 24557 if test ! -x "$BOOT_JDK/bin/java"; then 24558 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24559 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24560 BOOT_JDK_FOUND=no 24561 else 24562 # Do we have a bin/javac? 24563 if test ! -x "$BOOT_JDK/bin/javac"; then 24564 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24565 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24566 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24567 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24568 BOOT_JDK_FOUND=no 24569 else 24570 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24571 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24572 24573 # Extra M4 quote needed to protect [] in grep expression. 24574 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 24575 if test "x$FOUND_CORRECT_VERSION" = x; then 24576 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24577 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24578 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24579 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24580 BOOT_JDK_FOUND=no 24581 else 24582 # We're done! :-) 24583 BOOT_JDK_FOUND=yes 24584 24585 # Only process if variable expands to non-empty 24586 24587 if test "x$BOOT_JDK" != x; then 24588 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24589 24590 # Input might be given as Windows format, start by converting to 24591 # unix format. 24592 path="$BOOT_JDK" 24593 new_path=`$CYGPATH -u "$path"` 24594 24595 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24596 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24597 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24598 # "foo.exe" is OK but "foo" is an error. 24599 # 24600 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24601 # It is also a way to make sure we got the proper file name for the real test later on. 24602 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24603 if test "x$test_shortpath" = x; then 24604 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24605 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24606 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24607 fi 24608 24609 # Call helper function which possibly converts this using DOS-style short mode. 24610 # If so, the updated path is stored in $new_path. 24611 24612 input_path="$new_path" 24613 # Check if we need to convert this using DOS-style short mode. If the path 24614 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24615 # take no chances and rewrite it. 24616 # Note: m4 eats our [], so we need to use [ and ] instead. 24617 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24618 if test "x$has_forbidden_chars" != x; then 24619 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24620 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24621 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24622 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24623 # Going to short mode and back again did indeed matter. Since short mode is 24624 # case insensitive, let's make it lowercase to improve readability. 24625 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24626 # Now convert it back to Unix-style (cygpath) 24627 input_path=`$CYGPATH -u "$shortmode_path"` 24628 new_path="$input_path" 24629 fi 24630 fi 24631 24632 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24633 if test "x$test_cygdrive_prefix" = x; then 24634 # As a simple fix, exclude /usr/bin since it's not a real path. 24635 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24636 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24637 # a path prefixed by /cygdrive for fixpath to work. 24638 new_path="$CYGWIN_ROOT_PATH$input_path" 24639 fi 24640 fi 24641 24642 24643 if test "x$path" != "x$new_path"; then 24644 BOOT_JDK="$new_path" 24645 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24646 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24647 fi 24648 24649 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24650 24651 path="$BOOT_JDK" 24652 has_colon=`$ECHO $path | $GREP ^.:` 24653 new_path="$path" 24654 if test "x$has_colon" = x; then 24655 # Not in mixed or Windows style, start by that. 24656 new_path=`cmd //c echo $path` 24657 fi 24658 24659 24660 input_path="$new_path" 24661 # Check if we need to convert this using DOS-style short mode. If the path 24662 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24663 # take no chances and rewrite it. 24664 # Note: m4 eats our [], so we need to use [ and ] instead. 24665 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24666 if test "x$has_forbidden_chars" != x; then 24667 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24668 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24669 fi 24670 24671 24672 windows_path="$new_path" 24673 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24674 unix_path=`$CYGPATH -u "$windows_path"` 24675 new_path="$unix_path" 24676 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24677 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24678 new_path="$unix_path" 24679 fi 24680 24681 if test "x$path" != "x$new_path"; then 24682 BOOT_JDK="$new_path" 24683 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24684 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24685 fi 24686 24687 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24688 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24689 24690 else 24691 # We're on a unix platform. Hooray! :) 24692 path="$BOOT_JDK" 24693 has_space=`$ECHO "$path" | $GREP " "` 24694 if test "x$has_space" != x; then 24695 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24696 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24697 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24698 fi 24699 24700 # Use eval to expand a potential ~ 24701 eval path="$path" 24702 if test ! -f "$path" && test ! -d "$path"; then 24703 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24704 fi 24705 24706 if test -d "$path"; then 24707 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24708 else 24709 dir="`$DIRNAME "$path"`" 24710 base="`$BASENAME "$path"`" 24711 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 24712 fi 24713 fi 24714 fi 24715 24716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24717 $as_echo_n "checking for Boot JDK... " >&6; } 24718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24719 $as_echo "$BOOT_JDK" >&6; } 24720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24721 $as_echo_n "checking Boot JDK version... " >&6; } 24722 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24724 $as_echo "$BOOT_JDK_VERSION" >&6; } 24725 fi # end check jdk version 24726 fi # end check javac 24727 fi # end check java 24728 fi # end check boot jdk found 24729 fi 24730 24731 fi 24732 24733 24734 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24735 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24736 # Do we have a bin/java? 24737 if test ! -x "$BOOT_JDK/bin/java"; then 24738 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24739 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24740 BOOT_JDK_FOUND=no 24741 else 24742 # Do we have a bin/javac? 24743 if test ! -x "$BOOT_JDK/bin/javac"; then 24744 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24745 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24746 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24747 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24748 BOOT_JDK_FOUND=no 24749 else 24750 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24751 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24752 24753 # Extra M4 quote needed to protect [] in grep expression. 24754 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 24755 if test "x$FOUND_CORRECT_VERSION" = x; then 24756 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24757 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24758 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24759 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24760 BOOT_JDK_FOUND=no 24761 else 24762 # We're done! :-) 24763 BOOT_JDK_FOUND=yes 24764 24765 # Only process if variable expands to non-empty 24766 24767 if test "x$BOOT_JDK" != x; then 24768 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24769 24770 # Input might be given as Windows format, start by converting to 24771 # unix format. 24772 path="$BOOT_JDK" 24773 new_path=`$CYGPATH -u "$path"` 24774 24775 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24776 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24777 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24778 # "foo.exe" is OK but "foo" is an error. 24779 # 24780 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24781 # It is also a way to make sure we got the proper file name for the real test later on. 24782 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24783 if test "x$test_shortpath" = x; then 24784 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24785 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24786 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24787 fi 24788 24789 # Call helper function which possibly converts this using DOS-style short mode. 24790 # If so, the updated path is stored in $new_path. 24791 24792 input_path="$new_path" 24793 # Check if we need to convert this using DOS-style short mode. If the path 24794 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24795 # take no chances and rewrite it. 24796 # Note: m4 eats our [], so we need to use [ and ] instead. 24797 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24798 if test "x$has_forbidden_chars" != x; then 24799 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24800 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24801 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24802 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24803 # Going to short mode and back again did indeed matter. Since short mode is 24804 # case insensitive, let's make it lowercase to improve readability. 24805 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24806 # Now convert it back to Unix-style (cygpath) 24807 input_path=`$CYGPATH -u "$shortmode_path"` 24808 new_path="$input_path" 24809 fi 24810 fi 24811 24812 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24813 if test "x$test_cygdrive_prefix" = x; then 24814 # As a simple fix, exclude /usr/bin since it's not a real path. 24815 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24816 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24817 # a path prefixed by /cygdrive for fixpath to work. 24818 new_path="$CYGWIN_ROOT_PATH$input_path" 24819 fi 24820 fi 24821 24822 24823 if test "x$path" != "x$new_path"; then 24824 BOOT_JDK="$new_path" 24825 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24826 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24827 fi 24828 24829 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24830 24831 path="$BOOT_JDK" 24832 has_colon=`$ECHO $path | $GREP ^.:` 24833 new_path="$path" 24834 if test "x$has_colon" = x; then 24835 # Not in mixed or Windows style, start by that. 24836 new_path=`cmd //c echo $path` 24837 fi 24838 24839 24840 input_path="$new_path" 24841 # Check if we need to convert this using DOS-style short mode. If the path 24842 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24843 # take no chances and rewrite it. 24844 # Note: m4 eats our [], so we need to use [ and ] instead. 24845 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24846 if test "x$has_forbidden_chars" != x; then 24847 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24848 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24849 fi 24850 24851 24852 windows_path="$new_path" 24853 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24854 unix_path=`$CYGPATH -u "$windows_path"` 24855 new_path="$unix_path" 24856 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24857 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24858 new_path="$unix_path" 24859 fi 24860 24861 if test "x$path" != "x$new_path"; then 24862 BOOT_JDK="$new_path" 24863 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24864 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24865 fi 24866 24867 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24868 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24869 24870 else 24871 # We're on a unix platform. Hooray! :) 24872 path="$BOOT_JDK" 24873 has_space=`$ECHO "$path" | $GREP " "` 24874 if test "x$has_space" != x; then 24875 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24876 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24877 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24878 fi 24879 24880 # Use eval to expand a potential ~ 24881 eval path="$path" 24882 if test ! -f "$path" && test ! -d "$path"; then 24883 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24884 fi 24885 24886 if test -d "$path"; then 24887 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24888 else 24889 dir="`$DIRNAME "$path"`" 24890 base="`$BASENAME "$path"`" 24891 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 24892 fi 24893 fi 24894 fi 24895 24896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24897 $as_echo_n "checking for Boot JDK... " >&6; } 24898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24899 $as_echo "$BOOT_JDK" >&6; } 24900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24901 $as_echo_n "checking Boot JDK version... " >&6; } 24902 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24904 $as_echo "$BOOT_JDK_VERSION" >&6; } 24905 fi # end check jdk version 24906 fi # end check javac 24907 fi # end check java 24908 fi # end check boot jdk found 24909 fi 24910 24911 24912 # Test: Is $JAVA_HOME set? 24913 24914 if test "x$BOOT_JDK_FOUND" = xno; then 24915 # Now execute the test 24916 24917 if test "x$JAVA_HOME" != x; then 24918 JAVA_HOME_PROCESSED="$JAVA_HOME" 24919 24920 # Only process if variable expands to non-empty 24921 24922 if test "x$JAVA_HOME_PROCESSED" != x; then 24923 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24924 24925 # Input might be given as Windows format, start by converting to 24926 # unix format. 24927 path="$JAVA_HOME_PROCESSED" 24928 new_path=`$CYGPATH -u "$path"` 24929 24930 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24931 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24932 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24933 # "foo.exe" is OK but "foo" is an error. 24934 # 24935 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24936 # It is also a way to make sure we got the proper file name for the real test later on. 24937 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24938 if test "x$test_shortpath" = x; then 24939 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 24940 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 24941 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 24942 fi 24943 24944 # Call helper function which possibly converts this using DOS-style short mode. 24945 # If so, the updated path is stored in $new_path. 24946 24947 input_path="$new_path" 24948 # Check if we need to convert this using DOS-style short mode. If the path 24949 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24950 # take no chances and rewrite it. 24951 # Note: m4 eats our [], so we need to use [ and ] instead. 24952 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24953 if test "x$has_forbidden_chars" != x; then 24954 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24955 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24956 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24957 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24958 # Going to short mode and back again did indeed matter. Since short mode is 24959 # case insensitive, let's make it lowercase to improve readability. 24960 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24961 # Now convert it back to Unix-style (cygpath) 24962 input_path=`$CYGPATH -u "$shortmode_path"` 24963 new_path="$input_path" 24964 fi 24965 fi 24966 24967 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24968 if test "x$test_cygdrive_prefix" = x; then 24969 # As a simple fix, exclude /usr/bin since it's not a real path. 24970 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24971 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24972 # a path prefixed by /cygdrive for fixpath to work. 24973 new_path="$CYGWIN_ROOT_PATH$input_path" 24974 fi 24975 fi 24976 24977 24978 if test "x$path" != "x$new_path"; then 24979 JAVA_HOME_PROCESSED="$new_path" 24980 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 24981 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 24982 fi 24983 24984 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24985 24986 path="$JAVA_HOME_PROCESSED" 24987 has_colon=`$ECHO $path | $GREP ^.:` 24988 new_path="$path" 24989 if test "x$has_colon" = x; then 24990 # Not in mixed or Windows style, start by that. 24991 new_path=`cmd //c echo $path` 24992 fi 24993 24994 24995 input_path="$new_path" 24996 # Check if we need to convert this using DOS-style short mode. If the path 24997 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24998 # take no chances and rewrite it. 24999 # Note: m4 eats our [], so we need to use [ and ] instead. 25000 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25001 if test "x$has_forbidden_chars" != x; then 25002 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25003 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25004 fi 25005 25006 25007 windows_path="$new_path" 25008 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25009 unix_path=`$CYGPATH -u "$windows_path"` 25010 new_path="$unix_path" 25011 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25012 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25013 new_path="$unix_path" 25014 fi 25015 25016 if test "x$path" != "x$new_path"; then 25017 JAVA_HOME_PROCESSED="$new_path" 25018 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 25019 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 25020 fi 25021 25022 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25023 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25024 25025 else 25026 # We're on a unix platform. Hooray! :) 25027 path="$JAVA_HOME_PROCESSED" 25028 has_space=`$ECHO "$path" | $GREP " "` 25029 if test "x$has_space" != x; then 25030 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 25031 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 25032 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25033 fi 25034 25035 # Use eval to expand a potential ~ 25036 eval path="$path" 25037 if test ! -f "$path" && test ! -d "$path"; then 25038 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 25039 fi 25040 25041 if test -d "$path"; then 25042 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 25043 else 25044 dir="`$DIRNAME "$path"`" 25045 base="`$BASENAME "$path"`" 25046 JAVA_HOME_PROCESSED="`cd "$dir"; $THEPWDCMD -L`/$base" 25047 fi 25048 fi 25049 fi 25050 25051 if test ! -d "$JAVA_HOME_PROCESSED"; then 25052 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 25053 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 25054 else 25055 # Aha, the user has set a JAVA_HOME 25056 # let us use that as the Boot JDK. 25057 BOOT_JDK="$JAVA_HOME_PROCESSED" 25058 BOOT_JDK_FOUND=maybe 25059 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 25060 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 25061 fi 25062 fi 25063 25064 25065 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25066 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25067 # Do we have a bin/java? 25068 if test ! -x "$BOOT_JDK/bin/java"; then 25069 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25070 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25071 BOOT_JDK_FOUND=no 25072 else 25073 # Do we have a bin/javac? 25074 if test ! -x "$BOOT_JDK/bin/javac"; then 25075 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25076 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25077 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25078 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25079 BOOT_JDK_FOUND=no 25080 else 25081 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25082 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25083 25084 # Extra M4 quote needed to protect [] in grep expression. 25085 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25086 if test "x$FOUND_CORRECT_VERSION" = x; then 25087 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25088 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25089 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25090 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25091 BOOT_JDK_FOUND=no 25092 else 25093 # We're done! :-) 25094 BOOT_JDK_FOUND=yes 25095 25096 # Only process if variable expands to non-empty 25097 25098 if test "x$BOOT_JDK" != x; then 25099 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25100 25101 # Input might be given as Windows format, start by converting to 25102 # unix format. 25103 path="$BOOT_JDK" 25104 new_path=`$CYGPATH -u "$path"` 25105 25106 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25107 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25108 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25109 # "foo.exe" is OK but "foo" is an error. 25110 # 25111 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25112 # It is also a way to make sure we got the proper file name for the real test later on. 25113 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25114 if test "x$test_shortpath" = x; then 25115 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25116 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25117 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25118 fi 25119 25120 # Call helper function which possibly converts this using DOS-style short mode. 25121 # If so, the updated path is stored in $new_path. 25122 25123 input_path="$new_path" 25124 # Check if we need to convert this using DOS-style short mode. If the path 25125 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25126 # take no chances and rewrite it. 25127 # Note: m4 eats our [], so we need to use [ and ] instead. 25128 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25129 if test "x$has_forbidden_chars" != x; then 25130 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25131 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25132 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25133 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25134 # Going to short mode and back again did indeed matter. Since short mode is 25135 # case insensitive, let's make it lowercase to improve readability. 25136 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25137 # Now convert it back to Unix-style (cygpath) 25138 input_path=`$CYGPATH -u "$shortmode_path"` 25139 new_path="$input_path" 25140 fi 25141 fi 25142 25143 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25144 if test "x$test_cygdrive_prefix" = x; then 25145 # As a simple fix, exclude /usr/bin since it's not a real path. 25146 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25147 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25148 # a path prefixed by /cygdrive for fixpath to work. 25149 new_path="$CYGWIN_ROOT_PATH$input_path" 25150 fi 25151 fi 25152 25153 25154 if test "x$path" != "x$new_path"; then 25155 BOOT_JDK="$new_path" 25156 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25157 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25158 fi 25159 25160 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25161 25162 path="$BOOT_JDK" 25163 has_colon=`$ECHO $path | $GREP ^.:` 25164 new_path="$path" 25165 if test "x$has_colon" = x; then 25166 # Not in mixed or Windows style, start by that. 25167 new_path=`cmd //c echo $path` 25168 fi 25169 25170 25171 input_path="$new_path" 25172 # Check if we need to convert this using DOS-style short mode. If the path 25173 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25174 # take no chances and rewrite it. 25175 # Note: m4 eats our [], so we need to use [ and ] instead. 25176 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25177 if test "x$has_forbidden_chars" != x; then 25178 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25179 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25180 fi 25181 25182 25183 windows_path="$new_path" 25184 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25185 unix_path=`$CYGPATH -u "$windows_path"` 25186 new_path="$unix_path" 25187 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25188 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25189 new_path="$unix_path" 25190 fi 25191 25192 if test "x$path" != "x$new_path"; then 25193 BOOT_JDK="$new_path" 25194 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25195 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25196 fi 25197 25198 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25199 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25200 25201 else 25202 # We're on a unix platform. Hooray! :) 25203 path="$BOOT_JDK" 25204 has_space=`$ECHO "$path" | $GREP " "` 25205 if test "x$has_space" != x; then 25206 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25207 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25208 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25209 fi 25210 25211 # Use eval to expand a potential ~ 25212 eval path="$path" 25213 if test ! -f "$path" && test ! -d "$path"; then 25214 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25215 fi 25216 25217 if test -d "$path"; then 25218 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25219 else 25220 dir="`$DIRNAME "$path"`" 25221 base="`$BASENAME "$path"`" 25222 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25223 fi 25224 fi 25225 fi 25226 25227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25228 $as_echo_n "checking for Boot JDK... " >&6; } 25229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25230 $as_echo "$BOOT_JDK" >&6; } 25231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25232 $as_echo_n "checking Boot JDK version... " >&6; } 25233 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25235 $as_echo "$BOOT_JDK_VERSION" >&6; } 25236 fi # end check jdk version 25237 fi # end check javac 25238 fi # end check java 25239 fi # end check boot jdk found 25240 fi 25241 25242 25243 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 25244 25245 if test "x$BOOT_JDK_FOUND" = xno; then 25246 # Now execute the test 25247 25248 # Extract the first word of "javac", so it can be a program name with args. 25249 set dummy javac; ac_word=$2 25250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25251 $as_echo_n "checking for $ac_word... " >&6; } 25252 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 25253 $as_echo_n "(cached) " >&6 25254 else 25255 case $JAVAC_CHECK in 25256 [\\/]* | ?:[\\/]*) 25257 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 25258 ;; 25259 *) 25260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25261 for as_dir in $PATH 25262 do 25263 IFS=$as_save_IFS 25264 test -z "$as_dir" && as_dir=. 25265 for ac_exec_ext in '' $ac_executable_extensions; do 25266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25267 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 25268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25269 break 2 25270 fi 25271 done 25272 done 25273 IFS=$as_save_IFS 25274 25275 ;; 25276 esac 25277 fi 25278 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 25279 if test -n "$JAVAC_CHECK"; then 25280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 25281 $as_echo "$JAVAC_CHECK" >&6; } 25282 else 25283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25284 $as_echo "no" >&6; } 25285 fi 25286 25287 25288 # Extract the first word of "java", so it can be a program name with args. 25289 set dummy java; ac_word=$2 25290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25291 $as_echo_n "checking for $ac_word... " >&6; } 25292 if ${ac_cv_path_JAVA_CHECK+:} false; then : 25293 $as_echo_n "(cached) " >&6 25294 else 25295 case $JAVA_CHECK in 25296 [\\/]* | ?:[\\/]*) 25297 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 25298 ;; 25299 *) 25300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25301 for as_dir in $PATH 25302 do 25303 IFS=$as_save_IFS 25304 test -z "$as_dir" && as_dir=. 25305 for ac_exec_ext in '' $ac_executable_extensions; do 25306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25307 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 25308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25309 break 2 25310 fi 25311 done 25312 done 25313 IFS=$as_save_IFS 25314 25315 ;; 25316 esac 25317 fi 25318 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 25319 if test -n "$JAVA_CHECK"; then 25320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 25321 $as_echo "$JAVA_CHECK" >&6; } 25322 else 25323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25324 $as_echo "no" >&6; } 25325 fi 25326 25327 25328 BINARY="$JAVAC_CHECK" 25329 if test "x$JAVAC_CHECK" = x; then 25330 BINARY="$JAVA_CHECK" 25331 fi 25332 if test "x$BINARY" != x; then 25333 # So there is a java(c) binary, it might be part of a JDK. 25334 # Lets find the JDK/JRE directory by following symbolic links. 25335 # Linux/GNU systems often have links from /usr/bin/java to 25336 # /etc/alternatives/java to the real JDK binary. 25337 25338 if test "x$OPENJDK_BUILD_OS" != xwindows; then 25339 # Follow a chain of symbolic links. Use readlink 25340 # where it exists, else fall back to horribly 25341 # complicated shell code. 25342 if test "x$READLINK_TESTED" != yes; then 25343 # On MacOSX there is a readlink tool with a different 25344 # purpose than the GNU readlink tool. Check the found readlink. 25345 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 25346 if test "x$ISGNU" = x; then 25347 # A readlink that we do not know how to use. 25348 # Are there other non-GNU readlinks out there? 25349 READLINK_TESTED=yes 25350 READLINK= 25351 fi 25352 fi 25353 25354 if test "x$READLINK" != x; then 25355 BINARY=`$READLINK -f $BINARY` 25356 else 25357 # Save the current directory for restoring afterwards 25358 STARTDIR=$PWD 25359 COUNTER=0 25360 sym_link_dir=`$DIRNAME $BINARY` 25361 sym_link_file=`$BASENAME $BINARY` 25362 cd $sym_link_dir 25363 # Use -P flag to resolve symlinks in directories. 25364 cd `$THEPWDCMD -P` 25365 sym_link_dir=`$THEPWDCMD -P` 25366 # Resolve file symlinks 25367 while test $COUNTER -lt 20; do 25368 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 25369 if test "x$ISLINK" == x; then 25370 # This is not a symbolic link! We are done! 25371 break 25372 fi 25373 # Again resolve directory symlinks since the target of the just found 25374 # link could be in a different directory 25375 cd `$DIRNAME $ISLINK` 25376 sym_link_dir=`$THEPWDCMD -P` 25377 sym_link_file=`$BASENAME $ISLINK` 25378 let COUNTER=COUNTER+1 25379 done 25380 cd $STARTDIR 25381 BINARY=$sym_link_dir/$sym_link_file 25382 fi 25383 fi 25384 25385 BOOT_JDK=`dirname "$BINARY"` 25386 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 25387 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 25388 # Looks like we found ourselves an JDK 25389 BOOT_JDK_FOUND=maybe 25390 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 25391 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 25392 fi 25393 fi 25394 25395 25396 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25397 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25398 # Do we have a bin/java? 25399 if test ! -x "$BOOT_JDK/bin/java"; then 25400 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25401 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25402 BOOT_JDK_FOUND=no 25403 else 25404 # Do we have a bin/javac? 25405 if test ! -x "$BOOT_JDK/bin/javac"; then 25406 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25407 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25408 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25409 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25410 BOOT_JDK_FOUND=no 25411 else 25412 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25413 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25414 25415 # Extra M4 quote needed to protect [] in grep expression. 25416 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25417 if test "x$FOUND_CORRECT_VERSION" = x; then 25418 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25419 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25420 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25421 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25422 BOOT_JDK_FOUND=no 25423 else 25424 # We're done! :-) 25425 BOOT_JDK_FOUND=yes 25426 25427 # Only process if variable expands to non-empty 25428 25429 if test "x$BOOT_JDK" != x; then 25430 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25431 25432 # Input might be given as Windows format, start by converting to 25433 # unix format. 25434 path="$BOOT_JDK" 25435 new_path=`$CYGPATH -u "$path"` 25436 25437 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25438 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25439 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25440 # "foo.exe" is OK but "foo" is an error. 25441 # 25442 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25443 # It is also a way to make sure we got the proper file name for the real test later on. 25444 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25445 if test "x$test_shortpath" = x; then 25446 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25447 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25448 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25449 fi 25450 25451 # Call helper function which possibly converts this using DOS-style short mode. 25452 # If so, the updated path is stored in $new_path. 25453 25454 input_path="$new_path" 25455 # Check if we need to convert this using DOS-style short mode. If the path 25456 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25457 # take no chances and rewrite it. 25458 # Note: m4 eats our [], so we need to use [ and ] instead. 25459 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25460 if test "x$has_forbidden_chars" != x; then 25461 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25462 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25463 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25464 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25465 # Going to short mode and back again did indeed matter. Since short mode is 25466 # case insensitive, let's make it lowercase to improve readability. 25467 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25468 # Now convert it back to Unix-style (cygpath) 25469 input_path=`$CYGPATH -u "$shortmode_path"` 25470 new_path="$input_path" 25471 fi 25472 fi 25473 25474 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25475 if test "x$test_cygdrive_prefix" = x; then 25476 # As a simple fix, exclude /usr/bin since it's not a real path. 25477 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25478 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25479 # a path prefixed by /cygdrive for fixpath to work. 25480 new_path="$CYGWIN_ROOT_PATH$input_path" 25481 fi 25482 fi 25483 25484 25485 if test "x$path" != "x$new_path"; then 25486 BOOT_JDK="$new_path" 25487 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25488 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25489 fi 25490 25491 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25492 25493 path="$BOOT_JDK" 25494 has_colon=`$ECHO $path | $GREP ^.:` 25495 new_path="$path" 25496 if test "x$has_colon" = x; then 25497 # Not in mixed or Windows style, start by that. 25498 new_path=`cmd //c echo $path` 25499 fi 25500 25501 25502 input_path="$new_path" 25503 # Check if we need to convert this using DOS-style short mode. If the path 25504 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25505 # take no chances and rewrite it. 25506 # Note: m4 eats our [], so we need to use [ and ] instead. 25507 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25508 if test "x$has_forbidden_chars" != x; then 25509 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25510 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25511 fi 25512 25513 25514 windows_path="$new_path" 25515 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25516 unix_path=`$CYGPATH -u "$windows_path"` 25517 new_path="$unix_path" 25518 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25519 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25520 new_path="$unix_path" 25521 fi 25522 25523 if test "x$path" != "x$new_path"; then 25524 BOOT_JDK="$new_path" 25525 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25526 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25527 fi 25528 25529 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25530 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25531 25532 else 25533 # We're on a unix platform. Hooray! :) 25534 path="$BOOT_JDK" 25535 has_space=`$ECHO "$path" | $GREP " "` 25536 if test "x$has_space" != x; then 25537 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25538 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25539 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25540 fi 25541 25542 # Use eval to expand a potential ~ 25543 eval path="$path" 25544 if test ! -f "$path" && test ! -d "$path"; then 25545 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25546 fi 25547 25548 if test -d "$path"; then 25549 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25550 else 25551 dir="`$DIRNAME "$path"`" 25552 base="`$BASENAME "$path"`" 25553 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25554 fi 25555 fi 25556 fi 25557 25558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25559 $as_echo_n "checking for Boot JDK... " >&6; } 25560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25561 $as_echo "$BOOT_JDK" >&6; } 25562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25563 $as_echo_n "checking Boot JDK version... " >&6; } 25564 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25566 $as_echo "$BOOT_JDK_VERSION" >&6; } 25567 fi # end check jdk version 25568 fi # end check javac 25569 fi # end check java 25570 fi # end check boot jdk found 25571 fi 25572 25573 25574 # Test: Is there a JDK installed in default, well-known locations? 25575 25576 if test "x$BOOT_JDK_FOUND" = xno; then 25577 # Now execute the test 25578 25579 if test "x$OPENJDK_TARGET_OS" = xwindows; then 25580 25581 if test "x$BOOT_JDK_FOUND" = xno; then 25582 # Now execute the test 25583 25584 if test "x$ProgramW6432" != x; then 25585 VIRTUAL_DIR="$ProgramW6432/Java" 25586 25587 windows_path="$VIRTUAL_DIR" 25588 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25589 unix_path=`$CYGPATH -u "$windows_path"` 25590 VIRTUAL_DIR="$unix_path" 25591 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25592 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25593 VIRTUAL_DIR="$unix_path" 25594 fi 25595 25596 25597 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 25598 BOOT_JDK_SUFFIX="" 25599 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 25600 if test "x$ALL_JDKS_FOUND" != x; then 25601 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 25602 25603 if test "x$BOOT_JDK_FOUND" = xno; then 25604 # Now execute the test 25605 25606 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 25607 if test -d "$BOOT_JDK"; then 25608 BOOT_JDK_FOUND=maybe 25609 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 25610 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 25611 fi 25612 25613 25614 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25615 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25616 # Do we have a bin/java? 25617 if test ! -x "$BOOT_JDK/bin/java"; then 25618 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25619 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25620 BOOT_JDK_FOUND=no 25621 else 25622 # Do we have a bin/javac? 25623 if test ! -x "$BOOT_JDK/bin/javac"; then 25624 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25625 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25626 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25627 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25628 BOOT_JDK_FOUND=no 25629 else 25630 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25631 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25632 25633 # Extra M4 quote needed to protect [] in grep expression. 25634 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25635 if test "x$FOUND_CORRECT_VERSION" = x; then 25636 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25637 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25638 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25639 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25640 BOOT_JDK_FOUND=no 25641 else 25642 # We're done! :-) 25643 BOOT_JDK_FOUND=yes 25644 25645 # Only process if variable expands to non-empty 25646 25647 if test "x$BOOT_JDK" != x; then 25648 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25649 25650 # Input might be given as Windows format, start by converting to 25651 # unix format. 25652 path="$BOOT_JDK" 25653 new_path=`$CYGPATH -u "$path"` 25654 25655 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25656 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25657 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25658 # "foo.exe" is OK but "foo" is an error. 25659 # 25660 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25661 # It is also a way to make sure we got the proper file name for the real test later on. 25662 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25663 if test "x$test_shortpath" = x; then 25664 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25665 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25666 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25667 fi 25668 25669 # Call helper function which possibly converts this using DOS-style short mode. 25670 # If so, the updated path is stored in $new_path. 25671 25672 input_path="$new_path" 25673 # Check if we need to convert this using DOS-style short mode. If the path 25674 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25675 # take no chances and rewrite it. 25676 # Note: m4 eats our [], so we need to use [ and ] instead. 25677 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25678 if test "x$has_forbidden_chars" != x; then 25679 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25680 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25681 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25682 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25683 # Going to short mode and back again did indeed matter. Since short mode is 25684 # case insensitive, let's make it lowercase to improve readability. 25685 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25686 # Now convert it back to Unix-style (cygpath) 25687 input_path=`$CYGPATH -u "$shortmode_path"` 25688 new_path="$input_path" 25689 fi 25690 fi 25691 25692 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25693 if test "x$test_cygdrive_prefix" = x; then 25694 # As a simple fix, exclude /usr/bin since it's not a real path. 25695 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25696 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25697 # a path prefixed by /cygdrive for fixpath to work. 25698 new_path="$CYGWIN_ROOT_PATH$input_path" 25699 fi 25700 fi 25701 25702 25703 if test "x$path" != "x$new_path"; then 25704 BOOT_JDK="$new_path" 25705 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25706 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25707 fi 25708 25709 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25710 25711 path="$BOOT_JDK" 25712 has_colon=`$ECHO $path | $GREP ^.:` 25713 new_path="$path" 25714 if test "x$has_colon" = x; then 25715 # Not in mixed or Windows style, start by that. 25716 new_path=`cmd //c echo $path` 25717 fi 25718 25719 25720 input_path="$new_path" 25721 # Check if we need to convert this using DOS-style short mode. If the path 25722 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25723 # take no chances and rewrite it. 25724 # Note: m4 eats our [], so we need to use [ and ] instead. 25725 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25726 if test "x$has_forbidden_chars" != x; then 25727 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25728 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25729 fi 25730 25731 25732 windows_path="$new_path" 25733 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25734 unix_path=`$CYGPATH -u "$windows_path"` 25735 new_path="$unix_path" 25736 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25737 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25738 new_path="$unix_path" 25739 fi 25740 25741 if test "x$path" != "x$new_path"; then 25742 BOOT_JDK="$new_path" 25743 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25744 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25745 fi 25746 25747 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25748 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25749 25750 else 25751 # We're on a unix platform. Hooray! :) 25752 path="$BOOT_JDK" 25753 has_space=`$ECHO "$path" | $GREP " "` 25754 if test "x$has_space" != x; then 25755 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25756 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25757 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25758 fi 25759 25760 # Use eval to expand a potential ~ 25761 eval path="$path" 25762 if test ! -f "$path" && test ! -d "$path"; then 25763 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25764 fi 25765 25766 if test -d "$path"; then 25767 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25768 else 25769 dir="`$DIRNAME "$path"`" 25770 base="`$BASENAME "$path"`" 25771 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25772 fi 25773 fi 25774 fi 25775 25776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25777 $as_echo_n "checking for Boot JDK... " >&6; } 25778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25779 $as_echo "$BOOT_JDK" >&6; } 25780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25781 $as_echo_n "checking Boot JDK version... " >&6; } 25782 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25784 $as_echo "$BOOT_JDK_VERSION" >&6; } 25785 fi # end check jdk version 25786 fi # end check javac 25787 fi # end check java 25788 fi # end check boot jdk found 25789 fi 25790 25791 done 25792 fi 25793 25794 fi 25795 25796 25797 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25798 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25799 # Do we have a bin/java? 25800 if test ! -x "$BOOT_JDK/bin/java"; then 25801 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25802 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25803 BOOT_JDK_FOUND=no 25804 else 25805 # Do we have a bin/javac? 25806 if test ! -x "$BOOT_JDK/bin/javac"; then 25807 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25808 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25809 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25810 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25811 BOOT_JDK_FOUND=no 25812 else 25813 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25814 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25815 25816 # Extra M4 quote needed to protect [] in grep expression. 25817 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25818 if test "x$FOUND_CORRECT_VERSION" = x; then 25819 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25820 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25821 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25822 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25823 BOOT_JDK_FOUND=no 25824 else 25825 # We're done! :-) 25826 BOOT_JDK_FOUND=yes 25827 25828 # Only process if variable expands to non-empty 25829 25830 if test "x$BOOT_JDK" != x; then 25831 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25832 25833 # Input might be given as Windows format, start by converting to 25834 # unix format. 25835 path="$BOOT_JDK" 25836 new_path=`$CYGPATH -u "$path"` 25837 25838 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25839 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25840 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25841 # "foo.exe" is OK but "foo" is an error. 25842 # 25843 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25844 # It is also a way to make sure we got the proper file name for the real test later on. 25845 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25846 if test "x$test_shortpath" = x; then 25847 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25848 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25849 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25850 fi 25851 25852 # Call helper function which possibly converts this using DOS-style short mode. 25853 # If so, the updated path is stored in $new_path. 25854 25855 input_path="$new_path" 25856 # Check if we need to convert this using DOS-style short mode. If the path 25857 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25858 # take no chances and rewrite it. 25859 # Note: m4 eats our [], so we need to use [ and ] instead. 25860 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25861 if test "x$has_forbidden_chars" != x; then 25862 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25863 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25864 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25865 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25866 # Going to short mode and back again did indeed matter. Since short mode is 25867 # case insensitive, let's make it lowercase to improve readability. 25868 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25869 # Now convert it back to Unix-style (cygpath) 25870 input_path=`$CYGPATH -u "$shortmode_path"` 25871 new_path="$input_path" 25872 fi 25873 fi 25874 25875 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25876 if test "x$test_cygdrive_prefix" = x; then 25877 # As a simple fix, exclude /usr/bin since it's not a real path. 25878 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25879 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25880 # a path prefixed by /cygdrive for fixpath to work. 25881 new_path="$CYGWIN_ROOT_PATH$input_path" 25882 fi 25883 fi 25884 25885 25886 if test "x$path" != "x$new_path"; then 25887 BOOT_JDK="$new_path" 25888 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25889 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25890 fi 25891 25892 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25893 25894 path="$BOOT_JDK" 25895 has_colon=`$ECHO $path | $GREP ^.:` 25896 new_path="$path" 25897 if test "x$has_colon" = x; then 25898 # Not in mixed or Windows style, start by that. 25899 new_path=`cmd //c echo $path` 25900 fi 25901 25902 25903 input_path="$new_path" 25904 # Check if we need to convert this using DOS-style short mode. If the path 25905 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25906 # take no chances and rewrite it. 25907 # Note: m4 eats our [], so we need to use [ and ] instead. 25908 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25909 if test "x$has_forbidden_chars" != x; then 25910 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25911 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25912 fi 25913 25914 25915 windows_path="$new_path" 25916 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25917 unix_path=`$CYGPATH -u "$windows_path"` 25918 new_path="$unix_path" 25919 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25920 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25921 new_path="$unix_path" 25922 fi 25923 25924 if test "x$path" != "x$new_path"; then 25925 BOOT_JDK="$new_path" 25926 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25927 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25928 fi 25929 25930 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25931 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25932 25933 else 25934 # We're on a unix platform. Hooray! :) 25935 path="$BOOT_JDK" 25936 has_space=`$ECHO "$path" | $GREP " "` 25937 if test "x$has_space" != x; then 25938 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25939 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25940 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25941 fi 25942 25943 # Use eval to expand a potential ~ 25944 eval path="$path" 25945 if test ! -f "$path" && test ! -d "$path"; then 25946 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25947 fi 25948 25949 if test -d "$path"; then 25950 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25951 else 25952 dir="`$DIRNAME "$path"`" 25953 base="`$BASENAME "$path"`" 25954 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25955 fi 25956 fi 25957 fi 25958 25959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25960 $as_echo_n "checking for Boot JDK... " >&6; } 25961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25962 $as_echo "$BOOT_JDK" >&6; } 25963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25964 $as_echo_n "checking Boot JDK version... " >&6; } 25965 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25967 $as_echo "$BOOT_JDK_VERSION" >&6; } 25968 fi # end check jdk version 25969 fi # end check javac 25970 fi # end check java 25971 fi # end check boot jdk found 25972 fi 25973 25974 25975 if test "x$BOOT_JDK_FOUND" = xno; then 25976 # Now execute the test 25977 25978 if test "x$PROGRAMW6432" != x; then 25979 VIRTUAL_DIR="$PROGRAMW6432/Java" 25980 25981 windows_path="$VIRTUAL_DIR" 25982 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25983 unix_path=`$CYGPATH -u "$windows_path"` 25984 VIRTUAL_DIR="$unix_path" 25985 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25986 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25987 VIRTUAL_DIR="$unix_path" 25988 fi 25989 25990 25991 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 25992 BOOT_JDK_SUFFIX="" 25993 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 25994 if test "x$ALL_JDKS_FOUND" != x; then 25995 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 25996 25997 if test "x$BOOT_JDK_FOUND" = xno; then 25998 # Now execute the test 25999 26000 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 26001 if test -d "$BOOT_JDK"; then 26002 BOOT_JDK_FOUND=maybe 26003 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 26004 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 26005 fi 26006 26007 26008 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26009 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26010 # Do we have a bin/java? 26011 if test ! -x "$BOOT_JDK/bin/java"; then 26012 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26013 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26014 BOOT_JDK_FOUND=no 26015 else 26016 # Do we have a bin/javac? 26017 if test ! -x "$BOOT_JDK/bin/javac"; then 26018 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26019 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26020 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26021 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26022 BOOT_JDK_FOUND=no 26023 else 26024 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26025 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 26026 26027 # Extra M4 quote needed to protect [] in grep expression. 26028 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26029 if test "x$FOUND_CORRECT_VERSION" = x; then 26030 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26031 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26032 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26033 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26034 BOOT_JDK_FOUND=no 26035 else 26036 # We're done! :-) 26037 BOOT_JDK_FOUND=yes 26038 26039 # Only process if variable expands to non-empty 26040 26041 if test "x$BOOT_JDK" != x; then 26042 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26043 26044 # Input might be given as Windows format, start by converting to 26045 # unix format. 26046 path="$BOOT_JDK" 26047 new_path=`$CYGPATH -u "$path"` 26048 26049 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26050 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26051 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26052 # "foo.exe" is OK but "foo" is an error. 26053 # 26054 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26055 # It is also a way to make sure we got the proper file name for the real test later on. 26056 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26057 if test "x$test_shortpath" = x; then 26058 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26059 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26060 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26061 fi 26062 26063 # Call helper function which possibly converts this using DOS-style short mode. 26064 # If so, the updated path is stored in $new_path. 26065 26066 input_path="$new_path" 26067 # Check if we need to convert this using DOS-style short mode. If the path 26068 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26069 # take no chances and rewrite it. 26070 # Note: m4 eats our [], so we need to use [ and ] instead. 26071 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26072 if test "x$has_forbidden_chars" != x; then 26073 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26074 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26075 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26076 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26077 # Going to short mode and back again did indeed matter. Since short mode is 26078 # case insensitive, let's make it lowercase to improve readability. 26079 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26080 # Now convert it back to Unix-style (cygpath) 26081 input_path=`$CYGPATH -u "$shortmode_path"` 26082 new_path="$input_path" 26083 fi 26084 fi 26085 26086 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26087 if test "x$test_cygdrive_prefix" = x; then 26088 # As a simple fix, exclude /usr/bin since it's not a real path. 26089 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26090 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26091 # a path prefixed by /cygdrive for fixpath to work. 26092 new_path="$CYGWIN_ROOT_PATH$input_path" 26093 fi 26094 fi 26095 26096 26097 if test "x$path" != "x$new_path"; then 26098 BOOT_JDK="$new_path" 26099 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26100 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26101 fi 26102 26103 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26104 26105 path="$BOOT_JDK" 26106 has_colon=`$ECHO $path | $GREP ^.:` 26107 new_path="$path" 26108 if test "x$has_colon" = x; then 26109 # Not in mixed or Windows style, start by that. 26110 new_path=`cmd //c echo $path` 26111 fi 26112 26113 26114 input_path="$new_path" 26115 # Check if we need to convert this using DOS-style short mode. If the path 26116 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26117 # take no chances and rewrite it. 26118 # Note: m4 eats our [], so we need to use [ and ] instead. 26119 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26120 if test "x$has_forbidden_chars" != x; then 26121 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26122 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26123 fi 26124 26125 26126 windows_path="$new_path" 26127 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26128 unix_path=`$CYGPATH -u "$windows_path"` 26129 new_path="$unix_path" 26130 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26131 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26132 new_path="$unix_path" 26133 fi 26134 26135 if test "x$path" != "x$new_path"; then 26136 BOOT_JDK="$new_path" 26137 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26138 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26139 fi 26140 26141 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26142 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26143 26144 else 26145 # We're on a unix platform. Hooray! :) 26146 path="$BOOT_JDK" 26147 has_space=`$ECHO "$path" | $GREP " "` 26148 if test "x$has_space" != x; then 26149 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26150 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26151 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26152 fi 26153 26154 # Use eval to expand a potential ~ 26155 eval path="$path" 26156 if test ! -f "$path" && test ! -d "$path"; then 26157 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26158 fi 26159 26160 if test -d "$path"; then 26161 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26162 else 26163 dir="`$DIRNAME "$path"`" 26164 base="`$BASENAME "$path"`" 26165 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26166 fi 26167 fi 26168 fi 26169 26170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26171 $as_echo_n "checking for Boot JDK... " >&6; } 26172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26173 $as_echo "$BOOT_JDK" >&6; } 26174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26175 $as_echo_n "checking Boot JDK version... " >&6; } 26176 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26178 $as_echo "$BOOT_JDK_VERSION" >&6; } 26179 fi # end check jdk version 26180 fi # end check javac 26181 fi # end check java 26182 fi # end check boot jdk found 26183 fi 26184 26185 done 26186 fi 26187 26188 fi 26189 26190 26191 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26192 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26193 # Do we have a bin/java? 26194 if test ! -x "$BOOT_JDK/bin/java"; then 26195 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26196 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26197 BOOT_JDK_FOUND=no 26198 else 26199 # Do we have a bin/javac? 26200 if test ! -x "$BOOT_JDK/bin/javac"; then 26201 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26202 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26203 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26204 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26205 BOOT_JDK_FOUND=no 26206 else 26207 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26208 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 26209 26210 # Extra M4 quote needed to protect [] in grep expression. 26211 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26212 if test "x$FOUND_CORRECT_VERSION" = x; then 26213 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26214 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26215 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26216 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26217 BOOT_JDK_FOUND=no 26218 else 26219 # We're done! :-) 26220 BOOT_JDK_FOUND=yes 26221 26222 # Only process if variable expands to non-empty 26223 26224 if test "x$BOOT_JDK" != x; then 26225 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26226 26227 # Input might be given as Windows format, start by converting to 26228 # unix format. 26229 path="$BOOT_JDK" 26230 new_path=`$CYGPATH -u "$path"` 26231 26232 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26233 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26234 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26235 # "foo.exe" is OK but "foo" is an error. 26236 # 26237 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26238 # It is also a way to make sure we got the proper file name for the real test later on. 26239 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26240 if test "x$test_shortpath" = x; then 26241 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26242 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26243 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26244 fi 26245 26246 # Call helper function which possibly converts this using DOS-style short mode. 26247 # If so, the updated path is stored in $new_path. 26248 26249 input_path="$new_path" 26250 # Check if we need to convert this using DOS-style short mode. If the path 26251 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26252 # take no chances and rewrite it. 26253 # Note: m4 eats our [], so we need to use [ and ] instead. 26254 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26255 if test "x$has_forbidden_chars" != x; then 26256 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26257 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26258 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26259 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26260 # Going to short mode and back again did indeed matter. Since short mode is 26261 # case insensitive, let's make it lowercase to improve readability. 26262 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26263 # Now convert it back to Unix-style (cygpath) 26264 input_path=`$CYGPATH -u "$shortmode_path"` 26265 new_path="$input_path" 26266 fi 26267 fi 26268 26269 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26270 if test "x$test_cygdrive_prefix" = x; then 26271 # As a simple fix, exclude /usr/bin since it's not a real path. 26272 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26273 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26274 # a path prefixed by /cygdrive for fixpath to work. 26275 new_path="$CYGWIN_ROOT_PATH$input_path" 26276 fi 26277 fi 26278 26279 26280 if test "x$path" != "x$new_path"; then 26281 BOOT_JDK="$new_path" 26282 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26283 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26284 fi 26285 26286 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26287 26288 path="$BOOT_JDK" 26289 has_colon=`$ECHO $path | $GREP ^.:` 26290 new_path="$path" 26291 if test "x$has_colon" = x; then 26292 # Not in mixed or Windows style, start by that. 26293 new_path=`cmd //c echo $path` 26294 fi 26295 26296 26297 input_path="$new_path" 26298 # Check if we need to convert this using DOS-style short mode. If the path 26299 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26300 # take no chances and rewrite it. 26301 # Note: m4 eats our [], so we need to use [ and ] instead. 26302 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26303 if test "x$has_forbidden_chars" != x; then 26304 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26305 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26306 fi 26307 26308 26309 windows_path="$new_path" 26310 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26311 unix_path=`$CYGPATH -u "$windows_path"` 26312 new_path="$unix_path" 26313 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26314 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26315 new_path="$unix_path" 26316 fi 26317 26318 if test "x$path" != "x$new_path"; then 26319 BOOT_JDK="$new_path" 26320 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26321 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26322 fi 26323 26324 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26325 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26326 26327 else 26328 # We're on a unix platform. Hooray! :) 26329 path="$BOOT_JDK" 26330 has_space=`$ECHO "$path" | $GREP " "` 26331 if test "x$has_space" != x; then 26332 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26333 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26334 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26335 fi 26336 26337 # Use eval to expand a potential ~ 26338 eval path="$path" 26339 if test ! -f "$path" && test ! -d "$path"; then 26340 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26341 fi 26342 26343 if test -d "$path"; then 26344 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26345 else 26346 dir="`$DIRNAME "$path"`" 26347 base="`$BASENAME "$path"`" 26348 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26349 fi 26350 fi 26351 fi 26352 26353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26354 $as_echo_n "checking for Boot JDK... " >&6; } 26355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26356 $as_echo "$BOOT_JDK" >&6; } 26357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26358 $as_echo_n "checking Boot JDK version... " >&6; } 26359 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26361 $as_echo "$BOOT_JDK_VERSION" >&6; } 26362 fi # end check jdk version 26363 fi # end check javac 26364 fi # end check java 26365 fi # end check boot jdk found 26366 fi 26367 26368 26369 if test "x$BOOT_JDK_FOUND" = xno; then 26370 # Now execute the test 26371 26372 if test "x$PROGRAMFILES" != x; then 26373 VIRTUAL_DIR="$PROGRAMFILES/Java" 26374 26375 windows_path="$VIRTUAL_DIR" 26376 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26377 unix_path=`$CYGPATH -u "$windows_path"` 26378 VIRTUAL_DIR="$unix_path" 26379 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26380 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26381 VIRTUAL_DIR="$unix_path" 26382 fi 26383 26384 26385 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 26386 BOOT_JDK_SUFFIX="" 26387 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 26388 if test "x$ALL_JDKS_FOUND" != x; then 26389 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 26390 26391 if test "x$BOOT_JDK_FOUND" = xno; then 26392 # Now execute the test 26393 26394 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 26395 if test -d "$BOOT_JDK"; then 26396 BOOT_JDK_FOUND=maybe 26397 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 26398 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 26399 fi 26400 26401 26402 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26403 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26404 # Do we have a bin/java? 26405 if test ! -x "$BOOT_JDK/bin/java"; then 26406 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26407 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26408 BOOT_JDK_FOUND=no 26409 else 26410 # Do we have a bin/javac? 26411 if test ! -x "$BOOT_JDK/bin/javac"; then 26412 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26413 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26414 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26415 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26416 BOOT_JDK_FOUND=no 26417 else 26418 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26419 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 26420 26421 # Extra M4 quote needed to protect [] in grep expression. 26422 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26423 if test "x$FOUND_CORRECT_VERSION" = x; then 26424 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26425 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26426 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26427 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26428 BOOT_JDK_FOUND=no 26429 else 26430 # We're done! :-) 26431 BOOT_JDK_FOUND=yes 26432 26433 # Only process if variable expands to non-empty 26434 26435 if test "x$BOOT_JDK" != x; then 26436 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26437 26438 # Input might be given as Windows format, start by converting to 26439 # unix format. 26440 path="$BOOT_JDK" 26441 new_path=`$CYGPATH -u "$path"` 26442 26443 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26444 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26445 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26446 # "foo.exe" is OK but "foo" is an error. 26447 # 26448 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26449 # It is also a way to make sure we got the proper file name for the real test later on. 26450 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26451 if test "x$test_shortpath" = x; then 26452 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26453 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26454 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26455 fi 26456 26457 # Call helper function which possibly converts this using DOS-style short mode. 26458 # If so, the updated path is stored in $new_path. 26459 26460 input_path="$new_path" 26461 # Check if we need to convert this using DOS-style short mode. If the path 26462 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26463 # take no chances and rewrite it. 26464 # Note: m4 eats our [], so we need to use [ and ] instead. 26465 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26466 if test "x$has_forbidden_chars" != x; then 26467 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26468 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26469 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26470 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26471 # Going to short mode and back again did indeed matter. Since short mode is 26472 # case insensitive, let's make it lowercase to improve readability. 26473 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26474 # Now convert it back to Unix-style (cygpath) 26475 input_path=`$CYGPATH -u "$shortmode_path"` 26476 new_path="$input_path" 26477 fi 26478 fi 26479 26480 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26481 if test "x$test_cygdrive_prefix" = x; then 26482 # As a simple fix, exclude /usr/bin since it's not a real path. 26483 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26484 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26485 # a path prefixed by /cygdrive for fixpath to work. 26486 new_path="$CYGWIN_ROOT_PATH$input_path" 26487 fi 26488 fi 26489 26490 26491 if test "x$path" != "x$new_path"; then 26492 BOOT_JDK="$new_path" 26493 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26494 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26495 fi 26496 26497 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26498 26499 path="$BOOT_JDK" 26500 has_colon=`$ECHO $path | $GREP ^.:` 26501 new_path="$path" 26502 if test "x$has_colon" = x; then 26503 # Not in mixed or Windows style, start by that. 26504 new_path=`cmd //c echo $path` 26505 fi 26506 26507 26508 input_path="$new_path" 26509 # Check if we need to convert this using DOS-style short mode. If the path 26510 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26511 # take no chances and rewrite it. 26512 # Note: m4 eats our [], so we need to use [ and ] instead. 26513 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26514 if test "x$has_forbidden_chars" != x; then 26515 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26516 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26517 fi 26518 26519 26520 windows_path="$new_path" 26521 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26522 unix_path=`$CYGPATH -u "$windows_path"` 26523 new_path="$unix_path" 26524 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26525 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26526 new_path="$unix_path" 26527 fi 26528 26529 if test "x$path" != "x$new_path"; then 26530 BOOT_JDK="$new_path" 26531 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26532 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26533 fi 26534 26535 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26536 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26537 26538 else 26539 # We're on a unix platform. Hooray! :) 26540 path="$BOOT_JDK" 26541 has_space=`$ECHO "$path" | $GREP " "` 26542 if test "x$has_space" != x; then 26543 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26544 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26545 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26546 fi 26547 26548 # Use eval to expand a potential ~ 26549 eval path="$path" 26550 if test ! -f "$path" && test ! -d "$path"; then 26551 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26552 fi 26553 26554 if test -d "$path"; then 26555 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26556 else 26557 dir="`$DIRNAME "$path"`" 26558 base="`$BASENAME "$path"`" 26559 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26560 fi 26561 fi 26562 fi 26563 26564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26565 $as_echo_n "checking for Boot JDK... " >&6; } 26566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26567 $as_echo "$BOOT_JDK" >&6; } 26568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26569 $as_echo_n "checking Boot JDK version... " >&6; } 26570 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26572 $as_echo "$BOOT_JDK_VERSION" >&6; } 26573 fi # end check jdk version 26574 fi # end check javac 26575 fi # end check java 26576 fi # end check boot jdk found 26577 fi 26578 26579 done 26580 fi 26581 26582 fi 26583 26584 26585 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26586 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26587 # Do we have a bin/java? 26588 if test ! -x "$BOOT_JDK/bin/java"; then 26589 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26590 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26591 BOOT_JDK_FOUND=no 26592 else 26593 # Do we have a bin/javac? 26594 if test ! -x "$BOOT_JDK/bin/javac"; then 26595 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26596 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26597 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26598 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26599 BOOT_JDK_FOUND=no 26600 else 26601 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26602 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 26603 26604 # Extra M4 quote needed to protect [] in grep expression. 26605 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26606 if test "x$FOUND_CORRECT_VERSION" = x; then 26607 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26608 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26609 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26610 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26611 BOOT_JDK_FOUND=no 26612 else 26613 # We're done! :-) 26614 BOOT_JDK_FOUND=yes 26615 26616 # Only process if variable expands to non-empty 26617 26618 if test "x$BOOT_JDK" != x; then 26619 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26620 26621 # Input might be given as Windows format, start by converting to 26622 # unix format. 26623 path="$BOOT_JDK" 26624 new_path=`$CYGPATH -u "$path"` 26625 26626 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26627 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26628 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26629 # "foo.exe" is OK but "foo" is an error. 26630 # 26631 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26632 # It is also a way to make sure we got the proper file name for the real test later on. 26633 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26634 if test "x$test_shortpath" = x; then 26635 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26636 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26637 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26638 fi 26639 26640 # Call helper function which possibly converts this using DOS-style short mode. 26641 # If so, the updated path is stored in $new_path. 26642 26643 input_path="$new_path" 26644 # Check if we need to convert this using DOS-style short mode. If the path 26645 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26646 # take no chances and rewrite it. 26647 # Note: m4 eats our [], so we need to use [ and ] instead. 26648 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26649 if test "x$has_forbidden_chars" != x; then 26650 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26651 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26652 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26653 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26654 # Going to short mode and back again did indeed matter. Since short mode is 26655 # case insensitive, let's make it lowercase to improve readability. 26656 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26657 # Now convert it back to Unix-style (cygpath) 26658 input_path=`$CYGPATH -u "$shortmode_path"` 26659 new_path="$input_path" 26660 fi 26661 fi 26662 26663 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26664 if test "x$test_cygdrive_prefix" = x; then 26665 # As a simple fix, exclude /usr/bin since it's not a real path. 26666 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26667 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26668 # a path prefixed by /cygdrive for fixpath to work. 26669 new_path="$CYGWIN_ROOT_PATH$input_path" 26670 fi 26671 fi 26672 26673 26674 if test "x$path" != "x$new_path"; then 26675 BOOT_JDK="$new_path" 26676 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26677 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26678 fi 26679 26680 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26681 26682 path="$BOOT_JDK" 26683 has_colon=`$ECHO $path | $GREP ^.:` 26684 new_path="$path" 26685 if test "x$has_colon" = x; then 26686 # Not in mixed or Windows style, start by that. 26687 new_path=`cmd //c echo $path` 26688 fi 26689 26690 26691 input_path="$new_path" 26692 # Check if we need to convert this using DOS-style short mode. If the path 26693 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26694 # take no chances and rewrite it. 26695 # Note: m4 eats our [], so we need to use [ and ] instead. 26696 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26697 if test "x$has_forbidden_chars" != x; then 26698 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26699 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26700 fi 26701 26702 26703 windows_path="$new_path" 26704 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26705 unix_path=`$CYGPATH -u "$windows_path"` 26706 new_path="$unix_path" 26707 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26708 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26709 new_path="$unix_path" 26710 fi 26711 26712 if test "x$path" != "x$new_path"; then 26713 BOOT_JDK="$new_path" 26714 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26715 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26716 fi 26717 26718 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26719 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26720 26721 else 26722 # We're on a unix platform. Hooray! :) 26723 path="$BOOT_JDK" 26724 has_space=`$ECHO "$path" | $GREP " "` 26725 if test "x$has_space" != x; then 26726 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26727 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26728 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26729 fi 26730 26731 # Use eval to expand a potential ~ 26732 eval path="$path" 26733 if test ! -f "$path" && test ! -d "$path"; then 26734 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26735 fi 26736 26737 if test -d "$path"; then 26738 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26739 else 26740 dir="`$DIRNAME "$path"`" 26741 base="`$BASENAME "$path"`" 26742 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26743 fi 26744 fi 26745 fi 26746 26747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26748 $as_echo_n "checking for Boot JDK... " >&6; } 26749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26750 $as_echo "$BOOT_JDK" >&6; } 26751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26752 $as_echo_n "checking Boot JDK version... " >&6; } 26753 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26755 $as_echo "$BOOT_JDK_VERSION" >&6; } 26756 fi # end check jdk version 26757 fi # end check javac 26758 fi # end check java 26759 fi # end check boot jdk found 26760 fi 26761 26762 26763 if test "x$BOOT_JDK_FOUND" = xno; then 26764 # Now execute the test 26765 26766 if test "x$ProgramFiles" != x; then 26767 VIRTUAL_DIR="$ProgramFiles/Java" 26768 26769 windows_path="$VIRTUAL_DIR" 26770 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26771 unix_path=`$CYGPATH -u "$windows_path"` 26772 VIRTUAL_DIR="$unix_path" 26773 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26774 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26775 VIRTUAL_DIR="$unix_path" 26776 fi 26777 26778 26779 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 26780 BOOT_JDK_SUFFIX="" 26781 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 26782 if test "x$ALL_JDKS_FOUND" != x; then 26783 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 26784 26785 if test "x$BOOT_JDK_FOUND" = xno; then 26786 # Now execute the test 26787 26788 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 26789 if test -d "$BOOT_JDK"; then 26790 BOOT_JDK_FOUND=maybe 26791 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 26792 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 26793 fi 26794 26795 26796 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26797 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26798 # Do we have a bin/java? 26799 if test ! -x "$BOOT_JDK/bin/java"; then 26800 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26801 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26802 BOOT_JDK_FOUND=no 26803 else 26804 # Do we have a bin/javac? 26805 if test ! -x "$BOOT_JDK/bin/javac"; then 26806 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26807 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26808 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26809 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26810 BOOT_JDK_FOUND=no 26811 else 26812 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26813 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 26814 26815 # Extra M4 quote needed to protect [] in grep expression. 26816 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26817 if test "x$FOUND_CORRECT_VERSION" = x; then 26818 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26819 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26820 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26821 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26822 BOOT_JDK_FOUND=no 26823 else 26824 # We're done! :-) 26825 BOOT_JDK_FOUND=yes 26826 26827 # Only process if variable expands to non-empty 26828 26829 if test "x$BOOT_JDK" != x; then 26830 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26831 26832 # Input might be given as Windows format, start by converting to 26833 # unix format. 26834 path="$BOOT_JDK" 26835 new_path=`$CYGPATH -u "$path"` 26836 26837 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26838 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26839 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26840 # "foo.exe" is OK but "foo" is an error. 26841 # 26842 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26843 # It is also a way to make sure we got the proper file name for the real test later on. 26844 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26845 if test "x$test_shortpath" = x; then 26846 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26847 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26848 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26849 fi 26850 26851 # Call helper function which possibly converts this using DOS-style short mode. 26852 # If so, the updated path is stored in $new_path. 26853 26854 input_path="$new_path" 26855 # Check if we need to convert this using DOS-style short mode. If the path 26856 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26857 # take no chances and rewrite it. 26858 # Note: m4 eats our [], so we need to use [ and ] instead. 26859 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26860 if test "x$has_forbidden_chars" != x; then 26861 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26862 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26863 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26864 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26865 # Going to short mode and back again did indeed matter. Since short mode is 26866 # case insensitive, let's make it lowercase to improve readability. 26867 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26868 # Now convert it back to Unix-style (cygpath) 26869 input_path=`$CYGPATH -u "$shortmode_path"` 26870 new_path="$input_path" 26871 fi 26872 fi 26873 26874 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26875 if test "x$test_cygdrive_prefix" = x; then 26876 # As a simple fix, exclude /usr/bin since it's not a real path. 26877 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26878 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26879 # a path prefixed by /cygdrive for fixpath to work. 26880 new_path="$CYGWIN_ROOT_PATH$input_path" 26881 fi 26882 fi 26883 26884 26885 if test "x$path" != "x$new_path"; then 26886 BOOT_JDK="$new_path" 26887 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26888 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26889 fi 26890 26891 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26892 26893 path="$BOOT_JDK" 26894 has_colon=`$ECHO $path | $GREP ^.:` 26895 new_path="$path" 26896 if test "x$has_colon" = x; then 26897 # Not in mixed or Windows style, start by that. 26898 new_path=`cmd //c echo $path` 26899 fi 26900 26901 26902 input_path="$new_path" 26903 # Check if we need to convert this using DOS-style short mode. If the path 26904 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26905 # take no chances and rewrite it. 26906 # Note: m4 eats our [], so we need to use [ and ] instead. 26907 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26908 if test "x$has_forbidden_chars" != x; then 26909 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26910 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26911 fi 26912 26913 26914 windows_path="$new_path" 26915 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26916 unix_path=`$CYGPATH -u "$windows_path"` 26917 new_path="$unix_path" 26918 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26919 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26920 new_path="$unix_path" 26921 fi 26922 26923 if test "x$path" != "x$new_path"; then 26924 BOOT_JDK="$new_path" 26925 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26926 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26927 fi 26928 26929 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26930 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26931 26932 else 26933 # We're on a unix platform. Hooray! :) 26934 path="$BOOT_JDK" 26935 has_space=`$ECHO "$path" | $GREP " "` 26936 if test "x$has_space" != x; then 26937 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26938 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26939 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26940 fi 26941 26942 # Use eval to expand a potential ~ 26943 eval path="$path" 26944 if test ! -f "$path" && test ! -d "$path"; then 26945 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26946 fi 26947 26948 if test -d "$path"; then 26949 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26950 else 26951 dir="`$DIRNAME "$path"`" 26952 base="`$BASENAME "$path"`" 26953 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26954 fi 26955 fi 26956 fi 26957 26958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26959 $as_echo_n "checking for Boot JDK... " >&6; } 26960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26961 $as_echo "$BOOT_JDK" >&6; } 26962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26963 $as_echo_n "checking Boot JDK version... " >&6; } 26964 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26966 $as_echo "$BOOT_JDK_VERSION" >&6; } 26967 fi # end check jdk version 26968 fi # end check javac 26969 fi # end check java 26970 fi # end check boot jdk found 26971 fi 26972 26973 done 26974 fi 26975 26976 fi 26977 26978 26979 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26980 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26981 # Do we have a bin/java? 26982 if test ! -x "$BOOT_JDK/bin/java"; then 26983 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26984 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26985 BOOT_JDK_FOUND=no 26986 else 26987 # Do we have a bin/javac? 26988 if test ! -x "$BOOT_JDK/bin/javac"; then 26989 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26990 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26991 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26992 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26993 BOOT_JDK_FOUND=no 26994 else 26995 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26996 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 26997 26998 # Extra M4 quote needed to protect [] in grep expression. 26999 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27000 if test "x$FOUND_CORRECT_VERSION" = x; then 27001 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27002 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27003 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27004 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27005 BOOT_JDK_FOUND=no 27006 else 27007 # We're done! :-) 27008 BOOT_JDK_FOUND=yes 27009 27010 # Only process if variable expands to non-empty 27011 27012 if test "x$BOOT_JDK" != x; then 27013 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27014 27015 # Input might be given as Windows format, start by converting to 27016 # unix format. 27017 path="$BOOT_JDK" 27018 new_path=`$CYGPATH -u "$path"` 27019 27020 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27021 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27022 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27023 # "foo.exe" is OK but "foo" is an error. 27024 # 27025 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27026 # It is also a way to make sure we got the proper file name for the real test later on. 27027 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27028 if test "x$test_shortpath" = x; then 27029 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27030 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27031 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27032 fi 27033 27034 # Call helper function which possibly converts this using DOS-style short mode. 27035 # If so, the updated path is stored in $new_path. 27036 27037 input_path="$new_path" 27038 # Check if we need to convert this using DOS-style short mode. If the path 27039 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27040 # take no chances and rewrite it. 27041 # Note: m4 eats our [], so we need to use [ and ] instead. 27042 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27043 if test "x$has_forbidden_chars" != x; then 27044 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27045 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27046 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27047 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27048 # Going to short mode and back again did indeed matter. Since short mode is 27049 # case insensitive, let's make it lowercase to improve readability. 27050 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27051 # Now convert it back to Unix-style (cygpath) 27052 input_path=`$CYGPATH -u "$shortmode_path"` 27053 new_path="$input_path" 27054 fi 27055 fi 27056 27057 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27058 if test "x$test_cygdrive_prefix" = x; then 27059 # As a simple fix, exclude /usr/bin since it's not a real path. 27060 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27061 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27062 # a path prefixed by /cygdrive for fixpath to work. 27063 new_path="$CYGWIN_ROOT_PATH$input_path" 27064 fi 27065 fi 27066 27067 27068 if test "x$path" != "x$new_path"; then 27069 BOOT_JDK="$new_path" 27070 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27071 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27072 fi 27073 27074 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27075 27076 path="$BOOT_JDK" 27077 has_colon=`$ECHO $path | $GREP ^.:` 27078 new_path="$path" 27079 if test "x$has_colon" = x; then 27080 # Not in mixed or Windows style, start by that. 27081 new_path=`cmd //c echo $path` 27082 fi 27083 27084 27085 input_path="$new_path" 27086 # Check if we need to convert this using DOS-style short mode. If the path 27087 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27088 # take no chances and rewrite it. 27089 # Note: m4 eats our [], so we need to use [ and ] instead. 27090 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27091 if test "x$has_forbidden_chars" != x; then 27092 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27093 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27094 fi 27095 27096 27097 windows_path="$new_path" 27098 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27099 unix_path=`$CYGPATH -u "$windows_path"` 27100 new_path="$unix_path" 27101 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27102 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27103 new_path="$unix_path" 27104 fi 27105 27106 if test "x$path" != "x$new_path"; then 27107 BOOT_JDK="$new_path" 27108 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27109 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27110 fi 27111 27112 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27113 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27114 27115 else 27116 # We're on a unix platform. Hooray! :) 27117 path="$BOOT_JDK" 27118 has_space=`$ECHO "$path" | $GREP " "` 27119 if test "x$has_space" != x; then 27120 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27121 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27122 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27123 fi 27124 27125 # Use eval to expand a potential ~ 27126 eval path="$path" 27127 if test ! -f "$path" && test ! -d "$path"; then 27128 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27129 fi 27130 27131 if test -d "$path"; then 27132 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27133 else 27134 dir="`$DIRNAME "$path"`" 27135 base="`$BASENAME "$path"`" 27136 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27137 fi 27138 fi 27139 fi 27140 27141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27142 $as_echo_n "checking for Boot JDK... " >&6; } 27143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27144 $as_echo "$BOOT_JDK" >&6; } 27145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27146 $as_echo_n "checking Boot JDK version... " >&6; } 27147 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27149 $as_echo "$BOOT_JDK_VERSION" >&6; } 27150 fi # end check jdk version 27151 fi # end check javac 27152 fi # end check java 27153 fi # end check boot jdk found 27154 fi 27155 27156 27157 if test "x$BOOT_JDK_FOUND" = xno; then 27158 # Now execute the test 27159 27160 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 27161 BOOT_JDK_SUFFIX="" 27162 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27163 if test "x$ALL_JDKS_FOUND" != x; then 27164 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27165 27166 if test "x$BOOT_JDK_FOUND" = xno; then 27167 # Now execute the test 27168 27169 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27170 if test -d "$BOOT_JDK"; then 27171 BOOT_JDK_FOUND=maybe 27172 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27173 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27174 fi 27175 27176 27177 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27178 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27179 # Do we have a bin/java? 27180 if test ! -x "$BOOT_JDK/bin/java"; then 27181 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27182 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27183 BOOT_JDK_FOUND=no 27184 else 27185 # Do we have a bin/javac? 27186 if test ! -x "$BOOT_JDK/bin/javac"; then 27187 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27188 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27189 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27190 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27191 BOOT_JDK_FOUND=no 27192 else 27193 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27194 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 27195 27196 # Extra M4 quote needed to protect [] in grep expression. 27197 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27198 if test "x$FOUND_CORRECT_VERSION" = x; then 27199 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27200 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27201 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27202 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27203 BOOT_JDK_FOUND=no 27204 else 27205 # We're done! :-) 27206 BOOT_JDK_FOUND=yes 27207 27208 # Only process if variable expands to non-empty 27209 27210 if test "x$BOOT_JDK" != x; then 27211 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27212 27213 # Input might be given as Windows format, start by converting to 27214 # unix format. 27215 path="$BOOT_JDK" 27216 new_path=`$CYGPATH -u "$path"` 27217 27218 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27219 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27220 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27221 # "foo.exe" is OK but "foo" is an error. 27222 # 27223 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27224 # It is also a way to make sure we got the proper file name for the real test later on. 27225 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27226 if test "x$test_shortpath" = x; then 27227 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27228 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27229 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27230 fi 27231 27232 # Call helper function which possibly converts this using DOS-style short mode. 27233 # If so, the updated path is stored in $new_path. 27234 27235 input_path="$new_path" 27236 # Check if we need to convert this using DOS-style short mode. If the path 27237 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27238 # take no chances and rewrite it. 27239 # Note: m4 eats our [], so we need to use [ and ] instead. 27240 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27241 if test "x$has_forbidden_chars" != x; then 27242 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27243 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27244 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27245 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27246 # Going to short mode and back again did indeed matter. Since short mode is 27247 # case insensitive, let's make it lowercase to improve readability. 27248 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27249 # Now convert it back to Unix-style (cygpath) 27250 input_path=`$CYGPATH -u "$shortmode_path"` 27251 new_path="$input_path" 27252 fi 27253 fi 27254 27255 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27256 if test "x$test_cygdrive_prefix" = x; then 27257 # As a simple fix, exclude /usr/bin since it's not a real path. 27258 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27259 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27260 # a path prefixed by /cygdrive for fixpath to work. 27261 new_path="$CYGWIN_ROOT_PATH$input_path" 27262 fi 27263 fi 27264 27265 27266 if test "x$path" != "x$new_path"; then 27267 BOOT_JDK="$new_path" 27268 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27269 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27270 fi 27271 27272 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27273 27274 path="$BOOT_JDK" 27275 has_colon=`$ECHO $path | $GREP ^.:` 27276 new_path="$path" 27277 if test "x$has_colon" = x; then 27278 # Not in mixed or Windows style, start by that. 27279 new_path=`cmd //c echo $path` 27280 fi 27281 27282 27283 input_path="$new_path" 27284 # Check if we need to convert this using DOS-style short mode. If the path 27285 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27286 # take no chances and rewrite it. 27287 # Note: m4 eats our [], so we need to use [ and ] instead. 27288 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27289 if test "x$has_forbidden_chars" != x; then 27290 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27291 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27292 fi 27293 27294 27295 windows_path="$new_path" 27296 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27297 unix_path=`$CYGPATH -u "$windows_path"` 27298 new_path="$unix_path" 27299 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27300 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27301 new_path="$unix_path" 27302 fi 27303 27304 if test "x$path" != "x$new_path"; then 27305 BOOT_JDK="$new_path" 27306 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27307 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27308 fi 27309 27310 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27311 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27312 27313 else 27314 # We're on a unix platform. Hooray! :) 27315 path="$BOOT_JDK" 27316 has_space=`$ECHO "$path" | $GREP " "` 27317 if test "x$has_space" != x; then 27318 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27319 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27320 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27321 fi 27322 27323 # Use eval to expand a potential ~ 27324 eval path="$path" 27325 if test ! -f "$path" && test ! -d "$path"; then 27326 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27327 fi 27328 27329 if test -d "$path"; then 27330 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27331 else 27332 dir="`$DIRNAME "$path"`" 27333 base="`$BASENAME "$path"`" 27334 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27335 fi 27336 fi 27337 fi 27338 27339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27340 $as_echo_n "checking for Boot JDK... " >&6; } 27341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27342 $as_echo "$BOOT_JDK" >&6; } 27343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27344 $as_echo_n "checking Boot JDK version... " >&6; } 27345 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27347 $as_echo "$BOOT_JDK_VERSION" >&6; } 27348 fi # end check jdk version 27349 fi # end check javac 27350 fi # end check java 27351 fi # end check boot jdk found 27352 fi 27353 27354 done 27355 fi 27356 27357 27358 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27359 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27360 # Do we have a bin/java? 27361 if test ! -x "$BOOT_JDK/bin/java"; then 27362 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27363 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27364 BOOT_JDK_FOUND=no 27365 else 27366 # Do we have a bin/javac? 27367 if test ! -x "$BOOT_JDK/bin/javac"; then 27368 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27369 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27370 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27371 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27372 BOOT_JDK_FOUND=no 27373 else 27374 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27375 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 27376 27377 # Extra M4 quote needed to protect [] in grep expression. 27378 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27379 if test "x$FOUND_CORRECT_VERSION" = x; then 27380 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27381 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27382 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27383 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27384 BOOT_JDK_FOUND=no 27385 else 27386 # We're done! :-) 27387 BOOT_JDK_FOUND=yes 27388 27389 # Only process if variable expands to non-empty 27390 27391 if test "x$BOOT_JDK" != x; then 27392 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27393 27394 # Input might be given as Windows format, start by converting to 27395 # unix format. 27396 path="$BOOT_JDK" 27397 new_path=`$CYGPATH -u "$path"` 27398 27399 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27400 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27401 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27402 # "foo.exe" is OK but "foo" is an error. 27403 # 27404 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27405 # It is also a way to make sure we got the proper file name for the real test later on. 27406 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27407 if test "x$test_shortpath" = x; then 27408 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27409 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27410 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27411 fi 27412 27413 # Call helper function which possibly converts this using DOS-style short mode. 27414 # If so, the updated path is stored in $new_path. 27415 27416 input_path="$new_path" 27417 # Check if we need to convert this using DOS-style short mode. If the path 27418 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27419 # take no chances and rewrite it. 27420 # Note: m4 eats our [], so we need to use [ and ] instead. 27421 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27422 if test "x$has_forbidden_chars" != x; then 27423 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27424 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27425 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27426 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27427 # Going to short mode and back again did indeed matter. Since short mode is 27428 # case insensitive, let's make it lowercase to improve readability. 27429 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27430 # Now convert it back to Unix-style (cygpath) 27431 input_path=`$CYGPATH -u "$shortmode_path"` 27432 new_path="$input_path" 27433 fi 27434 fi 27435 27436 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27437 if test "x$test_cygdrive_prefix" = x; then 27438 # As a simple fix, exclude /usr/bin since it's not a real path. 27439 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27440 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27441 # a path prefixed by /cygdrive for fixpath to work. 27442 new_path="$CYGWIN_ROOT_PATH$input_path" 27443 fi 27444 fi 27445 27446 27447 if test "x$path" != "x$new_path"; then 27448 BOOT_JDK="$new_path" 27449 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27450 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27451 fi 27452 27453 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27454 27455 path="$BOOT_JDK" 27456 has_colon=`$ECHO $path | $GREP ^.:` 27457 new_path="$path" 27458 if test "x$has_colon" = x; then 27459 # Not in mixed or Windows style, start by that. 27460 new_path=`cmd //c echo $path` 27461 fi 27462 27463 27464 input_path="$new_path" 27465 # Check if we need to convert this using DOS-style short mode. If the path 27466 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27467 # take no chances and rewrite it. 27468 # Note: m4 eats our [], so we need to use [ and ] instead. 27469 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27470 if test "x$has_forbidden_chars" != x; then 27471 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27472 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27473 fi 27474 27475 27476 windows_path="$new_path" 27477 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27478 unix_path=`$CYGPATH -u "$windows_path"` 27479 new_path="$unix_path" 27480 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27481 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27482 new_path="$unix_path" 27483 fi 27484 27485 if test "x$path" != "x$new_path"; then 27486 BOOT_JDK="$new_path" 27487 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27488 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27489 fi 27490 27491 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27492 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27493 27494 else 27495 # We're on a unix platform. Hooray! :) 27496 path="$BOOT_JDK" 27497 has_space=`$ECHO "$path" | $GREP " "` 27498 if test "x$has_space" != x; then 27499 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27500 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27501 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27502 fi 27503 27504 # Use eval to expand a potential ~ 27505 eval path="$path" 27506 if test ! -f "$path" && test ! -d "$path"; then 27507 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27508 fi 27509 27510 if test -d "$path"; then 27511 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27512 else 27513 dir="`$DIRNAME "$path"`" 27514 base="`$BASENAME "$path"`" 27515 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27516 fi 27517 fi 27518 fi 27519 27520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27521 $as_echo_n "checking for Boot JDK... " >&6; } 27522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27523 $as_echo "$BOOT_JDK" >&6; } 27524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27525 $as_echo_n "checking Boot JDK version... " >&6; } 27526 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27528 $as_echo "$BOOT_JDK_VERSION" >&6; } 27529 fi # end check jdk version 27530 fi # end check javac 27531 fi # end check java 27532 fi # end check boot jdk found 27533 fi 27534 27535 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 27536 27537 if test "x$BOOT_JDK_FOUND" = xno; then 27538 # Now execute the test 27539 27540 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 27541 BOOT_JDK_SUFFIX="/Contents/Home" 27542 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27543 if test "x$ALL_JDKS_FOUND" != x; then 27544 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27545 27546 if test "x$BOOT_JDK_FOUND" = xno; then 27547 # Now execute the test 27548 27549 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27550 if test -d "$BOOT_JDK"; then 27551 BOOT_JDK_FOUND=maybe 27552 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27553 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27554 fi 27555 27556 27557 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27558 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27559 # Do we have a bin/java? 27560 if test ! -x "$BOOT_JDK/bin/java"; then 27561 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27562 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27563 BOOT_JDK_FOUND=no 27564 else 27565 # Do we have a bin/javac? 27566 if test ! -x "$BOOT_JDK/bin/javac"; then 27567 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27568 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27569 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27570 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27571 BOOT_JDK_FOUND=no 27572 else 27573 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27574 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 27575 27576 # Extra M4 quote needed to protect [] in grep expression. 27577 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27578 if test "x$FOUND_CORRECT_VERSION" = x; then 27579 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27580 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27581 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27582 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27583 BOOT_JDK_FOUND=no 27584 else 27585 # We're done! :-) 27586 BOOT_JDK_FOUND=yes 27587 27588 # Only process if variable expands to non-empty 27589 27590 if test "x$BOOT_JDK" != x; then 27591 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27592 27593 # Input might be given as Windows format, start by converting to 27594 # unix format. 27595 path="$BOOT_JDK" 27596 new_path=`$CYGPATH -u "$path"` 27597 27598 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27599 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27600 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27601 # "foo.exe" is OK but "foo" is an error. 27602 # 27603 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27604 # It is also a way to make sure we got the proper file name for the real test later on. 27605 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27606 if test "x$test_shortpath" = x; then 27607 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27608 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27609 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27610 fi 27611 27612 # Call helper function which possibly converts this using DOS-style short mode. 27613 # If so, the updated path is stored in $new_path. 27614 27615 input_path="$new_path" 27616 # Check if we need to convert this using DOS-style short mode. If the path 27617 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27618 # take no chances and rewrite it. 27619 # Note: m4 eats our [], so we need to use [ and ] instead. 27620 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27621 if test "x$has_forbidden_chars" != x; then 27622 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27623 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27624 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27625 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27626 # Going to short mode and back again did indeed matter. Since short mode is 27627 # case insensitive, let's make it lowercase to improve readability. 27628 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27629 # Now convert it back to Unix-style (cygpath) 27630 input_path=`$CYGPATH -u "$shortmode_path"` 27631 new_path="$input_path" 27632 fi 27633 fi 27634 27635 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27636 if test "x$test_cygdrive_prefix" = x; then 27637 # As a simple fix, exclude /usr/bin since it's not a real path. 27638 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27639 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27640 # a path prefixed by /cygdrive for fixpath to work. 27641 new_path="$CYGWIN_ROOT_PATH$input_path" 27642 fi 27643 fi 27644 27645 27646 if test "x$path" != "x$new_path"; then 27647 BOOT_JDK="$new_path" 27648 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27649 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27650 fi 27651 27652 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27653 27654 path="$BOOT_JDK" 27655 has_colon=`$ECHO $path | $GREP ^.:` 27656 new_path="$path" 27657 if test "x$has_colon" = x; then 27658 # Not in mixed or Windows style, start by that. 27659 new_path=`cmd //c echo $path` 27660 fi 27661 27662 27663 input_path="$new_path" 27664 # Check if we need to convert this using DOS-style short mode. If the path 27665 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27666 # take no chances and rewrite it. 27667 # Note: m4 eats our [], so we need to use [ and ] instead. 27668 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27669 if test "x$has_forbidden_chars" != x; then 27670 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27671 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27672 fi 27673 27674 27675 windows_path="$new_path" 27676 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27677 unix_path=`$CYGPATH -u "$windows_path"` 27678 new_path="$unix_path" 27679 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27680 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27681 new_path="$unix_path" 27682 fi 27683 27684 if test "x$path" != "x$new_path"; then 27685 BOOT_JDK="$new_path" 27686 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27687 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27688 fi 27689 27690 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27691 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27692 27693 else 27694 # We're on a unix platform. Hooray! :) 27695 path="$BOOT_JDK" 27696 has_space=`$ECHO "$path" | $GREP " "` 27697 if test "x$has_space" != x; then 27698 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27699 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27700 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27701 fi 27702 27703 # Use eval to expand a potential ~ 27704 eval path="$path" 27705 if test ! -f "$path" && test ! -d "$path"; then 27706 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27707 fi 27708 27709 if test -d "$path"; then 27710 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27711 else 27712 dir="`$DIRNAME "$path"`" 27713 base="`$BASENAME "$path"`" 27714 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27715 fi 27716 fi 27717 fi 27718 27719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27720 $as_echo_n "checking for Boot JDK... " >&6; } 27721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27722 $as_echo "$BOOT_JDK" >&6; } 27723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27724 $as_echo_n "checking Boot JDK version... " >&6; } 27725 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27727 $as_echo "$BOOT_JDK_VERSION" >&6; } 27728 fi # end check jdk version 27729 fi # end check javac 27730 fi # end check java 27731 fi # end check boot jdk found 27732 fi 27733 27734 done 27735 fi 27736 27737 27738 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27739 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27740 # Do we have a bin/java? 27741 if test ! -x "$BOOT_JDK/bin/java"; then 27742 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27743 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27744 BOOT_JDK_FOUND=no 27745 else 27746 # Do we have a bin/javac? 27747 if test ! -x "$BOOT_JDK/bin/javac"; then 27748 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27749 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27750 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27751 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27752 BOOT_JDK_FOUND=no 27753 else 27754 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27755 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 27756 27757 # Extra M4 quote needed to protect [] in grep expression. 27758 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27759 if test "x$FOUND_CORRECT_VERSION" = x; then 27760 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27761 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27762 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27763 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27764 BOOT_JDK_FOUND=no 27765 else 27766 # We're done! :-) 27767 BOOT_JDK_FOUND=yes 27768 27769 # Only process if variable expands to non-empty 27770 27771 if test "x$BOOT_JDK" != x; then 27772 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27773 27774 # Input might be given as Windows format, start by converting to 27775 # unix format. 27776 path="$BOOT_JDK" 27777 new_path=`$CYGPATH -u "$path"` 27778 27779 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27780 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27781 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27782 # "foo.exe" is OK but "foo" is an error. 27783 # 27784 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27785 # It is also a way to make sure we got the proper file name for the real test later on. 27786 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27787 if test "x$test_shortpath" = x; then 27788 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27789 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27790 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27791 fi 27792 27793 # Call helper function which possibly converts this using DOS-style short mode. 27794 # If so, the updated path is stored in $new_path. 27795 27796 input_path="$new_path" 27797 # Check if we need to convert this using DOS-style short mode. If the path 27798 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27799 # take no chances and rewrite it. 27800 # Note: m4 eats our [], so we need to use [ and ] instead. 27801 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27802 if test "x$has_forbidden_chars" != x; then 27803 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27804 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27805 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27806 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27807 # Going to short mode and back again did indeed matter. Since short mode is 27808 # case insensitive, let's make it lowercase to improve readability. 27809 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27810 # Now convert it back to Unix-style (cygpath) 27811 input_path=`$CYGPATH -u "$shortmode_path"` 27812 new_path="$input_path" 27813 fi 27814 fi 27815 27816 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27817 if test "x$test_cygdrive_prefix" = x; then 27818 # As a simple fix, exclude /usr/bin since it's not a real path. 27819 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27820 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27821 # a path prefixed by /cygdrive for fixpath to work. 27822 new_path="$CYGWIN_ROOT_PATH$input_path" 27823 fi 27824 fi 27825 27826 27827 if test "x$path" != "x$new_path"; then 27828 BOOT_JDK="$new_path" 27829 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27830 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27831 fi 27832 27833 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27834 27835 path="$BOOT_JDK" 27836 has_colon=`$ECHO $path | $GREP ^.:` 27837 new_path="$path" 27838 if test "x$has_colon" = x; then 27839 # Not in mixed or Windows style, start by that. 27840 new_path=`cmd //c echo $path` 27841 fi 27842 27843 27844 input_path="$new_path" 27845 # Check if we need to convert this using DOS-style short mode. If the path 27846 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27847 # take no chances and rewrite it. 27848 # Note: m4 eats our [], so we need to use [ and ] instead. 27849 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27850 if test "x$has_forbidden_chars" != x; then 27851 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27852 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27853 fi 27854 27855 27856 windows_path="$new_path" 27857 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27858 unix_path=`$CYGPATH -u "$windows_path"` 27859 new_path="$unix_path" 27860 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27861 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27862 new_path="$unix_path" 27863 fi 27864 27865 if test "x$path" != "x$new_path"; then 27866 BOOT_JDK="$new_path" 27867 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27868 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27869 fi 27870 27871 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27872 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27873 27874 else 27875 # We're on a unix platform. Hooray! :) 27876 path="$BOOT_JDK" 27877 has_space=`$ECHO "$path" | $GREP " "` 27878 if test "x$has_space" != 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 $? "Spaces are not allowed in this path." "$LINENO" 5 27882 fi 27883 27884 # Use eval to expand a potential ~ 27885 eval path="$path" 27886 if test ! -f "$path" && test ! -d "$path"; then 27887 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27888 fi 27889 27890 if test -d "$path"; then 27891 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27892 else 27893 dir="`$DIRNAME "$path"`" 27894 base="`$BASENAME "$path"`" 27895 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27896 fi 27897 fi 27898 fi 27899 27900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27901 $as_echo_n "checking for Boot JDK... " >&6; } 27902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27903 $as_echo "$BOOT_JDK" >&6; } 27904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27905 $as_echo_n "checking Boot JDK version... " >&6; } 27906 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27908 $as_echo "$BOOT_JDK_VERSION" >&6; } 27909 fi # end check jdk version 27910 fi # end check javac 27911 fi # end check java 27912 fi # end check boot jdk found 27913 fi 27914 27915 27916 if test "x$BOOT_JDK_FOUND" = xno; then 27917 # Now execute the test 27918 27919 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 27920 BOOT_JDK_SUFFIX="/Contents/Home" 27921 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27922 if test "x$ALL_JDKS_FOUND" != x; then 27923 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27924 27925 if test "x$BOOT_JDK_FOUND" = xno; then 27926 # Now execute the test 27927 27928 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27929 if test -d "$BOOT_JDK"; then 27930 BOOT_JDK_FOUND=maybe 27931 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27932 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27933 fi 27934 27935 27936 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27937 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27938 # Do we have a bin/java? 27939 if test ! -x "$BOOT_JDK/bin/java"; then 27940 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27941 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27942 BOOT_JDK_FOUND=no 27943 else 27944 # Do we have a bin/javac? 27945 if test ! -x "$BOOT_JDK/bin/javac"; then 27946 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27947 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27948 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27949 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27950 BOOT_JDK_FOUND=no 27951 else 27952 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27953 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 27954 27955 # Extra M4 quote needed to protect [] in grep expression. 27956 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27957 if test "x$FOUND_CORRECT_VERSION" = x; then 27958 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27959 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27960 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27961 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27962 BOOT_JDK_FOUND=no 27963 else 27964 # We're done! :-) 27965 BOOT_JDK_FOUND=yes 27966 27967 # Only process if variable expands to non-empty 27968 27969 if test "x$BOOT_JDK" != x; then 27970 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27971 27972 # Input might be given as Windows format, start by converting to 27973 # unix format. 27974 path="$BOOT_JDK" 27975 new_path=`$CYGPATH -u "$path"` 27976 27977 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27978 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27979 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27980 # "foo.exe" is OK but "foo" is an error. 27981 # 27982 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27983 # It is also a way to make sure we got the proper file name for the real test later on. 27984 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27985 if test "x$test_shortpath" = x; then 27986 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27987 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27988 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27989 fi 27990 27991 # Call helper function which possibly converts this using DOS-style short mode. 27992 # If so, the updated path is stored in $new_path. 27993 27994 input_path="$new_path" 27995 # Check if we need to convert this using DOS-style short mode. If the path 27996 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27997 # take no chances and rewrite it. 27998 # Note: m4 eats our [], so we need to use [ and ] instead. 27999 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28000 if test "x$has_forbidden_chars" != x; then 28001 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28002 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28003 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28004 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28005 # Going to short mode and back again did indeed matter. Since short mode is 28006 # case insensitive, let's make it lowercase to improve readability. 28007 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28008 # Now convert it back to Unix-style (cygpath) 28009 input_path=`$CYGPATH -u "$shortmode_path"` 28010 new_path="$input_path" 28011 fi 28012 fi 28013 28014 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28015 if test "x$test_cygdrive_prefix" = x; then 28016 # As a simple fix, exclude /usr/bin since it's not a real path. 28017 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28018 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28019 # a path prefixed by /cygdrive for fixpath to work. 28020 new_path="$CYGWIN_ROOT_PATH$input_path" 28021 fi 28022 fi 28023 28024 28025 if test "x$path" != "x$new_path"; then 28026 BOOT_JDK="$new_path" 28027 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28028 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28029 fi 28030 28031 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28032 28033 path="$BOOT_JDK" 28034 has_colon=`$ECHO $path | $GREP ^.:` 28035 new_path="$path" 28036 if test "x$has_colon" = x; then 28037 # Not in mixed or Windows style, start by that. 28038 new_path=`cmd //c echo $path` 28039 fi 28040 28041 28042 input_path="$new_path" 28043 # Check if we need to convert this using DOS-style short mode. If the path 28044 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28045 # take no chances and rewrite it. 28046 # Note: m4 eats our [], so we need to use [ and ] instead. 28047 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28048 if test "x$has_forbidden_chars" != x; then 28049 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28050 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28051 fi 28052 28053 28054 windows_path="$new_path" 28055 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28056 unix_path=`$CYGPATH -u "$windows_path"` 28057 new_path="$unix_path" 28058 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28059 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28060 new_path="$unix_path" 28061 fi 28062 28063 if test "x$path" != "x$new_path"; then 28064 BOOT_JDK="$new_path" 28065 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28066 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28067 fi 28068 28069 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28070 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28071 28072 else 28073 # We're on a unix platform. Hooray! :) 28074 path="$BOOT_JDK" 28075 has_space=`$ECHO "$path" | $GREP " "` 28076 if test "x$has_space" != x; then 28077 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28078 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28079 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28080 fi 28081 28082 # Use eval to expand a potential ~ 28083 eval path="$path" 28084 if test ! -f "$path" && test ! -d "$path"; then 28085 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28086 fi 28087 28088 if test -d "$path"; then 28089 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28090 else 28091 dir="`$DIRNAME "$path"`" 28092 base="`$BASENAME "$path"`" 28093 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28094 fi 28095 fi 28096 fi 28097 28098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28099 $as_echo_n "checking for Boot JDK... " >&6; } 28100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28101 $as_echo "$BOOT_JDK" >&6; } 28102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28103 $as_echo_n "checking Boot JDK version... " >&6; } 28104 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28106 $as_echo "$BOOT_JDK_VERSION" >&6; } 28107 fi # end check jdk version 28108 fi # end check javac 28109 fi # end check java 28110 fi # end check boot jdk found 28111 fi 28112 28113 done 28114 fi 28115 28116 28117 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28118 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28119 # Do we have a bin/java? 28120 if test ! -x "$BOOT_JDK/bin/java"; then 28121 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28122 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28123 BOOT_JDK_FOUND=no 28124 else 28125 # Do we have a bin/javac? 28126 if test ! -x "$BOOT_JDK/bin/javac"; then 28127 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28128 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28129 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28130 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28131 BOOT_JDK_FOUND=no 28132 else 28133 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28134 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 28135 28136 # Extra M4 quote needed to protect [] in grep expression. 28137 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28138 if test "x$FOUND_CORRECT_VERSION" = x; then 28139 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28140 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28141 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28142 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28143 BOOT_JDK_FOUND=no 28144 else 28145 # We're done! :-) 28146 BOOT_JDK_FOUND=yes 28147 28148 # Only process if variable expands to non-empty 28149 28150 if test "x$BOOT_JDK" != x; then 28151 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28152 28153 # Input might be given as Windows format, start by converting to 28154 # unix format. 28155 path="$BOOT_JDK" 28156 new_path=`$CYGPATH -u "$path"` 28157 28158 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28159 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28160 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28161 # "foo.exe" is OK but "foo" is an error. 28162 # 28163 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28164 # It is also a way to make sure we got the proper file name for the real test later on. 28165 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28166 if test "x$test_shortpath" = x; then 28167 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28168 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28169 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28170 fi 28171 28172 # Call helper function which possibly converts this using DOS-style short mode. 28173 # If so, the updated path is stored in $new_path. 28174 28175 input_path="$new_path" 28176 # Check if we need to convert this using DOS-style short mode. If the path 28177 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28178 # take no chances and rewrite it. 28179 # Note: m4 eats our [], so we need to use [ and ] instead. 28180 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28181 if test "x$has_forbidden_chars" != x; then 28182 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28183 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28184 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28185 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28186 # Going to short mode and back again did indeed matter. Since short mode is 28187 # case insensitive, let's make it lowercase to improve readability. 28188 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28189 # Now convert it back to Unix-style (cygpath) 28190 input_path=`$CYGPATH -u "$shortmode_path"` 28191 new_path="$input_path" 28192 fi 28193 fi 28194 28195 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28196 if test "x$test_cygdrive_prefix" = x; then 28197 # As a simple fix, exclude /usr/bin since it's not a real path. 28198 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28199 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28200 # a path prefixed by /cygdrive for fixpath to work. 28201 new_path="$CYGWIN_ROOT_PATH$input_path" 28202 fi 28203 fi 28204 28205 28206 if test "x$path" != "x$new_path"; then 28207 BOOT_JDK="$new_path" 28208 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28209 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28210 fi 28211 28212 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28213 28214 path="$BOOT_JDK" 28215 has_colon=`$ECHO $path | $GREP ^.:` 28216 new_path="$path" 28217 if test "x$has_colon" = x; then 28218 # Not in mixed or Windows style, start by that. 28219 new_path=`cmd //c echo $path` 28220 fi 28221 28222 28223 input_path="$new_path" 28224 # Check if we need to convert this using DOS-style short mode. If the path 28225 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28226 # take no chances and rewrite it. 28227 # Note: m4 eats our [], so we need to use [ and ] instead. 28228 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28229 if test "x$has_forbidden_chars" != x; then 28230 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28231 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28232 fi 28233 28234 28235 windows_path="$new_path" 28236 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28237 unix_path=`$CYGPATH -u "$windows_path"` 28238 new_path="$unix_path" 28239 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28240 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28241 new_path="$unix_path" 28242 fi 28243 28244 if test "x$path" != "x$new_path"; then 28245 BOOT_JDK="$new_path" 28246 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28247 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28248 fi 28249 28250 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28251 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28252 28253 else 28254 # We're on a unix platform. Hooray! :) 28255 path="$BOOT_JDK" 28256 has_space=`$ECHO "$path" | $GREP " "` 28257 if test "x$has_space" != x; then 28258 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28259 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28260 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28261 fi 28262 28263 # Use eval to expand a potential ~ 28264 eval path="$path" 28265 if test ! -f "$path" && test ! -d "$path"; then 28266 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28267 fi 28268 28269 if test -d "$path"; then 28270 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28271 else 28272 dir="`$DIRNAME "$path"`" 28273 base="`$BASENAME "$path"`" 28274 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28275 fi 28276 fi 28277 fi 28278 28279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28280 $as_echo_n "checking for Boot JDK... " >&6; } 28281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28282 $as_echo "$BOOT_JDK" >&6; } 28283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28284 $as_echo_n "checking Boot JDK version... " >&6; } 28285 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28287 $as_echo "$BOOT_JDK_VERSION" >&6; } 28288 fi # end check jdk version 28289 fi # end check javac 28290 fi # end check java 28291 fi # end check boot jdk found 28292 fi 28293 28294 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 28295 28296 if test "x$BOOT_JDK_FOUND" = xno; then 28297 # Now execute the test 28298 28299 BOOT_JDK_PREFIX="/usr/lib/jvm" 28300 BOOT_JDK_SUFFIX="" 28301 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28302 if test "x$ALL_JDKS_FOUND" != x; then 28303 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28304 28305 if test "x$BOOT_JDK_FOUND" = xno; then 28306 # Now execute the test 28307 28308 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28309 if test -d "$BOOT_JDK"; then 28310 BOOT_JDK_FOUND=maybe 28311 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28312 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28313 fi 28314 28315 28316 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28317 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28318 # Do we have a bin/java? 28319 if test ! -x "$BOOT_JDK/bin/java"; then 28320 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28321 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28322 BOOT_JDK_FOUND=no 28323 else 28324 # Do we have a bin/javac? 28325 if test ! -x "$BOOT_JDK/bin/javac"; then 28326 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28327 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28328 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28329 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28330 BOOT_JDK_FOUND=no 28331 else 28332 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28333 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 28334 28335 # Extra M4 quote needed to protect [] in grep expression. 28336 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28337 if test "x$FOUND_CORRECT_VERSION" = x; then 28338 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28339 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28340 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28341 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28342 BOOT_JDK_FOUND=no 28343 else 28344 # We're done! :-) 28345 BOOT_JDK_FOUND=yes 28346 28347 # Only process if variable expands to non-empty 28348 28349 if test "x$BOOT_JDK" != x; then 28350 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28351 28352 # Input might be given as Windows format, start by converting to 28353 # unix format. 28354 path="$BOOT_JDK" 28355 new_path=`$CYGPATH -u "$path"` 28356 28357 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28358 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28359 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28360 # "foo.exe" is OK but "foo" is an error. 28361 # 28362 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28363 # It is also a way to make sure we got the proper file name for the real test later on. 28364 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28365 if test "x$test_shortpath" = x; then 28366 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28367 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28368 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28369 fi 28370 28371 # Call helper function which possibly converts this using DOS-style short mode. 28372 # If so, the updated path is stored in $new_path. 28373 28374 input_path="$new_path" 28375 # Check if we need to convert this using DOS-style short mode. If the path 28376 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28377 # take no chances and rewrite it. 28378 # Note: m4 eats our [], so we need to use [ and ] instead. 28379 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28380 if test "x$has_forbidden_chars" != x; then 28381 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28382 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28383 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28384 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28385 # Going to short mode and back again did indeed matter. Since short mode is 28386 # case insensitive, let's make it lowercase to improve readability. 28387 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28388 # Now convert it back to Unix-style (cygpath) 28389 input_path=`$CYGPATH -u "$shortmode_path"` 28390 new_path="$input_path" 28391 fi 28392 fi 28393 28394 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28395 if test "x$test_cygdrive_prefix" = x; then 28396 # As a simple fix, exclude /usr/bin since it's not a real path. 28397 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28398 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28399 # a path prefixed by /cygdrive for fixpath to work. 28400 new_path="$CYGWIN_ROOT_PATH$input_path" 28401 fi 28402 fi 28403 28404 28405 if test "x$path" != "x$new_path"; then 28406 BOOT_JDK="$new_path" 28407 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28408 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28409 fi 28410 28411 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28412 28413 path="$BOOT_JDK" 28414 has_colon=`$ECHO $path | $GREP ^.:` 28415 new_path="$path" 28416 if test "x$has_colon" = x; then 28417 # Not in mixed or Windows style, start by that. 28418 new_path=`cmd //c echo $path` 28419 fi 28420 28421 28422 input_path="$new_path" 28423 # Check if we need to convert this using DOS-style short mode. If the path 28424 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28425 # take no chances and rewrite it. 28426 # Note: m4 eats our [], so we need to use [ and ] instead. 28427 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28428 if test "x$has_forbidden_chars" != x; then 28429 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28430 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28431 fi 28432 28433 28434 windows_path="$new_path" 28435 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28436 unix_path=`$CYGPATH -u "$windows_path"` 28437 new_path="$unix_path" 28438 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28439 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28440 new_path="$unix_path" 28441 fi 28442 28443 if test "x$path" != "x$new_path"; then 28444 BOOT_JDK="$new_path" 28445 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28446 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28447 fi 28448 28449 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28450 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28451 28452 else 28453 # We're on a unix platform. Hooray! :) 28454 path="$BOOT_JDK" 28455 has_space=`$ECHO "$path" | $GREP " "` 28456 if test "x$has_space" != x; then 28457 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28458 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28459 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28460 fi 28461 28462 # Use eval to expand a potential ~ 28463 eval path="$path" 28464 if test ! -f "$path" && test ! -d "$path"; then 28465 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28466 fi 28467 28468 if test -d "$path"; then 28469 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28470 else 28471 dir="`$DIRNAME "$path"`" 28472 base="`$BASENAME "$path"`" 28473 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28474 fi 28475 fi 28476 fi 28477 28478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28479 $as_echo_n "checking for Boot JDK... " >&6; } 28480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28481 $as_echo "$BOOT_JDK" >&6; } 28482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28483 $as_echo_n "checking Boot JDK version... " >&6; } 28484 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28486 $as_echo "$BOOT_JDK_VERSION" >&6; } 28487 fi # end check jdk version 28488 fi # end check javac 28489 fi # end check java 28490 fi # end check boot jdk found 28491 fi 28492 28493 done 28494 fi 28495 28496 28497 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28498 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28499 # Do we have a bin/java? 28500 if test ! -x "$BOOT_JDK/bin/java"; then 28501 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28502 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28503 BOOT_JDK_FOUND=no 28504 else 28505 # Do we have a bin/javac? 28506 if test ! -x "$BOOT_JDK/bin/javac"; then 28507 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28508 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28509 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28510 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28511 BOOT_JDK_FOUND=no 28512 else 28513 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28514 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 28515 28516 # Extra M4 quote needed to protect [] in grep expression. 28517 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28518 if test "x$FOUND_CORRECT_VERSION" = x; then 28519 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28520 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28521 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28522 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28523 BOOT_JDK_FOUND=no 28524 else 28525 # We're done! :-) 28526 BOOT_JDK_FOUND=yes 28527 28528 # Only process if variable expands to non-empty 28529 28530 if test "x$BOOT_JDK" != x; then 28531 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28532 28533 # Input might be given as Windows format, start by converting to 28534 # unix format. 28535 path="$BOOT_JDK" 28536 new_path=`$CYGPATH -u "$path"` 28537 28538 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28539 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28540 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28541 # "foo.exe" is OK but "foo" is an error. 28542 # 28543 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28544 # It is also a way to make sure we got the proper file name for the real test later on. 28545 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28546 if test "x$test_shortpath" = 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 $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28550 fi 28551 28552 # Call helper function which possibly converts this using DOS-style short mode. 28553 # If so, the updated path is stored in $new_path. 28554 28555 input_path="$new_path" 28556 # Check if we need to convert this using DOS-style short mode. If the path 28557 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28558 # take no chances and rewrite it. 28559 # Note: m4 eats our [], so we need to use [ and ] instead. 28560 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28561 if test "x$has_forbidden_chars" != x; then 28562 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28563 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28564 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28565 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28566 # Going to short mode and back again did indeed matter. Since short mode is 28567 # case insensitive, let's make it lowercase to improve readability. 28568 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28569 # Now convert it back to Unix-style (cygpath) 28570 input_path=`$CYGPATH -u "$shortmode_path"` 28571 new_path="$input_path" 28572 fi 28573 fi 28574 28575 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28576 if test "x$test_cygdrive_prefix" = x; then 28577 # As a simple fix, exclude /usr/bin since it's not a real path. 28578 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28579 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28580 # a path prefixed by /cygdrive for fixpath to work. 28581 new_path="$CYGWIN_ROOT_PATH$input_path" 28582 fi 28583 fi 28584 28585 28586 if test "x$path" != "x$new_path"; then 28587 BOOT_JDK="$new_path" 28588 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28589 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28590 fi 28591 28592 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28593 28594 path="$BOOT_JDK" 28595 has_colon=`$ECHO $path | $GREP ^.:` 28596 new_path="$path" 28597 if test "x$has_colon" = x; then 28598 # Not in mixed or Windows style, start by that. 28599 new_path=`cmd //c echo $path` 28600 fi 28601 28602 28603 input_path="$new_path" 28604 # Check if we need to convert this using DOS-style short mode. If the path 28605 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28606 # take no chances and rewrite it. 28607 # Note: m4 eats our [], so we need to use [ and ] instead. 28608 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28609 if test "x$has_forbidden_chars" != x; then 28610 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28611 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28612 fi 28613 28614 28615 windows_path="$new_path" 28616 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28617 unix_path=`$CYGPATH -u "$windows_path"` 28618 new_path="$unix_path" 28619 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28620 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28621 new_path="$unix_path" 28622 fi 28623 28624 if test "x$path" != "x$new_path"; then 28625 BOOT_JDK="$new_path" 28626 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28627 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28628 fi 28629 28630 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28631 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28632 28633 else 28634 # We're on a unix platform. Hooray! :) 28635 path="$BOOT_JDK" 28636 has_space=`$ECHO "$path" | $GREP " "` 28637 if test "x$has_space" != x; then 28638 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28639 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28640 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28641 fi 28642 28643 # Use eval to expand a potential ~ 28644 eval path="$path" 28645 if test ! -f "$path" && test ! -d "$path"; then 28646 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28647 fi 28648 28649 if test -d "$path"; then 28650 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28651 else 28652 dir="`$DIRNAME "$path"`" 28653 base="`$BASENAME "$path"`" 28654 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28655 fi 28656 fi 28657 fi 28658 28659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28660 $as_echo_n "checking for Boot JDK... " >&6; } 28661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28662 $as_echo "$BOOT_JDK" >&6; } 28663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28664 $as_echo_n "checking Boot JDK version... " >&6; } 28665 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28667 $as_echo "$BOOT_JDK_VERSION" >&6; } 28668 fi # end check jdk version 28669 fi # end check javac 28670 fi # end check java 28671 fi # end check boot jdk found 28672 fi 28673 28674 fi 28675 28676 28677 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28678 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28679 # Do we have a bin/java? 28680 if test ! -x "$BOOT_JDK/bin/java"; then 28681 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28682 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28683 BOOT_JDK_FOUND=no 28684 else 28685 # Do we have a bin/javac? 28686 if test ! -x "$BOOT_JDK/bin/javac"; then 28687 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28688 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28689 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28690 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28691 BOOT_JDK_FOUND=no 28692 else 28693 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28694 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 28695 28696 # Extra M4 quote needed to protect [] in grep expression. 28697 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28698 if test "x$FOUND_CORRECT_VERSION" = x; then 28699 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28700 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28701 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28702 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28703 BOOT_JDK_FOUND=no 28704 else 28705 # We're done! :-) 28706 BOOT_JDK_FOUND=yes 28707 28708 # Only process if variable expands to non-empty 28709 28710 if test "x$BOOT_JDK" != x; then 28711 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28712 28713 # Input might be given as Windows format, start by converting to 28714 # unix format. 28715 path="$BOOT_JDK" 28716 new_path=`$CYGPATH -u "$path"` 28717 28718 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28719 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28720 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28721 # "foo.exe" is OK but "foo" is an error. 28722 # 28723 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28724 # It is also a way to make sure we got the proper file name for the real test later on. 28725 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28726 if test "x$test_shortpath" = x; then 28727 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28728 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28729 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28730 fi 28731 28732 # Call helper function which possibly converts this using DOS-style short mode. 28733 # If so, the updated path is stored in $new_path. 28734 28735 input_path="$new_path" 28736 # Check if we need to convert this using DOS-style short mode. If the path 28737 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28738 # take no chances and rewrite it. 28739 # Note: m4 eats our [], so we need to use [ and ] instead. 28740 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28741 if test "x$has_forbidden_chars" != x; then 28742 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28743 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28744 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28745 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28746 # Going to short mode and back again did indeed matter. Since short mode is 28747 # case insensitive, let's make it lowercase to improve readability. 28748 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28749 # Now convert it back to Unix-style (cygpath) 28750 input_path=`$CYGPATH -u "$shortmode_path"` 28751 new_path="$input_path" 28752 fi 28753 fi 28754 28755 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28756 if test "x$test_cygdrive_prefix" = x; then 28757 # As a simple fix, exclude /usr/bin since it's not a real path. 28758 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28759 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28760 # a path prefixed by /cygdrive for fixpath to work. 28761 new_path="$CYGWIN_ROOT_PATH$input_path" 28762 fi 28763 fi 28764 28765 28766 if test "x$path" != "x$new_path"; then 28767 BOOT_JDK="$new_path" 28768 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28769 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28770 fi 28771 28772 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28773 28774 path="$BOOT_JDK" 28775 has_colon=`$ECHO $path | $GREP ^.:` 28776 new_path="$path" 28777 if test "x$has_colon" = x; then 28778 # Not in mixed or Windows style, start by that. 28779 new_path=`cmd //c echo $path` 28780 fi 28781 28782 28783 input_path="$new_path" 28784 # Check if we need to convert this using DOS-style short mode. If the path 28785 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28786 # take no chances and rewrite it. 28787 # Note: m4 eats our [], so we need to use [ and ] instead. 28788 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28789 if test "x$has_forbidden_chars" != x; then 28790 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28791 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28792 fi 28793 28794 28795 windows_path="$new_path" 28796 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28797 unix_path=`$CYGPATH -u "$windows_path"` 28798 new_path="$unix_path" 28799 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28800 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28801 new_path="$unix_path" 28802 fi 28803 28804 if test "x$path" != "x$new_path"; then 28805 BOOT_JDK="$new_path" 28806 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28807 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28808 fi 28809 28810 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28811 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28812 28813 else 28814 # We're on a unix platform. Hooray! :) 28815 path="$BOOT_JDK" 28816 has_space=`$ECHO "$path" | $GREP " "` 28817 if test "x$has_space" != x; then 28818 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28819 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28820 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28821 fi 28822 28823 # Use eval to expand a potential ~ 28824 eval path="$path" 28825 if test ! -f "$path" && test ! -d "$path"; then 28826 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28827 fi 28828 28829 if test -d "$path"; then 28830 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28831 else 28832 dir="`$DIRNAME "$path"`" 28833 base="`$BASENAME "$path"`" 28834 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28835 fi 28836 fi 28837 fi 28838 28839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28840 $as_echo_n "checking for Boot JDK... " >&6; } 28841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28842 $as_echo "$BOOT_JDK" >&6; } 28843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28844 $as_echo_n "checking Boot JDK version... " >&6; } 28845 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28847 $as_echo "$BOOT_JDK_VERSION" >&6; } 28848 fi # end check jdk version 28849 fi # end check javac 28850 fi # end check java 28851 fi # end check boot jdk found 28852 fi 28853 28854 28855 # If we haven't found anything yet, we've truly lost. Give up. 28856 if test "x$BOOT_JDK_FOUND" = xno; then 28857 28858 # Print a helpful message on how to acquire the necessary build dependency. 28859 # openjdk is the help tag: freetype, cups, alsa etc 28860 MISSING_DEPENDENCY=openjdk 28861 28862 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28863 cygwin_help $MISSING_DEPENDENCY 28864 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28865 msys_help $MISSING_DEPENDENCY 28866 else 28867 PKGHANDLER_COMMAND= 28868 28869 case $PKGHANDLER in 28870 apt-get) 28871 apt_help $MISSING_DEPENDENCY ;; 28872 yum) 28873 yum_help $MISSING_DEPENDENCY ;; 28874 port) 28875 port_help $MISSING_DEPENDENCY ;; 28876 pkgutil) 28877 pkgutil_help $MISSING_DEPENDENCY ;; 28878 pkgadd) 28879 pkgadd_help $MISSING_DEPENDENCY ;; 28880 esac 28881 28882 if test "x$PKGHANDLER_COMMAND" != x; then 28883 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 28884 fi 28885 fi 28886 28887 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 28888 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 28889 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 28890 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 28891 as_fn_error $? "Cannot continue" "$LINENO" 5 28892 fi 28893 28894 28895 28896 # Setup tools from the Boot JDK. 28897 28898 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 28899 28900 # Publish this variable in the help. 28901 28902 28903 if [ -z "${JAVA+x}" ]; then 28904 # The variable is not set by user, try to locate tool using the code snippet 28905 28906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 28907 $as_echo_n "checking for java in Boot JDK... " >&6; } 28908 JAVA=$BOOT_JDK/bin/java 28909 if test ! -x $JAVA; then 28910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 28911 $as_echo "not found" >&6; } 28912 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 28913 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 28914 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 28915 fi 28916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 28917 $as_echo "ok" >&6; } 28918 28919 28920 else 28921 # The variable is set, but is it from the command line or the environment? 28922 28923 # Try to remove the string !JAVA! from our list. 28924 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 28925 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 28926 # If it failed, the variable was not from the command line. Ignore it, 28927 # but warn the user (except for BASH, which is always set by the calling BASH). 28928 if test "xJAVA" != xBASH; then 28929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 28930 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 28931 fi 28932 # Try to locate tool using the code snippet 28933 28934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 28935 $as_echo_n "checking for java in Boot JDK... " >&6; } 28936 JAVA=$BOOT_JDK/bin/java 28937 if test ! -x $JAVA; then 28938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 28939 $as_echo "not found" >&6; } 28940 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 28941 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 28942 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 28943 fi 28944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 28945 $as_echo "ok" >&6; } 28946 28947 28948 else 28949 # If it succeeded, then it was overridden by the user. We will use it 28950 # for the tool. 28951 28952 # First remove it from the list of overridden variables, so we can test 28953 # for unknown variables in the end. 28954 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 28955 28956 # Check if we try to supply an empty value 28957 if test "x$JAVA" = x; then 28958 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVA= (no value)" >&5 28959 $as_echo "$as_me: Setting user supplied tool JAVA= (no value)" >&6;} 28960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 28961 $as_echo_n "checking for JAVA... " >&6; } 28962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 28963 $as_echo "disabled" >&6; } 28964 else 28965 # Check if the provided tool contains a complete path. 28966 tool_specified="$JAVA" 28967 tool_basename="${tool_specified##*/}" 28968 if test "x$tool_basename" = "x$tool_specified"; then 28969 # A command without a complete path is provided, search $PATH. 28970 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 28971 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 28972 # Extract the first word of "$tool_basename", so it can be a program name with args. 28973 set dummy $tool_basename; ac_word=$2 28974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28975 $as_echo_n "checking for $ac_word... " >&6; } 28976 if ${ac_cv_path_JAVA+:} false; then : 28977 $as_echo_n "(cached) " >&6 28978 else 28979 case $JAVA in 28980 [\\/]* | ?:[\\/]*) 28981 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 28982 ;; 28983 *) 28984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28985 for as_dir in $PATH 28986 do 28987 IFS=$as_save_IFS 28988 test -z "$as_dir" && as_dir=. 28989 for ac_exec_ext in '' $ac_executable_extensions; do 28990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28991 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 28992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28993 break 2 28994 fi 28995 done 28996 done 28997 IFS=$as_save_IFS 28998 28999 ;; 29000 esac 29001 fi 29002 JAVA=$ac_cv_path_JAVA 29003 if test -n "$JAVA"; then 29004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 29005 $as_echo "$JAVA" >&6; } 29006 else 29007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29008 $as_echo "no" >&6; } 29009 fi 29010 29011 29012 if test "x$JAVA" = x; then 29013 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 29014 fi 29015 else 29016 # Otherwise we believe it is a complete path. Use it as it is. 29017 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 29018 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 29019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 29020 $as_echo_n "checking for JAVA... " >&6; } 29021 if test ! -x "$tool_specified"; then 29022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29023 $as_echo "not found" >&6; } 29024 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 29025 fi 29026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 29027 $as_echo "$tool_specified" >&6; } 29028 fi 29029 fi 29030 fi 29031 29032 fi 29033 29034 29035 29036 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 29037 29038 # Publish this variable in the help. 29039 29040 29041 if [ -z "${JAVAC+x}" ]; then 29042 # The variable is not set by user, try to locate tool using the code snippet 29043 29044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 29045 $as_echo_n "checking for javac in Boot JDK... " >&6; } 29046 JAVAC=$BOOT_JDK/bin/javac 29047 if test ! -x $JAVAC; then 29048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29049 $as_echo "not found" >&6; } 29050 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 29051 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29052 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 29053 fi 29054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29055 $as_echo "ok" >&6; } 29056 29057 29058 else 29059 # The variable is set, but is it from the command line or the environment? 29060 29061 # Try to remove the string !JAVAC! from our list. 29062 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 29063 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 29064 # If it failed, the variable was not from the command line. Ignore it, 29065 # but warn the user (except for BASH, which is always set by the calling BASH). 29066 if test "xJAVAC" != xBASH; then 29067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 29068 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 29069 fi 29070 # Try to locate tool using the code snippet 29071 29072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 29073 $as_echo_n "checking for javac in Boot JDK... " >&6; } 29074 JAVAC=$BOOT_JDK/bin/javac 29075 if test ! -x $JAVAC; then 29076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29077 $as_echo "not found" >&6; } 29078 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 29079 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29080 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 29081 fi 29082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29083 $as_echo "ok" >&6; } 29084 29085 29086 else 29087 # If it succeeded, then it was overridden by the user. We will use it 29088 # for the tool. 29089 29090 # First remove it from the list of overridden variables, so we can test 29091 # for unknown variables in the end. 29092 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 29093 29094 # Check if we try to supply an empty value 29095 if test "x$JAVAC" = x; then 29096 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAC= (no value)" >&5 29097 $as_echo "$as_me: Setting user supplied tool JAVAC= (no value)" >&6;} 29098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 29099 $as_echo_n "checking for JAVAC... " >&6; } 29100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 29101 $as_echo "disabled" >&6; } 29102 else 29103 # Check if the provided tool contains a complete path. 29104 tool_specified="$JAVAC" 29105 tool_basename="${tool_specified##*/}" 29106 if test "x$tool_basename" = "x$tool_specified"; then 29107 # A command without a complete path is provided, search $PATH. 29108 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 29109 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 29110 # Extract the first word of "$tool_basename", so it can be a program name with args. 29111 set dummy $tool_basename; ac_word=$2 29112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29113 $as_echo_n "checking for $ac_word... " >&6; } 29114 if ${ac_cv_path_JAVAC+:} false; then : 29115 $as_echo_n "(cached) " >&6 29116 else 29117 case $JAVAC in 29118 [\\/]* | ?:[\\/]*) 29119 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 29120 ;; 29121 *) 29122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29123 for as_dir in $PATH 29124 do 29125 IFS=$as_save_IFS 29126 test -z "$as_dir" && as_dir=. 29127 for ac_exec_ext in '' $ac_executable_extensions; do 29128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29129 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 29130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29131 break 2 29132 fi 29133 done 29134 done 29135 IFS=$as_save_IFS 29136 29137 ;; 29138 esac 29139 fi 29140 JAVAC=$ac_cv_path_JAVAC 29141 if test -n "$JAVAC"; then 29142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 29143 $as_echo "$JAVAC" >&6; } 29144 else 29145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29146 $as_echo "no" >&6; } 29147 fi 29148 29149 29150 if test "x$JAVAC" = x; then 29151 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 29152 fi 29153 else 29154 # Otherwise we believe it is a complete path. Use it as it is. 29155 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 29156 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 29157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 29158 $as_echo_n "checking for JAVAC... " >&6; } 29159 if test ! -x "$tool_specified"; then 29160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29161 $as_echo "not found" >&6; } 29162 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 29163 fi 29164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 29165 $as_echo "$tool_specified" >&6; } 29166 fi 29167 fi 29168 fi 29169 29170 fi 29171 29172 29173 29174 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 29175 29176 # Publish this variable in the help. 29177 29178 29179 if [ -z "${JAVAH+x}" ]; then 29180 # The variable is not set by user, try to locate tool using the code snippet 29181 29182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 29183 $as_echo_n "checking for javah in Boot JDK... " >&6; } 29184 JAVAH=$BOOT_JDK/bin/javah 29185 if test ! -x $JAVAH; then 29186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29187 $as_echo "not found" >&6; } 29188 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 29189 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29190 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 29191 fi 29192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29193 $as_echo "ok" >&6; } 29194 29195 29196 else 29197 # The variable is set, but is it from the command line or the environment? 29198 29199 # Try to remove the string !JAVAH! from our list. 29200 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 29201 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 29202 # If it failed, the variable was not from the command line. Ignore it, 29203 # but warn the user (except for BASH, which is always set by the calling BASH). 29204 if test "xJAVAH" != xBASH; then 29205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 29206 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 29207 fi 29208 # Try to locate tool using the code snippet 29209 29210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 29211 $as_echo_n "checking for javah in Boot JDK... " >&6; } 29212 JAVAH=$BOOT_JDK/bin/javah 29213 if test ! -x $JAVAH; then 29214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29215 $as_echo "not found" >&6; } 29216 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 29217 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29218 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 29219 fi 29220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29221 $as_echo "ok" >&6; } 29222 29223 29224 else 29225 # If it succeeded, then it was overridden by the user. We will use it 29226 # for the tool. 29227 29228 # First remove it from the list of overridden variables, so we can test 29229 # for unknown variables in the end. 29230 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 29231 29232 # Check if we try to supply an empty value 29233 if test "x$JAVAH" = x; then 29234 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAH= (no value)" >&5 29235 $as_echo "$as_me: Setting user supplied tool JAVAH= (no value)" >&6;} 29236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 29237 $as_echo_n "checking for JAVAH... " >&6; } 29238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 29239 $as_echo "disabled" >&6; } 29240 else 29241 # Check if the provided tool contains a complete path. 29242 tool_specified="$JAVAH" 29243 tool_basename="${tool_specified##*/}" 29244 if test "x$tool_basename" = "x$tool_specified"; then 29245 # A command without a complete path is provided, search $PATH. 29246 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 29247 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 29248 # Extract the first word of "$tool_basename", so it can be a program name with args. 29249 set dummy $tool_basename; ac_word=$2 29250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29251 $as_echo_n "checking for $ac_word... " >&6; } 29252 if ${ac_cv_path_JAVAH+:} false; then : 29253 $as_echo_n "(cached) " >&6 29254 else 29255 case $JAVAH in 29256 [\\/]* | ?:[\\/]*) 29257 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 29258 ;; 29259 *) 29260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29261 for as_dir in $PATH 29262 do 29263 IFS=$as_save_IFS 29264 test -z "$as_dir" && as_dir=. 29265 for ac_exec_ext in '' $ac_executable_extensions; do 29266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29267 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 29268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29269 break 2 29270 fi 29271 done 29272 done 29273 IFS=$as_save_IFS 29274 29275 ;; 29276 esac 29277 fi 29278 JAVAH=$ac_cv_path_JAVAH 29279 if test -n "$JAVAH"; then 29280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 29281 $as_echo "$JAVAH" >&6; } 29282 else 29283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29284 $as_echo "no" >&6; } 29285 fi 29286 29287 29288 if test "x$JAVAH" = x; then 29289 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 29290 fi 29291 else 29292 # Otherwise we believe it is a complete path. Use it as it is. 29293 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 29294 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 29295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 29296 $as_echo_n "checking for JAVAH... " >&6; } 29297 if test ! -x "$tool_specified"; then 29298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29299 $as_echo "not found" >&6; } 29300 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 29301 fi 29302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 29303 $as_echo "$tool_specified" >&6; } 29304 fi 29305 fi 29306 fi 29307 29308 fi 29309 29310 29311 29312 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 29313 29314 # Publish this variable in the help. 29315 29316 29317 if [ -z "${JAR+x}" ]; then 29318 # The variable is not set by user, try to locate tool using the code snippet 29319 29320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 29321 $as_echo_n "checking for jar in Boot JDK... " >&6; } 29322 JAR=$BOOT_JDK/bin/jar 29323 if test ! -x $JAR; then 29324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29325 $as_echo "not found" >&6; } 29326 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 29327 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29328 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 29329 fi 29330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29331 $as_echo "ok" >&6; } 29332 29333 29334 else 29335 # The variable is set, but is it from the command line or the environment? 29336 29337 # Try to remove the string !JAR! from our list. 29338 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 29339 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 29340 # If it failed, the variable was not from the command line. Ignore it, 29341 # but warn the user (except for BASH, which is always set by the calling BASH). 29342 if test "xJAR" != xBASH; then 29343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 29344 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 29345 fi 29346 # Try to locate tool using the code snippet 29347 29348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 29349 $as_echo_n "checking for jar in Boot JDK... " >&6; } 29350 JAR=$BOOT_JDK/bin/jar 29351 if test ! -x $JAR; then 29352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29353 $as_echo "not found" >&6; } 29354 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 29355 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29356 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 29357 fi 29358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29359 $as_echo "ok" >&6; } 29360 29361 29362 else 29363 # If it succeeded, then it was overridden by the user. We will use it 29364 # for the tool. 29365 29366 # First remove it from the list of overridden variables, so we can test 29367 # for unknown variables in the end. 29368 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 29369 29370 # Check if we try to supply an empty value 29371 if test "x$JAR" = x; then 29372 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAR= (no value)" >&5 29373 $as_echo "$as_me: Setting user supplied tool JAR= (no value)" >&6;} 29374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 29375 $as_echo_n "checking for JAR... " >&6; } 29376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 29377 $as_echo "disabled" >&6; } 29378 else 29379 # Check if the provided tool contains a complete path. 29380 tool_specified="$JAR" 29381 tool_basename="${tool_specified##*/}" 29382 if test "x$tool_basename" = "x$tool_specified"; then 29383 # A command without a complete path is provided, search $PATH. 29384 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 29385 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 29386 # Extract the first word of "$tool_basename", so it can be a program name with args. 29387 set dummy $tool_basename; ac_word=$2 29388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29389 $as_echo_n "checking for $ac_word... " >&6; } 29390 if ${ac_cv_path_JAR+:} false; then : 29391 $as_echo_n "(cached) " >&6 29392 else 29393 case $JAR in 29394 [\\/]* | ?:[\\/]*) 29395 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 29396 ;; 29397 *) 29398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29399 for as_dir in $PATH 29400 do 29401 IFS=$as_save_IFS 29402 test -z "$as_dir" && as_dir=. 29403 for ac_exec_ext in '' $ac_executable_extensions; do 29404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29405 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 29406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29407 break 2 29408 fi 29409 done 29410 done 29411 IFS=$as_save_IFS 29412 29413 ;; 29414 esac 29415 fi 29416 JAR=$ac_cv_path_JAR 29417 if test -n "$JAR"; then 29418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 29419 $as_echo "$JAR" >&6; } 29420 else 29421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29422 $as_echo "no" >&6; } 29423 fi 29424 29425 29426 if test "x$JAR" = x; then 29427 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 29428 fi 29429 else 29430 # Otherwise we believe it is a complete path. Use it as it is. 29431 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 29432 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 29433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 29434 $as_echo_n "checking for JAR... " >&6; } 29435 if test ! -x "$tool_specified"; then 29436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29437 $as_echo "not found" >&6; } 29438 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 29439 fi 29440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 29441 $as_echo "$tool_specified" >&6; } 29442 fi 29443 fi 29444 fi 29445 29446 fi 29447 29448 29449 29450 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 29451 29452 # Publish this variable in the help. 29453 29454 29455 if [ -z "${JARSIGNER+x}" ]; then 29456 # The variable is not set by user, try to locate tool using the code snippet 29457 29458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 29459 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 29460 JARSIGNER=$BOOT_JDK/bin/jarsigner 29461 if test ! -x $JARSIGNER; then 29462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29463 $as_echo "not found" >&6; } 29464 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 29465 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29466 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 29467 fi 29468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29469 $as_echo "ok" >&6; } 29470 29471 29472 else 29473 # The variable is set, but is it from the command line or the environment? 29474 29475 # Try to remove the string !JARSIGNER! from our list. 29476 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 29477 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 29478 # If it failed, the variable was not from the command line. Ignore it, 29479 # but warn the user (except for BASH, which is always set by the calling BASH). 29480 if test "xJARSIGNER" != xBASH; then 29481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 29482 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 29483 fi 29484 # Try to locate tool using the code snippet 29485 29486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 29487 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 29488 JARSIGNER=$BOOT_JDK/bin/jarsigner 29489 if test ! -x $JARSIGNER; then 29490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29491 $as_echo "not found" >&6; } 29492 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 29493 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29494 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 29495 fi 29496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29497 $as_echo "ok" >&6; } 29498 29499 29500 else 29501 # If it succeeded, then it was overridden by the user. We will use it 29502 # for the tool. 29503 29504 # First remove it from the list of overridden variables, so we can test 29505 # for unknown variables in the end. 29506 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 29507 29508 # Check if we try to supply an empty value 29509 if test "x$JARSIGNER" = x; then 29510 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JARSIGNER= (no value)" >&5 29511 $as_echo "$as_me: Setting user supplied tool JARSIGNER= (no value)" >&6;} 29512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 29513 $as_echo_n "checking for JARSIGNER... " >&6; } 29514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 29515 $as_echo "disabled" >&6; } 29516 else 29517 # Check if the provided tool contains a complete path. 29518 tool_specified="$JARSIGNER" 29519 tool_basename="${tool_specified##*/}" 29520 if test "x$tool_basename" = "x$tool_specified"; then 29521 # A command without a complete path is provided, search $PATH. 29522 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 29523 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 29524 # Extract the first word of "$tool_basename", so it can be a program name with args. 29525 set dummy $tool_basename; ac_word=$2 29526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29527 $as_echo_n "checking for $ac_word... " >&6; } 29528 if ${ac_cv_path_JARSIGNER+:} false; then : 29529 $as_echo_n "(cached) " >&6 29530 else 29531 case $JARSIGNER in 29532 [\\/]* | ?:[\\/]*) 29533 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 29534 ;; 29535 *) 29536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29537 for as_dir in $PATH 29538 do 29539 IFS=$as_save_IFS 29540 test -z "$as_dir" && as_dir=. 29541 for ac_exec_ext in '' $ac_executable_extensions; do 29542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29543 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 29544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29545 break 2 29546 fi 29547 done 29548 done 29549 IFS=$as_save_IFS 29550 29551 ;; 29552 esac 29553 fi 29554 JARSIGNER=$ac_cv_path_JARSIGNER 29555 if test -n "$JARSIGNER"; then 29556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 29557 $as_echo "$JARSIGNER" >&6; } 29558 else 29559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29560 $as_echo "no" >&6; } 29561 fi 29562 29563 29564 if test "x$JARSIGNER" = x; then 29565 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 29566 fi 29567 else 29568 # Otherwise we believe it is a complete path. Use it as it is. 29569 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 29570 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 29571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 29572 $as_echo_n "checking for JARSIGNER... " >&6; } 29573 if test ! -x "$tool_specified"; then 29574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29575 $as_echo "not found" >&6; } 29576 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 29577 fi 29578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 29579 $as_echo "$tool_specified" >&6; } 29580 fi 29581 fi 29582 fi 29583 29584 fi 29585 29586 29587 29588 # Finally, set some other options... 29589 29590 # When compiling code to be executed by the Boot JDK, force jdk8 compatibility. 29591 BOOT_JDK_SOURCETARGET="-source 8 -target 8" 29592 29593 29594 29595 # Check if the boot jdk is 32 or 64 bit 29596 if "$JAVA" -d64 -version > /dev/null 2>&1; then 29597 BOOT_JDK_BITS="64" 29598 else 29599 BOOT_JDK_BITS="32" 29600 fi 29601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5 29602 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; } 29603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5 29604 $as_echo "$BOOT_JDK_BITS" >&6; } 29605 29606 29607 29608 ############################################################################### 29609 # 29610 # Configure the sources to use. We can add or override individual directories. 29611 # 29612 ############################################################################### 29613 29614 29615 # Where are the sources. 29616 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 29617 CORBA_TOPDIR="$SRC_ROOT/corba" 29618 JAXP_TOPDIR="$SRC_ROOT/jaxp" 29619 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 29620 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 29621 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 29622 JDK_TOPDIR="$SRC_ROOT/jdk" 29623 29624 29625 29626 29627 29628 29629 29630 29631 29632 # This feature is no longer supported. 29633 29634 29635 29636 # Check whether --with-add-source-root was given. 29637 if test "${with_add_source_root+set}" = set; then : 29638 withval=$with_add_source_root; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-add-source-root is deprecated and will be ignored." >&5 29639 $as_echo "$as_me: WARNING: Option --with-add-source-root is deprecated and will be ignored." >&2;} 29640 fi 29641 29642 29643 29644 29645 # Check whether --with-override-source-root was given. 29646 if test "${with_override_source_root+set}" = set; then : 29647 withval=$with_override_source_root; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-source-root is deprecated and will be ignored." >&5 29648 $as_echo "$as_me: WARNING: Option --with-override-source-root is deprecated and will be ignored." >&2;} 29649 fi 29650 29651 29652 29653 29654 # Check whether --with-adds-and-overrides was given. 29655 if test "${with_adds_and_overrides+set}" = set; then : 29656 withval=$with_adds_and_overrides; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-adds-and-overrides is deprecated and will be ignored." >&5 29657 $as_echo "$as_me: WARNING: Option --with-adds-and-overrides is deprecated and will be ignored." >&2;} 29658 fi 29659 29660 29661 29662 29663 # Check whether --with-override-langtools was given. 29664 if test "${with_override_langtools+set}" = set; then : 29665 withval=$with_override_langtools; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-langtools is deprecated and will be ignored." >&5 29666 $as_echo "$as_me: WARNING: Option --with-override-langtools is deprecated and will be ignored." >&2;} 29667 fi 29668 29669 29670 29671 29672 # Check whether --with-override-corba was given. 29673 if test "${with_override_corba+set}" = set; then : 29674 withval=$with_override_corba; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-corba is deprecated and will be ignored." >&5 29675 $as_echo "$as_me: WARNING: Option --with-override-corba is deprecated and will be ignored." >&2;} 29676 fi 29677 29678 29679 29680 29681 # Check whether --with-override-jaxp was given. 29682 if test "${with_override_jaxp+set}" = set; then : 29683 withval=$with_override_jaxp; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jaxp is deprecated and will be ignored." >&5 29684 $as_echo "$as_me: WARNING: Option --with-override-jaxp is deprecated and will be ignored." >&2;} 29685 fi 29686 29687 29688 29689 29690 # Check whether --with-override-jaxws was given. 29691 if test "${with_override_jaxws+set}" = set; then : 29692 withval=$with_override_jaxws; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jaxws is deprecated and will be ignored." >&5 29693 $as_echo "$as_me: WARNING: Option --with-override-jaxws is deprecated and will be ignored." >&2;} 29694 fi 29695 29696 29697 29698 29699 # Check whether --with-override-hotspot was given. 29700 if test "${with_override_hotspot+set}" = set; then : 29701 withval=$with_override_hotspot; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-hotspot is deprecated and will be ignored." >&5 29702 $as_echo "$as_me: WARNING: Option --with-override-hotspot is deprecated and will be ignored." >&2;} 29703 fi 29704 29705 29706 29707 29708 # Check whether --with-override-nashorn was given. 29709 if test "${with_override_nashorn+set}" = set; then : 29710 withval=$with_override_nashorn; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-nashorn is deprecated and will be ignored." >&5 29711 $as_echo "$as_me: WARNING: Option --with-override-nashorn is deprecated and will be ignored." >&2;} 29712 fi 29713 29714 29715 29716 29717 # Check whether --with-override-jdk was given. 29718 if test "${with_override_jdk+set}" = set; then : 29719 withval=$with_override_jdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jdk is deprecated and will be ignored." >&5 29720 $as_echo "$as_me: WARNING: Option --with-override-jdk is deprecated and will be ignored." >&2;} 29721 fi 29722 29723 29724 29725 29726 BUILD_OUTPUT="$OUTPUT_ROOT" 29727 29728 29729 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 29730 BUILD_HOTSPOT=true 29731 29732 29733 29734 # Check whether --with-import-hotspot was given. 29735 if test "${with_import_hotspot+set}" = set; then : 29736 withval=$with_import_hotspot; 29737 fi 29738 29739 if test "x$with_import_hotspot" != x; then 29740 CURDIR="$PWD" 29741 cd "$with_import_hotspot" 29742 HOTSPOT_DIST="`pwd`" 29743 cd "$CURDIR" 29744 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 29745 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 29746 fi 29747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 29748 $as_echo_n "checking if hotspot should be imported... " >&6; } 29749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 29750 $as_echo "yes from $HOTSPOT_DIST" >&6; } 29751 BUILD_HOTSPOT=false 29752 fi 29753 29754 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 29755 29756 29757 ############################################################################### 29758 # 29759 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 29760 # native code. 29761 # 29762 ############################################################################### 29763 29764 # See if we are doing a complete static build or not 29765 29766 # Check whether --enable-static-build was given. 29767 if test "${enable_static_build+set}" = set; then : 29768 enableval=$enable_static_build; 29769 fi 29770 29771 STATIC_BUILD=false 29772 if test "x$enable_static_build" = "xyes"; then 29773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 29774 $as_echo_n "checking if static build is enabled... " >&6; } 29775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29776 $as_echo "yes" >&6; } 29777 if test "x$OPENJDK_TARGET_OS" != "xmacosx"; then 29778 as_fn_error $? "--enable-static-build is only supported for macosx builds" "$LINENO" 5 29779 fi 29780 STATIC_BUILD_CFLAGS="-DSTATIC_BUILD=1" 29781 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $STATIC_BUILD_CFLAGS" 29782 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $STATIC_BUILD_CFLAGS" 29783 CFLAGS_JDKLIB_EXTRA="$CFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 29784 CXXFLAGS_JDKLIB_EXTRA="$CXXFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 29785 STATIC_BUILD=true 29786 elif test "x$enable_static_build" = "xno"; then 29787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 29788 $as_echo_n "checking if static build is enabled... " >&6; } 29789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29790 $as_echo "no" >&6; } 29791 elif test "x$enable_static_build" != "x"; then 29792 as_fn_error $? "--enable-static-build can only be assigned \"yes\" or \"no\"" "$LINENO" 5 29793 fi 29794 29795 29796 29797 29798 # First determine the toolchain type (compiler family) 29799 29800 29801 # Check whether --with-toolchain-type was given. 29802 if test "${with_toolchain_type+set}" = set; then : 29803 withval=$with_toolchain_type; 29804 fi 29805 29806 29807 # Use indirect variable referencing 29808 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 29809 VALID_TOOLCHAINS=${!toolchain_var_name} 29810 29811 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 29812 if test -n "$XCODEBUILD"; then 29813 # On Mac OS X, default toolchain to clang after Xcode 5 29814 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 29815 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 29816 if test $? -ne 0; then 29817 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 29818 fi 29819 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 29820 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 29821 $CUT -f 1 -d .` 29822 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 29823 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 29824 if test $XCODE_MAJOR_VERSION -ge 5; then 29825 DEFAULT_TOOLCHAIN="clang" 29826 else 29827 DEFAULT_TOOLCHAIN="gcc" 29828 fi 29829 else 29830 # If Xcode is not installed, but the command line tools are 29831 # then we can't run xcodebuild. On these systems we should 29832 # default to clang 29833 DEFAULT_TOOLCHAIN="clang" 29834 fi 29835 else 29836 # First toolchain type in the list is the default 29837 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 29838 fi 29839 29840 if test "x$with_toolchain_type" = xlist; then 29841 # List all toolchains 29842 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 29843 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 29844 for toolchain in $VALID_TOOLCHAINS; do 29845 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 29846 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 29847 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 29848 done 29849 29850 exit 0 29851 elif test "x$with_toolchain_type" != x; then 29852 # User override; check that it is valid 29853 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 29854 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 29855 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 29856 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 29857 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 29858 as_fn_error $? "Cannot continue." "$LINENO" 5 29859 fi 29860 TOOLCHAIN_TYPE=$with_toolchain_type 29861 else 29862 # No flag given, use default 29863 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 29864 fi 29865 29866 29867 TOOLCHAIN_CC_BINARY_clang="clang" 29868 TOOLCHAIN_CC_BINARY_gcc="gcc" 29869 TOOLCHAIN_CC_BINARY_microsoft="cl" 29870 TOOLCHAIN_CC_BINARY_solstudio="cc" 29871 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 29872 29873 TOOLCHAIN_CXX_BINARY_clang="clang++" 29874 TOOLCHAIN_CXX_BINARY_gcc="g++" 29875 TOOLCHAIN_CXX_BINARY_microsoft="cl" 29876 TOOLCHAIN_CXX_BINARY_solstudio="CC" 29877 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 29878 29879 # Use indirect variable referencing 29880 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 29881 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 29882 toolchain_var_name=TOOLCHAIN_MINIMUM_VERSION_$TOOLCHAIN_TYPE 29883 TOOLCHAIN_MINIMUM_VERSION=${!toolchain_var_name} 29884 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 29885 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 29886 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 29887 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 29888 29889 29890 # Define filename patterns 29891 if test "x$OPENJDK_TARGET_OS" = xwindows; then 29892 LIBRARY_PREFIX= 29893 SHARED_LIBRARY_SUFFIX='.dll' 29894 STATIC_LIBRARY_SUFFIX='.lib' 29895 SHARED_LIBRARY='$1.dll' 29896 STATIC_LIBRARY='$1.lib' 29897 OBJ_SUFFIX='.obj' 29898 EXE_SUFFIX='.exe' 29899 else 29900 LIBRARY_PREFIX=lib 29901 SHARED_LIBRARY_SUFFIX='.so' 29902 STATIC_LIBRARY_SUFFIX='.a' 29903 SHARED_LIBRARY='lib$1.so' 29904 STATIC_LIBRARY='lib$1.a' 29905 OBJ_SUFFIX='.o' 29906 EXE_SUFFIX='' 29907 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 29908 # For full static builds, we're overloading the SHARED_LIBRARY 29909 # variables in order to limit the amount of changes required. 29910 # It would be better to remove SHARED and just use LIBRARY and 29911 # LIBRARY_SUFFIX for libraries that can be built either 29912 # shared or static and use STATIC_* for libraries that are 29913 # always built statically. 29914 if test "x$STATIC_BUILD" = xtrue; then 29915 SHARED_LIBRARY='lib$1.a' 29916 SHARED_LIBRARY_SUFFIX='.a' 29917 else 29918 SHARED_LIBRARY='lib$1.dylib' 29919 SHARED_LIBRARY_SUFFIX='.dylib' 29920 fi 29921 fi 29922 fi 29923 29924 29925 29926 29927 29928 29929 29930 29931 29932 29933 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 29934 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 29935 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 29936 else 29937 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 29938 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 29939 fi 29940 29941 29942 # User supplied flags should be used when configure detects compilers 29943 29944 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 29945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 29946 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 29947 fi 29948 29949 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 29950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 29951 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 29952 fi 29953 29954 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 29955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 29956 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 29957 fi 29958 29959 29960 # Check whether --with-extra-cflags was given. 29961 if test "${with_extra_cflags+set}" = set; then : 29962 withval=$with_extra_cflags; 29963 fi 29964 29965 29966 29967 # Check whether --with-extra-cxxflags was given. 29968 if test "${with_extra_cxxflags+set}" = set; then : 29969 withval=$with_extra_cxxflags; 29970 fi 29971 29972 29973 29974 # Check whether --with-extra-ldflags was given. 29975 if test "${with_extra_ldflags+set}" = set; then : 29976 withval=$with_extra_ldflags; 29977 fi 29978 29979 29980 EXTRA_CFLAGS="$with_extra_cflags" 29981 EXTRA_CXXFLAGS="$with_extra_cxxflags" 29982 EXTRA_LDFLAGS="$with_extra_ldflags" 29983 29984 # Hotspot needs these set in their legacy form 29985 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $EXTRA_CFLAGS" 29986 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $EXTRA_CXXFLAGS" 29987 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $EXTRA_LDFLAGS" 29988 29989 29990 29991 29992 29993 # The global CFLAGS and LDLAGS variables are used by configure tests and 29994 # should include the extra parameters 29995 CFLAGS="$EXTRA_CFLAGS" 29996 CXXFLAGS="$EXTRA_CXXFLAGS" 29997 LDFLAGS="$EXTRA_LDFLAGS" 29998 CPPFLAGS="" 29999 30000 # The sysroot cflags are needed for configure to be able to run the compilers 30001 30002 if test "x$SYSROOT" != "x"; then 30003 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 30004 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 30005 # Solaris Studio does not have a concept of sysroot. Instead we must 30006 # make sure the default include and lib dirs are appended to each 30007 # compile and link command line. Must also add -I-xbuiltin to enable 30008 # inlining of system functions and intrinsics. 30009 SYSROOT_CFLAGS="-I-xbuiltin -I$SYSROOT/usr/include" 30010 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 30011 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \ 30012 -L$SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR" 30013 fi 30014 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 30015 SYSROOT_CFLAGS="--sysroot=$SYSROOT" 30016 SYSROOT_LDFLAGS="--sysroot=$SYSROOT" 30017 elif test "x$TOOLCHAIN_TYPE" = xclang; then 30018 SYSROOT_CFLAGS="-isysroot $SYSROOT" 30019 SYSROOT_LDFLAGS="-isysroot $SYSROOT" 30020 fi 30021 # Propagate the sysroot args to hotspot 30022 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $SYSROOT_CFLAGS" 30023 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $SYSROOT_CFLAGS" 30024 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $SYSROOT_LDFLAGS" 30025 # The global CFLAGS and LDFLAGS variables need these for configure to function 30026 CFLAGS="$CFLAGS $SYSROOT_CFLAGS" 30027 CPPFLAGS="$CPPFLAGS $SYSROOT_CFLAGS" 30028 CXXFLAGS="$CXXFLAGS $SYSROOT_CFLAGS" 30029 LDFLAGS="$LDFLAGS $SYSROOT_LDFLAGS" 30030 fi 30031 30032 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 30033 # We also need -iframework<path>/System/Library/Frameworks 30034 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -iframework $SYSROOT/System/Library/Frameworks" 30035 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -iframework $SYSROOT/System/Library/Frameworks" 30036 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 30037 # set this here so it doesn't have to be peppered throughout the forest 30038 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 30039 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 30040 fi 30041 30042 30043 30044 30045 30046 # Then detect the actual binaries needed 30047 30048 # FIXME: Is this needed? 30049 ac_ext=cpp 30050 ac_cpp='$CXXCPP $CPPFLAGS' 30051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30054 30055 30056 # Store the CFLAGS etc passed to the configure script. 30057 ORG_CFLAGS="$CFLAGS" 30058 ORG_CXXFLAGS="$CXXFLAGS" 30059 30060 # autoconf magic only relies on PATH, so update it if tools dir is specified 30061 OLD_PATH="$PATH" 30062 30063 # On Windows, we need to detect the visual studio installation first. 30064 # This will change the PATH, but we need to keep that new PATH even 30065 # after toolchain detection is done, since the compiler (on x86) uses 30066 # it for DLL resolution in runtime. 30067 if test "x$OPENJDK_BUILD_OS" = "xwindows" \ 30068 && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 30069 30070 # Store path to cygwin link.exe to help excluding it when searching for 30071 # VS linker. This must be done before changing the PATH when looking for VS. 30072 # Extract the first word of "link", so it can be a program name with args. 30073 set dummy link; ac_word=$2 30074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30075 $as_echo_n "checking for $ac_word... " >&6; } 30076 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 30077 $as_echo_n "(cached) " >&6 30078 else 30079 case $CYGWIN_LINK in 30080 [\\/]* | ?:[\\/]*) 30081 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 30082 ;; 30083 *) 30084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30085 for as_dir in $PATH 30086 do 30087 IFS=$as_save_IFS 30088 test -z "$as_dir" && as_dir=. 30089 for ac_exec_ext in '' $ac_executable_extensions; do 30090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30091 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 30092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30093 break 2 30094 fi 30095 done 30096 done 30097 IFS=$as_save_IFS 30098 30099 ;; 30100 esac 30101 fi 30102 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 30103 if test -n "$CYGWIN_LINK"; then 30104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 30105 $as_echo "$CYGWIN_LINK" >&6; } 30106 else 30107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30108 $as_echo "no" >&6; } 30109 fi 30110 30111 30112 if test "x$CYGWIN_LINK" != x; then 30113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 30114 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 30115 "$CYGWIN_LINK" --version > /dev/null 30116 if test $? -eq 0 ; then 30117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30118 $as_echo "yes" >&6; } 30119 else 30120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30121 $as_echo "no" >&6; } 30122 # This might be the VS linker. Don't exclude it later on. 30123 CYGWIN_LINK="" 30124 fi 30125 fi 30126 30127 # First-hand choice is to locate and run the vsvars bat file. 30128 30129 30130 # Check whether --with-toolchain-version was given. 30131 if test "${with_toolchain_version+set}" = set; then : 30132 withval=$with_toolchain_version; 30133 fi 30134 30135 30136 if test "x$with_toolchain_version" = xlist; then 30137 # List all toolchains 30138 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchain versions are valid on this platform:" >&5 30139 $as_echo "$as_me: The following toolchain versions are valid on this platform:" >&6;} 30140 for version in $VALID_VS_VERSIONS; do 30141 eval VS_DESCRIPTION=\${VS_DESCRIPTION_$version} 30142 $PRINTF " %-10s %s\n" $version "$VS_DESCRIPTION" 30143 done 30144 30145 exit 0 30146 elif test "x$DEVKIT_VS_VERSION" != x; then 30147 VS_VERSION=$DEVKIT_VS_VERSION 30148 TOOLCHAIN_VERSION=$VS_VERSION 30149 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 30150 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 30151 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 30152 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 30153 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 30154 VS_PATH="$TOOLCHAIN_PATH:$PATH" 30155 30156 # Convert DEVKIT_VS_INCLUDE into windows style VS_INCLUDE so that it 30157 # can still be exported as INCLUDE for compiler invocations without 30158 # SYSROOT_CFLAGS 30159 OLDIFS="$IFS" 30160 IFS=";" 30161 for i in $DEVKIT_VS_INCLUDE; do 30162 ipath=$i 30163 30164 unix_path="$ipath" 30165 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30166 windows_path=`$CYGPATH -m "$unix_path"` 30167 ipath="$windows_path" 30168 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30169 windows_path=`cmd //c echo $unix_path` 30170 ipath="$windows_path" 30171 fi 30172 30173 VS_INCLUDE="$VS_INCLUDE;$ipath" 30174 done 30175 # Convert DEVKIT_VS_LIB into VS_LIB so that it can still be exported 30176 # as LIB for compiler invocations without SYSROOT_LDFLAGS 30177 for i in $DEVKIT_VS_LIB; do 30178 libpath=$i 30179 30180 unix_path="$libpath" 30181 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30182 windows_path=`$CYGPATH -m "$unix_path"` 30183 libpath="$windows_path" 30184 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30185 windows_path=`cmd //c echo $unix_path` 30186 libpath="$windows_path" 30187 fi 30188 30189 VS_LIB="$VS_LIB;$libpath" 30190 done 30191 IFS="$OLDIFS" 30192 30193 { $as_echo "$as_me:${as_lineno-$LINENO}: Found devkit $VS_DESCRIPTION" >&5 30194 $as_echo "$as_me: Found devkit $VS_DESCRIPTION" >&6;} 30195 30196 elif test "x$with_toolchain_version" != x; then 30197 # User override; check that it is valid 30198 if test "x${VALID_VS_VERSIONS/$with_toolchain_version/}" = "x${VALID_VS_VERSIONS}"; then 30199 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio version $with_toolchain_version is not valid." >&5 30200 $as_echo "$as_me: Visual Studio version $with_toolchain_version is not valid." >&6;} 30201 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&5 30202 $as_echo "$as_me: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&6;} 30203 as_fn_error $? "Cannot continue." "$LINENO" 5 30204 fi 30205 VS_VERSIONS_PROBE_LIST="$with_toolchain_version" 30206 else 30207 # No flag given, use default 30208 VS_VERSIONS_PROBE_LIST="$VALID_VS_VERSIONS" 30209 fi 30210 30211 for VS_VERSION in $VS_VERSIONS_PROBE_LIST; do 30212 30213 VS_VERSION="$VS_VERSION" 30214 eval VS_COMNTOOLS_VAR="\${VS_ENVVAR_${VS_VERSION}}" 30215 eval VS_COMNTOOLS="\$${VS_COMNTOOLS_VAR}" 30216 eval VS_INSTALL_DIR="\${VS_VS_INSTALLDIR_${VS_VERSION}}" 30217 eval SDK_INSTALL_DIR="\${VS_SDK_INSTALLDIR_${VS_VERSION}}" 30218 30219 # When using --with-tools-dir, assume it points to the correct and default 30220 # version of Visual Studio or that --with-toolchain-version was also set. 30221 if test "x$with_tools_dir" != x; then 30222 30223 if test "x$VS_ENV_CMD" = x; then 30224 VS_VERSION="${VS_VERSION}" 30225 VS_BASE="$with_tools_dir/../.." 30226 METHOD="--with-tools-dir" 30227 30228 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 30229 VCVARSFILE="vc/bin/vcvars32.bat" 30230 else 30231 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 30232 fi 30233 30234 30235 windows_path="$VS_BASE" 30236 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30237 unix_path=`$CYGPATH -u "$windows_path"` 30238 VS_BASE="$unix_path" 30239 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30240 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30241 VS_BASE="$unix_path" 30242 fi 30243 30244 if test -d "$VS_BASE"; then 30245 if test -f "$VS_BASE/$VCVARSFILE"; then 30246 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 30247 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 30248 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 30249 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 30250 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 30251 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 30252 else 30253 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 30254 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 30255 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 30256 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 30257 fi 30258 fi 30259 fi 30260 30261 30262 if test "x$VS_ENV_CMD" = x; then 30263 VS_VERSION="${VS_VERSION}" 30264 VS_BASE="$with_tools_dir/../../.." 30265 METHOD="--with-tools-dir" 30266 30267 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 30268 VCVARSFILE="vc/bin/vcvars32.bat" 30269 else 30270 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 30271 fi 30272 30273 30274 windows_path="$VS_BASE" 30275 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30276 unix_path=`$CYGPATH -u "$windows_path"` 30277 VS_BASE="$unix_path" 30278 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30279 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30280 VS_BASE="$unix_path" 30281 fi 30282 30283 if test -d "$VS_BASE"; then 30284 if test -f "$VS_BASE/$VCVARSFILE"; then 30285 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 30286 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 30287 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 30288 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 30289 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 30290 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 30291 else 30292 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 30293 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 30294 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 30295 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 30296 fi 30297 fi 30298 fi 30299 30300 if test "x$VS_ENV_CMD" = x; then 30301 # Having specified an argument which is incorrect will produce an instant failure; 30302 # we should not go on looking 30303 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5 30304 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;} 30305 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5 30306 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;} 30307 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5 30308 $as_echo "$as_me: directory within the Visual Studio installation" >&6;} 30309 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 30310 fi 30311 fi 30312 30313 VS_ENV_CMD="" 30314 VS_ENV_ARGS="" 30315 30316 if test "x$VS_COMNTOOLS" != x; then 30317 30318 if test "x$VS_ENV_CMD" = x; then 30319 VS_VERSION="${VS_VERSION}" 30320 VS_BASE="$VS_COMNTOOLS/../.." 30321 METHOD="$VS_COMNTOOLS_VAR variable" 30322 30323 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 30324 VCVARSFILE="vc/bin/vcvars32.bat" 30325 else 30326 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 30327 fi 30328 30329 30330 windows_path="$VS_BASE" 30331 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30332 unix_path=`$CYGPATH -u "$windows_path"` 30333 VS_BASE="$unix_path" 30334 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30335 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30336 VS_BASE="$unix_path" 30337 fi 30338 30339 if test -d "$VS_BASE"; then 30340 if test -f "$VS_BASE/$VCVARSFILE"; then 30341 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 30342 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 30343 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 30344 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 30345 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 30346 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 30347 else 30348 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 30349 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 30350 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 30351 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 30352 fi 30353 fi 30354 fi 30355 30356 fi 30357 if test "x$PROGRAMFILES" != x; then 30358 30359 if test "x$VS_ENV_CMD" = x; then 30360 VS_VERSION="${VS_VERSION}" 30361 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR" 30362 METHOD="well-known name" 30363 30364 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 30365 VCVARSFILE="vc/bin/vcvars32.bat" 30366 else 30367 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 30368 fi 30369 30370 30371 windows_path="$VS_BASE" 30372 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30373 unix_path=`$CYGPATH -u "$windows_path"` 30374 VS_BASE="$unix_path" 30375 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30376 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30377 VS_BASE="$unix_path" 30378 fi 30379 30380 if test -d "$VS_BASE"; then 30381 if test -f "$VS_BASE/$VCVARSFILE"; then 30382 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 30383 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 30384 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 30385 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 30386 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 30387 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 30388 else 30389 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 30390 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 30391 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 30392 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 30393 fi 30394 fi 30395 fi 30396 30397 fi 30398 # Work around the insanely named ProgramFiles(x86) env variable 30399 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`" 30400 if test "x$PROGRAMFILES_X86" != x; then 30401 30402 if test "x$VS_ENV_CMD" = x; then 30403 VS_VERSION="${VS_VERSION}" 30404 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR" 30405 METHOD="well-known name" 30406 30407 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 30408 VCVARSFILE="vc/bin/vcvars32.bat" 30409 else 30410 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 30411 fi 30412 30413 30414 windows_path="$VS_BASE" 30415 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30416 unix_path=`$CYGPATH -u "$windows_path"` 30417 VS_BASE="$unix_path" 30418 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30419 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30420 VS_BASE="$unix_path" 30421 fi 30422 30423 if test -d "$VS_BASE"; then 30424 if test -f "$VS_BASE/$VCVARSFILE"; then 30425 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 30426 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 30427 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 30428 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 30429 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 30430 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 30431 else 30432 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 30433 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 30434 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 30435 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 30436 fi 30437 fi 30438 fi 30439 30440 fi 30441 30442 if test "x$VS_ENV_CMD" = x; then 30443 VS_VERSION="${VS_VERSION}" 30444 VS_BASE="C:/Program Files/$VS_INSTALL_DIR" 30445 METHOD="well-known name" 30446 30447 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 30448 VCVARSFILE="vc/bin/vcvars32.bat" 30449 else 30450 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 30451 fi 30452 30453 30454 windows_path="$VS_BASE" 30455 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30456 unix_path=`$CYGPATH -u "$windows_path"` 30457 VS_BASE="$unix_path" 30458 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30459 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30460 VS_BASE="$unix_path" 30461 fi 30462 30463 if test -d "$VS_BASE"; then 30464 if test -f "$VS_BASE/$VCVARSFILE"; then 30465 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 30466 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 30467 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 30468 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 30469 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 30470 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 30471 else 30472 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 30473 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 30474 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 30475 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 30476 fi 30477 fi 30478 fi 30479 30480 30481 if test "x$VS_ENV_CMD" = x; then 30482 VS_VERSION="${VS_VERSION}" 30483 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR" 30484 METHOD="well-known name" 30485 30486 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 30487 VCVARSFILE="vc/bin/vcvars32.bat" 30488 else 30489 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 30490 fi 30491 30492 30493 windows_path="$VS_BASE" 30494 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30495 unix_path=`$CYGPATH -u "$windows_path"` 30496 VS_BASE="$unix_path" 30497 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30498 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30499 VS_BASE="$unix_path" 30500 fi 30501 30502 if test -d "$VS_BASE"; then 30503 if test -f "$VS_BASE/$VCVARSFILE"; then 30504 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 30505 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 30506 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 30507 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 30508 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 30509 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 30510 else 30511 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 30512 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 30513 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 30514 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 30515 fi 30516 fi 30517 fi 30518 30519 30520 if test "x$SDK_INSTALL_DIR" != x; then 30521 if test "x$ProgramW6432" != x; then 30522 30523 if test "x$VS_ENV_CMD" = x; then 30524 VS_VERSION="${VS_VERSION}" 30525 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR" 30526 METHOD="well-known name" 30527 30528 windows_path="$WIN_SDK_BASE" 30529 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30530 unix_path=`$CYGPATH -u "$windows_path"` 30531 WIN_SDK_BASE="$unix_path" 30532 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30533 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30534 WIN_SDK_BASE="$unix_path" 30535 fi 30536 30537 if test -d "$WIN_SDK_BASE"; then 30538 # There have been cases of partial or broken SDK installations. A missing 30539 # lib dir is not going to work. 30540 if test ! -d "$WIN_SDK_BASE/lib"; then 30541 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30542 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30543 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 30544 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 30545 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 30546 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30547 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30548 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 30549 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 30550 VS_ENV_ARGS="/x86" 30551 else 30552 VS_ENV_ARGS="/x64" 30553 fi 30554 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 30555 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 30556 # TODO: improve detection for other versions of SDK 30557 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 30558 else 30559 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30560 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30561 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 30562 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 30563 fi 30564 fi 30565 fi 30566 30567 fi 30568 if test "x$PROGRAMW6432" != x; then 30569 30570 if test "x$VS_ENV_CMD" = x; then 30571 VS_VERSION="${VS_VERSION}" 30572 WIN_SDK_BASE="$PROGRAMW6432/$SDK_INSTALL_DIR" 30573 METHOD="well-known name" 30574 30575 windows_path="$WIN_SDK_BASE" 30576 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30577 unix_path=`$CYGPATH -u "$windows_path"` 30578 WIN_SDK_BASE="$unix_path" 30579 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30580 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30581 WIN_SDK_BASE="$unix_path" 30582 fi 30583 30584 if test -d "$WIN_SDK_BASE"; then 30585 # There have been cases of partial or broken SDK installations. A missing 30586 # lib dir is not going to work. 30587 if test ! -d "$WIN_SDK_BASE/lib"; then 30588 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30589 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30590 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 30591 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 30592 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 30593 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30594 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30595 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 30596 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 30597 VS_ENV_ARGS="/x86" 30598 else 30599 VS_ENV_ARGS="/x64" 30600 fi 30601 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 30602 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 30603 # TODO: improve detection for other versions of SDK 30604 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 30605 else 30606 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30607 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30608 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 30609 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 30610 fi 30611 fi 30612 fi 30613 30614 fi 30615 if test "x$PROGRAMFILES" != x; then 30616 30617 if test "x$VS_ENV_CMD" = x; then 30618 VS_VERSION="${VS_VERSION}" 30619 WIN_SDK_BASE="$PROGRAMFILES/$SDK_INSTALL_DIR" 30620 METHOD="well-known name" 30621 30622 windows_path="$WIN_SDK_BASE" 30623 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30624 unix_path=`$CYGPATH -u "$windows_path"` 30625 WIN_SDK_BASE="$unix_path" 30626 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30627 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30628 WIN_SDK_BASE="$unix_path" 30629 fi 30630 30631 if test -d "$WIN_SDK_BASE"; then 30632 # There have been cases of partial or broken SDK installations. A missing 30633 # lib dir is not going to work. 30634 if test ! -d "$WIN_SDK_BASE/lib"; then 30635 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30636 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30637 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 30638 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 30639 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 30640 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30641 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30642 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 30643 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 30644 VS_ENV_ARGS="/x86" 30645 else 30646 VS_ENV_ARGS="/x64" 30647 fi 30648 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 30649 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 30650 # TODO: improve detection for other versions of SDK 30651 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 30652 else 30653 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30654 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30655 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 30656 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 30657 fi 30658 fi 30659 fi 30660 30661 fi 30662 30663 if test "x$VS_ENV_CMD" = x; then 30664 VS_VERSION="${VS_VERSION}" 30665 WIN_SDK_BASE="C:/Program Files/$SDK_INSTALL_DIR" 30666 METHOD="well-known name" 30667 30668 windows_path="$WIN_SDK_BASE" 30669 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30670 unix_path=`$CYGPATH -u "$windows_path"` 30671 WIN_SDK_BASE="$unix_path" 30672 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30673 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30674 WIN_SDK_BASE="$unix_path" 30675 fi 30676 30677 if test -d "$WIN_SDK_BASE"; then 30678 # There have been cases of partial or broken SDK installations. A missing 30679 # lib dir is not going to work. 30680 if test ! -d "$WIN_SDK_BASE/lib"; then 30681 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30682 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30683 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 30684 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 30685 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 30686 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30687 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30688 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 30689 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 30690 VS_ENV_ARGS="/x86" 30691 else 30692 VS_ENV_ARGS="/x64" 30693 fi 30694 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 30695 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 30696 # TODO: improve detection for other versions of SDK 30697 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 30698 else 30699 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30700 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30701 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 30702 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 30703 fi 30704 fi 30705 fi 30706 30707 30708 if test "x$VS_ENV_CMD" = x; then 30709 VS_VERSION="${VS_VERSION}" 30710 WIN_SDK_BASE="C:/Program Files (x86)/$SDK_INSTALL_DIR" 30711 METHOD="well-known name" 30712 30713 windows_path="$WIN_SDK_BASE" 30714 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30715 unix_path=`$CYGPATH -u "$windows_path"` 30716 WIN_SDK_BASE="$unix_path" 30717 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30718 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30719 WIN_SDK_BASE="$unix_path" 30720 fi 30721 30722 if test -d "$WIN_SDK_BASE"; then 30723 # There have been cases of partial or broken SDK installations. A missing 30724 # lib dir is not going to work. 30725 if test ! -d "$WIN_SDK_BASE/lib"; then 30726 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30727 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30728 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 30729 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 30730 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 30731 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30732 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30733 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 30734 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 30735 VS_ENV_ARGS="/x86" 30736 else 30737 VS_ENV_ARGS="/x64" 30738 fi 30739 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 30740 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 30741 # TODO: improve detection for other versions of SDK 30742 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 30743 else 30744 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 30745 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 30746 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 30747 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 30748 fi 30749 fi 30750 fi 30751 30752 fi 30753 30754 if test "x$VS_ENV_CMD" != x; then 30755 TOOLCHAIN_VERSION=$VS_VERSION 30756 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 30757 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 30758 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 30759 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 30760 # The rest of the variables are already evaled while probing 30761 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $VS_DESCRIPTION" >&5 30762 $as_echo "$as_me: Found $VS_DESCRIPTION" >&6;} 30763 break 30764 fi 30765 done 30766 30767 30768 # If we have a devkit, skip all of the below. 30769 if test "x$DEVKIT_VS_VERSION" = x; then 30770 if test "x$VS_ENV_CMD" != x; then 30771 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 30772 30773 # Only process if variable expands to non-empty 30774 30775 if test "x$VS_ENV_CMD" != x; then 30776 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30777 30778 # First separate the path from the arguments. This will split at the first 30779 # space. 30780 complete="$VS_ENV_CMD" 30781 path="${complete%% *}" 30782 tmp="$complete EOL" 30783 arguments="${tmp#* }" 30784 30785 # Input might be given as Windows format, start by converting to 30786 # unix format. 30787 new_path=`$CYGPATH -u "$path"` 30788 30789 # Now try to locate executable using which 30790 new_path=`$WHICH "$new_path" 2> /dev/null` 30791 # bat and cmd files are not always considered executable in cygwin causing which 30792 # to not find them 30793 if test "x$new_path" = x \ 30794 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30795 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30796 new_path=`$CYGPATH -u "$path"` 30797 fi 30798 if test "x$new_path" = x; then 30799 # Oops. Which didn't find the executable. 30800 # The splitting of arguments from the executable at a space might have been incorrect, 30801 # since paths with space are more likely in Windows. Give it another try with the whole 30802 # argument. 30803 path="$complete" 30804 arguments="EOL" 30805 new_path=`$CYGPATH -u "$path"` 30806 new_path=`$WHICH "$new_path" 2> /dev/null` 30807 # bat and cmd files are not always considered executable in cygwin causing which 30808 # to not find them 30809 if test "x$new_path" = x \ 30810 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30811 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30812 new_path=`$CYGPATH -u "$path"` 30813 fi 30814 if test "x$new_path" = x; then 30815 # It's still not found. Now this is an unrecoverable error. 30816 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 30817 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 30818 has_space=`$ECHO "$complete" | $GREP " "` 30819 if test "x$has_space" != x; then 30820 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30821 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30822 fi 30823 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 30824 fi 30825 fi 30826 30827 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30828 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30829 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30830 # "foo.exe" is OK but "foo" is an error. 30831 # 30832 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30833 # It is also a way to make sure we got the proper file name for the real test later on. 30834 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30835 if test "x$test_shortpath" = x; then 30836 # Short path failed, file does not exist as specified. 30837 # Try adding .exe or .cmd 30838 if test -f "${new_path}.exe"; then 30839 input_to_shortpath="${new_path}.exe" 30840 elif test -f "${new_path}.cmd"; then 30841 input_to_shortpath="${new_path}.cmd" 30842 else 30843 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 30844 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 30845 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30846 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30847 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 30848 fi 30849 else 30850 input_to_shortpath="$new_path" 30851 fi 30852 30853 # Call helper function which possibly converts this using DOS-style short mode. 30854 # If so, the updated path is stored in $new_path. 30855 new_path="$input_to_shortpath" 30856 30857 input_path="$input_to_shortpath" 30858 # Check if we need to convert this using DOS-style short mode. If the path 30859 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30860 # take no chances and rewrite it. 30861 # Note: m4 eats our [], so we need to use [ and ] instead. 30862 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30863 if test "x$has_forbidden_chars" != x; then 30864 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30865 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30866 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30867 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30868 # Going to short mode and back again did indeed matter. Since short mode is 30869 # case insensitive, let's make it lowercase to improve readability. 30870 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30871 # Now convert it back to Unix-style (cygpath) 30872 input_path=`$CYGPATH -u "$shortmode_path"` 30873 new_path="$input_path" 30874 fi 30875 fi 30876 30877 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30878 if test "x$test_cygdrive_prefix" = x; then 30879 # As a simple fix, exclude /usr/bin since it's not a real path. 30880 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30881 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30882 # a path prefixed by /cygdrive for fixpath to work. 30883 new_path="$CYGWIN_ROOT_PATH$input_path" 30884 fi 30885 fi 30886 30887 # remove trailing .exe if any 30888 new_path="${new_path/%.exe/}" 30889 30890 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30891 30892 # First separate the path from the arguments. This will split at the first 30893 # space. 30894 complete="$VS_ENV_CMD" 30895 path="${complete%% *}" 30896 tmp="$complete EOL" 30897 arguments="${tmp#* }" 30898 30899 # Input might be given as Windows format, start by converting to 30900 # unix format. 30901 new_path="$path" 30902 30903 windows_path="$new_path" 30904 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30905 unix_path=`$CYGPATH -u "$windows_path"` 30906 new_path="$unix_path" 30907 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30908 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30909 new_path="$unix_path" 30910 fi 30911 30912 30913 # Now try to locate executable using which 30914 new_path=`$WHICH "$new_path" 2> /dev/null` 30915 30916 if test "x$new_path" = x; then 30917 # Oops. Which didn't find the executable. 30918 # The splitting of arguments from the executable at a space might have been incorrect, 30919 # since paths with space are more likely in Windows. Give it another try with the whole 30920 # argument. 30921 path="$complete" 30922 arguments="EOL" 30923 new_path="$path" 30924 30925 windows_path="$new_path" 30926 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30927 unix_path=`$CYGPATH -u "$windows_path"` 30928 new_path="$unix_path" 30929 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30930 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30931 new_path="$unix_path" 30932 fi 30933 30934 30935 new_path=`$WHICH "$new_path" 2> /dev/null` 30936 # bat and cmd files are not always considered executable in MSYS causing which 30937 # to not find them 30938 if test "x$new_path" = x \ 30939 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30940 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30941 new_path="$path" 30942 30943 windows_path="$new_path" 30944 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30945 unix_path=`$CYGPATH -u "$windows_path"` 30946 new_path="$unix_path" 30947 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30948 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30949 new_path="$unix_path" 30950 fi 30951 30952 fi 30953 30954 if test "x$new_path" = x; then 30955 # It's still not found. Now this is an unrecoverable error. 30956 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 30957 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 30958 has_space=`$ECHO "$complete" | $GREP " "` 30959 if test "x$has_space" != x; then 30960 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30961 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30962 fi 30963 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 30964 fi 30965 fi 30966 30967 # Now new_path has a complete unix path to the binary 30968 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30969 # Keep paths in /bin as-is, but remove trailing .exe if any 30970 new_path="${new_path/%.exe/}" 30971 # Do not save /bin paths to all_fixpath_prefixes! 30972 else 30973 # Not in mixed or Windows style, start by that. 30974 new_path=`cmd //c echo $new_path` 30975 30976 input_path="$new_path" 30977 # Check if we need to convert this using DOS-style short mode. If the path 30978 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30979 # take no chances and rewrite it. 30980 # Note: m4 eats our [], so we need to use [ and ] instead. 30981 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30982 if test "x$has_forbidden_chars" != x; then 30983 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30984 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30985 fi 30986 30987 # Output is in $new_path 30988 30989 windows_path="$new_path" 30990 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30991 unix_path=`$CYGPATH -u "$windows_path"` 30992 new_path="$unix_path" 30993 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30994 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30995 new_path="$unix_path" 30996 fi 30997 30998 # remove trailing .exe if any 30999 new_path="${new_path/%.exe/}" 31000 31001 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31002 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31003 fi 31004 31005 else 31006 # We're on a unix platform. Hooray! :) 31007 # First separate the path from the arguments. This will split at the first 31008 # space. 31009 complete="$VS_ENV_CMD" 31010 path="${complete%% *}" 31011 tmp="$complete EOL" 31012 arguments="${tmp#* }" 31013 31014 # Cannot rely on the command "which" here since it doesn't always work. 31015 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31016 if test -z "$is_absolute_path"; then 31017 # Path to executable is not absolute. Find it. 31018 IFS_save="$IFS" 31019 IFS=: 31020 for p in $PATH; do 31021 if test -f "$p/$path" && test -x "$p/$path"; then 31022 new_path="$p/$path" 31023 break 31024 fi 31025 done 31026 IFS="$IFS_save" 31027 else 31028 # This is an absolute path, we can use it without further modifications. 31029 new_path="$path" 31030 fi 31031 31032 if test "x$new_path" = x; then 31033 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 31034 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 31035 has_space=`$ECHO "$complete" | $GREP " "` 31036 if test "x$has_space" != x; then 31037 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31038 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31039 fi 31040 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 31041 fi 31042 fi 31043 31044 # Now join together the path and the arguments once again 31045 if test "x$arguments" != xEOL; then 31046 new_complete="$new_path ${arguments% *}" 31047 else 31048 new_complete="$new_path" 31049 fi 31050 31051 if test "x$complete" != "x$new_complete"; then 31052 VS_ENV_CMD="$new_complete" 31053 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 31054 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 31055 fi 31056 fi 31057 31058 31059 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 31060 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 31061 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 31062 31063 # We need to create a couple of temporary files. 31064 VS_ENV_TMP_DIR="$CONFIGURESUPPORT_OUTPUTDIR/vs-env" 31065 $MKDIR -p $VS_ENV_TMP_DIR 31066 31067 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 31068 # Instead create a shell script which will set the relevant variables when run. 31069 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 31070 31071 unix_path="$WINPATH_VS_ENV_CMD" 31072 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31073 windows_path=`$CYGPATH -m "$unix_path"` 31074 WINPATH_VS_ENV_CMD="$windows_path" 31075 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31076 windows_path=`cmd //c echo $unix_path` 31077 WINPATH_VS_ENV_CMD="$windows_path" 31078 fi 31079 31080 WINPATH_BASH="$BASH" 31081 31082 unix_path="$WINPATH_BASH" 31083 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31084 windows_path=`$CYGPATH -m "$unix_path"` 31085 WINPATH_BASH="$windows_path" 31086 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31087 windows_path=`cmd //c echo $unix_path` 31088 WINPATH_BASH="$windows_path" 31089 fi 31090 31091 31092 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 31093 # script (executable by bash) that will setup the important variables. 31094 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 31095 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 31096 # This will end up something like: 31097 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 31098 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 31099 # These will end up something like: 31100 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 31101 # The trailing space for everyone except PATH is no typo, but is needed due 31102 # to trailing \ in the Windows paths. These will be stripped later. 31103 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' \ 31104 >> $EXTRACT_VC_ENV_BAT_FILE 31105 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE\;$include \" >> set-vs-env.sh' \ 31106 >> $EXTRACT_VC_ENV_BAT_FILE 31107 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB\;$lib \" >> set-vs-env.sh' \ 31108 >> $EXTRACT_VC_ENV_BAT_FILE 31109 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' \ 31110 >> $EXTRACT_VC_ENV_BAT_FILE 31111 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' \ 31112 >> $EXTRACT_VC_ENV_BAT_FILE 31113 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' \ 31114 >> $EXTRACT_VC_ENV_BAT_FILE 31115 31116 # Now execute the newly created bat file. 31117 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 31118 # Change directory so we don't need to mess with Windows paths in redirects. 31119 cd $VS_ENV_TMP_DIR 31120 cmd /c extract-vs-env.bat | $CAT 31121 cd $CURDIR 31122 31123 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 31124 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 31125 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 31126 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 31127 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 31128 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 31129 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 31130 as_fn_error $? "Cannot continue" "$LINENO" 5 31131 fi 31132 31133 # Now set all paths and other env variables. This will allow the rest of 31134 # the configure script to find and run the compiler in the proper way. 31135 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 31136 $as_echo "$as_me: Setting extracted environment variables" >&6;} 31137 . $VS_ENV_TMP_DIR/set-vs-env.sh 31138 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 31139 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 31140 else 31141 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 31142 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 31143 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 31144 fi 31145 fi 31146 31147 # At this point, we should have correct variables in the environment, or we can't continue. 31148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 31149 $as_echo_n "checking for Visual Studio variables... " >&6; } 31150 31151 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x \ 31152 || test "x$WINDOWSSDKDIR" != x || test "x$DEVKIT_NAME" != x; then 31153 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 31154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 31155 $as_echo "present but broken" >&6; } 31156 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 31157 else 31158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31159 $as_echo "ok" >&6; } 31160 # Remove any trailing "\" ";" and " " from the variables. 31161 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED -e 's/\\\\*;* *$//'` 31162 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\*;* *$//'` 31163 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 31164 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 31165 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 31166 # Remove any paths containing # (typically F#) as that messes up make. This 31167 # is needed if visual studio was installed with F# support. 31168 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 31169 31170 31171 31172 31173 31174 # Convert VS_INCLUDE into SYSROOT_CFLAGS 31175 OLDIFS="$IFS" 31176 IFS=";" 31177 for i in $VS_INCLUDE; do 31178 ipath=$i 31179 # Only process non-empty elements 31180 if test "x$ipath" != x; then 31181 IFS="$OLDIFS" 31182 # Check that directory exists before calling fixup_path 31183 testpath=$ipath 31184 31185 windows_path="$testpath" 31186 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31187 unix_path=`$CYGPATH -u "$windows_path"` 31188 testpath="$unix_path" 31189 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31190 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31191 testpath="$unix_path" 31192 fi 31193 31194 if test -d "$testpath"; then 31195 31196 # Only process if variable expands to non-empty 31197 31198 if test "x$ipath" != x; then 31199 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31200 31201 # Input might be given as Windows format, start by converting to 31202 # unix format. 31203 path="$ipath" 31204 new_path=`$CYGPATH -u "$path"` 31205 31206 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31207 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31208 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31209 # "foo.exe" is OK but "foo" is an error. 31210 # 31211 # This test is therefore slightly more accurate than "test -f" to check for file precense. 31212 # It is also a way to make sure we got the proper file name for the real test later on. 31213 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31214 if test "x$test_shortpath" = x; then 31215 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 31216 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 31217 as_fn_error $? "Cannot locate the the path of ipath" "$LINENO" 5 31218 fi 31219 31220 # Call helper function which possibly converts this using DOS-style short mode. 31221 # If so, the updated path is stored in $new_path. 31222 31223 input_path="$new_path" 31224 # Check if we need to convert this using DOS-style short mode. If the path 31225 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31226 # take no chances and rewrite it. 31227 # Note: m4 eats our [], so we need to use [ and ] instead. 31228 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31229 if test "x$has_forbidden_chars" != x; then 31230 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31231 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31232 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31233 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31234 # Going to short mode and back again did indeed matter. Since short mode is 31235 # case insensitive, let's make it lowercase to improve readability. 31236 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31237 # Now convert it back to Unix-style (cygpath) 31238 input_path=`$CYGPATH -u "$shortmode_path"` 31239 new_path="$input_path" 31240 fi 31241 fi 31242 31243 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31244 if test "x$test_cygdrive_prefix" = x; then 31245 # As a simple fix, exclude /usr/bin since it's not a real path. 31246 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 31247 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31248 # a path prefixed by /cygdrive for fixpath to work. 31249 new_path="$CYGWIN_ROOT_PATH$input_path" 31250 fi 31251 fi 31252 31253 31254 if test "x$path" != "x$new_path"; then 31255 ipath="$new_path" 31256 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 31257 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 31258 fi 31259 31260 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31261 31262 path="$ipath" 31263 has_colon=`$ECHO $path | $GREP ^.:` 31264 new_path="$path" 31265 if test "x$has_colon" = x; then 31266 # Not in mixed or Windows style, start by that. 31267 new_path=`cmd //c echo $path` 31268 fi 31269 31270 31271 input_path="$new_path" 31272 # Check if we need to convert this using DOS-style short mode. If the path 31273 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31274 # take no chances and rewrite it. 31275 # Note: m4 eats our [], so we need to use [ and ] instead. 31276 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31277 if test "x$has_forbidden_chars" != x; then 31278 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31279 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31280 fi 31281 31282 31283 windows_path="$new_path" 31284 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31285 unix_path=`$CYGPATH -u "$windows_path"` 31286 new_path="$unix_path" 31287 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31288 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31289 new_path="$unix_path" 31290 fi 31291 31292 if test "x$path" != "x$new_path"; then 31293 ipath="$new_path" 31294 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 31295 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 31296 fi 31297 31298 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31299 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31300 31301 else 31302 # We're on a unix platform. Hooray! :) 31303 path="$ipath" 31304 has_space=`$ECHO "$path" | $GREP " "` 31305 if test "x$has_space" != x; then 31306 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 31307 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 31308 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 31309 fi 31310 31311 # Use eval to expand a potential ~ 31312 eval path="$path" 31313 if test ! -f "$path" && test ! -d "$path"; then 31314 as_fn_error $? "The path of ipath, which resolves as \"$path\", is not found." "$LINENO" 5 31315 fi 31316 31317 if test -d "$path"; then 31318 ipath="`cd "$path"; $THEPWDCMD -L`" 31319 else 31320 dir="`$DIRNAME "$path"`" 31321 base="`$BASENAME "$path"`" 31322 ipath="`cd "$dir"; $THEPWDCMD -L`/$base" 31323 fi 31324 fi 31325 fi 31326 31327 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -I$ipath" 31328 fi 31329 IFS=";" 31330 fi 31331 done 31332 # Convert VS_LIB into SYSROOT_LDFLAGS 31333 for i in $VS_LIB; do 31334 libpath=$i 31335 # Only process non-empty elements 31336 if test "x$libpath" != x; then 31337 IFS="$OLDIFS" 31338 # Check that directory exists before calling fixup_path 31339 testpath=$libpath 31340 31341 windows_path="$testpath" 31342 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31343 unix_path=`$CYGPATH -u "$windows_path"` 31344 testpath="$unix_path" 31345 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31346 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31347 testpath="$unix_path" 31348 fi 31349 31350 if test -d "$testpath"; then 31351 31352 # Only process if variable expands to non-empty 31353 31354 if test "x$libpath" != x; then 31355 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31356 31357 # Input might be given as Windows format, start by converting to 31358 # unix format. 31359 path="$libpath" 31360 new_path=`$CYGPATH -u "$path"` 31361 31362 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31363 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31364 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31365 # "foo.exe" is OK but "foo" is an error. 31366 # 31367 # This test is therefore slightly more accurate than "test -f" to check for file precense. 31368 # It is also a way to make sure we got the proper file name for the real test later on. 31369 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31370 if test "x$test_shortpath" = x; then 31371 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 31372 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 31373 as_fn_error $? "Cannot locate the the path of libpath" "$LINENO" 5 31374 fi 31375 31376 # Call helper function which possibly converts this using DOS-style short mode. 31377 # If so, the updated path is stored in $new_path. 31378 31379 input_path="$new_path" 31380 # Check if we need to convert this using DOS-style short mode. If the path 31381 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31382 # take no chances and rewrite it. 31383 # Note: m4 eats our [], so we need to use [ and ] instead. 31384 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31385 if test "x$has_forbidden_chars" != x; then 31386 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31387 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31388 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31389 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31390 # Going to short mode and back again did indeed matter. Since short mode is 31391 # case insensitive, let's make it lowercase to improve readability. 31392 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31393 # Now convert it back to Unix-style (cygpath) 31394 input_path=`$CYGPATH -u "$shortmode_path"` 31395 new_path="$input_path" 31396 fi 31397 fi 31398 31399 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31400 if test "x$test_cygdrive_prefix" = x; then 31401 # As a simple fix, exclude /usr/bin since it's not a real path. 31402 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 31403 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31404 # a path prefixed by /cygdrive for fixpath to work. 31405 new_path="$CYGWIN_ROOT_PATH$input_path" 31406 fi 31407 fi 31408 31409 31410 if test "x$path" != "x$new_path"; then 31411 libpath="$new_path" 31412 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 31413 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 31414 fi 31415 31416 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31417 31418 path="$libpath" 31419 has_colon=`$ECHO $path | $GREP ^.:` 31420 new_path="$path" 31421 if test "x$has_colon" = x; then 31422 # Not in mixed or Windows style, start by that. 31423 new_path=`cmd //c echo $path` 31424 fi 31425 31426 31427 input_path="$new_path" 31428 # Check if we need to convert this using DOS-style short mode. If the path 31429 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31430 # take no chances and rewrite it. 31431 # Note: m4 eats our [], so we need to use [ and ] instead. 31432 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31433 if test "x$has_forbidden_chars" != x; then 31434 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31435 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31436 fi 31437 31438 31439 windows_path="$new_path" 31440 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31441 unix_path=`$CYGPATH -u "$windows_path"` 31442 new_path="$unix_path" 31443 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31444 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31445 new_path="$unix_path" 31446 fi 31447 31448 if test "x$path" != "x$new_path"; then 31449 libpath="$new_path" 31450 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 31451 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 31452 fi 31453 31454 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31455 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31456 31457 else 31458 # We're on a unix platform. Hooray! :) 31459 path="$libpath" 31460 has_space=`$ECHO "$path" | $GREP " "` 31461 if test "x$has_space" != x; then 31462 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 31463 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 31464 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 31465 fi 31466 31467 # Use eval to expand a potential ~ 31468 eval path="$path" 31469 if test ! -f "$path" && test ! -d "$path"; then 31470 as_fn_error $? "The path of libpath, which resolves as \"$path\", is not found." "$LINENO" 5 31471 fi 31472 31473 if test -d "$path"; then 31474 libpath="`cd "$path"; $THEPWDCMD -L`" 31475 else 31476 dir="`$DIRNAME "$path"`" 31477 base="`$BASENAME "$path"`" 31478 libpath="`cd "$dir"; $THEPWDCMD -L`/$base" 31479 fi 31480 fi 31481 fi 31482 31483 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -libpath:$libpath" 31484 fi 31485 IFS=";" 31486 fi 31487 done 31488 IFS="$OLDIFS" 31489 fi 31490 else 31491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31492 $as_echo "not found" >&6; } 31493 31494 if test "x$VS_ENV_CMD" = x; then 31495 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 31496 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 31497 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 31498 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 31499 else 31500 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 31501 $as_echo "$as_me: Running the extraction script failed." >&6;} 31502 fi 31503 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 31504 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 31505 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 31506 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 31507 as_fn_error $? "Cannot continue" "$LINENO" 5 31508 fi 31509 31510 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 31511 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 31512 PATH="$VS_PATH" 31513 # The microsoft toolchain also requires INCLUDE and LIB to be set. 31514 export INCLUDE="$VS_INCLUDE" 31515 export LIB="$VS_LIB" 31516 else 31517 if test "x$XCODE_VERSION_OUTPUT" != x; then 31518 # For Xcode, we set the Xcode version as TOOLCHAIN_VERSION 31519 TOOLCHAIN_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | $CUT -f 2 -d ' '` 31520 TOOLCHAIN_DESCRIPTION="$TOOLCHAIN_DESCRIPTION from Xcode" 31521 else 31522 # Currently we do not define this for other toolchains. This might change as the need arise. 31523 TOOLCHAIN_VERSION= 31524 fi 31525 fi 31526 31527 31528 # For solaris we really need solaris tools, and not the GNU equivalent. 31529 # The build tools on Solaris reside in /usr/ccs (C Compilation System), 31530 # so add that to path before starting to probe. 31531 # FIXME: This was originally only done for AS,NM,GNM,STRIP,OBJCOPY,OBJDUMP. 31532 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 31533 PATH="/usr/ccs/bin:$PATH" 31534 fi 31535 31536 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 31537 # override all other locations. 31538 if test "x$TOOLCHAIN_PATH" != x; then 31539 PATH=$TOOLCHAIN_PATH:$PATH 31540 fi 31541 31542 31543 # 31544 # Setup the compilers (CC and CXX) 31545 # 31546 31547 COMPILER_NAME=C 31548 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 31549 31550 if test "x$CC" != x; then 31551 # User has supplied compiler name already, always let that override. 31552 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 31553 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 31554 if test "x`basename $CC`" = "x$CC"; then 31555 # A command without a complete path is provided, search $PATH. 31556 31557 for ac_prog in $CC 31558 do 31559 # Extract the first word of "$ac_prog", so it can be a program name with args. 31560 set dummy $ac_prog; ac_word=$2 31561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31562 $as_echo_n "checking for $ac_word... " >&6; } 31563 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 31564 $as_echo_n "(cached) " >&6 31565 else 31566 case $POTENTIAL_CC in 31567 [\\/]* | ?:[\\/]*) 31568 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 31569 ;; 31570 *) 31571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31572 for as_dir in $PATH 31573 do 31574 IFS=$as_save_IFS 31575 test -z "$as_dir" && as_dir=. 31576 for ac_exec_ext in '' $ac_executable_extensions; do 31577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31578 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 31579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31580 break 2 31581 fi 31582 done 31583 done 31584 IFS=$as_save_IFS 31585 31586 ;; 31587 esac 31588 fi 31589 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 31590 if test -n "$POTENTIAL_CC"; then 31591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 31592 $as_echo "$POTENTIAL_CC" >&6; } 31593 else 31594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31595 $as_echo "no" >&6; } 31596 fi 31597 31598 31599 test -n "$POTENTIAL_CC" && break 31600 done 31601 31602 if test "x$POTENTIAL_CC" != x; then 31603 CC=$POTENTIAL_CC 31604 else 31605 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 31606 fi 31607 else 31608 # Otherwise it might already be a complete path 31609 if test ! -x "$CC"; then 31610 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 31611 fi 31612 fi 31613 else 31614 # No user supplied value. Locate compiler ourselves. 31615 31616 # If we are cross compiling, assume cross compilation tools follows the 31617 # cross compilation standard where they are prefixed with the autoconf 31618 # standard name for the target. For example the binary 31619 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 31620 # If we are not cross compiling, then the default compiler name will be 31621 # used. 31622 31623 CC= 31624 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 31625 # before checking the rest of the PATH. 31626 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 31627 # step, this should not be necessary. 31628 if test -n "$TOOLCHAIN_PATH"; then 31629 PATH_save="$PATH" 31630 PATH="$TOOLCHAIN_PATH" 31631 for ac_prog in $SEARCH_LIST 31632 do 31633 # Extract the first word of "$ac_prog", so it can be a program name with args. 31634 set dummy $ac_prog; ac_word=$2 31635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31636 $as_echo_n "checking for $ac_word... " >&6; } 31637 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 31638 $as_echo_n "(cached) " >&6 31639 else 31640 case $TOOLCHAIN_PATH_CC in 31641 [\\/]* | ?:[\\/]*) 31642 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 31643 ;; 31644 *) 31645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31646 for as_dir in $PATH 31647 do 31648 IFS=$as_save_IFS 31649 test -z "$as_dir" && as_dir=. 31650 for ac_exec_ext in '' $ac_executable_extensions; do 31651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31652 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 31653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31654 break 2 31655 fi 31656 done 31657 done 31658 IFS=$as_save_IFS 31659 31660 ;; 31661 esac 31662 fi 31663 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 31664 if test -n "$TOOLCHAIN_PATH_CC"; then 31665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 31666 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 31667 else 31668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31669 $as_echo "no" >&6; } 31670 fi 31671 31672 31673 test -n "$TOOLCHAIN_PATH_CC" && break 31674 done 31675 31676 CC=$TOOLCHAIN_PATH_CC 31677 PATH="$PATH_save" 31678 fi 31679 31680 # AC_PATH_PROGS can't be run multiple times with the same variable, 31681 # so create a new name for this run. 31682 if test "x$CC" = x; then 31683 for ac_prog in $SEARCH_LIST 31684 do 31685 # Extract the first word of "$ac_prog", so it can be a program name with args. 31686 set dummy $ac_prog; ac_word=$2 31687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31688 $as_echo_n "checking for $ac_word... " >&6; } 31689 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 31690 $as_echo_n "(cached) " >&6 31691 else 31692 case $POTENTIAL_CC in 31693 [\\/]* | ?:[\\/]*) 31694 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 31695 ;; 31696 *) 31697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31698 for as_dir in $PATH 31699 do 31700 IFS=$as_save_IFS 31701 test -z "$as_dir" && as_dir=. 31702 for ac_exec_ext in '' $ac_executable_extensions; do 31703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31704 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 31705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31706 break 2 31707 fi 31708 done 31709 done 31710 IFS=$as_save_IFS 31711 31712 ;; 31713 esac 31714 fi 31715 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 31716 if test -n "$POTENTIAL_CC"; then 31717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 31718 $as_echo "$POTENTIAL_CC" >&6; } 31719 else 31720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31721 $as_echo "no" >&6; } 31722 fi 31723 31724 31725 test -n "$POTENTIAL_CC" && break 31726 done 31727 31728 CC=$POTENTIAL_CC 31729 fi 31730 31731 if test "x$CC" = x; then 31732 31733 # Print a helpful message on how to acquire the necessary build dependency. 31734 # devkit is the help tag: freetype, cups, alsa etc 31735 MISSING_DEPENDENCY=devkit 31736 31737 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31738 cygwin_help $MISSING_DEPENDENCY 31739 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31740 msys_help $MISSING_DEPENDENCY 31741 else 31742 PKGHANDLER_COMMAND= 31743 31744 case $PKGHANDLER in 31745 apt-get) 31746 apt_help $MISSING_DEPENDENCY ;; 31747 yum) 31748 yum_help $MISSING_DEPENDENCY ;; 31749 port) 31750 port_help $MISSING_DEPENDENCY ;; 31751 pkgutil) 31752 pkgutil_help $MISSING_DEPENDENCY ;; 31753 pkgadd) 31754 pkgadd_help $MISSING_DEPENDENCY ;; 31755 esac 31756 31757 if test "x$PKGHANDLER_COMMAND" != x; then 31758 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 31759 fi 31760 fi 31761 31762 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 31763 fi 31764 fi 31765 31766 # Now we have a compiler binary in CC. Make sure it's okay. 31767 31768 # Only process if variable expands to non-empty 31769 31770 if test "x$CC" != x; then 31771 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31772 31773 # First separate the path from the arguments. This will split at the first 31774 # space. 31775 complete="$CC" 31776 path="${complete%% *}" 31777 tmp="$complete EOL" 31778 arguments="${tmp#* }" 31779 31780 # Input might be given as Windows format, start by converting to 31781 # unix format. 31782 new_path=`$CYGPATH -u "$path"` 31783 31784 # Now try to locate executable using which 31785 new_path=`$WHICH "$new_path" 2> /dev/null` 31786 # bat and cmd files are not always considered executable in cygwin causing which 31787 # to not find them 31788 if test "x$new_path" = x \ 31789 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31790 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31791 new_path=`$CYGPATH -u "$path"` 31792 fi 31793 if test "x$new_path" = x; then 31794 # Oops. Which didn't find the executable. 31795 # The splitting of arguments from the executable at a space might have been incorrect, 31796 # since paths with space are more likely in Windows. Give it another try with the whole 31797 # argument. 31798 path="$complete" 31799 arguments="EOL" 31800 new_path=`$CYGPATH -u "$path"` 31801 new_path=`$WHICH "$new_path" 2> /dev/null` 31802 # bat and cmd files are not always considered executable in cygwin causing which 31803 # to not find them 31804 if test "x$new_path" = x \ 31805 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31806 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31807 new_path=`$CYGPATH -u "$path"` 31808 fi 31809 if test "x$new_path" = x; then 31810 # It's still not found. Now this is an unrecoverable error. 31811 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 31812 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 31813 has_space=`$ECHO "$complete" | $GREP " "` 31814 if test "x$has_space" != x; then 31815 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31816 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31817 fi 31818 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 31819 fi 31820 fi 31821 31822 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31823 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31824 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31825 # "foo.exe" is OK but "foo" is an error. 31826 # 31827 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31828 # It is also a way to make sure we got the proper file name for the real test later on. 31829 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31830 if test "x$test_shortpath" = x; then 31831 # Short path failed, file does not exist as specified. 31832 # Try adding .exe or .cmd 31833 if test -f "${new_path}.exe"; then 31834 input_to_shortpath="${new_path}.exe" 31835 elif test -f "${new_path}.cmd"; then 31836 input_to_shortpath="${new_path}.cmd" 31837 else 31838 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 31839 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 31840 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31841 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31842 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 31843 fi 31844 else 31845 input_to_shortpath="$new_path" 31846 fi 31847 31848 # Call helper function which possibly converts this using DOS-style short mode. 31849 # If so, the updated path is stored in $new_path. 31850 new_path="$input_to_shortpath" 31851 31852 input_path="$input_to_shortpath" 31853 # Check if we need to convert this using DOS-style short mode. If the path 31854 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31855 # take no chances and rewrite it. 31856 # Note: m4 eats our [], so we need to use [ and ] instead. 31857 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31858 if test "x$has_forbidden_chars" != x; then 31859 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31860 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31861 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31862 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31863 # Going to short mode and back again did indeed matter. Since short mode is 31864 # case insensitive, let's make it lowercase to improve readability. 31865 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31866 # Now convert it back to Unix-style (cygpath) 31867 input_path=`$CYGPATH -u "$shortmode_path"` 31868 new_path="$input_path" 31869 fi 31870 fi 31871 31872 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31873 if test "x$test_cygdrive_prefix" = x; then 31874 # As a simple fix, exclude /usr/bin since it's not a real path. 31875 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31876 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31877 # a path prefixed by /cygdrive for fixpath to work. 31878 new_path="$CYGWIN_ROOT_PATH$input_path" 31879 fi 31880 fi 31881 31882 # remove trailing .exe if any 31883 new_path="${new_path/%.exe/}" 31884 31885 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31886 31887 # First separate the path from the arguments. This will split at the first 31888 # space. 31889 complete="$CC" 31890 path="${complete%% *}" 31891 tmp="$complete EOL" 31892 arguments="${tmp#* }" 31893 31894 # Input might be given as Windows format, start by converting to 31895 # unix format. 31896 new_path="$path" 31897 31898 windows_path="$new_path" 31899 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31900 unix_path=`$CYGPATH -u "$windows_path"` 31901 new_path="$unix_path" 31902 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31903 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31904 new_path="$unix_path" 31905 fi 31906 31907 31908 # Now try to locate executable using which 31909 new_path=`$WHICH "$new_path" 2> /dev/null` 31910 31911 if test "x$new_path" = x; then 31912 # Oops. Which didn't find the executable. 31913 # The splitting of arguments from the executable at a space might have been incorrect, 31914 # since paths with space are more likely in Windows. Give it another try with the whole 31915 # argument. 31916 path="$complete" 31917 arguments="EOL" 31918 new_path="$path" 31919 31920 windows_path="$new_path" 31921 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31922 unix_path=`$CYGPATH -u "$windows_path"` 31923 new_path="$unix_path" 31924 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31925 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31926 new_path="$unix_path" 31927 fi 31928 31929 31930 new_path=`$WHICH "$new_path" 2> /dev/null` 31931 # bat and cmd files are not always considered executable in MSYS causing which 31932 # to not find them 31933 if test "x$new_path" = x \ 31934 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31935 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31936 new_path="$path" 31937 31938 windows_path="$new_path" 31939 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31940 unix_path=`$CYGPATH -u "$windows_path"` 31941 new_path="$unix_path" 31942 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31943 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31944 new_path="$unix_path" 31945 fi 31946 31947 fi 31948 31949 if test "x$new_path" = x; then 31950 # It's still not found. Now this is an unrecoverable error. 31951 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 31952 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 31953 has_space=`$ECHO "$complete" | $GREP " "` 31954 if test "x$has_space" != x; then 31955 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31956 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31957 fi 31958 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 31959 fi 31960 fi 31961 31962 # Now new_path has a complete unix path to the binary 31963 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31964 # Keep paths in /bin as-is, but remove trailing .exe if any 31965 new_path="${new_path/%.exe/}" 31966 # Do not save /bin paths to all_fixpath_prefixes! 31967 else 31968 # Not in mixed or Windows style, start by that. 31969 new_path=`cmd //c echo $new_path` 31970 31971 input_path="$new_path" 31972 # Check if we need to convert this using DOS-style short mode. If the path 31973 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31974 # take no chances and rewrite it. 31975 # Note: m4 eats our [], so we need to use [ and ] instead. 31976 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31977 if test "x$has_forbidden_chars" != x; then 31978 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31979 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31980 fi 31981 31982 # Output is in $new_path 31983 31984 windows_path="$new_path" 31985 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31986 unix_path=`$CYGPATH -u "$windows_path"` 31987 new_path="$unix_path" 31988 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31989 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31990 new_path="$unix_path" 31991 fi 31992 31993 # remove trailing .exe if any 31994 new_path="${new_path/%.exe/}" 31995 31996 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31997 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31998 fi 31999 32000 else 32001 # We're on a unix platform. Hooray! :) 32002 # First separate the path from the arguments. This will split at the first 32003 # space. 32004 complete="$CC" 32005 path="${complete%% *}" 32006 tmp="$complete EOL" 32007 arguments="${tmp#* }" 32008 32009 # Cannot rely on the command "which" here since it doesn't always work. 32010 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32011 if test -z "$is_absolute_path"; then 32012 # Path to executable is not absolute. Find it. 32013 IFS_save="$IFS" 32014 IFS=: 32015 for p in $PATH; do 32016 if test -f "$p/$path" && test -x "$p/$path"; then 32017 new_path="$p/$path" 32018 break 32019 fi 32020 done 32021 IFS="$IFS_save" 32022 else 32023 # This is an absolute path, we can use it without further modifications. 32024 new_path="$path" 32025 fi 32026 32027 if test "x$new_path" = x; then 32028 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 32029 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 32030 has_space=`$ECHO "$complete" | $GREP " "` 32031 if test "x$has_space" != x; then 32032 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32033 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32034 fi 32035 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 32036 fi 32037 fi 32038 32039 # Now join together the path and the arguments once again 32040 if test "x$arguments" != xEOL; then 32041 new_complete="$new_path ${arguments% *}" 32042 else 32043 new_complete="$new_path" 32044 fi 32045 32046 if test "x$complete" != "x$new_complete"; then 32047 CC="$new_complete" 32048 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 32049 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 32050 fi 32051 fi 32052 32053 TEST_COMPILER="$CC" 32054 32055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 32056 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 32057 SYMLINK_ORIGINAL="$TEST_COMPILER" 32058 32059 if test "x$OPENJDK_BUILD_OS" != xwindows; then 32060 # Follow a chain of symbolic links. Use readlink 32061 # where it exists, else fall back to horribly 32062 # complicated shell code. 32063 if test "x$READLINK_TESTED" != yes; then 32064 # On MacOSX there is a readlink tool with a different 32065 # purpose than the GNU readlink tool. Check the found readlink. 32066 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 32067 if test "x$ISGNU" = x; then 32068 # A readlink that we do not know how to use. 32069 # Are there other non-GNU readlinks out there? 32070 READLINK_TESTED=yes 32071 READLINK= 32072 fi 32073 fi 32074 32075 if test "x$READLINK" != x; then 32076 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 32077 else 32078 # Save the current directory for restoring afterwards 32079 STARTDIR=$PWD 32080 COUNTER=0 32081 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 32082 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 32083 cd $sym_link_dir 32084 # Use -P flag to resolve symlinks in directories. 32085 cd `$THEPWDCMD -P` 32086 sym_link_dir=`$THEPWDCMD -P` 32087 # Resolve file symlinks 32088 while test $COUNTER -lt 20; do 32089 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 32090 if test "x$ISLINK" == x; then 32091 # This is not a symbolic link! We are done! 32092 break 32093 fi 32094 # Again resolve directory symlinks since the target of the just found 32095 # link could be in a different directory 32096 cd `$DIRNAME $ISLINK` 32097 sym_link_dir=`$THEPWDCMD -P` 32098 sym_link_file=`$BASENAME $ISLINK` 32099 let COUNTER=COUNTER+1 32100 done 32101 cd $STARTDIR 32102 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 32103 fi 32104 fi 32105 32106 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 32107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 32108 $as_echo "no symlink" >&6; } 32109 else 32110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 32111 $as_echo "$SYMLINK_ORIGINAL" >&6; } 32112 32113 # We can't handle ccache by gcc wrappers, since we need to know if we're 32114 # using ccache. Instead ccache usage must be controlled by a configure option. 32115 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 32116 if test "x$COMPILER_BASENAME" = "xccache"; then 32117 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 32118 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 32119 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 32120 fi 32121 fi 32122 32123 32124 COMPILER=$CC 32125 COMPILER_NAME=$COMPILER_NAME 32126 32127 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 32128 # cc -V output typically looks like 32129 # cc: Sun C 5.12 Linux_i386 2011/11/16 32130 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 32131 # Check that this is likely to be the Solaris Studio cc. 32132 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 32133 if test $? -ne 0; then 32134 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 32135 { $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 32136 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 32137 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 32138 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 32139 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 32140 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 32141 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 32142 fi 32143 # Remove usage instructions (if present), and 32144 # collapse compiler output into a single line 32145 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 32146 $SED -e 's/ *[Uu]sage:.*//'` 32147 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 32148 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 32149 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 32150 # xlc -qversion output typically looks like 32151 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 32152 # Version: 11.01.0000.0015 32153 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 32154 # Check that this is likely to be the IBM XL C compiler. 32155 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 32156 if test $? -ne 0; then 32157 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 32158 { $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 32159 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 32160 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 32161 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 32162 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 32163 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 32164 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 32165 fi 32166 # Collapse compiler output into a single line 32167 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 32168 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 32169 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 32170 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 32171 # There is no specific version flag, but all output starts with a version string. 32172 # First line typically looks something like: 32173 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 32174 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 32175 # Check that this is likely to be Microsoft CL.EXE. 32176 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 32177 if test $? -ne 0; then 32178 { $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 32179 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 32180 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 32181 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 32182 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 32183 fi 32184 # Collapse compiler output into a single line 32185 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 32186 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 32187 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 32188 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 32189 # gcc --version output typically looks like 32190 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 32191 # Copyright (C) 2013 Free Software Foundation, Inc. 32192 # This is free software; see the source for copying conditions. There is NO 32193 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 32194 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 32195 # Check that this is likely to be GCC. 32196 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 32197 if test $? -ne 0; then 32198 { $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 32199 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 32200 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 32201 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 32202 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 32203 fi 32204 # Remove Copyright and legalese from version string, and 32205 # collapse into a single line 32206 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 32207 $SED -e 's/ *Copyright .*//'` 32208 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 32209 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 32210 elif test "x$TOOLCHAIN_TYPE" = xclang; then 32211 # clang --version output typically looks like 32212 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 32213 # clang version 3.3 (tags/RELEASE_33/final) 32214 # or 32215 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 32216 # Target: x86_64-pc-linux-gnu 32217 # Thread model: posix 32218 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 32219 # Check that this is likely to be clang 32220 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 32221 if test $? -ne 0; then 32222 { $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 32223 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 32224 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 32225 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 32226 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 32227 fi 32228 # Collapse compiler output into a single line 32229 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 32230 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 32231 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 32232 else 32233 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 32234 fi 32235 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 32236 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 32237 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 32238 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 32239 32240 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 32241 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 32242 32243 32244 # Now that we have resolved CC ourself, let autoconf have its go at it 32245 ac_ext=c 32246 ac_cpp='$CPP $CPPFLAGS' 32247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32249 ac_compiler_gnu=$ac_cv_c_compiler_gnu 32250 if test -n "$ac_tool_prefix"; then 32251 for ac_prog in $CC 32252 do 32253 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32254 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32256 $as_echo_n "checking for $ac_word... " >&6; } 32257 if ${ac_cv_prog_CC+:} false; then : 32258 $as_echo_n "(cached) " >&6 32259 else 32260 if test -n "$CC"; then 32261 ac_cv_prog_CC="$CC" # Let the user override the test. 32262 else 32263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32264 for as_dir in $PATH 32265 do 32266 IFS=$as_save_IFS 32267 test -z "$as_dir" && as_dir=. 32268 for ac_exec_ext in '' $ac_executable_extensions; do 32269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32270 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 32271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32272 break 2 32273 fi 32274 done 32275 done 32276 IFS=$as_save_IFS 32277 32278 fi 32279 fi 32280 CC=$ac_cv_prog_CC 32281 if test -n "$CC"; then 32282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 32283 $as_echo "$CC" >&6; } 32284 else 32285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32286 $as_echo "no" >&6; } 32287 fi 32288 32289 32290 test -n "$CC" && break 32291 done 32292 fi 32293 if test -z "$CC"; then 32294 ac_ct_CC=$CC 32295 for ac_prog in $CC 32296 do 32297 # Extract the first word of "$ac_prog", so it can be a program name with args. 32298 set dummy $ac_prog; ac_word=$2 32299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32300 $as_echo_n "checking for $ac_word... " >&6; } 32301 if ${ac_cv_prog_ac_ct_CC+:} false; then : 32302 $as_echo_n "(cached) " >&6 32303 else 32304 if test -n "$ac_ct_CC"; then 32305 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 32306 else 32307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32308 for as_dir in $PATH 32309 do 32310 IFS=$as_save_IFS 32311 test -z "$as_dir" && as_dir=. 32312 for ac_exec_ext in '' $ac_executable_extensions; do 32313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32314 ac_cv_prog_ac_ct_CC="$ac_prog" 32315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32316 break 2 32317 fi 32318 done 32319 done 32320 IFS=$as_save_IFS 32321 32322 fi 32323 fi 32324 ac_ct_CC=$ac_cv_prog_ac_ct_CC 32325 if test -n "$ac_ct_CC"; then 32326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 32327 $as_echo "$ac_ct_CC" >&6; } 32328 else 32329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32330 $as_echo "no" >&6; } 32331 fi 32332 32333 32334 test -n "$ac_ct_CC" && break 32335 done 32336 32337 if test "x$ac_ct_CC" = x; then 32338 CC="" 32339 else 32340 case $cross_compiling:$ac_tool_warned in 32341 yes:) 32342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32344 ac_tool_warned=yes ;; 32345 esac 32346 CC=$ac_ct_CC 32347 fi 32348 fi 32349 32350 32351 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32353 as_fn_error $? "no acceptable C compiler found in \$PATH 32354 See \`config.log' for more details" "$LINENO" 5; } 32355 32356 # Provide some information about the compiler. 32357 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 32358 set X $ac_compile 32359 ac_compiler=$2 32360 for ac_option in --version -v -V -qversion; do 32361 { { ac_try="$ac_compiler $ac_option >&5" 32362 case "(($ac_try" in 32363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32364 *) ac_try_echo=$ac_try;; 32365 esac 32366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32367 $as_echo "$ac_try_echo"; } >&5 32368 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 32369 ac_status=$? 32370 if test -s conftest.err; then 32371 sed '10a\ 32372 ... rest of stderr output deleted ... 32373 10q' conftest.err >conftest.er1 32374 cat conftest.er1 >&5 32375 fi 32376 rm -f conftest.er1 conftest.err 32377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32378 test $ac_status = 0; } 32379 done 32380 32381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32382 /* end confdefs.h. */ 32383 32384 int 32385 main () 32386 { 32387 32388 ; 32389 return 0; 32390 } 32391 _ACEOF 32392 ac_clean_files_save=$ac_clean_files 32393 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 32394 # Try to create an executable without -o first, disregard a.out. 32395 # It will help us diagnose broken compilers, and finding out an intuition 32396 # of exeext. 32397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 32398 $as_echo_n "checking whether the C compiler works... " >&6; } 32399 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 32400 32401 # The possible output files: 32402 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 32403 32404 ac_rmfiles= 32405 for ac_file in $ac_files 32406 do 32407 case $ac_file in 32408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 32409 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 32410 esac 32411 done 32412 rm -f $ac_rmfiles 32413 32414 if { { ac_try="$ac_link_default" 32415 case "(($ac_try" in 32416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32417 *) ac_try_echo=$ac_try;; 32418 esac 32419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32420 $as_echo "$ac_try_echo"; } >&5 32421 (eval "$ac_link_default") 2>&5 32422 ac_status=$? 32423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32424 test $ac_status = 0; }; then : 32425 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 32426 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 32427 # in a Makefile. We should not override ac_cv_exeext if it was cached, 32428 # so that the user can short-circuit this test for compilers unknown to 32429 # Autoconf. 32430 for ac_file in $ac_files '' 32431 do 32432 test -f "$ac_file" || continue 32433 case $ac_file in 32434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 32435 ;; 32436 [ab].out ) 32437 # We found the default executable, but exeext='' is most 32438 # certainly right. 32439 break;; 32440 *.* ) 32441 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 32442 then :; else 32443 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 32444 fi 32445 # We set ac_cv_exeext here because the later test for it is not 32446 # safe: cross compilers may not add the suffix if given an `-o' 32447 # argument, so we may need to know it at that point already. 32448 # Even if this section looks crufty: it has the advantage of 32449 # actually working. 32450 break;; 32451 * ) 32452 break;; 32453 esac 32454 done 32455 test "$ac_cv_exeext" = no && ac_cv_exeext= 32456 32457 else 32458 ac_file='' 32459 fi 32460 if test -z "$ac_file"; then : 32461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32462 $as_echo "no" >&6; } 32463 $as_echo "$as_me: failed program was:" >&5 32464 sed 's/^/| /' conftest.$ac_ext >&5 32465 32466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32468 as_fn_error 77 "C compiler cannot create executables 32469 See \`config.log' for more details" "$LINENO" 5; } 32470 else 32471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32472 $as_echo "yes" >&6; } 32473 fi 32474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 32475 $as_echo_n "checking for C compiler default output file name... " >&6; } 32476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 32477 $as_echo "$ac_file" >&6; } 32478 ac_exeext=$ac_cv_exeext 32479 32480 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 32481 ac_clean_files=$ac_clean_files_save 32482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 32483 $as_echo_n "checking for suffix of executables... " >&6; } 32484 if { { ac_try="$ac_link" 32485 case "(($ac_try" in 32486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32487 *) ac_try_echo=$ac_try;; 32488 esac 32489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32490 $as_echo "$ac_try_echo"; } >&5 32491 (eval "$ac_link") 2>&5 32492 ac_status=$? 32493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32494 test $ac_status = 0; }; then : 32495 # If both `conftest.exe' and `conftest' are `present' (well, observable) 32496 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 32497 # work properly (i.e., refer to `conftest.exe'), while it won't with 32498 # `rm'. 32499 for ac_file in conftest.exe conftest conftest.*; do 32500 test -f "$ac_file" || continue 32501 case $ac_file in 32502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 32503 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 32504 break;; 32505 * ) break;; 32506 esac 32507 done 32508 else 32509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32511 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 32512 See \`config.log' for more details" "$LINENO" 5; } 32513 fi 32514 rm -f conftest conftest$ac_cv_exeext 32515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 32516 $as_echo "$ac_cv_exeext" >&6; } 32517 32518 rm -f conftest.$ac_ext 32519 EXEEXT=$ac_cv_exeext 32520 ac_exeext=$EXEEXT 32521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32522 /* end confdefs.h. */ 32523 #include <stdio.h> 32524 int 32525 main () 32526 { 32527 FILE *f = fopen ("conftest.out", "w"); 32528 return ferror (f) || fclose (f) != 0; 32529 32530 ; 32531 return 0; 32532 } 32533 _ACEOF 32534 ac_clean_files="$ac_clean_files conftest.out" 32535 # Check that the compiler produces executables we can run. If not, either 32536 # the compiler is broken, or we cross compile. 32537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 32538 $as_echo_n "checking whether we are cross compiling... " >&6; } 32539 if test "$cross_compiling" != yes; then 32540 { { ac_try="$ac_link" 32541 case "(($ac_try" in 32542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32543 *) ac_try_echo=$ac_try;; 32544 esac 32545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32546 $as_echo "$ac_try_echo"; } >&5 32547 (eval "$ac_link") 2>&5 32548 ac_status=$? 32549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32550 test $ac_status = 0; } 32551 if { ac_try='./conftest$ac_cv_exeext' 32552 { { case "(($ac_try" in 32553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32554 *) ac_try_echo=$ac_try;; 32555 esac 32556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32557 $as_echo "$ac_try_echo"; } >&5 32558 (eval "$ac_try") 2>&5 32559 ac_status=$? 32560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32561 test $ac_status = 0; }; }; then 32562 cross_compiling=no 32563 else 32564 if test "$cross_compiling" = maybe; then 32565 cross_compiling=yes 32566 else 32567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32569 as_fn_error $? "cannot run C compiled programs. 32570 If you meant to cross compile, use \`--host'. 32571 See \`config.log' for more details" "$LINENO" 5; } 32572 fi 32573 fi 32574 fi 32575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 32576 $as_echo "$cross_compiling" >&6; } 32577 32578 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 32579 ac_clean_files=$ac_clean_files_save 32580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 32581 $as_echo_n "checking for suffix of object files... " >&6; } 32582 if ${ac_cv_objext+:} false; then : 32583 $as_echo_n "(cached) " >&6 32584 else 32585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32586 /* end confdefs.h. */ 32587 32588 int 32589 main () 32590 { 32591 32592 ; 32593 return 0; 32594 } 32595 _ACEOF 32596 rm -f conftest.o conftest.obj 32597 if { { ac_try="$ac_compile" 32598 case "(($ac_try" in 32599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32600 *) ac_try_echo=$ac_try;; 32601 esac 32602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32603 $as_echo "$ac_try_echo"; } >&5 32604 (eval "$ac_compile") 2>&5 32605 ac_status=$? 32606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32607 test $ac_status = 0; }; then : 32608 for ac_file in conftest.o conftest.obj conftest.*; do 32609 test -f "$ac_file" || continue; 32610 case $ac_file in 32611 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 32612 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 32613 break;; 32614 esac 32615 done 32616 else 32617 $as_echo "$as_me: failed program was:" >&5 32618 sed 's/^/| /' conftest.$ac_ext >&5 32619 32620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32622 as_fn_error $? "cannot compute suffix of object files: cannot compile 32623 See \`config.log' for more details" "$LINENO" 5; } 32624 fi 32625 rm -f conftest.$ac_cv_objext conftest.$ac_ext 32626 fi 32627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 32628 $as_echo "$ac_cv_objext" >&6; } 32629 OBJEXT=$ac_cv_objext 32630 ac_objext=$OBJEXT 32631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 32632 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 32633 if ${ac_cv_c_compiler_gnu+:} false; then : 32634 $as_echo_n "(cached) " >&6 32635 else 32636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32637 /* end confdefs.h. */ 32638 32639 int 32640 main () 32641 { 32642 #ifndef __GNUC__ 32643 choke me 32644 #endif 32645 32646 ; 32647 return 0; 32648 } 32649 _ACEOF 32650 if ac_fn_c_try_compile "$LINENO"; then : 32651 ac_compiler_gnu=yes 32652 else 32653 ac_compiler_gnu=no 32654 fi 32655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32656 ac_cv_c_compiler_gnu=$ac_compiler_gnu 32657 32658 fi 32659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 32660 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 32661 if test $ac_compiler_gnu = yes; then 32662 GCC=yes 32663 else 32664 GCC= 32665 fi 32666 ac_test_CFLAGS=${CFLAGS+set} 32667 ac_save_CFLAGS=$CFLAGS 32668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 32669 $as_echo_n "checking whether $CC accepts -g... " >&6; } 32670 if ${ac_cv_prog_cc_g+:} false; then : 32671 $as_echo_n "(cached) " >&6 32672 else 32673 ac_save_c_werror_flag=$ac_c_werror_flag 32674 ac_c_werror_flag=yes 32675 ac_cv_prog_cc_g=no 32676 CFLAGS="-g" 32677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32678 /* end confdefs.h. */ 32679 32680 int 32681 main () 32682 { 32683 32684 ; 32685 return 0; 32686 } 32687 _ACEOF 32688 if ac_fn_c_try_compile "$LINENO"; then : 32689 ac_cv_prog_cc_g=yes 32690 else 32691 CFLAGS="" 32692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32693 /* end confdefs.h. */ 32694 32695 int 32696 main () 32697 { 32698 32699 ; 32700 return 0; 32701 } 32702 _ACEOF 32703 if ac_fn_c_try_compile "$LINENO"; then : 32704 32705 else 32706 ac_c_werror_flag=$ac_save_c_werror_flag 32707 CFLAGS="-g" 32708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32709 /* end confdefs.h. */ 32710 32711 int 32712 main () 32713 { 32714 32715 ; 32716 return 0; 32717 } 32718 _ACEOF 32719 if ac_fn_c_try_compile "$LINENO"; then : 32720 ac_cv_prog_cc_g=yes 32721 fi 32722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32723 fi 32724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32725 fi 32726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32727 ac_c_werror_flag=$ac_save_c_werror_flag 32728 fi 32729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 32730 $as_echo "$ac_cv_prog_cc_g" >&6; } 32731 if test "$ac_test_CFLAGS" = set; then 32732 CFLAGS=$ac_save_CFLAGS 32733 elif test $ac_cv_prog_cc_g = yes; then 32734 if test "$GCC" = yes; then 32735 CFLAGS="-g -O2" 32736 else 32737 CFLAGS="-g" 32738 fi 32739 else 32740 if test "$GCC" = yes; then 32741 CFLAGS="-O2" 32742 else 32743 CFLAGS= 32744 fi 32745 fi 32746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 32747 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 32748 if ${ac_cv_prog_cc_c89+:} false; then : 32749 $as_echo_n "(cached) " >&6 32750 else 32751 ac_cv_prog_cc_c89=no 32752 ac_save_CC=$CC 32753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32754 /* end confdefs.h. */ 32755 #include <stdarg.h> 32756 #include <stdio.h> 32757 struct stat; 32758 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 32759 struct buf { int x; }; 32760 FILE * (*rcsopen) (struct buf *, struct stat *, int); 32761 static char *e (p, i) 32762 char **p; 32763 int i; 32764 { 32765 return p[i]; 32766 } 32767 static char *f (char * (*g) (char **, int), char **p, ...) 32768 { 32769 char *s; 32770 va_list v; 32771 va_start (v,p); 32772 s = g (p, va_arg (v,int)); 32773 va_end (v); 32774 return s; 32775 } 32776 32777 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 32778 function prototypes and stuff, but not '\xHH' hex character constants. 32779 These don't provoke an error unfortunately, instead are silently treated 32780 as 'x'. The following induces an error, until -std is added to get 32781 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 32782 array size at least. It's necessary to write '\x00'==0 to get something 32783 that's true only with -std. */ 32784 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 32785 32786 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 32787 inside strings and character constants. */ 32788 #define FOO(x) 'x' 32789 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 32790 32791 int test (int i, double x); 32792 struct s1 {int (*f) (int a);}; 32793 struct s2 {int (*f) (double a);}; 32794 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 32795 int argc; 32796 char **argv; 32797 int 32798 main () 32799 { 32800 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 32801 ; 32802 return 0; 32803 } 32804 _ACEOF 32805 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 32806 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 32807 do 32808 CC="$ac_save_CC $ac_arg" 32809 if ac_fn_c_try_compile "$LINENO"; then : 32810 ac_cv_prog_cc_c89=$ac_arg 32811 fi 32812 rm -f core conftest.err conftest.$ac_objext 32813 test "x$ac_cv_prog_cc_c89" != "xno" && break 32814 done 32815 rm -f conftest.$ac_ext 32816 CC=$ac_save_CC 32817 32818 fi 32819 # AC_CACHE_VAL 32820 case "x$ac_cv_prog_cc_c89" in 32821 x) 32822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 32823 $as_echo "none needed" >&6; } ;; 32824 xno) 32825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 32826 $as_echo "unsupported" >&6; } ;; 32827 *) 32828 CC="$CC $ac_cv_prog_cc_c89" 32829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 32830 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 32831 esac 32832 if test "x$ac_cv_prog_cc_c89" != xno; then : 32833 32834 fi 32835 32836 ac_ext=cpp 32837 ac_cpp='$CXXCPP $CPPFLAGS' 32838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 32841 32842 32843 32844 COMPILER_NAME=C++ 32845 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 32846 32847 if test "x$CXX" != x; then 32848 # User has supplied compiler name already, always let that override. 32849 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 32850 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 32851 if test "x`basename $CXX`" = "x$CXX"; then 32852 # A command without a complete path is provided, search $PATH. 32853 32854 for ac_prog in $CXX 32855 do 32856 # Extract the first word of "$ac_prog", so it can be a program name with args. 32857 set dummy $ac_prog; ac_word=$2 32858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32859 $as_echo_n "checking for $ac_word... " >&6; } 32860 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 32861 $as_echo_n "(cached) " >&6 32862 else 32863 case $POTENTIAL_CXX in 32864 [\\/]* | ?:[\\/]*) 32865 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 32866 ;; 32867 *) 32868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32869 for as_dir in $PATH 32870 do 32871 IFS=$as_save_IFS 32872 test -z "$as_dir" && as_dir=. 32873 for ac_exec_ext in '' $ac_executable_extensions; do 32874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32875 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 32876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32877 break 2 32878 fi 32879 done 32880 done 32881 IFS=$as_save_IFS 32882 32883 ;; 32884 esac 32885 fi 32886 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 32887 if test -n "$POTENTIAL_CXX"; then 32888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 32889 $as_echo "$POTENTIAL_CXX" >&6; } 32890 else 32891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32892 $as_echo "no" >&6; } 32893 fi 32894 32895 32896 test -n "$POTENTIAL_CXX" && break 32897 done 32898 32899 if test "x$POTENTIAL_CXX" != x; then 32900 CXX=$POTENTIAL_CXX 32901 else 32902 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 32903 fi 32904 else 32905 # Otherwise it might already be a complete path 32906 if test ! -x "$CXX"; then 32907 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 32908 fi 32909 fi 32910 else 32911 # No user supplied value. Locate compiler ourselves. 32912 32913 # If we are cross compiling, assume cross compilation tools follows the 32914 # cross compilation standard where they are prefixed with the autoconf 32915 # standard name for the target. For example the binary 32916 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 32917 # If we are not cross compiling, then the default compiler name will be 32918 # used. 32919 32920 CXX= 32921 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 32922 # before checking the rest of the PATH. 32923 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 32924 # step, this should not be necessary. 32925 if test -n "$TOOLCHAIN_PATH"; then 32926 PATH_save="$PATH" 32927 PATH="$TOOLCHAIN_PATH" 32928 for ac_prog in $SEARCH_LIST 32929 do 32930 # Extract the first word of "$ac_prog", so it can be a program name with args. 32931 set dummy $ac_prog; ac_word=$2 32932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32933 $as_echo_n "checking for $ac_word... " >&6; } 32934 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 32935 $as_echo_n "(cached) " >&6 32936 else 32937 case $TOOLCHAIN_PATH_CXX in 32938 [\\/]* | ?:[\\/]*) 32939 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 32940 ;; 32941 *) 32942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32943 for as_dir in $PATH 32944 do 32945 IFS=$as_save_IFS 32946 test -z "$as_dir" && as_dir=. 32947 for ac_exec_ext in '' $ac_executable_extensions; do 32948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32949 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 32950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32951 break 2 32952 fi 32953 done 32954 done 32955 IFS=$as_save_IFS 32956 32957 ;; 32958 esac 32959 fi 32960 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 32961 if test -n "$TOOLCHAIN_PATH_CXX"; then 32962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 32963 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 32964 else 32965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32966 $as_echo "no" >&6; } 32967 fi 32968 32969 32970 test -n "$TOOLCHAIN_PATH_CXX" && break 32971 done 32972 32973 CXX=$TOOLCHAIN_PATH_CXX 32974 PATH="$PATH_save" 32975 fi 32976 32977 # AC_PATH_PROGS can't be run multiple times with the same variable, 32978 # so create a new name for this run. 32979 if test "x$CXX" = x; then 32980 for ac_prog in $SEARCH_LIST 32981 do 32982 # Extract the first word of "$ac_prog", so it can be a program name with args. 32983 set dummy $ac_prog; ac_word=$2 32984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32985 $as_echo_n "checking for $ac_word... " >&6; } 32986 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 32987 $as_echo_n "(cached) " >&6 32988 else 32989 case $POTENTIAL_CXX in 32990 [\\/]* | ?:[\\/]*) 32991 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 32992 ;; 32993 *) 32994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32995 for as_dir in $PATH 32996 do 32997 IFS=$as_save_IFS 32998 test -z "$as_dir" && as_dir=. 32999 for ac_exec_ext in '' $ac_executable_extensions; do 33000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33001 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 33002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33003 break 2 33004 fi 33005 done 33006 done 33007 IFS=$as_save_IFS 33008 33009 ;; 33010 esac 33011 fi 33012 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 33013 if test -n "$POTENTIAL_CXX"; then 33014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 33015 $as_echo "$POTENTIAL_CXX" >&6; } 33016 else 33017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33018 $as_echo "no" >&6; } 33019 fi 33020 33021 33022 test -n "$POTENTIAL_CXX" && break 33023 done 33024 33025 CXX=$POTENTIAL_CXX 33026 fi 33027 33028 if test "x$CXX" = x; then 33029 33030 # Print a helpful message on how to acquire the necessary build dependency. 33031 # devkit is the help tag: freetype, cups, alsa etc 33032 MISSING_DEPENDENCY=devkit 33033 33034 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33035 cygwin_help $MISSING_DEPENDENCY 33036 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33037 msys_help $MISSING_DEPENDENCY 33038 else 33039 PKGHANDLER_COMMAND= 33040 33041 case $PKGHANDLER in 33042 apt-get) 33043 apt_help $MISSING_DEPENDENCY ;; 33044 yum) 33045 yum_help $MISSING_DEPENDENCY ;; 33046 port) 33047 port_help $MISSING_DEPENDENCY ;; 33048 pkgutil) 33049 pkgutil_help $MISSING_DEPENDENCY ;; 33050 pkgadd) 33051 pkgadd_help $MISSING_DEPENDENCY ;; 33052 esac 33053 33054 if test "x$PKGHANDLER_COMMAND" != x; then 33055 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 33056 fi 33057 fi 33058 33059 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 33060 fi 33061 fi 33062 33063 # Now we have a compiler binary in CXX. Make sure it's okay. 33064 33065 # Only process if variable expands to non-empty 33066 33067 if test "x$CXX" != x; then 33068 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33069 33070 # First separate the path from the arguments. This will split at the first 33071 # space. 33072 complete="$CXX" 33073 path="${complete%% *}" 33074 tmp="$complete EOL" 33075 arguments="${tmp#* }" 33076 33077 # Input might be given as Windows format, start by converting to 33078 # unix format. 33079 new_path=`$CYGPATH -u "$path"` 33080 33081 # Now try to locate executable using which 33082 new_path=`$WHICH "$new_path" 2> /dev/null` 33083 # bat and cmd files are not always considered executable in cygwin causing which 33084 # to not find them 33085 if test "x$new_path" = x \ 33086 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33087 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33088 new_path=`$CYGPATH -u "$path"` 33089 fi 33090 if test "x$new_path" = x; then 33091 # Oops. Which didn't find the executable. 33092 # The splitting of arguments from the executable at a space might have been incorrect, 33093 # since paths with space are more likely in Windows. Give it another try with the whole 33094 # argument. 33095 path="$complete" 33096 arguments="EOL" 33097 new_path=`$CYGPATH -u "$path"` 33098 new_path=`$WHICH "$new_path" 2> /dev/null` 33099 # bat and cmd files are not always considered executable in cygwin causing which 33100 # to not find them 33101 if test "x$new_path" = x \ 33102 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33103 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33104 new_path=`$CYGPATH -u "$path"` 33105 fi 33106 if test "x$new_path" = x; then 33107 # It's still not found. Now this is an unrecoverable error. 33108 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 33109 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 33110 has_space=`$ECHO "$complete" | $GREP " "` 33111 if test "x$has_space" != x; then 33112 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33113 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33114 fi 33115 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 33116 fi 33117 fi 33118 33119 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33120 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33121 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33122 # "foo.exe" is OK but "foo" is an error. 33123 # 33124 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33125 # It is also a way to make sure we got the proper file name for the real test later on. 33126 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33127 if test "x$test_shortpath" = x; then 33128 # Short path failed, file does not exist as specified. 33129 # Try adding .exe or .cmd 33130 if test -f "${new_path}.exe"; then 33131 input_to_shortpath="${new_path}.exe" 33132 elif test -f "${new_path}.cmd"; then 33133 input_to_shortpath="${new_path}.cmd" 33134 else 33135 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 33136 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 33137 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33138 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33139 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 33140 fi 33141 else 33142 input_to_shortpath="$new_path" 33143 fi 33144 33145 # Call helper function which possibly converts this using DOS-style short mode. 33146 # If so, the updated path is stored in $new_path. 33147 new_path="$input_to_shortpath" 33148 33149 input_path="$input_to_shortpath" 33150 # Check if we need to convert this using DOS-style short mode. If the path 33151 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33152 # take no chances and rewrite it. 33153 # Note: m4 eats our [], so we need to use [ and ] instead. 33154 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33155 if test "x$has_forbidden_chars" != x; then 33156 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33157 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33158 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33159 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33160 # Going to short mode and back again did indeed matter. Since short mode is 33161 # case insensitive, let's make it lowercase to improve readability. 33162 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33163 # Now convert it back to Unix-style (cygpath) 33164 input_path=`$CYGPATH -u "$shortmode_path"` 33165 new_path="$input_path" 33166 fi 33167 fi 33168 33169 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33170 if test "x$test_cygdrive_prefix" = x; then 33171 # As a simple fix, exclude /usr/bin since it's not a real path. 33172 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33173 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33174 # a path prefixed by /cygdrive for fixpath to work. 33175 new_path="$CYGWIN_ROOT_PATH$input_path" 33176 fi 33177 fi 33178 33179 # remove trailing .exe if any 33180 new_path="${new_path/%.exe/}" 33181 33182 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33183 33184 # First separate the path from the arguments. This will split at the first 33185 # space. 33186 complete="$CXX" 33187 path="${complete%% *}" 33188 tmp="$complete EOL" 33189 arguments="${tmp#* }" 33190 33191 # Input might be given as Windows format, start by converting to 33192 # unix format. 33193 new_path="$path" 33194 33195 windows_path="$new_path" 33196 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33197 unix_path=`$CYGPATH -u "$windows_path"` 33198 new_path="$unix_path" 33199 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33200 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33201 new_path="$unix_path" 33202 fi 33203 33204 33205 # Now try to locate executable using which 33206 new_path=`$WHICH "$new_path" 2> /dev/null` 33207 33208 if test "x$new_path" = x; then 33209 # Oops. Which didn't find the executable. 33210 # The splitting of arguments from the executable at a space might have been incorrect, 33211 # since paths with space are more likely in Windows. Give it another try with the whole 33212 # argument. 33213 path="$complete" 33214 arguments="EOL" 33215 new_path="$path" 33216 33217 windows_path="$new_path" 33218 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33219 unix_path=`$CYGPATH -u "$windows_path"` 33220 new_path="$unix_path" 33221 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33222 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33223 new_path="$unix_path" 33224 fi 33225 33226 33227 new_path=`$WHICH "$new_path" 2> /dev/null` 33228 # bat and cmd files are not always considered executable in MSYS causing which 33229 # to not find them 33230 if test "x$new_path" = x \ 33231 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33232 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33233 new_path="$path" 33234 33235 windows_path="$new_path" 33236 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33237 unix_path=`$CYGPATH -u "$windows_path"` 33238 new_path="$unix_path" 33239 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33240 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33241 new_path="$unix_path" 33242 fi 33243 33244 fi 33245 33246 if test "x$new_path" = x; then 33247 # It's still not found. Now this is an unrecoverable error. 33248 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 33249 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 33250 has_space=`$ECHO "$complete" | $GREP " "` 33251 if test "x$has_space" != x; then 33252 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33253 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33254 fi 33255 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 33256 fi 33257 fi 33258 33259 # Now new_path has a complete unix path to the binary 33260 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33261 # Keep paths in /bin as-is, but remove trailing .exe if any 33262 new_path="${new_path/%.exe/}" 33263 # Do not save /bin paths to all_fixpath_prefixes! 33264 else 33265 # Not in mixed or Windows style, start by that. 33266 new_path=`cmd //c echo $new_path` 33267 33268 input_path="$new_path" 33269 # Check if we need to convert this using DOS-style short mode. If the path 33270 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33271 # take no chances and rewrite it. 33272 # Note: m4 eats our [], so we need to use [ and ] instead. 33273 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33274 if test "x$has_forbidden_chars" != x; then 33275 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33276 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33277 fi 33278 33279 # Output is in $new_path 33280 33281 windows_path="$new_path" 33282 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33283 unix_path=`$CYGPATH -u "$windows_path"` 33284 new_path="$unix_path" 33285 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33286 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33287 new_path="$unix_path" 33288 fi 33289 33290 # remove trailing .exe if any 33291 new_path="${new_path/%.exe/}" 33292 33293 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33294 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33295 fi 33296 33297 else 33298 # We're on a unix platform. Hooray! :) 33299 # First separate the path from the arguments. This will split at the first 33300 # space. 33301 complete="$CXX" 33302 path="${complete%% *}" 33303 tmp="$complete EOL" 33304 arguments="${tmp#* }" 33305 33306 # Cannot rely on the command "which" here since it doesn't always work. 33307 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33308 if test -z "$is_absolute_path"; then 33309 # Path to executable is not absolute. Find it. 33310 IFS_save="$IFS" 33311 IFS=: 33312 for p in $PATH; do 33313 if test -f "$p/$path" && test -x "$p/$path"; then 33314 new_path="$p/$path" 33315 break 33316 fi 33317 done 33318 IFS="$IFS_save" 33319 else 33320 # This is an absolute path, we can use it without further modifications. 33321 new_path="$path" 33322 fi 33323 33324 if test "x$new_path" = x; then 33325 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 33326 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 33327 has_space=`$ECHO "$complete" | $GREP " "` 33328 if test "x$has_space" != x; then 33329 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33330 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33331 fi 33332 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 33333 fi 33334 fi 33335 33336 # Now join together the path and the arguments once again 33337 if test "x$arguments" != xEOL; then 33338 new_complete="$new_path ${arguments% *}" 33339 else 33340 new_complete="$new_path" 33341 fi 33342 33343 if test "x$complete" != "x$new_complete"; then 33344 CXX="$new_complete" 33345 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 33346 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 33347 fi 33348 fi 33349 33350 TEST_COMPILER="$CXX" 33351 33352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 33353 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 33354 SYMLINK_ORIGINAL="$TEST_COMPILER" 33355 33356 if test "x$OPENJDK_BUILD_OS" != xwindows; then 33357 # Follow a chain of symbolic links. Use readlink 33358 # where it exists, else fall back to horribly 33359 # complicated shell code. 33360 if test "x$READLINK_TESTED" != yes; then 33361 # On MacOSX there is a readlink tool with a different 33362 # purpose than the GNU readlink tool. Check the found readlink. 33363 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 33364 if test "x$ISGNU" = x; then 33365 # A readlink that we do not know how to use. 33366 # Are there other non-GNU readlinks out there? 33367 READLINK_TESTED=yes 33368 READLINK= 33369 fi 33370 fi 33371 33372 if test "x$READLINK" != x; then 33373 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 33374 else 33375 # Save the current directory for restoring afterwards 33376 STARTDIR=$PWD 33377 COUNTER=0 33378 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 33379 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 33380 cd $sym_link_dir 33381 # Use -P flag to resolve symlinks in directories. 33382 cd `$THEPWDCMD -P` 33383 sym_link_dir=`$THEPWDCMD -P` 33384 # Resolve file symlinks 33385 while test $COUNTER -lt 20; do 33386 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 33387 if test "x$ISLINK" == x; then 33388 # This is not a symbolic link! We are done! 33389 break 33390 fi 33391 # Again resolve directory symlinks since the target of the just found 33392 # link could be in a different directory 33393 cd `$DIRNAME $ISLINK` 33394 sym_link_dir=`$THEPWDCMD -P` 33395 sym_link_file=`$BASENAME $ISLINK` 33396 let COUNTER=COUNTER+1 33397 done 33398 cd $STARTDIR 33399 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 33400 fi 33401 fi 33402 33403 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 33404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 33405 $as_echo "no symlink" >&6; } 33406 else 33407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 33408 $as_echo "$SYMLINK_ORIGINAL" >&6; } 33409 33410 # We can't handle ccache by gcc wrappers, since we need to know if we're 33411 # using ccache. Instead ccache usage must be controlled by a configure option. 33412 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 33413 if test "x$COMPILER_BASENAME" = "xccache"; then 33414 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 33415 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 33416 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 33417 fi 33418 fi 33419 33420 33421 COMPILER=$CXX 33422 COMPILER_NAME=$COMPILER_NAME 33423 33424 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 33425 # cc -V output typically looks like 33426 # cc: Sun C 5.12 Linux_i386 2011/11/16 33427 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 33428 # Check that this is likely to be the Solaris Studio cc. 33429 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 33430 if test $? -ne 0; then 33431 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33432 { $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 33433 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33434 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33435 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33436 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 33437 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 33438 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33439 fi 33440 # Remove usage instructions (if present), and 33441 # collapse compiler output into a single line 33442 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33443 $SED -e 's/ *[Uu]sage:.*//'` 33444 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33445 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 33446 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 33447 # xlc -qversion output typically looks like 33448 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 33449 # Version: 11.01.0000.0015 33450 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 33451 # Check that this is likely to be the IBM XL C compiler. 33452 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 33453 if test $? -ne 0; then 33454 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33455 { $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 33456 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33457 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33458 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33459 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 33460 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 33461 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33462 fi 33463 # Collapse compiler output into a single line 33464 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 33465 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33466 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 33467 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 33468 # There is no specific version flag, but all output starts with a version string. 33469 # First line typically looks something like: 33470 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 33471 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 33472 # Check that this is likely to be Microsoft CL.EXE. 33473 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 33474 if test $? -ne 0; then 33475 { $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 33476 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33477 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33478 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33479 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33480 fi 33481 # Collapse compiler output into a single line 33482 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 33483 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33484 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 33485 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 33486 # gcc --version output typically looks like 33487 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 33488 # Copyright (C) 2013 Free Software Foundation, Inc. 33489 # This is free software; see the source for copying conditions. There is NO 33490 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 33491 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33492 # Check that this is likely to be GCC. 33493 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 33494 if test $? -ne 0; then 33495 { $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 33496 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33497 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 33498 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 33499 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33500 fi 33501 # Remove Copyright and legalese from version string, and 33502 # collapse into a single line 33503 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33504 $SED -e 's/ *Copyright .*//'` 33505 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33506 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 33507 elif test "x$TOOLCHAIN_TYPE" = xclang; then 33508 # clang --version output typically looks like 33509 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 33510 # clang version 3.3 (tags/RELEASE_33/final) 33511 # or 33512 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 33513 # Target: x86_64-pc-linux-gnu 33514 # Thread model: posix 33515 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33516 # Check that this is likely to be clang 33517 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 33518 if test $? -ne 0; then 33519 { $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 33520 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33521 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33522 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33523 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33524 fi 33525 # Collapse compiler output into a single line 33526 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 33527 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33528 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 33529 else 33530 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 33531 fi 33532 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 33533 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 33534 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 33535 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 33536 33537 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 33538 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 33539 33540 33541 # Now that we have resolved CXX ourself, let autoconf have its go at it 33542 ac_ext=cpp 33543 ac_cpp='$CXXCPP $CPPFLAGS' 33544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 33547 if test -z "$CXX"; then 33548 if test -n "$CCC"; then 33549 CXX=$CCC 33550 else 33551 if test -n "$ac_tool_prefix"; then 33552 for ac_prog in $CXX 33553 do 33554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 33555 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 33556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33557 $as_echo_n "checking for $ac_word... " >&6; } 33558 if ${ac_cv_prog_CXX+:} false; then : 33559 $as_echo_n "(cached) " >&6 33560 else 33561 if test -n "$CXX"; then 33562 ac_cv_prog_CXX="$CXX" # Let the user override the test. 33563 else 33564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33565 for as_dir in $PATH 33566 do 33567 IFS=$as_save_IFS 33568 test -z "$as_dir" && as_dir=. 33569 for ac_exec_ext in '' $ac_executable_extensions; do 33570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33571 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 33572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33573 break 2 33574 fi 33575 done 33576 done 33577 IFS=$as_save_IFS 33578 33579 fi 33580 fi 33581 CXX=$ac_cv_prog_CXX 33582 if test -n "$CXX"; then 33583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 33584 $as_echo "$CXX" >&6; } 33585 else 33586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33587 $as_echo "no" >&6; } 33588 fi 33589 33590 33591 test -n "$CXX" && break 33592 done 33593 fi 33594 if test -z "$CXX"; then 33595 ac_ct_CXX=$CXX 33596 for ac_prog in $CXX 33597 do 33598 # Extract the first word of "$ac_prog", so it can be a program name with args. 33599 set dummy $ac_prog; ac_word=$2 33600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33601 $as_echo_n "checking for $ac_word... " >&6; } 33602 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 33603 $as_echo_n "(cached) " >&6 33604 else 33605 if test -n "$ac_ct_CXX"; then 33606 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 33607 else 33608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33609 for as_dir in $PATH 33610 do 33611 IFS=$as_save_IFS 33612 test -z "$as_dir" && as_dir=. 33613 for ac_exec_ext in '' $ac_executable_extensions; do 33614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33615 ac_cv_prog_ac_ct_CXX="$ac_prog" 33616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33617 break 2 33618 fi 33619 done 33620 done 33621 IFS=$as_save_IFS 33622 33623 fi 33624 fi 33625 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 33626 if test -n "$ac_ct_CXX"; then 33627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 33628 $as_echo "$ac_ct_CXX" >&6; } 33629 else 33630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33631 $as_echo "no" >&6; } 33632 fi 33633 33634 33635 test -n "$ac_ct_CXX" && break 33636 done 33637 33638 if test "x$ac_ct_CXX" = x; then 33639 CXX="g++" 33640 else 33641 case $cross_compiling:$ac_tool_warned in 33642 yes:) 33643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33645 ac_tool_warned=yes ;; 33646 esac 33647 CXX=$ac_ct_CXX 33648 fi 33649 fi 33650 33651 fi 33652 fi 33653 # Provide some information about the compiler. 33654 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 33655 set X $ac_compile 33656 ac_compiler=$2 33657 for ac_option in --version -v -V -qversion; do 33658 { { ac_try="$ac_compiler $ac_option >&5" 33659 case "(($ac_try" in 33660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33661 *) ac_try_echo=$ac_try;; 33662 esac 33663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33664 $as_echo "$ac_try_echo"; } >&5 33665 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 33666 ac_status=$? 33667 if test -s conftest.err; then 33668 sed '10a\ 33669 ... rest of stderr output deleted ... 33670 10q' conftest.err >conftest.er1 33671 cat conftest.er1 >&5 33672 fi 33673 rm -f conftest.er1 conftest.err 33674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33675 test $ac_status = 0; } 33676 done 33677 33678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 33679 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 33680 if ${ac_cv_cxx_compiler_gnu+:} false; then : 33681 $as_echo_n "(cached) " >&6 33682 else 33683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33684 /* end confdefs.h. */ 33685 33686 int 33687 main () 33688 { 33689 #ifndef __GNUC__ 33690 choke me 33691 #endif 33692 33693 ; 33694 return 0; 33695 } 33696 _ACEOF 33697 if ac_fn_cxx_try_compile "$LINENO"; then : 33698 ac_compiler_gnu=yes 33699 else 33700 ac_compiler_gnu=no 33701 fi 33702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33703 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 33704 33705 fi 33706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 33707 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 33708 if test $ac_compiler_gnu = yes; then 33709 GXX=yes 33710 else 33711 GXX= 33712 fi 33713 ac_test_CXXFLAGS=${CXXFLAGS+set} 33714 ac_save_CXXFLAGS=$CXXFLAGS 33715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 33716 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 33717 if ${ac_cv_prog_cxx_g+:} false; then : 33718 $as_echo_n "(cached) " >&6 33719 else 33720 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 33721 ac_cxx_werror_flag=yes 33722 ac_cv_prog_cxx_g=no 33723 CXXFLAGS="-g" 33724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33725 /* end confdefs.h. */ 33726 33727 int 33728 main () 33729 { 33730 33731 ; 33732 return 0; 33733 } 33734 _ACEOF 33735 if ac_fn_cxx_try_compile "$LINENO"; then : 33736 ac_cv_prog_cxx_g=yes 33737 else 33738 CXXFLAGS="" 33739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33740 /* end confdefs.h. */ 33741 33742 int 33743 main () 33744 { 33745 33746 ; 33747 return 0; 33748 } 33749 _ACEOF 33750 if ac_fn_cxx_try_compile "$LINENO"; then : 33751 33752 else 33753 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 33754 CXXFLAGS="-g" 33755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33756 /* end confdefs.h. */ 33757 33758 int 33759 main () 33760 { 33761 33762 ; 33763 return 0; 33764 } 33765 _ACEOF 33766 if ac_fn_cxx_try_compile "$LINENO"; then : 33767 ac_cv_prog_cxx_g=yes 33768 fi 33769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33770 fi 33771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33772 fi 33773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33774 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 33775 fi 33776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 33777 $as_echo "$ac_cv_prog_cxx_g" >&6; } 33778 if test "$ac_test_CXXFLAGS" = set; then 33779 CXXFLAGS=$ac_save_CXXFLAGS 33780 elif test $ac_cv_prog_cxx_g = yes; then 33781 if test "$GXX" = yes; then 33782 CXXFLAGS="-g -O2" 33783 else 33784 CXXFLAGS="-g" 33785 fi 33786 else 33787 if test "$GXX" = yes; then 33788 CXXFLAGS="-O2" 33789 else 33790 CXXFLAGS= 33791 fi 33792 fi 33793 ac_ext=cpp 33794 ac_cpp='$CXXCPP $CPPFLAGS' 33795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 33798 33799 33800 # This is the compiler version number on the form X.Y[.Z] 33801 33802 33803 33804 33805 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 33806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler has different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 33807 $as_echo "$as_me: WARNING: C and C++ compiler has different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 33808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 33809 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 33810 fi 33811 33812 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 33813 if [[ "$CC_VERSION_NUMBER" =~ (.*\.){3} ]] ; then 33814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&5 33815 $as_echo "$as_me: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 33816 fi 33817 33818 if [[ "$CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 33819 { $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 33820 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 33821 fi 33822 33823 COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$CC_VERSION_NUMBER"` 33824 33825 33826 if test "x$TOOLCHAIN_MINIMUM_VERSION" != x; then 33827 33828 33829 33830 33831 33832 33833 33834 33835 33836 33837 33838 33839 33840 33841 33842 33843 33844 33845 33846 33847 33848 33849 33850 33851 33852 33853 33854 33855 33856 33857 33858 33859 33860 33861 33862 33863 33864 33865 33866 33867 33868 33869 # Execute function body 33870 33871 # Need to assign to a variable since m4 is blocked from modifying parts in []. 33872 REFERENCE_VERSION=$TOOLCHAIN_MINIMUM_VERSION 33873 33874 if [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then 33875 as_fn_error $? "Internal errror: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only three parts (X.Y.Z) is supported" "$LINENO" 5 33876 fi 33877 33878 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 33879 as_fn_error $? "Internal errror: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only parts < 99999 is supported" "$LINENO" 5 33880 fi 33881 33882 # Version comparison method inspired by http://stackoverflow.com/a/24067243 33883 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"` 33884 33885 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 33886 : 33887 33888 else 33889 : 33890 33891 { $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 33892 $as_echo "$as_me: WARNING: You are using $TOOLCHAIN_TYPE older than $TOOLCHAIN_MINIMUM_VERSION. This is not a supported configuration." >&2;} 33893 33894 33895 fi 33896 33897 33898 33899 33900 33901 33902 33903 33904 33905 33906 33907 33908 fi 33909 33910 # 33911 # Setup the preprocessor (CPP and CXXCPP) 33912 # 33913 ac_ext=c 33914 ac_cpp='$CPP $CPPFLAGS' 33915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33917 ac_compiler_gnu=$ac_cv_c_compiler_gnu 33918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 33919 $as_echo_n "checking how to run the C preprocessor... " >&6; } 33920 # On Suns, sometimes $CPP names a directory. 33921 if test -n "$CPP" && test -d "$CPP"; then 33922 CPP= 33923 fi 33924 if test -z "$CPP"; then 33925 if ${ac_cv_prog_CPP+:} false; then : 33926 $as_echo_n "(cached) " >&6 33927 else 33928 # Double quotes because CPP needs to be expanded 33929 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 33930 do 33931 ac_preproc_ok=false 33932 for ac_c_preproc_warn_flag in '' yes 33933 do 33934 # Use a header file that comes with gcc, so configuring glibc 33935 # with a fresh cross-compiler works. 33936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 33937 # <limits.h> exists even on freestanding compilers. 33938 # On the NeXT, cc -E runs the code through the compiler's parser, 33939 # not just through cpp. "Syntax error" is here to catch this case. 33940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33941 /* end confdefs.h. */ 33942 #ifdef __STDC__ 33943 # include <limits.h> 33944 #else 33945 # include <assert.h> 33946 #endif 33947 Syntax error 33948 _ACEOF 33949 if ac_fn_c_try_cpp "$LINENO"; then : 33950 33951 else 33952 # Broken: fails on valid input. 33953 continue 33954 fi 33955 rm -f conftest.err conftest.i conftest.$ac_ext 33956 33957 # OK, works on sane cases. Now check whether nonexistent headers 33958 # can be detected and how. 33959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33960 /* end confdefs.h. */ 33961 #include <ac_nonexistent.h> 33962 _ACEOF 33963 if ac_fn_c_try_cpp "$LINENO"; then : 33964 # Broken: success on invalid input. 33965 continue 33966 else 33967 # Passes both tests. 33968 ac_preproc_ok=: 33969 break 33970 fi 33971 rm -f conftest.err conftest.i conftest.$ac_ext 33972 33973 done 33974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 33975 rm -f conftest.i conftest.err conftest.$ac_ext 33976 if $ac_preproc_ok; then : 33977 break 33978 fi 33979 33980 done 33981 ac_cv_prog_CPP=$CPP 33982 33983 fi 33984 CPP=$ac_cv_prog_CPP 33985 else 33986 ac_cv_prog_CPP=$CPP 33987 fi 33988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 33989 $as_echo "$CPP" >&6; } 33990 ac_preproc_ok=false 33991 for ac_c_preproc_warn_flag in '' yes 33992 do 33993 # Use a header file that comes with gcc, so configuring glibc 33994 # with a fresh cross-compiler works. 33995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 33996 # <limits.h> exists even on freestanding compilers. 33997 # On the NeXT, cc -E runs the code through the compiler's parser, 33998 # not just through cpp. "Syntax error" is here to catch this case. 33999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34000 /* end confdefs.h. */ 34001 #ifdef __STDC__ 34002 # include <limits.h> 34003 #else 34004 # include <assert.h> 34005 #endif 34006 Syntax error 34007 _ACEOF 34008 if ac_fn_c_try_cpp "$LINENO"; then : 34009 34010 else 34011 # Broken: fails on valid input. 34012 continue 34013 fi 34014 rm -f conftest.err conftest.i conftest.$ac_ext 34015 34016 # OK, works on sane cases. Now check whether nonexistent headers 34017 # can be detected and how. 34018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34019 /* end confdefs.h. */ 34020 #include <ac_nonexistent.h> 34021 _ACEOF 34022 if ac_fn_c_try_cpp "$LINENO"; then : 34023 # Broken: success on invalid input. 34024 continue 34025 else 34026 # Passes both tests. 34027 ac_preproc_ok=: 34028 break 34029 fi 34030 rm -f conftest.err conftest.i conftest.$ac_ext 34031 34032 done 34033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 34034 rm -f conftest.i conftest.err conftest.$ac_ext 34035 if $ac_preproc_ok; then : 34036 34037 else 34038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34040 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 34041 See \`config.log' for more details" "$LINENO" 5; } 34042 fi 34043 34044 ac_ext=cpp 34045 ac_cpp='$CXXCPP $CPPFLAGS' 34046 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34047 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34048 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 34049 34050 34051 # Only process if variable expands to non-empty 34052 34053 if test "x$CPP" != x; then 34054 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34055 34056 # First separate the path from the arguments. This will split at the first 34057 # space. 34058 complete="$CPP" 34059 path="${complete%% *}" 34060 tmp="$complete EOL" 34061 arguments="${tmp#* }" 34062 34063 # Input might be given as Windows format, start by converting to 34064 # unix format. 34065 new_path=`$CYGPATH -u "$path"` 34066 34067 # Now try to locate executable using which 34068 new_path=`$WHICH "$new_path" 2> /dev/null` 34069 # bat and cmd files are not always considered executable in cygwin causing which 34070 # to not find them 34071 if test "x$new_path" = x \ 34072 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34073 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34074 new_path=`$CYGPATH -u "$path"` 34075 fi 34076 if test "x$new_path" = x; then 34077 # Oops. Which didn't find the executable. 34078 # The splitting of arguments from the executable at a space might have been incorrect, 34079 # since paths with space are more likely in Windows. Give it another try with the whole 34080 # argument. 34081 path="$complete" 34082 arguments="EOL" 34083 new_path=`$CYGPATH -u "$path"` 34084 new_path=`$WHICH "$new_path" 2> /dev/null` 34085 # bat and cmd files are not always considered executable in cygwin causing which 34086 # to not find them 34087 if test "x$new_path" = x \ 34088 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34089 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34090 new_path=`$CYGPATH -u "$path"` 34091 fi 34092 if test "x$new_path" = x; then 34093 # It's still not found. Now this is an unrecoverable error. 34094 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 34095 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 34096 has_space=`$ECHO "$complete" | $GREP " "` 34097 if test "x$has_space" != x; then 34098 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34099 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34100 fi 34101 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 34102 fi 34103 fi 34104 34105 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34106 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34107 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34108 # "foo.exe" is OK but "foo" is an error. 34109 # 34110 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34111 # It is also a way to make sure we got the proper file name for the real test later on. 34112 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34113 if test "x$test_shortpath" = x; then 34114 # Short path failed, file does not exist as specified. 34115 # Try adding .exe or .cmd 34116 if test -f "${new_path}.exe"; then 34117 input_to_shortpath="${new_path}.exe" 34118 elif test -f "${new_path}.cmd"; then 34119 input_to_shortpath="${new_path}.cmd" 34120 else 34121 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 34122 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 34123 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34124 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34125 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 34126 fi 34127 else 34128 input_to_shortpath="$new_path" 34129 fi 34130 34131 # Call helper function which possibly converts this using DOS-style short mode. 34132 # If so, the updated path is stored in $new_path. 34133 new_path="$input_to_shortpath" 34134 34135 input_path="$input_to_shortpath" 34136 # Check if we need to convert this using DOS-style short mode. If the path 34137 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34138 # take no chances and rewrite it. 34139 # Note: m4 eats our [], so we need to use [ and ] instead. 34140 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34141 if test "x$has_forbidden_chars" != x; then 34142 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34143 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34144 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34145 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34146 # Going to short mode and back again did indeed matter. Since short mode is 34147 # case insensitive, let's make it lowercase to improve readability. 34148 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34149 # Now convert it back to Unix-style (cygpath) 34150 input_path=`$CYGPATH -u "$shortmode_path"` 34151 new_path="$input_path" 34152 fi 34153 fi 34154 34155 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34156 if test "x$test_cygdrive_prefix" = x; then 34157 # As a simple fix, exclude /usr/bin since it's not a real path. 34158 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34159 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34160 # a path prefixed by /cygdrive for fixpath to work. 34161 new_path="$CYGWIN_ROOT_PATH$input_path" 34162 fi 34163 fi 34164 34165 # remove trailing .exe if any 34166 new_path="${new_path/%.exe/}" 34167 34168 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34169 34170 # First separate the path from the arguments. This will split at the first 34171 # space. 34172 complete="$CPP" 34173 path="${complete%% *}" 34174 tmp="$complete EOL" 34175 arguments="${tmp#* }" 34176 34177 # Input might be given as Windows format, start by converting to 34178 # unix format. 34179 new_path="$path" 34180 34181 windows_path="$new_path" 34182 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34183 unix_path=`$CYGPATH -u "$windows_path"` 34184 new_path="$unix_path" 34185 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34186 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34187 new_path="$unix_path" 34188 fi 34189 34190 34191 # Now try to locate executable using which 34192 new_path=`$WHICH "$new_path" 2> /dev/null` 34193 34194 if test "x$new_path" = x; then 34195 # Oops. Which didn't find the executable. 34196 # The splitting of arguments from the executable at a space might have been incorrect, 34197 # since paths with space are more likely in Windows. Give it another try with the whole 34198 # argument. 34199 path="$complete" 34200 arguments="EOL" 34201 new_path="$path" 34202 34203 windows_path="$new_path" 34204 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34205 unix_path=`$CYGPATH -u "$windows_path"` 34206 new_path="$unix_path" 34207 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34208 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34209 new_path="$unix_path" 34210 fi 34211 34212 34213 new_path=`$WHICH "$new_path" 2> /dev/null` 34214 # bat and cmd files are not always considered executable in MSYS causing which 34215 # to not find them 34216 if test "x$new_path" = x \ 34217 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34218 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34219 new_path="$path" 34220 34221 windows_path="$new_path" 34222 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34223 unix_path=`$CYGPATH -u "$windows_path"` 34224 new_path="$unix_path" 34225 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34226 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34227 new_path="$unix_path" 34228 fi 34229 34230 fi 34231 34232 if test "x$new_path" = x; then 34233 # It's still not found. Now this is an unrecoverable error. 34234 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 34235 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 34236 has_space=`$ECHO "$complete" | $GREP " "` 34237 if test "x$has_space" != x; then 34238 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34239 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34240 fi 34241 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 34242 fi 34243 fi 34244 34245 # Now new_path has a complete unix path to the binary 34246 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34247 # Keep paths in /bin as-is, but remove trailing .exe if any 34248 new_path="${new_path/%.exe/}" 34249 # Do not save /bin paths to all_fixpath_prefixes! 34250 else 34251 # Not in mixed or Windows style, start by that. 34252 new_path=`cmd //c echo $new_path` 34253 34254 input_path="$new_path" 34255 # Check if we need to convert this using DOS-style short mode. If the path 34256 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34257 # take no chances and rewrite it. 34258 # Note: m4 eats our [], so we need to use [ and ] instead. 34259 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34260 if test "x$has_forbidden_chars" != x; then 34261 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34262 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34263 fi 34264 34265 # Output is in $new_path 34266 34267 windows_path="$new_path" 34268 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34269 unix_path=`$CYGPATH -u "$windows_path"` 34270 new_path="$unix_path" 34271 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34272 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34273 new_path="$unix_path" 34274 fi 34275 34276 # remove trailing .exe if any 34277 new_path="${new_path/%.exe/}" 34278 34279 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34280 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34281 fi 34282 34283 else 34284 # We're on a unix platform. Hooray! :) 34285 # First separate the path from the arguments. This will split at the first 34286 # space. 34287 complete="$CPP" 34288 path="${complete%% *}" 34289 tmp="$complete EOL" 34290 arguments="${tmp#* }" 34291 34292 # Cannot rely on the command "which" here since it doesn't always work. 34293 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34294 if test -z "$is_absolute_path"; then 34295 # Path to executable is not absolute. Find it. 34296 IFS_save="$IFS" 34297 IFS=: 34298 for p in $PATH; do 34299 if test -f "$p/$path" && test -x "$p/$path"; then 34300 new_path="$p/$path" 34301 break 34302 fi 34303 done 34304 IFS="$IFS_save" 34305 else 34306 # This is an absolute path, we can use it without further modifications. 34307 new_path="$path" 34308 fi 34309 34310 if test "x$new_path" = x; then 34311 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 34312 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 34313 has_space=`$ECHO "$complete" | $GREP " "` 34314 if test "x$has_space" != x; then 34315 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34316 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34317 fi 34318 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 34319 fi 34320 fi 34321 34322 # Now join together the path and the arguments once again 34323 if test "x$arguments" != xEOL; then 34324 new_complete="$new_path ${arguments% *}" 34325 else 34326 new_complete="$new_path" 34327 fi 34328 34329 if test "x$complete" != "x$new_complete"; then 34330 CPP="$new_complete" 34331 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 34332 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 34333 fi 34334 fi 34335 34336 ac_ext=cpp 34337 ac_cpp='$CXXCPP $CPPFLAGS' 34338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 34341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 34342 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 34343 if test -z "$CXXCPP"; then 34344 if ${ac_cv_prog_CXXCPP+:} false; then : 34345 $as_echo_n "(cached) " >&6 34346 else 34347 # Double quotes because CXXCPP needs to be expanded 34348 for CXXCPP in "$CXX -E" "/lib/cpp" 34349 do 34350 ac_preproc_ok=false 34351 for ac_cxx_preproc_warn_flag in '' yes 34352 do 34353 # Use a header file that comes with gcc, so configuring glibc 34354 # with a fresh cross-compiler works. 34355 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 34356 # <limits.h> exists even on freestanding compilers. 34357 # On the NeXT, cc -E runs the code through the compiler's parser, 34358 # not just through cpp. "Syntax error" is here to catch this case. 34359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34360 /* end confdefs.h. */ 34361 #ifdef __STDC__ 34362 # include <limits.h> 34363 #else 34364 # include <assert.h> 34365 #endif 34366 Syntax error 34367 _ACEOF 34368 if ac_fn_cxx_try_cpp "$LINENO"; then : 34369 34370 else 34371 # Broken: fails on valid input. 34372 continue 34373 fi 34374 rm -f conftest.err conftest.i conftest.$ac_ext 34375 34376 # OK, works on sane cases. Now check whether nonexistent headers 34377 # can be detected and how. 34378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34379 /* end confdefs.h. */ 34380 #include <ac_nonexistent.h> 34381 _ACEOF 34382 if ac_fn_cxx_try_cpp "$LINENO"; then : 34383 # Broken: success on invalid input. 34384 continue 34385 else 34386 # Passes both tests. 34387 ac_preproc_ok=: 34388 break 34389 fi 34390 rm -f conftest.err conftest.i conftest.$ac_ext 34391 34392 done 34393 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 34394 rm -f conftest.i conftest.err conftest.$ac_ext 34395 if $ac_preproc_ok; then : 34396 break 34397 fi 34398 34399 done 34400 ac_cv_prog_CXXCPP=$CXXCPP 34401 34402 fi 34403 CXXCPP=$ac_cv_prog_CXXCPP 34404 else 34405 ac_cv_prog_CXXCPP=$CXXCPP 34406 fi 34407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 34408 $as_echo "$CXXCPP" >&6; } 34409 ac_preproc_ok=false 34410 for ac_cxx_preproc_warn_flag in '' yes 34411 do 34412 # Use a header file that comes with gcc, so configuring glibc 34413 # with a fresh cross-compiler works. 34414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 34415 # <limits.h> exists even on freestanding compilers. 34416 # On the NeXT, cc -E runs the code through the compiler's parser, 34417 # not just through cpp. "Syntax error" is here to catch this case. 34418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34419 /* end confdefs.h. */ 34420 #ifdef __STDC__ 34421 # include <limits.h> 34422 #else 34423 # include <assert.h> 34424 #endif 34425 Syntax error 34426 _ACEOF 34427 if ac_fn_cxx_try_cpp "$LINENO"; then : 34428 34429 else 34430 # Broken: fails on valid input. 34431 continue 34432 fi 34433 rm -f conftest.err conftest.i conftest.$ac_ext 34434 34435 # OK, works on sane cases. Now check whether nonexistent headers 34436 # can be detected and how. 34437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34438 /* end confdefs.h. */ 34439 #include <ac_nonexistent.h> 34440 _ACEOF 34441 if ac_fn_cxx_try_cpp "$LINENO"; then : 34442 # Broken: success on invalid input. 34443 continue 34444 else 34445 # Passes both tests. 34446 ac_preproc_ok=: 34447 break 34448 fi 34449 rm -f conftest.err conftest.i conftest.$ac_ext 34450 34451 done 34452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 34453 rm -f conftest.i conftest.err conftest.$ac_ext 34454 if $ac_preproc_ok; then : 34455 34456 else 34457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34459 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 34460 See \`config.log' for more details" "$LINENO" 5; } 34461 fi 34462 34463 ac_ext=cpp 34464 ac_cpp='$CXXCPP $CPPFLAGS' 34465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 34468 34469 34470 # Only process if variable expands to non-empty 34471 34472 if test "x$CXXCPP" != x; then 34473 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34474 34475 # First separate the path from the arguments. This will split at the first 34476 # space. 34477 complete="$CXXCPP" 34478 path="${complete%% *}" 34479 tmp="$complete EOL" 34480 arguments="${tmp#* }" 34481 34482 # Input might be given as Windows format, start by converting to 34483 # unix format. 34484 new_path=`$CYGPATH -u "$path"` 34485 34486 # Now try to locate executable using which 34487 new_path=`$WHICH "$new_path" 2> /dev/null` 34488 # bat and cmd files are not always considered executable in cygwin causing which 34489 # to not find them 34490 if test "x$new_path" = x \ 34491 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34492 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34493 new_path=`$CYGPATH -u "$path"` 34494 fi 34495 if test "x$new_path" = x; then 34496 # Oops. Which didn't find the executable. 34497 # The splitting of arguments from the executable at a space might have been incorrect, 34498 # since paths with space are more likely in Windows. Give it another try with the whole 34499 # argument. 34500 path="$complete" 34501 arguments="EOL" 34502 new_path=`$CYGPATH -u "$path"` 34503 new_path=`$WHICH "$new_path" 2> /dev/null` 34504 # bat and cmd files are not always considered executable in cygwin causing which 34505 # to not find them 34506 if test "x$new_path" = x \ 34507 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34508 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34509 new_path=`$CYGPATH -u "$path"` 34510 fi 34511 if test "x$new_path" = x; then 34512 # It's still not found. Now this is an unrecoverable error. 34513 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 34514 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 34515 has_space=`$ECHO "$complete" | $GREP " "` 34516 if test "x$has_space" != x; then 34517 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34518 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34519 fi 34520 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 34521 fi 34522 fi 34523 34524 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34525 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34526 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34527 # "foo.exe" is OK but "foo" is an error. 34528 # 34529 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34530 # It is also a way to make sure we got the proper file name for the real test later on. 34531 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34532 if test "x$test_shortpath" = x; then 34533 # Short path failed, file does not exist as specified. 34534 # Try adding .exe or .cmd 34535 if test -f "${new_path}.exe"; then 34536 input_to_shortpath="${new_path}.exe" 34537 elif test -f "${new_path}.cmd"; then 34538 input_to_shortpath="${new_path}.cmd" 34539 else 34540 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 34541 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 34542 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34543 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34544 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 34545 fi 34546 else 34547 input_to_shortpath="$new_path" 34548 fi 34549 34550 # Call helper function which possibly converts this using DOS-style short mode. 34551 # If so, the updated path is stored in $new_path. 34552 new_path="$input_to_shortpath" 34553 34554 input_path="$input_to_shortpath" 34555 # Check if we need to convert this using DOS-style short mode. If the path 34556 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34557 # take no chances and rewrite it. 34558 # Note: m4 eats our [], so we need to use [ and ] instead. 34559 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34560 if test "x$has_forbidden_chars" != x; then 34561 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34562 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34563 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34564 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34565 # Going to short mode and back again did indeed matter. Since short mode is 34566 # case insensitive, let's make it lowercase to improve readability. 34567 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34568 # Now convert it back to Unix-style (cygpath) 34569 input_path=`$CYGPATH -u "$shortmode_path"` 34570 new_path="$input_path" 34571 fi 34572 fi 34573 34574 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34575 if test "x$test_cygdrive_prefix" = x; then 34576 # As a simple fix, exclude /usr/bin since it's not a real path. 34577 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34578 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34579 # a path prefixed by /cygdrive for fixpath to work. 34580 new_path="$CYGWIN_ROOT_PATH$input_path" 34581 fi 34582 fi 34583 34584 # remove trailing .exe if any 34585 new_path="${new_path/%.exe/}" 34586 34587 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34588 34589 # First separate the path from the arguments. This will split at the first 34590 # space. 34591 complete="$CXXCPP" 34592 path="${complete%% *}" 34593 tmp="$complete EOL" 34594 arguments="${tmp#* }" 34595 34596 # Input might be given as Windows format, start by converting to 34597 # unix format. 34598 new_path="$path" 34599 34600 windows_path="$new_path" 34601 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34602 unix_path=`$CYGPATH -u "$windows_path"` 34603 new_path="$unix_path" 34604 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34605 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34606 new_path="$unix_path" 34607 fi 34608 34609 34610 # Now try to locate executable using which 34611 new_path=`$WHICH "$new_path" 2> /dev/null` 34612 34613 if test "x$new_path" = x; then 34614 # Oops. Which didn't find the executable. 34615 # The splitting of arguments from the executable at a space might have been incorrect, 34616 # since paths with space are more likely in Windows. Give it another try with the whole 34617 # argument. 34618 path="$complete" 34619 arguments="EOL" 34620 new_path="$path" 34621 34622 windows_path="$new_path" 34623 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34624 unix_path=`$CYGPATH -u "$windows_path"` 34625 new_path="$unix_path" 34626 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34627 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34628 new_path="$unix_path" 34629 fi 34630 34631 34632 new_path=`$WHICH "$new_path" 2> /dev/null` 34633 # bat and cmd files are not always considered executable in MSYS causing which 34634 # to not find them 34635 if test "x$new_path" = x \ 34636 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34637 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34638 new_path="$path" 34639 34640 windows_path="$new_path" 34641 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34642 unix_path=`$CYGPATH -u "$windows_path"` 34643 new_path="$unix_path" 34644 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34645 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34646 new_path="$unix_path" 34647 fi 34648 34649 fi 34650 34651 if test "x$new_path" = x; then 34652 # It's still not found. Now this is an unrecoverable error. 34653 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 34654 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 34655 has_space=`$ECHO "$complete" | $GREP " "` 34656 if test "x$has_space" != x; then 34657 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34658 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34659 fi 34660 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 34661 fi 34662 fi 34663 34664 # Now new_path has a complete unix path to the binary 34665 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34666 # Keep paths in /bin as-is, but remove trailing .exe if any 34667 new_path="${new_path/%.exe/}" 34668 # Do not save /bin paths to all_fixpath_prefixes! 34669 else 34670 # Not in mixed or Windows style, start by that. 34671 new_path=`cmd //c echo $new_path` 34672 34673 input_path="$new_path" 34674 # Check if we need to convert this using DOS-style short mode. If the path 34675 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34676 # take no chances and rewrite it. 34677 # Note: m4 eats our [], so we need to use [ and ] instead. 34678 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34679 if test "x$has_forbidden_chars" != x; then 34680 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34681 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34682 fi 34683 34684 # Output is in $new_path 34685 34686 windows_path="$new_path" 34687 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34688 unix_path=`$CYGPATH -u "$windows_path"` 34689 new_path="$unix_path" 34690 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34691 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34692 new_path="$unix_path" 34693 fi 34694 34695 # remove trailing .exe if any 34696 new_path="${new_path/%.exe/}" 34697 34698 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34699 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34700 fi 34701 34702 else 34703 # We're on a unix platform. Hooray! :) 34704 # First separate the path from the arguments. This will split at the first 34705 # space. 34706 complete="$CXXCPP" 34707 path="${complete%% *}" 34708 tmp="$complete EOL" 34709 arguments="${tmp#* }" 34710 34711 # Cannot rely on the command "which" here since it doesn't always work. 34712 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34713 if test -z "$is_absolute_path"; then 34714 # Path to executable is not absolute. Find it. 34715 IFS_save="$IFS" 34716 IFS=: 34717 for p in $PATH; do 34718 if test -f "$p/$path" && test -x "$p/$path"; then 34719 new_path="$p/$path" 34720 break 34721 fi 34722 done 34723 IFS="$IFS_save" 34724 else 34725 # This is an absolute path, we can use it without further modifications. 34726 new_path="$path" 34727 fi 34728 34729 if test "x$new_path" = x; then 34730 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 34731 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 34732 has_space=`$ECHO "$complete" | $GREP " "` 34733 if test "x$has_space" != x; then 34734 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34735 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34736 fi 34737 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 34738 fi 34739 fi 34740 34741 # Now join together the path and the arguments once again 34742 if test "x$arguments" != xEOL; then 34743 new_complete="$new_path ${arguments% *}" 34744 else 34745 new_complete="$new_path" 34746 fi 34747 34748 if test "x$complete" != "x$new_complete"; then 34749 CXXCPP="$new_complete" 34750 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 34751 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 34752 fi 34753 fi 34754 34755 34756 # 34757 # Setup the linker (LD) 34758 # 34759 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 34760 # In the Microsoft toolchain we have a separate LD command "link". 34761 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 34762 # a cygwin program for something completely different. 34763 # Extract the first word of "link", so it can be a program name with args. 34764 set dummy link; ac_word=$2 34765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34766 $as_echo_n "checking for $ac_word... " >&6; } 34767 if ${ac_cv_prog_LD+:} false; then : 34768 $as_echo_n "(cached) " >&6 34769 else 34770 if test -n "$LD"; then 34771 ac_cv_prog_LD="$LD" # Let the user override the test. 34772 else 34773 ac_prog_rejected=no 34774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34775 for as_dir in $PATH 34776 do 34777 IFS=$as_save_IFS 34778 test -z "$as_dir" && as_dir=. 34779 for ac_exec_ext in '' $ac_executable_extensions; do 34780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34781 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 34782 ac_prog_rejected=yes 34783 continue 34784 fi 34785 ac_cv_prog_LD="link" 34786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34787 break 2 34788 fi 34789 done 34790 done 34791 IFS=$as_save_IFS 34792 34793 if test $ac_prog_rejected = yes; then 34794 # We found a bogon in the path, so make sure we never use it. 34795 set dummy $ac_cv_prog_LD 34796 shift 34797 if test $# != 0; then 34798 # We chose a different compiler from the bogus one. 34799 # However, it has the same basename, so the bogon will be chosen 34800 # first if we set LD to just the basename; use the full file name. 34801 shift 34802 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 34803 fi 34804 fi 34805 fi 34806 fi 34807 LD=$ac_cv_prog_LD 34808 if test -n "$LD"; then 34809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 34810 $as_echo "$LD" >&6; } 34811 else 34812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34813 $as_echo "no" >&6; } 34814 fi 34815 34816 34817 34818 # Only process if variable expands to non-empty 34819 34820 if test "x$LD" != x; then 34821 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34822 34823 # First separate the path from the arguments. This will split at the first 34824 # space. 34825 complete="$LD" 34826 path="${complete%% *}" 34827 tmp="$complete EOL" 34828 arguments="${tmp#* }" 34829 34830 # Input might be given as Windows format, start by converting to 34831 # unix format. 34832 new_path=`$CYGPATH -u "$path"` 34833 34834 # Now try to locate executable using which 34835 new_path=`$WHICH "$new_path" 2> /dev/null` 34836 # bat and cmd files are not always considered executable in cygwin causing which 34837 # to not find them 34838 if test "x$new_path" = x \ 34839 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34840 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34841 new_path=`$CYGPATH -u "$path"` 34842 fi 34843 if test "x$new_path" = x; then 34844 # Oops. Which didn't find the executable. 34845 # The splitting of arguments from the executable at a space might have been incorrect, 34846 # since paths with space are more likely in Windows. Give it another try with the whole 34847 # argument. 34848 path="$complete" 34849 arguments="EOL" 34850 new_path=`$CYGPATH -u "$path"` 34851 new_path=`$WHICH "$new_path" 2> /dev/null` 34852 # bat and cmd files are not always considered executable in cygwin causing which 34853 # to not find them 34854 if test "x$new_path" = x \ 34855 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34856 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34857 new_path=`$CYGPATH -u "$path"` 34858 fi 34859 if test "x$new_path" = x; then 34860 # It's still not found. Now this is an unrecoverable error. 34861 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 34862 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 34863 has_space=`$ECHO "$complete" | $GREP " "` 34864 if test "x$has_space" != x; then 34865 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34866 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34867 fi 34868 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 34869 fi 34870 fi 34871 34872 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34873 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34874 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34875 # "foo.exe" is OK but "foo" is an error. 34876 # 34877 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34878 # It is also a way to make sure we got the proper file name for the real test later on. 34879 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34880 if test "x$test_shortpath" = x; then 34881 # Short path failed, file does not exist as specified. 34882 # Try adding .exe or .cmd 34883 if test -f "${new_path}.exe"; then 34884 input_to_shortpath="${new_path}.exe" 34885 elif test -f "${new_path}.cmd"; then 34886 input_to_shortpath="${new_path}.cmd" 34887 else 34888 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 34889 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 34890 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34891 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34892 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 34893 fi 34894 else 34895 input_to_shortpath="$new_path" 34896 fi 34897 34898 # Call helper function which possibly converts this using DOS-style short mode. 34899 # If so, the updated path is stored in $new_path. 34900 new_path="$input_to_shortpath" 34901 34902 input_path="$input_to_shortpath" 34903 # Check if we need to convert this using DOS-style short mode. If the path 34904 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34905 # take no chances and rewrite it. 34906 # Note: m4 eats our [], so we need to use [ and ] instead. 34907 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34908 if test "x$has_forbidden_chars" != x; then 34909 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34910 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34911 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34912 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34913 # Going to short mode and back again did indeed matter. Since short mode is 34914 # case insensitive, let's make it lowercase to improve readability. 34915 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34916 # Now convert it back to Unix-style (cygpath) 34917 input_path=`$CYGPATH -u "$shortmode_path"` 34918 new_path="$input_path" 34919 fi 34920 fi 34921 34922 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34923 if test "x$test_cygdrive_prefix" = x; then 34924 # As a simple fix, exclude /usr/bin since it's not a real path. 34925 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34926 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34927 # a path prefixed by /cygdrive for fixpath to work. 34928 new_path="$CYGWIN_ROOT_PATH$input_path" 34929 fi 34930 fi 34931 34932 # remove trailing .exe if any 34933 new_path="${new_path/%.exe/}" 34934 34935 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34936 34937 # First separate the path from the arguments. This will split at the first 34938 # space. 34939 complete="$LD" 34940 path="${complete%% *}" 34941 tmp="$complete EOL" 34942 arguments="${tmp#* }" 34943 34944 # Input might be given as Windows format, start by converting to 34945 # unix format. 34946 new_path="$path" 34947 34948 windows_path="$new_path" 34949 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34950 unix_path=`$CYGPATH -u "$windows_path"` 34951 new_path="$unix_path" 34952 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34953 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34954 new_path="$unix_path" 34955 fi 34956 34957 34958 # Now try to locate executable using which 34959 new_path=`$WHICH "$new_path" 2> /dev/null` 34960 34961 if test "x$new_path" = x; then 34962 # Oops. Which didn't find the executable. 34963 # The splitting of arguments from the executable at a space might have been incorrect, 34964 # since paths with space are more likely in Windows. Give it another try with the whole 34965 # argument. 34966 path="$complete" 34967 arguments="EOL" 34968 new_path="$path" 34969 34970 windows_path="$new_path" 34971 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34972 unix_path=`$CYGPATH -u "$windows_path"` 34973 new_path="$unix_path" 34974 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34975 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34976 new_path="$unix_path" 34977 fi 34978 34979 34980 new_path=`$WHICH "$new_path" 2> /dev/null` 34981 # bat and cmd files are not always considered executable in MSYS causing which 34982 # to not find them 34983 if test "x$new_path" = x \ 34984 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34985 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34986 new_path="$path" 34987 34988 windows_path="$new_path" 34989 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34990 unix_path=`$CYGPATH -u "$windows_path"` 34991 new_path="$unix_path" 34992 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34993 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34994 new_path="$unix_path" 34995 fi 34996 34997 fi 34998 34999 if test "x$new_path" = x; then 35000 # It's still not found. Now this is an unrecoverable error. 35001 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 35002 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 35003 has_space=`$ECHO "$complete" | $GREP " "` 35004 if test "x$has_space" != x; then 35005 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35006 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35007 fi 35008 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 35009 fi 35010 fi 35011 35012 # Now new_path has a complete unix path to the binary 35013 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35014 # Keep paths in /bin as-is, but remove trailing .exe if any 35015 new_path="${new_path/%.exe/}" 35016 # Do not save /bin paths to all_fixpath_prefixes! 35017 else 35018 # Not in mixed or Windows style, start by that. 35019 new_path=`cmd //c echo $new_path` 35020 35021 input_path="$new_path" 35022 # Check if we need to convert this using DOS-style short mode. If the path 35023 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35024 # take no chances and rewrite it. 35025 # Note: m4 eats our [], so we need to use [ and ] instead. 35026 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35027 if test "x$has_forbidden_chars" != x; then 35028 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35029 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35030 fi 35031 35032 # Output is in $new_path 35033 35034 windows_path="$new_path" 35035 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35036 unix_path=`$CYGPATH -u "$windows_path"` 35037 new_path="$unix_path" 35038 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35039 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35040 new_path="$unix_path" 35041 fi 35042 35043 # remove trailing .exe if any 35044 new_path="${new_path/%.exe/}" 35045 35046 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35047 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35048 fi 35049 35050 else 35051 # We're on a unix platform. Hooray! :) 35052 # First separate the path from the arguments. This will split at the first 35053 # space. 35054 complete="$LD" 35055 path="${complete%% *}" 35056 tmp="$complete EOL" 35057 arguments="${tmp#* }" 35058 35059 # Cannot rely on the command "which" here since it doesn't always work. 35060 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35061 if test -z "$is_absolute_path"; then 35062 # Path to executable is not absolute. Find it. 35063 IFS_save="$IFS" 35064 IFS=: 35065 for p in $PATH; do 35066 if test -f "$p/$path" && test -x "$p/$path"; then 35067 new_path="$p/$path" 35068 break 35069 fi 35070 done 35071 IFS="$IFS_save" 35072 else 35073 # This is an absolute path, we can use it without further modifications. 35074 new_path="$path" 35075 fi 35076 35077 if test "x$new_path" = x; then 35078 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 35079 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 35080 has_space=`$ECHO "$complete" | $GREP " "` 35081 if test "x$has_space" != x; then 35082 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35083 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35084 fi 35085 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 35086 fi 35087 fi 35088 35089 # Now join together the path and the arguments once again 35090 if test "x$arguments" != xEOL; then 35091 new_complete="$new_path ${arguments% *}" 35092 else 35093 new_complete="$new_path" 35094 fi 35095 35096 if test "x$complete" != "x$new_complete"; then 35097 LD="$new_complete" 35098 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 35099 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 35100 fi 35101 fi 35102 35103 # Verify that we indeed succeeded with this trick. 35104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 35105 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 35106 "$LD" --version > /dev/null 35107 if test $? -eq 0 ; then 35108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35109 $as_echo "no" >&6; } 35110 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 35111 else 35112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35113 $as_echo "yes" >&6; } 35114 fi 35115 LDCXX="$LD" 35116 else 35117 # All other toolchains use the compiler to link. 35118 LD="$CC" 35119 LDCXX="$CXX" 35120 fi 35121 35122 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 35123 35124 35125 # 35126 # Setup the assembler (AS) 35127 # 35128 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 35129 # FIXME: should this really be solaris, or solstudio? 35130 35131 35132 # Publish this variable in the help. 35133 35134 35135 if [ -z "${AS+x}" ]; then 35136 # The variable is not set by user, try to locate tool using the code snippet 35137 for ac_prog in as 35138 do 35139 # Extract the first word of "$ac_prog", so it can be a program name with args. 35140 set dummy $ac_prog; ac_word=$2 35141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35142 $as_echo_n "checking for $ac_word... " >&6; } 35143 if ${ac_cv_path_AS+:} false; then : 35144 $as_echo_n "(cached) " >&6 35145 else 35146 case $AS in 35147 [\\/]* | ?:[\\/]*) 35148 ac_cv_path_AS="$AS" # Let the user override the test with a path. 35149 ;; 35150 *) 35151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35152 for as_dir in $PATH 35153 do 35154 IFS=$as_save_IFS 35155 test -z "$as_dir" && as_dir=. 35156 for ac_exec_ext in '' $ac_executable_extensions; do 35157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35158 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 35159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35160 break 2 35161 fi 35162 done 35163 done 35164 IFS=$as_save_IFS 35165 35166 ;; 35167 esac 35168 fi 35169 AS=$ac_cv_path_AS 35170 if test -n "$AS"; then 35171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 35172 $as_echo "$AS" >&6; } 35173 else 35174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35175 $as_echo "no" >&6; } 35176 fi 35177 35178 35179 test -n "$AS" && break 35180 done 35181 35182 else 35183 # The variable is set, but is it from the command line or the environment? 35184 35185 # Try to remove the string !AS! from our list. 35186 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 35187 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35188 # If it failed, the variable was not from the command line. Ignore it, 35189 # but warn the user (except for BASH, which is always set by the calling BASH). 35190 if test "xAS" != xBASH; then 35191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 35192 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 35193 fi 35194 # Try to locate tool using the code snippet 35195 for ac_prog in as 35196 do 35197 # Extract the first word of "$ac_prog", so it can be a program name with args. 35198 set dummy $ac_prog; ac_word=$2 35199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35200 $as_echo_n "checking for $ac_word... " >&6; } 35201 if ${ac_cv_path_AS+:} false; then : 35202 $as_echo_n "(cached) " >&6 35203 else 35204 case $AS in 35205 [\\/]* | ?:[\\/]*) 35206 ac_cv_path_AS="$AS" # Let the user override the test with a path. 35207 ;; 35208 *) 35209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35210 for as_dir in $PATH 35211 do 35212 IFS=$as_save_IFS 35213 test -z "$as_dir" && as_dir=. 35214 for ac_exec_ext in '' $ac_executable_extensions; do 35215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35216 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 35217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35218 break 2 35219 fi 35220 done 35221 done 35222 IFS=$as_save_IFS 35223 35224 ;; 35225 esac 35226 fi 35227 AS=$ac_cv_path_AS 35228 if test -n "$AS"; then 35229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 35230 $as_echo "$AS" >&6; } 35231 else 35232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35233 $as_echo "no" >&6; } 35234 fi 35235 35236 35237 test -n "$AS" && break 35238 done 35239 35240 else 35241 # If it succeeded, then it was overridden by the user. We will use it 35242 # for the tool. 35243 35244 # First remove it from the list of overridden variables, so we can test 35245 # for unknown variables in the end. 35246 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35247 35248 # Check if we try to supply an empty value 35249 if test "x$AS" = x; then 35250 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AS= (no value)" >&5 35251 $as_echo "$as_me: Setting user supplied tool AS= (no value)" >&6;} 35252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 35253 $as_echo_n "checking for AS... " >&6; } 35254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 35255 $as_echo "disabled" >&6; } 35256 else 35257 # Check if the provided tool contains a complete path. 35258 tool_specified="$AS" 35259 tool_basename="${tool_specified##*/}" 35260 if test "x$tool_basename" = "x$tool_specified"; then 35261 # A command without a complete path is provided, search $PATH. 35262 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 35263 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 35264 # Extract the first word of "$tool_basename", so it can be a program name with args. 35265 set dummy $tool_basename; ac_word=$2 35266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35267 $as_echo_n "checking for $ac_word... " >&6; } 35268 if ${ac_cv_path_AS+:} false; then : 35269 $as_echo_n "(cached) " >&6 35270 else 35271 case $AS in 35272 [\\/]* | ?:[\\/]*) 35273 ac_cv_path_AS="$AS" # Let the user override the test with a path. 35274 ;; 35275 *) 35276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35277 for as_dir in $PATH 35278 do 35279 IFS=$as_save_IFS 35280 test -z "$as_dir" && as_dir=. 35281 for ac_exec_ext in '' $ac_executable_extensions; do 35282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35283 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 35284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35285 break 2 35286 fi 35287 done 35288 done 35289 IFS=$as_save_IFS 35290 35291 ;; 35292 esac 35293 fi 35294 AS=$ac_cv_path_AS 35295 if test -n "$AS"; then 35296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 35297 $as_echo "$AS" >&6; } 35298 else 35299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35300 $as_echo "no" >&6; } 35301 fi 35302 35303 35304 if test "x$AS" = x; then 35305 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35306 fi 35307 else 35308 # Otherwise we believe it is a complete path. Use it as it is. 35309 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 35310 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 35311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 35312 $as_echo_n "checking for AS... " >&6; } 35313 if test ! -x "$tool_specified"; then 35314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35315 $as_echo "not found" >&6; } 35316 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 35317 fi 35318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35319 $as_echo "$tool_specified" >&6; } 35320 fi 35321 fi 35322 fi 35323 35324 fi 35325 35326 35327 35328 # Only process if variable expands to non-empty 35329 35330 if test "x$AS" != x; then 35331 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35332 35333 # First separate the path from the arguments. This will split at the first 35334 # space. 35335 complete="$AS" 35336 path="${complete%% *}" 35337 tmp="$complete EOL" 35338 arguments="${tmp#* }" 35339 35340 # Input might be given as Windows format, start by converting to 35341 # unix format. 35342 new_path=`$CYGPATH -u "$path"` 35343 35344 # Now try to locate executable using which 35345 new_path=`$WHICH "$new_path" 2> /dev/null` 35346 # bat and cmd files are not always considered executable in cygwin causing which 35347 # to not find them 35348 if test "x$new_path" = x \ 35349 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35350 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35351 new_path=`$CYGPATH -u "$path"` 35352 fi 35353 if test "x$new_path" = x; then 35354 # Oops. Which didn't find the executable. 35355 # The splitting of arguments from the executable at a space might have been incorrect, 35356 # since paths with space are more likely in Windows. Give it another try with the whole 35357 # argument. 35358 path="$complete" 35359 arguments="EOL" 35360 new_path=`$CYGPATH -u "$path"` 35361 new_path=`$WHICH "$new_path" 2> /dev/null` 35362 # bat and cmd files are not always considered executable in cygwin causing which 35363 # to not find them 35364 if test "x$new_path" = x \ 35365 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35366 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35367 new_path=`$CYGPATH -u "$path"` 35368 fi 35369 if test "x$new_path" = x; then 35370 # It's still not found. Now this is an unrecoverable error. 35371 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 35372 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 35373 has_space=`$ECHO "$complete" | $GREP " "` 35374 if test "x$has_space" != x; then 35375 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35376 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35377 fi 35378 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 35379 fi 35380 fi 35381 35382 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35383 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35384 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35385 # "foo.exe" is OK but "foo" is an error. 35386 # 35387 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35388 # It is also a way to make sure we got the proper file name for the real test later on. 35389 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35390 if test "x$test_shortpath" = x; then 35391 # Short path failed, file does not exist as specified. 35392 # Try adding .exe or .cmd 35393 if test -f "${new_path}.exe"; then 35394 input_to_shortpath="${new_path}.exe" 35395 elif test -f "${new_path}.cmd"; then 35396 input_to_shortpath="${new_path}.cmd" 35397 else 35398 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 35399 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 35400 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35401 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35402 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 35403 fi 35404 else 35405 input_to_shortpath="$new_path" 35406 fi 35407 35408 # Call helper function which possibly converts this using DOS-style short mode. 35409 # If so, the updated path is stored in $new_path. 35410 new_path="$input_to_shortpath" 35411 35412 input_path="$input_to_shortpath" 35413 # Check if we need to convert this using DOS-style short mode. If the path 35414 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35415 # take no chances and rewrite it. 35416 # Note: m4 eats our [], so we need to use [ and ] instead. 35417 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35418 if test "x$has_forbidden_chars" != x; then 35419 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35420 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35421 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35422 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35423 # Going to short mode and back again did indeed matter. Since short mode is 35424 # case insensitive, let's make it lowercase to improve readability. 35425 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35426 # Now convert it back to Unix-style (cygpath) 35427 input_path=`$CYGPATH -u "$shortmode_path"` 35428 new_path="$input_path" 35429 fi 35430 fi 35431 35432 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35433 if test "x$test_cygdrive_prefix" = x; then 35434 # As a simple fix, exclude /usr/bin since it's not a real path. 35435 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35436 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35437 # a path prefixed by /cygdrive for fixpath to work. 35438 new_path="$CYGWIN_ROOT_PATH$input_path" 35439 fi 35440 fi 35441 35442 # remove trailing .exe if any 35443 new_path="${new_path/%.exe/}" 35444 35445 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35446 35447 # First separate the path from the arguments. This will split at the first 35448 # space. 35449 complete="$AS" 35450 path="${complete%% *}" 35451 tmp="$complete EOL" 35452 arguments="${tmp#* }" 35453 35454 # Input might be given as Windows format, start by converting to 35455 # unix format. 35456 new_path="$path" 35457 35458 windows_path="$new_path" 35459 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35460 unix_path=`$CYGPATH -u "$windows_path"` 35461 new_path="$unix_path" 35462 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35463 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35464 new_path="$unix_path" 35465 fi 35466 35467 35468 # Now try to locate executable using which 35469 new_path=`$WHICH "$new_path" 2> /dev/null` 35470 35471 if test "x$new_path" = x; then 35472 # Oops. Which didn't find the executable. 35473 # The splitting of arguments from the executable at a space might have been incorrect, 35474 # since paths with space are more likely in Windows. Give it another try with the whole 35475 # argument. 35476 path="$complete" 35477 arguments="EOL" 35478 new_path="$path" 35479 35480 windows_path="$new_path" 35481 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35482 unix_path=`$CYGPATH -u "$windows_path"` 35483 new_path="$unix_path" 35484 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35485 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35486 new_path="$unix_path" 35487 fi 35488 35489 35490 new_path=`$WHICH "$new_path" 2> /dev/null` 35491 # bat and cmd files are not always considered executable in MSYS causing which 35492 # to not find them 35493 if test "x$new_path" = x \ 35494 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35495 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35496 new_path="$path" 35497 35498 windows_path="$new_path" 35499 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35500 unix_path=`$CYGPATH -u "$windows_path"` 35501 new_path="$unix_path" 35502 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35503 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35504 new_path="$unix_path" 35505 fi 35506 35507 fi 35508 35509 if test "x$new_path" = x; then 35510 # It's still not found. Now this is an unrecoverable error. 35511 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 35512 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 35513 has_space=`$ECHO "$complete" | $GREP " "` 35514 if test "x$has_space" != x; then 35515 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35516 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35517 fi 35518 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 35519 fi 35520 fi 35521 35522 # Now new_path has a complete unix path to the binary 35523 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35524 # Keep paths in /bin as-is, but remove trailing .exe if any 35525 new_path="${new_path/%.exe/}" 35526 # Do not save /bin paths to all_fixpath_prefixes! 35527 else 35528 # Not in mixed or Windows style, start by that. 35529 new_path=`cmd //c echo $new_path` 35530 35531 input_path="$new_path" 35532 # Check if we need to convert this using DOS-style short mode. If the path 35533 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35534 # take no chances and rewrite it. 35535 # Note: m4 eats our [], so we need to use [ and ] instead. 35536 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35537 if test "x$has_forbidden_chars" != x; then 35538 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35539 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35540 fi 35541 35542 # Output is in $new_path 35543 35544 windows_path="$new_path" 35545 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35546 unix_path=`$CYGPATH -u "$windows_path"` 35547 new_path="$unix_path" 35548 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35549 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35550 new_path="$unix_path" 35551 fi 35552 35553 # remove trailing .exe if any 35554 new_path="${new_path/%.exe/}" 35555 35556 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35557 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35558 fi 35559 35560 else 35561 # We're on a unix platform. Hooray! :) 35562 # First separate the path from the arguments. This will split at the first 35563 # space. 35564 complete="$AS" 35565 path="${complete%% *}" 35566 tmp="$complete EOL" 35567 arguments="${tmp#* }" 35568 35569 # Cannot rely on the command "which" here since it doesn't always work. 35570 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35571 if test -z "$is_absolute_path"; then 35572 # Path to executable is not absolute. Find it. 35573 IFS_save="$IFS" 35574 IFS=: 35575 for p in $PATH; do 35576 if test -f "$p/$path" && test -x "$p/$path"; then 35577 new_path="$p/$path" 35578 break 35579 fi 35580 done 35581 IFS="$IFS_save" 35582 else 35583 # This is an absolute path, we can use it without further modifications. 35584 new_path="$path" 35585 fi 35586 35587 if test "x$new_path" = x; then 35588 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 35589 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 35590 has_space=`$ECHO "$complete" | $GREP " "` 35591 if test "x$has_space" != x; then 35592 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35593 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35594 fi 35595 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 35596 fi 35597 fi 35598 35599 # Now join together the path and the arguments once again 35600 if test "x$arguments" != xEOL; then 35601 new_complete="$new_path ${arguments% *}" 35602 else 35603 new_complete="$new_path" 35604 fi 35605 35606 if test "x$complete" != "x$new_complete"; then 35607 AS="$new_complete" 35608 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 35609 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 35610 fi 35611 fi 35612 35613 else 35614 # FIXME: is this correct for microsoft? 35615 AS="$CC -c" 35616 fi 35617 35618 35619 # 35620 # Setup the archiver (AR) 35621 # 35622 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 35623 # The corresponding ar tool is lib.exe (used to create static libraries) 35624 # Extract the first word of "lib", so it can be a program name with args. 35625 set dummy lib; ac_word=$2 35626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35627 $as_echo_n "checking for $ac_word... " >&6; } 35628 if ${ac_cv_prog_AR+:} false; then : 35629 $as_echo_n "(cached) " >&6 35630 else 35631 if test -n "$AR"; then 35632 ac_cv_prog_AR="$AR" # Let the user override the test. 35633 else 35634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35635 for as_dir in $PATH 35636 do 35637 IFS=$as_save_IFS 35638 test -z "$as_dir" && as_dir=. 35639 for ac_exec_ext in '' $ac_executable_extensions; do 35640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35641 ac_cv_prog_AR="lib" 35642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35643 break 2 35644 fi 35645 done 35646 done 35647 IFS=$as_save_IFS 35648 35649 fi 35650 fi 35651 AR=$ac_cv_prog_AR 35652 if test -n "$AR"; then 35653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 35654 $as_echo "$AR" >&6; } 35655 else 35656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35657 $as_echo "no" >&6; } 35658 fi 35659 35660 35661 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 35662 35663 35664 # Publish this variable in the help. 35665 35666 35667 if [ -z "${AR+x}" ]; then 35668 # The variable is not set by user, try to locate tool using the code snippet 35669 if test -n "$ac_tool_prefix"; then 35670 for ac_prog in ar gcc-ar 35671 do 35672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 35673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 35674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35675 $as_echo_n "checking for $ac_word... " >&6; } 35676 if ${ac_cv_prog_AR+:} false; then : 35677 $as_echo_n "(cached) " >&6 35678 else 35679 if test -n "$AR"; then 35680 ac_cv_prog_AR="$AR" # Let the user override the test. 35681 else 35682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35683 for as_dir in $PATH 35684 do 35685 IFS=$as_save_IFS 35686 test -z "$as_dir" && as_dir=. 35687 for ac_exec_ext in '' $ac_executable_extensions; do 35688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35689 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 35690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35691 break 2 35692 fi 35693 done 35694 done 35695 IFS=$as_save_IFS 35696 35697 fi 35698 fi 35699 AR=$ac_cv_prog_AR 35700 if test -n "$AR"; then 35701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 35702 $as_echo "$AR" >&6; } 35703 else 35704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35705 $as_echo "no" >&6; } 35706 fi 35707 35708 35709 test -n "$AR" && break 35710 done 35711 fi 35712 if test -z "$AR"; then 35713 ac_ct_AR=$AR 35714 for ac_prog in ar gcc-ar 35715 do 35716 # Extract the first word of "$ac_prog", so it can be a program name with args. 35717 set dummy $ac_prog; ac_word=$2 35718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35719 $as_echo_n "checking for $ac_word... " >&6; } 35720 if ${ac_cv_prog_ac_ct_AR+:} false; then : 35721 $as_echo_n "(cached) " >&6 35722 else 35723 if test -n "$ac_ct_AR"; then 35724 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 35725 else 35726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35727 for as_dir in $PATH 35728 do 35729 IFS=$as_save_IFS 35730 test -z "$as_dir" && as_dir=. 35731 for ac_exec_ext in '' $ac_executable_extensions; do 35732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35733 ac_cv_prog_ac_ct_AR="$ac_prog" 35734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35735 break 2 35736 fi 35737 done 35738 done 35739 IFS=$as_save_IFS 35740 35741 fi 35742 fi 35743 ac_ct_AR=$ac_cv_prog_ac_ct_AR 35744 if test -n "$ac_ct_AR"; then 35745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 35746 $as_echo "$ac_ct_AR" >&6; } 35747 else 35748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35749 $as_echo "no" >&6; } 35750 fi 35751 35752 35753 test -n "$ac_ct_AR" && break 35754 done 35755 35756 if test "x$ac_ct_AR" = x; then 35757 AR="" 35758 else 35759 case $cross_compiling:$ac_tool_warned in 35760 yes:) 35761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35763 ac_tool_warned=yes ;; 35764 esac 35765 AR=$ac_ct_AR 35766 fi 35767 fi 35768 35769 else 35770 # The variable is set, but is it from the command line or the environment? 35771 35772 # Try to remove the string !AR! from our list. 35773 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 35774 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35775 # If it failed, the variable was not from the command line. Ignore it, 35776 # but warn the user (except for BASH, which is always set by the calling BASH). 35777 if test "xAR" != xBASH; then 35778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 35779 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 35780 fi 35781 # Try to locate tool using the code snippet 35782 if test -n "$ac_tool_prefix"; then 35783 for ac_prog in ar gcc-ar 35784 do 35785 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 35786 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 35787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35788 $as_echo_n "checking for $ac_word... " >&6; } 35789 if ${ac_cv_prog_AR+:} false; then : 35790 $as_echo_n "(cached) " >&6 35791 else 35792 if test -n "$AR"; then 35793 ac_cv_prog_AR="$AR" # Let the user override the test. 35794 else 35795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35796 for as_dir in $PATH 35797 do 35798 IFS=$as_save_IFS 35799 test -z "$as_dir" && as_dir=. 35800 for ac_exec_ext in '' $ac_executable_extensions; do 35801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35802 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 35803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35804 break 2 35805 fi 35806 done 35807 done 35808 IFS=$as_save_IFS 35809 35810 fi 35811 fi 35812 AR=$ac_cv_prog_AR 35813 if test -n "$AR"; then 35814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 35815 $as_echo "$AR" >&6; } 35816 else 35817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35818 $as_echo "no" >&6; } 35819 fi 35820 35821 35822 test -n "$AR" && break 35823 done 35824 fi 35825 if test -z "$AR"; then 35826 ac_ct_AR=$AR 35827 for ac_prog in ar gcc-ar 35828 do 35829 # Extract the first word of "$ac_prog", so it can be a program name with args. 35830 set dummy $ac_prog; ac_word=$2 35831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35832 $as_echo_n "checking for $ac_word... " >&6; } 35833 if ${ac_cv_prog_ac_ct_AR+:} false; then : 35834 $as_echo_n "(cached) " >&6 35835 else 35836 if test -n "$ac_ct_AR"; then 35837 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 35838 else 35839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35840 for as_dir in $PATH 35841 do 35842 IFS=$as_save_IFS 35843 test -z "$as_dir" && as_dir=. 35844 for ac_exec_ext in '' $ac_executable_extensions; do 35845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35846 ac_cv_prog_ac_ct_AR="$ac_prog" 35847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35848 break 2 35849 fi 35850 done 35851 done 35852 IFS=$as_save_IFS 35853 35854 fi 35855 fi 35856 ac_ct_AR=$ac_cv_prog_ac_ct_AR 35857 if test -n "$ac_ct_AR"; then 35858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 35859 $as_echo "$ac_ct_AR" >&6; } 35860 else 35861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35862 $as_echo "no" >&6; } 35863 fi 35864 35865 35866 test -n "$ac_ct_AR" && break 35867 done 35868 35869 if test "x$ac_ct_AR" = x; then 35870 AR="" 35871 else 35872 case $cross_compiling:$ac_tool_warned in 35873 yes:) 35874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35876 ac_tool_warned=yes ;; 35877 esac 35878 AR=$ac_ct_AR 35879 fi 35880 fi 35881 35882 else 35883 # If it succeeded, then it was overridden by the user. We will use it 35884 # for the tool. 35885 35886 # First remove it from the list of overridden variables, so we can test 35887 # for unknown variables in the end. 35888 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35889 35890 # Check if we try to supply an empty value 35891 if test "x$AR" = x; then 35892 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 35893 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 35894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 35895 $as_echo_n "checking for AR... " >&6; } 35896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 35897 $as_echo "disabled" >&6; } 35898 else 35899 # Check if the provided tool contains a complete path. 35900 tool_specified="$AR" 35901 tool_basename="${tool_specified##*/}" 35902 if test "x$tool_basename" = "x$tool_specified"; then 35903 # A command without a complete path is provided, search $PATH. 35904 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 35905 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 35906 # Extract the first word of "$tool_basename", so it can be a program name with args. 35907 set dummy $tool_basename; ac_word=$2 35908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35909 $as_echo_n "checking for $ac_word... " >&6; } 35910 if ${ac_cv_path_AR+:} false; then : 35911 $as_echo_n "(cached) " >&6 35912 else 35913 case $AR in 35914 [\\/]* | ?:[\\/]*) 35915 ac_cv_path_AR="$AR" # Let the user override the test with a path. 35916 ;; 35917 *) 35918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35919 for as_dir in $PATH 35920 do 35921 IFS=$as_save_IFS 35922 test -z "$as_dir" && as_dir=. 35923 for ac_exec_ext in '' $ac_executable_extensions; do 35924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35925 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 35926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35927 break 2 35928 fi 35929 done 35930 done 35931 IFS=$as_save_IFS 35932 35933 ;; 35934 esac 35935 fi 35936 AR=$ac_cv_path_AR 35937 if test -n "$AR"; then 35938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 35939 $as_echo "$AR" >&6; } 35940 else 35941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35942 $as_echo "no" >&6; } 35943 fi 35944 35945 35946 if test "x$AR" = x; then 35947 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35948 fi 35949 else 35950 # Otherwise we believe it is a complete path. Use it as it is. 35951 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 35952 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 35953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 35954 $as_echo_n "checking for AR... " >&6; } 35955 if test ! -x "$tool_specified"; then 35956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35957 $as_echo "not found" >&6; } 35958 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 35959 fi 35960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35961 $as_echo "$tool_specified" >&6; } 35962 fi 35963 fi 35964 fi 35965 35966 fi 35967 35968 35969 else 35970 35971 35972 # Publish this variable in the help. 35973 35974 35975 if [ -z "${AR+x}" ]; then 35976 # The variable is not set by user, try to locate tool using the code snippet 35977 if test -n "$ac_tool_prefix"; then 35978 for ac_prog in ar 35979 do 35980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 35981 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 35982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35983 $as_echo_n "checking for $ac_word... " >&6; } 35984 if ${ac_cv_prog_AR+:} false; then : 35985 $as_echo_n "(cached) " >&6 35986 else 35987 if test -n "$AR"; then 35988 ac_cv_prog_AR="$AR" # Let the user override the test. 35989 else 35990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35991 for as_dir in $PATH 35992 do 35993 IFS=$as_save_IFS 35994 test -z "$as_dir" && as_dir=. 35995 for ac_exec_ext in '' $ac_executable_extensions; do 35996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35997 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 35998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35999 break 2 36000 fi 36001 done 36002 done 36003 IFS=$as_save_IFS 36004 36005 fi 36006 fi 36007 AR=$ac_cv_prog_AR 36008 if test -n "$AR"; then 36009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 36010 $as_echo "$AR" >&6; } 36011 else 36012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36013 $as_echo "no" >&6; } 36014 fi 36015 36016 36017 test -n "$AR" && break 36018 done 36019 fi 36020 if test -z "$AR"; then 36021 ac_ct_AR=$AR 36022 for ac_prog in ar 36023 do 36024 # Extract the first word of "$ac_prog", so it can be a program name with args. 36025 set dummy $ac_prog; ac_word=$2 36026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36027 $as_echo_n "checking for $ac_word... " >&6; } 36028 if ${ac_cv_prog_ac_ct_AR+:} false; then : 36029 $as_echo_n "(cached) " >&6 36030 else 36031 if test -n "$ac_ct_AR"; then 36032 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 36033 else 36034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36035 for as_dir in $PATH 36036 do 36037 IFS=$as_save_IFS 36038 test -z "$as_dir" && as_dir=. 36039 for ac_exec_ext in '' $ac_executable_extensions; do 36040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36041 ac_cv_prog_ac_ct_AR="$ac_prog" 36042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36043 break 2 36044 fi 36045 done 36046 done 36047 IFS=$as_save_IFS 36048 36049 fi 36050 fi 36051 ac_ct_AR=$ac_cv_prog_ac_ct_AR 36052 if test -n "$ac_ct_AR"; then 36053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 36054 $as_echo "$ac_ct_AR" >&6; } 36055 else 36056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36057 $as_echo "no" >&6; } 36058 fi 36059 36060 36061 test -n "$ac_ct_AR" && break 36062 done 36063 36064 if test "x$ac_ct_AR" = x; then 36065 AR="" 36066 else 36067 case $cross_compiling:$ac_tool_warned in 36068 yes:) 36069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36071 ac_tool_warned=yes ;; 36072 esac 36073 AR=$ac_ct_AR 36074 fi 36075 fi 36076 36077 else 36078 # The variable is set, but is it from the command line or the environment? 36079 36080 # Try to remove the string !AR! from our list. 36081 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 36082 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36083 # If it failed, the variable was not from the command line. Ignore it, 36084 # but warn the user (except for BASH, which is always set by the calling BASH). 36085 if test "xAR" != xBASH; then 36086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 36087 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 36088 fi 36089 # Try to locate tool using the code snippet 36090 if test -n "$ac_tool_prefix"; then 36091 for ac_prog in ar 36092 do 36093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36094 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36096 $as_echo_n "checking for $ac_word... " >&6; } 36097 if ${ac_cv_prog_AR+:} false; then : 36098 $as_echo_n "(cached) " >&6 36099 else 36100 if test -n "$AR"; then 36101 ac_cv_prog_AR="$AR" # Let the user override the test. 36102 else 36103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36104 for as_dir in $PATH 36105 do 36106 IFS=$as_save_IFS 36107 test -z "$as_dir" && as_dir=. 36108 for ac_exec_ext in '' $ac_executable_extensions; do 36109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36110 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 36111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36112 break 2 36113 fi 36114 done 36115 done 36116 IFS=$as_save_IFS 36117 36118 fi 36119 fi 36120 AR=$ac_cv_prog_AR 36121 if test -n "$AR"; then 36122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 36123 $as_echo "$AR" >&6; } 36124 else 36125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36126 $as_echo "no" >&6; } 36127 fi 36128 36129 36130 test -n "$AR" && break 36131 done 36132 fi 36133 if test -z "$AR"; then 36134 ac_ct_AR=$AR 36135 for ac_prog in ar 36136 do 36137 # Extract the first word of "$ac_prog", so it can be a program name with args. 36138 set dummy $ac_prog; ac_word=$2 36139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36140 $as_echo_n "checking for $ac_word... " >&6; } 36141 if ${ac_cv_prog_ac_ct_AR+:} false; then : 36142 $as_echo_n "(cached) " >&6 36143 else 36144 if test -n "$ac_ct_AR"; then 36145 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 36146 else 36147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36148 for as_dir in $PATH 36149 do 36150 IFS=$as_save_IFS 36151 test -z "$as_dir" && as_dir=. 36152 for ac_exec_ext in '' $ac_executable_extensions; do 36153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36154 ac_cv_prog_ac_ct_AR="$ac_prog" 36155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36156 break 2 36157 fi 36158 done 36159 done 36160 IFS=$as_save_IFS 36161 36162 fi 36163 fi 36164 ac_ct_AR=$ac_cv_prog_ac_ct_AR 36165 if test -n "$ac_ct_AR"; then 36166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 36167 $as_echo "$ac_ct_AR" >&6; } 36168 else 36169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36170 $as_echo "no" >&6; } 36171 fi 36172 36173 36174 test -n "$ac_ct_AR" && break 36175 done 36176 36177 if test "x$ac_ct_AR" = x; then 36178 AR="" 36179 else 36180 case $cross_compiling:$ac_tool_warned in 36181 yes:) 36182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36184 ac_tool_warned=yes ;; 36185 esac 36186 AR=$ac_ct_AR 36187 fi 36188 fi 36189 36190 else 36191 # If it succeeded, then it was overridden by the user. We will use it 36192 # for the tool. 36193 36194 # First remove it from the list of overridden variables, so we can test 36195 # for unknown variables in the end. 36196 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36197 36198 # Check if we try to supply an empty value 36199 if test "x$AR" = x; then 36200 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 36201 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 36202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 36203 $as_echo_n "checking for AR... " >&6; } 36204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 36205 $as_echo "disabled" >&6; } 36206 else 36207 # Check if the provided tool contains a complete path. 36208 tool_specified="$AR" 36209 tool_basename="${tool_specified##*/}" 36210 if test "x$tool_basename" = "x$tool_specified"; then 36211 # A command without a complete path is provided, search $PATH. 36212 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 36213 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 36214 # Extract the first word of "$tool_basename", so it can be a program name with args. 36215 set dummy $tool_basename; ac_word=$2 36216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36217 $as_echo_n "checking for $ac_word... " >&6; } 36218 if ${ac_cv_path_AR+:} false; then : 36219 $as_echo_n "(cached) " >&6 36220 else 36221 case $AR in 36222 [\\/]* | ?:[\\/]*) 36223 ac_cv_path_AR="$AR" # Let the user override the test with a path. 36224 ;; 36225 *) 36226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36227 for as_dir in $PATH 36228 do 36229 IFS=$as_save_IFS 36230 test -z "$as_dir" && as_dir=. 36231 for ac_exec_ext in '' $ac_executable_extensions; do 36232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36233 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 36234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36235 break 2 36236 fi 36237 done 36238 done 36239 IFS=$as_save_IFS 36240 36241 ;; 36242 esac 36243 fi 36244 AR=$ac_cv_path_AR 36245 if test -n "$AR"; then 36246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 36247 $as_echo "$AR" >&6; } 36248 else 36249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36250 $as_echo "no" >&6; } 36251 fi 36252 36253 36254 if test "x$AR" = x; then 36255 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36256 fi 36257 else 36258 # Otherwise we believe it is a complete path. Use it as it is. 36259 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 36260 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 36261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 36262 $as_echo_n "checking for AR... " >&6; } 36263 if test ! -x "$tool_specified"; then 36264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36265 $as_echo "not found" >&6; } 36266 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 36267 fi 36268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36269 $as_echo "$tool_specified" >&6; } 36270 fi 36271 fi 36272 fi 36273 36274 fi 36275 36276 36277 fi 36278 36279 # Only process if variable expands to non-empty 36280 36281 if test "x$AR" != x; then 36282 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36283 36284 # First separate the path from the arguments. This will split at the first 36285 # space. 36286 complete="$AR" 36287 path="${complete%% *}" 36288 tmp="$complete EOL" 36289 arguments="${tmp#* }" 36290 36291 # Input might be given as Windows format, start by converting to 36292 # unix format. 36293 new_path=`$CYGPATH -u "$path"` 36294 36295 # Now try to locate executable using which 36296 new_path=`$WHICH "$new_path" 2> /dev/null` 36297 # bat and cmd files are not always considered executable in cygwin causing which 36298 # to not find them 36299 if test "x$new_path" = x \ 36300 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36301 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36302 new_path=`$CYGPATH -u "$path"` 36303 fi 36304 if test "x$new_path" = x; then 36305 # Oops. Which didn't find the executable. 36306 # The splitting of arguments from the executable at a space might have been incorrect, 36307 # since paths with space are more likely in Windows. Give it another try with the whole 36308 # argument. 36309 path="$complete" 36310 arguments="EOL" 36311 new_path=`$CYGPATH -u "$path"` 36312 new_path=`$WHICH "$new_path" 2> /dev/null` 36313 # bat and cmd files are not always considered executable in cygwin causing which 36314 # to not find them 36315 if test "x$new_path" = x \ 36316 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36317 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36318 new_path=`$CYGPATH -u "$path"` 36319 fi 36320 if test "x$new_path" = x; then 36321 # It's still not found. Now this is an unrecoverable error. 36322 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 36323 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 36324 has_space=`$ECHO "$complete" | $GREP " "` 36325 if test "x$has_space" != x; then 36326 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36327 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36328 fi 36329 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 36330 fi 36331 fi 36332 36333 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36334 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36335 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36336 # "foo.exe" is OK but "foo" is an error. 36337 # 36338 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36339 # It is also a way to make sure we got the proper file name for the real test later on. 36340 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36341 if test "x$test_shortpath" = x; then 36342 # Short path failed, file does not exist as specified. 36343 # Try adding .exe or .cmd 36344 if test -f "${new_path}.exe"; then 36345 input_to_shortpath="${new_path}.exe" 36346 elif test -f "${new_path}.cmd"; then 36347 input_to_shortpath="${new_path}.cmd" 36348 else 36349 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 36350 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 36351 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36352 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36353 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 36354 fi 36355 else 36356 input_to_shortpath="$new_path" 36357 fi 36358 36359 # Call helper function which possibly converts this using DOS-style short mode. 36360 # If so, the updated path is stored in $new_path. 36361 new_path="$input_to_shortpath" 36362 36363 input_path="$input_to_shortpath" 36364 # Check if we need to convert this using DOS-style short mode. If the path 36365 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36366 # take no chances and rewrite it. 36367 # Note: m4 eats our [], so we need to use [ and ] instead. 36368 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36369 if test "x$has_forbidden_chars" != x; then 36370 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36371 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36372 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36373 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36374 # Going to short mode and back again did indeed matter. Since short mode is 36375 # case insensitive, let's make it lowercase to improve readability. 36376 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36377 # Now convert it back to Unix-style (cygpath) 36378 input_path=`$CYGPATH -u "$shortmode_path"` 36379 new_path="$input_path" 36380 fi 36381 fi 36382 36383 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36384 if test "x$test_cygdrive_prefix" = x; then 36385 # As a simple fix, exclude /usr/bin since it's not a real path. 36386 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36387 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36388 # a path prefixed by /cygdrive for fixpath to work. 36389 new_path="$CYGWIN_ROOT_PATH$input_path" 36390 fi 36391 fi 36392 36393 # remove trailing .exe if any 36394 new_path="${new_path/%.exe/}" 36395 36396 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36397 36398 # First separate the path from the arguments. This will split at the first 36399 # space. 36400 complete="$AR" 36401 path="${complete%% *}" 36402 tmp="$complete EOL" 36403 arguments="${tmp#* }" 36404 36405 # Input might be given as Windows format, start by converting to 36406 # unix format. 36407 new_path="$path" 36408 36409 windows_path="$new_path" 36410 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36411 unix_path=`$CYGPATH -u "$windows_path"` 36412 new_path="$unix_path" 36413 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36414 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36415 new_path="$unix_path" 36416 fi 36417 36418 36419 # Now try to locate executable using which 36420 new_path=`$WHICH "$new_path" 2> /dev/null` 36421 36422 if test "x$new_path" = x; then 36423 # Oops. Which didn't find the executable. 36424 # The splitting of arguments from the executable at a space might have been incorrect, 36425 # since paths with space are more likely in Windows. Give it another try with the whole 36426 # argument. 36427 path="$complete" 36428 arguments="EOL" 36429 new_path="$path" 36430 36431 windows_path="$new_path" 36432 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36433 unix_path=`$CYGPATH -u "$windows_path"` 36434 new_path="$unix_path" 36435 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36436 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36437 new_path="$unix_path" 36438 fi 36439 36440 36441 new_path=`$WHICH "$new_path" 2> /dev/null` 36442 # bat and cmd files are not always considered executable in MSYS causing which 36443 # to not find them 36444 if test "x$new_path" = x \ 36445 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36446 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36447 new_path="$path" 36448 36449 windows_path="$new_path" 36450 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36451 unix_path=`$CYGPATH -u "$windows_path"` 36452 new_path="$unix_path" 36453 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36454 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36455 new_path="$unix_path" 36456 fi 36457 36458 fi 36459 36460 if test "x$new_path" = x; then 36461 # It's still not found. Now this is an unrecoverable error. 36462 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 36463 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 36464 has_space=`$ECHO "$complete" | $GREP " "` 36465 if test "x$has_space" != x; then 36466 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36467 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36468 fi 36469 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 36470 fi 36471 fi 36472 36473 # Now new_path has a complete unix path to the binary 36474 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36475 # Keep paths in /bin as-is, but remove trailing .exe if any 36476 new_path="${new_path/%.exe/}" 36477 # Do not save /bin paths to all_fixpath_prefixes! 36478 else 36479 # Not in mixed or Windows style, start by that. 36480 new_path=`cmd //c echo $new_path` 36481 36482 input_path="$new_path" 36483 # Check if we need to convert this using DOS-style short mode. If the path 36484 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36485 # take no chances and rewrite it. 36486 # Note: m4 eats our [], so we need to use [ and ] instead. 36487 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36488 if test "x$has_forbidden_chars" != x; then 36489 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36490 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36491 fi 36492 36493 # Output is in $new_path 36494 36495 windows_path="$new_path" 36496 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36497 unix_path=`$CYGPATH -u "$windows_path"` 36498 new_path="$unix_path" 36499 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36500 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36501 new_path="$unix_path" 36502 fi 36503 36504 # remove trailing .exe if any 36505 new_path="${new_path/%.exe/}" 36506 36507 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36508 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36509 fi 36510 36511 else 36512 # We're on a unix platform. Hooray! :) 36513 # First separate the path from the arguments. This will split at the first 36514 # space. 36515 complete="$AR" 36516 path="${complete%% *}" 36517 tmp="$complete EOL" 36518 arguments="${tmp#* }" 36519 36520 # Cannot rely on the command "which" here since it doesn't always work. 36521 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36522 if test -z "$is_absolute_path"; then 36523 # Path to executable is not absolute. Find it. 36524 IFS_save="$IFS" 36525 IFS=: 36526 for p in $PATH; do 36527 if test -f "$p/$path" && test -x "$p/$path"; then 36528 new_path="$p/$path" 36529 break 36530 fi 36531 done 36532 IFS="$IFS_save" 36533 else 36534 # This is an absolute path, we can use it without further modifications. 36535 new_path="$path" 36536 fi 36537 36538 if test "x$new_path" = x; then 36539 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 36540 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 36541 has_space=`$ECHO "$complete" | $GREP " "` 36542 if test "x$has_space" != x; then 36543 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36544 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36545 fi 36546 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 36547 fi 36548 fi 36549 36550 # Now join together the path and the arguments once again 36551 if test "x$arguments" != xEOL; then 36552 new_complete="$new_path ${arguments% *}" 36553 else 36554 new_complete="$new_path" 36555 fi 36556 36557 if test "x$complete" != "x$new_complete"; then 36558 AR="$new_complete" 36559 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 36560 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 36561 fi 36562 fi 36563 36564 36565 36566 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 36567 36568 36569 # Publish this variable in the help. 36570 36571 36572 if [ -z "${LIPO+x}" ]; then 36573 # The variable is not set by user, try to locate tool using the code snippet 36574 for ac_prog in lipo 36575 do 36576 # Extract the first word of "$ac_prog", so it can be a program name with args. 36577 set dummy $ac_prog; ac_word=$2 36578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36579 $as_echo_n "checking for $ac_word... " >&6; } 36580 if ${ac_cv_path_LIPO+:} false; then : 36581 $as_echo_n "(cached) " >&6 36582 else 36583 case $LIPO in 36584 [\\/]* | ?:[\\/]*) 36585 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 36586 ;; 36587 *) 36588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36589 for as_dir in $PATH 36590 do 36591 IFS=$as_save_IFS 36592 test -z "$as_dir" && as_dir=. 36593 for ac_exec_ext in '' $ac_executable_extensions; do 36594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36595 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 36596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36597 break 2 36598 fi 36599 done 36600 done 36601 IFS=$as_save_IFS 36602 36603 ;; 36604 esac 36605 fi 36606 LIPO=$ac_cv_path_LIPO 36607 if test -n "$LIPO"; then 36608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 36609 $as_echo "$LIPO" >&6; } 36610 else 36611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36612 $as_echo "no" >&6; } 36613 fi 36614 36615 36616 test -n "$LIPO" && break 36617 done 36618 36619 else 36620 # The variable is set, but is it from the command line or the environment? 36621 36622 # Try to remove the string !LIPO! from our list. 36623 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 36624 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36625 # If it failed, the variable was not from the command line. Ignore it, 36626 # but warn the user (except for BASH, which is always set by the calling BASH). 36627 if test "xLIPO" != xBASH; then 36628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 36629 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 36630 fi 36631 # Try to locate tool using the code snippet 36632 for ac_prog in lipo 36633 do 36634 # Extract the first word of "$ac_prog", so it can be a program name with args. 36635 set dummy $ac_prog; ac_word=$2 36636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36637 $as_echo_n "checking for $ac_word... " >&6; } 36638 if ${ac_cv_path_LIPO+:} false; then : 36639 $as_echo_n "(cached) " >&6 36640 else 36641 case $LIPO in 36642 [\\/]* | ?:[\\/]*) 36643 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 36644 ;; 36645 *) 36646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36647 for as_dir in $PATH 36648 do 36649 IFS=$as_save_IFS 36650 test -z "$as_dir" && as_dir=. 36651 for ac_exec_ext in '' $ac_executable_extensions; do 36652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36653 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 36654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36655 break 2 36656 fi 36657 done 36658 done 36659 IFS=$as_save_IFS 36660 36661 ;; 36662 esac 36663 fi 36664 LIPO=$ac_cv_path_LIPO 36665 if test -n "$LIPO"; then 36666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 36667 $as_echo "$LIPO" >&6; } 36668 else 36669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36670 $as_echo "no" >&6; } 36671 fi 36672 36673 36674 test -n "$LIPO" && break 36675 done 36676 36677 else 36678 # If it succeeded, then it was overridden by the user. We will use it 36679 # for the tool. 36680 36681 # First remove it from the list of overridden variables, so we can test 36682 # for unknown variables in the end. 36683 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36684 36685 # Check if we try to supply an empty value 36686 if test "x$LIPO" = x; then 36687 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LIPO= (no value)" >&5 36688 $as_echo "$as_me: Setting user supplied tool LIPO= (no value)" >&6;} 36689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 36690 $as_echo_n "checking for LIPO... " >&6; } 36691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 36692 $as_echo "disabled" >&6; } 36693 else 36694 # Check if the provided tool contains a complete path. 36695 tool_specified="$LIPO" 36696 tool_basename="${tool_specified##*/}" 36697 if test "x$tool_basename" = "x$tool_specified"; then 36698 # A command without a complete path is provided, search $PATH. 36699 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 36700 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 36701 # Extract the first word of "$tool_basename", so it can be a program name with args. 36702 set dummy $tool_basename; ac_word=$2 36703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36704 $as_echo_n "checking for $ac_word... " >&6; } 36705 if ${ac_cv_path_LIPO+:} false; then : 36706 $as_echo_n "(cached) " >&6 36707 else 36708 case $LIPO in 36709 [\\/]* | ?:[\\/]*) 36710 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 36711 ;; 36712 *) 36713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36714 for as_dir in $PATH 36715 do 36716 IFS=$as_save_IFS 36717 test -z "$as_dir" && as_dir=. 36718 for ac_exec_ext in '' $ac_executable_extensions; do 36719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36720 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 36721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36722 break 2 36723 fi 36724 done 36725 done 36726 IFS=$as_save_IFS 36727 36728 ;; 36729 esac 36730 fi 36731 LIPO=$ac_cv_path_LIPO 36732 if test -n "$LIPO"; then 36733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 36734 $as_echo "$LIPO" >&6; } 36735 else 36736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36737 $as_echo "no" >&6; } 36738 fi 36739 36740 36741 if test "x$LIPO" = x; then 36742 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36743 fi 36744 else 36745 # Otherwise we believe it is a complete path. Use it as it is. 36746 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 36747 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 36748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 36749 $as_echo_n "checking for LIPO... " >&6; } 36750 if test ! -x "$tool_specified"; then 36751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36752 $as_echo "not found" >&6; } 36753 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 36754 fi 36755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36756 $as_echo "$tool_specified" >&6; } 36757 fi 36758 fi 36759 fi 36760 36761 fi 36762 36763 36764 36765 # Only process if variable expands to non-empty 36766 36767 if test "x$LIPO" != x; then 36768 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36769 36770 # First separate the path from the arguments. This will split at the first 36771 # space. 36772 complete="$LIPO" 36773 path="${complete%% *}" 36774 tmp="$complete EOL" 36775 arguments="${tmp#* }" 36776 36777 # Input might be given as Windows format, start by converting to 36778 # unix format. 36779 new_path=`$CYGPATH -u "$path"` 36780 36781 # Now try to locate executable using which 36782 new_path=`$WHICH "$new_path" 2> /dev/null` 36783 # bat and cmd files are not always considered executable in cygwin causing which 36784 # to not find them 36785 if test "x$new_path" = x \ 36786 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36787 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36788 new_path=`$CYGPATH -u "$path"` 36789 fi 36790 if test "x$new_path" = x; then 36791 # Oops. Which didn't find the executable. 36792 # The splitting of arguments from the executable at a space might have been incorrect, 36793 # since paths with space are more likely in Windows. Give it another try with the whole 36794 # argument. 36795 path="$complete" 36796 arguments="EOL" 36797 new_path=`$CYGPATH -u "$path"` 36798 new_path=`$WHICH "$new_path" 2> /dev/null` 36799 # bat and cmd files are not always considered executable in cygwin causing which 36800 # to not find them 36801 if test "x$new_path" = x \ 36802 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36803 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36804 new_path=`$CYGPATH -u "$path"` 36805 fi 36806 if test "x$new_path" = x; then 36807 # It's still not found. Now this is an unrecoverable error. 36808 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 36809 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 36810 has_space=`$ECHO "$complete" | $GREP " "` 36811 if test "x$has_space" != x; then 36812 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36813 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36814 fi 36815 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 36816 fi 36817 fi 36818 36819 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36820 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36821 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36822 # "foo.exe" is OK but "foo" is an error. 36823 # 36824 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36825 # It is also a way to make sure we got the proper file name for the real test later on. 36826 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36827 if test "x$test_shortpath" = x; then 36828 # Short path failed, file does not exist as specified. 36829 # Try adding .exe or .cmd 36830 if test -f "${new_path}.exe"; then 36831 input_to_shortpath="${new_path}.exe" 36832 elif test -f "${new_path}.cmd"; then 36833 input_to_shortpath="${new_path}.cmd" 36834 else 36835 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 36836 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 36837 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36838 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36839 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 36840 fi 36841 else 36842 input_to_shortpath="$new_path" 36843 fi 36844 36845 # Call helper function which possibly converts this using DOS-style short mode. 36846 # If so, the updated path is stored in $new_path. 36847 new_path="$input_to_shortpath" 36848 36849 input_path="$input_to_shortpath" 36850 # Check if we need to convert this using DOS-style short mode. If the path 36851 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36852 # take no chances and rewrite it. 36853 # Note: m4 eats our [], so we need to use [ and ] instead. 36854 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36855 if test "x$has_forbidden_chars" != x; then 36856 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36857 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36858 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36859 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36860 # Going to short mode and back again did indeed matter. Since short mode is 36861 # case insensitive, let's make it lowercase to improve readability. 36862 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36863 # Now convert it back to Unix-style (cygpath) 36864 input_path=`$CYGPATH -u "$shortmode_path"` 36865 new_path="$input_path" 36866 fi 36867 fi 36868 36869 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36870 if test "x$test_cygdrive_prefix" = x; then 36871 # As a simple fix, exclude /usr/bin since it's not a real path. 36872 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36873 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36874 # a path prefixed by /cygdrive for fixpath to work. 36875 new_path="$CYGWIN_ROOT_PATH$input_path" 36876 fi 36877 fi 36878 36879 # remove trailing .exe if any 36880 new_path="${new_path/%.exe/}" 36881 36882 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36883 36884 # First separate the path from the arguments. This will split at the first 36885 # space. 36886 complete="$LIPO" 36887 path="${complete%% *}" 36888 tmp="$complete EOL" 36889 arguments="${tmp#* }" 36890 36891 # Input might be given as Windows format, start by converting to 36892 # unix format. 36893 new_path="$path" 36894 36895 windows_path="$new_path" 36896 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36897 unix_path=`$CYGPATH -u "$windows_path"` 36898 new_path="$unix_path" 36899 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36900 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36901 new_path="$unix_path" 36902 fi 36903 36904 36905 # Now try to locate executable using which 36906 new_path=`$WHICH "$new_path" 2> /dev/null` 36907 36908 if test "x$new_path" = x; then 36909 # Oops. Which didn't find the executable. 36910 # The splitting of arguments from the executable at a space might have been incorrect, 36911 # since paths with space are more likely in Windows. Give it another try with the whole 36912 # argument. 36913 path="$complete" 36914 arguments="EOL" 36915 new_path="$path" 36916 36917 windows_path="$new_path" 36918 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36919 unix_path=`$CYGPATH -u "$windows_path"` 36920 new_path="$unix_path" 36921 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36922 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36923 new_path="$unix_path" 36924 fi 36925 36926 36927 new_path=`$WHICH "$new_path" 2> /dev/null` 36928 # bat and cmd files are not always considered executable in MSYS causing which 36929 # to not find them 36930 if test "x$new_path" = x \ 36931 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36932 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36933 new_path="$path" 36934 36935 windows_path="$new_path" 36936 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36937 unix_path=`$CYGPATH -u "$windows_path"` 36938 new_path="$unix_path" 36939 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36940 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36941 new_path="$unix_path" 36942 fi 36943 36944 fi 36945 36946 if test "x$new_path" = x; then 36947 # It's still not found. Now this is an unrecoverable error. 36948 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 36949 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 36950 has_space=`$ECHO "$complete" | $GREP " "` 36951 if test "x$has_space" != x; then 36952 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36953 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36954 fi 36955 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 36956 fi 36957 fi 36958 36959 # Now new_path has a complete unix path to the binary 36960 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36961 # Keep paths in /bin as-is, but remove trailing .exe if any 36962 new_path="${new_path/%.exe/}" 36963 # Do not save /bin paths to all_fixpath_prefixes! 36964 else 36965 # Not in mixed or Windows style, start by that. 36966 new_path=`cmd //c echo $new_path` 36967 36968 input_path="$new_path" 36969 # Check if we need to convert this using DOS-style short mode. If the path 36970 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36971 # take no chances and rewrite it. 36972 # Note: m4 eats our [], so we need to use [ and ] instead. 36973 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36974 if test "x$has_forbidden_chars" != x; then 36975 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36976 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36977 fi 36978 36979 # Output is in $new_path 36980 36981 windows_path="$new_path" 36982 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36983 unix_path=`$CYGPATH -u "$windows_path"` 36984 new_path="$unix_path" 36985 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36986 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36987 new_path="$unix_path" 36988 fi 36989 36990 # remove trailing .exe if any 36991 new_path="${new_path/%.exe/}" 36992 36993 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36994 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36995 fi 36996 36997 else 36998 # We're on a unix platform. Hooray! :) 36999 # First separate the path from the arguments. This will split at the first 37000 # space. 37001 complete="$LIPO" 37002 path="${complete%% *}" 37003 tmp="$complete EOL" 37004 arguments="${tmp#* }" 37005 37006 # Cannot rely on the command "which" here since it doesn't always work. 37007 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37008 if test -z "$is_absolute_path"; then 37009 # Path to executable is not absolute. Find it. 37010 IFS_save="$IFS" 37011 IFS=: 37012 for p in $PATH; do 37013 if test -f "$p/$path" && test -x "$p/$path"; then 37014 new_path="$p/$path" 37015 break 37016 fi 37017 done 37018 IFS="$IFS_save" 37019 else 37020 # This is an absolute path, we can use it without further modifications. 37021 new_path="$path" 37022 fi 37023 37024 if test "x$new_path" = x; then 37025 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 37026 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 37027 has_space=`$ECHO "$complete" | $GREP " "` 37028 if test "x$has_space" != x; then 37029 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37030 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37031 fi 37032 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 37033 fi 37034 fi 37035 37036 # Now join together the path and the arguments once again 37037 if test "x$arguments" != xEOL; then 37038 new_complete="$new_path ${arguments% *}" 37039 else 37040 new_complete="$new_path" 37041 fi 37042 37043 if test "x$complete" != "x$new_complete"; then 37044 LIPO="$new_complete" 37045 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 37046 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 37047 fi 37048 fi 37049 37050 fi 37051 37052 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 37053 # Extract the first word of "mt", so it can be a program name with args. 37054 set dummy mt; ac_word=$2 37055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37056 $as_echo_n "checking for $ac_word... " >&6; } 37057 if ${ac_cv_prog_MT+:} false; then : 37058 $as_echo_n "(cached) " >&6 37059 else 37060 if test -n "$MT"; then 37061 ac_cv_prog_MT="$MT" # Let the user override the test. 37062 else 37063 ac_prog_rejected=no 37064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37065 for as_dir in $PATH 37066 do 37067 IFS=$as_save_IFS 37068 test -z "$as_dir" && as_dir=. 37069 for ac_exec_ext in '' $ac_executable_extensions; do 37070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37071 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 37072 ac_prog_rejected=yes 37073 continue 37074 fi 37075 ac_cv_prog_MT="mt" 37076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37077 break 2 37078 fi 37079 done 37080 done 37081 IFS=$as_save_IFS 37082 37083 if test $ac_prog_rejected = yes; then 37084 # We found a bogon in the path, so make sure we never use it. 37085 set dummy $ac_cv_prog_MT 37086 shift 37087 if test $# != 0; then 37088 # We chose a different compiler from the bogus one. 37089 # However, it has the same basename, so the bogon will be chosen 37090 # first if we set MT to just the basename; use the full file name. 37091 shift 37092 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 37093 fi 37094 fi 37095 fi 37096 fi 37097 MT=$ac_cv_prog_MT 37098 if test -n "$MT"; then 37099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 37100 $as_echo "$MT" >&6; } 37101 else 37102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37103 $as_echo "no" >&6; } 37104 fi 37105 37106 37107 37108 # Only process if variable expands to non-empty 37109 37110 if test "x$MT" != x; then 37111 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37112 37113 # First separate the path from the arguments. This will split at the first 37114 # space. 37115 complete="$MT" 37116 path="${complete%% *}" 37117 tmp="$complete EOL" 37118 arguments="${tmp#* }" 37119 37120 # Input might be given as Windows format, start by converting to 37121 # unix format. 37122 new_path=`$CYGPATH -u "$path"` 37123 37124 # Now try to locate executable using which 37125 new_path=`$WHICH "$new_path" 2> /dev/null` 37126 # bat and cmd files are not always considered executable in cygwin causing which 37127 # to not find them 37128 if test "x$new_path" = x \ 37129 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37130 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37131 new_path=`$CYGPATH -u "$path"` 37132 fi 37133 if test "x$new_path" = x; then 37134 # Oops. Which didn't find the executable. 37135 # The splitting of arguments from the executable at a space might have been incorrect, 37136 # since paths with space are more likely in Windows. Give it another try with the whole 37137 # argument. 37138 path="$complete" 37139 arguments="EOL" 37140 new_path=`$CYGPATH -u "$path"` 37141 new_path=`$WHICH "$new_path" 2> /dev/null` 37142 # bat and cmd files are not always considered executable in cygwin 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=`$CYGPATH -u "$path"` 37148 fi 37149 if test "x$new_path" = x; then 37150 # It's still not found. Now this is an unrecoverable error. 37151 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 37152 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 37153 has_space=`$ECHO "$complete" | $GREP " "` 37154 if test "x$has_space" != x; then 37155 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37156 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37157 fi 37158 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 37159 fi 37160 fi 37161 37162 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37163 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37164 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37165 # "foo.exe" is OK but "foo" is an error. 37166 # 37167 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37168 # It is also a way to make sure we got the proper file name for the real test later on. 37169 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37170 if test "x$test_shortpath" = x; then 37171 # Short path failed, file does not exist as specified. 37172 # Try adding .exe or .cmd 37173 if test -f "${new_path}.exe"; then 37174 input_to_shortpath="${new_path}.exe" 37175 elif test -f "${new_path}.cmd"; then 37176 input_to_shortpath="${new_path}.cmd" 37177 else 37178 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 37179 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 37180 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37181 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37182 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 37183 fi 37184 else 37185 input_to_shortpath="$new_path" 37186 fi 37187 37188 # Call helper function which possibly converts this using DOS-style short mode. 37189 # If so, the updated path is stored in $new_path. 37190 new_path="$input_to_shortpath" 37191 37192 input_path="$input_to_shortpath" 37193 # Check if we need to convert this using DOS-style short mode. If the path 37194 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37195 # take no chances and rewrite it. 37196 # Note: m4 eats our [], so we need to use [ and ] instead. 37197 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37198 if test "x$has_forbidden_chars" != x; then 37199 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37200 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37201 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37202 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37203 # Going to short mode and back again did indeed matter. Since short mode is 37204 # case insensitive, let's make it lowercase to improve readability. 37205 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37206 # Now convert it back to Unix-style (cygpath) 37207 input_path=`$CYGPATH -u "$shortmode_path"` 37208 new_path="$input_path" 37209 fi 37210 fi 37211 37212 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37213 if test "x$test_cygdrive_prefix" = x; then 37214 # As a simple fix, exclude /usr/bin since it's not a real path. 37215 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37216 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37217 # a path prefixed by /cygdrive for fixpath to work. 37218 new_path="$CYGWIN_ROOT_PATH$input_path" 37219 fi 37220 fi 37221 37222 # remove trailing .exe if any 37223 new_path="${new_path/%.exe/}" 37224 37225 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37226 37227 # First separate the path from the arguments. This will split at the first 37228 # space. 37229 complete="$MT" 37230 path="${complete%% *}" 37231 tmp="$complete EOL" 37232 arguments="${tmp#* }" 37233 37234 # Input might be given as Windows format, start by converting to 37235 # unix format. 37236 new_path="$path" 37237 37238 windows_path="$new_path" 37239 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37240 unix_path=`$CYGPATH -u "$windows_path"` 37241 new_path="$unix_path" 37242 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37243 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37244 new_path="$unix_path" 37245 fi 37246 37247 37248 # Now try to locate executable using which 37249 new_path=`$WHICH "$new_path" 2> /dev/null` 37250 37251 if test "x$new_path" = x; then 37252 # Oops. Which didn't find the executable. 37253 # The splitting of arguments from the executable at a space might have been incorrect, 37254 # since paths with space are more likely in Windows. Give it another try with the whole 37255 # argument. 37256 path="$complete" 37257 arguments="EOL" 37258 new_path="$path" 37259 37260 windows_path="$new_path" 37261 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37262 unix_path=`$CYGPATH -u "$windows_path"` 37263 new_path="$unix_path" 37264 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37265 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37266 new_path="$unix_path" 37267 fi 37268 37269 37270 new_path=`$WHICH "$new_path" 2> /dev/null` 37271 # bat and cmd files are not always considered executable in MSYS causing which 37272 # to not find them 37273 if test "x$new_path" = x \ 37274 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37275 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37276 new_path="$path" 37277 37278 windows_path="$new_path" 37279 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37280 unix_path=`$CYGPATH -u "$windows_path"` 37281 new_path="$unix_path" 37282 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37283 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37284 new_path="$unix_path" 37285 fi 37286 37287 fi 37288 37289 if test "x$new_path" = x; then 37290 # It's still not found. Now this is an unrecoverable error. 37291 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 37292 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 37293 has_space=`$ECHO "$complete" | $GREP " "` 37294 if test "x$has_space" != x; then 37295 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37296 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37297 fi 37298 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 37299 fi 37300 fi 37301 37302 # Now new_path has a complete unix path to the binary 37303 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37304 # Keep paths in /bin as-is, but remove trailing .exe if any 37305 new_path="${new_path/%.exe/}" 37306 # Do not save /bin paths to all_fixpath_prefixes! 37307 else 37308 # Not in mixed or Windows style, start by that. 37309 new_path=`cmd //c echo $new_path` 37310 37311 input_path="$new_path" 37312 # Check if we need to convert this using DOS-style short mode. If the path 37313 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37314 # take no chances and rewrite it. 37315 # Note: m4 eats our [], so we need to use [ and ] instead. 37316 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37317 if test "x$has_forbidden_chars" != x; then 37318 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37319 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37320 fi 37321 37322 # Output is in $new_path 37323 37324 windows_path="$new_path" 37325 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37326 unix_path=`$CYGPATH -u "$windows_path"` 37327 new_path="$unix_path" 37328 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37329 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37330 new_path="$unix_path" 37331 fi 37332 37333 # remove trailing .exe if any 37334 new_path="${new_path/%.exe/}" 37335 37336 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37337 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37338 fi 37339 37340 else 37341 # We're on a unix platform. Hooray! :) 37342 # First separate the path from the arguments. This will split at the first 37343 # space. 37344 complete="$MT" 37345 path="${complete%% *}" 37346 tmp="$complete EOL" 37347 arguments="${tmp#* }" 37348 37349 # Cannot rely on the command "which" here since it doesn't always work. 37350 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37351 if test -z "$is_absolute_path"; then 37352 # Path to executable is not absolute. Find it. 37353 IFS_save="$IFS" 37354 IFS=: 37355 for p in $PATH; do 37356 if test -f "$p/$path" && test -x "$p/$path"; then 37357 new_path="$p/$path" 37358 break 37359 fi 37360 done 37361 IFS="$IFS_save" 37362 else 37363 # This is an absolute path, we can use it without further modifications. 37364 new_path="$path" 37365 fi 37366 37367 if test "x$new_path" = x; then 37368 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 37369 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 37370 has_space=`$ECHO "$complete" | $GREP " "` 37371 if test "x$has_space" != x; then 37372 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37373 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37374 fi 37375 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 37376 fi 37377 fi 37378 37379 # Now join together the path and the arguments once again 37380 if test "x$arguments" != xEOL; then 37381 new_complete="$new_path ${arguments% *}" 37382 else 37383 new_complete="$new_path" 37384 fi 37385 37386 if test "x$complete" != "x$new_complete"; then 37387 MT="$new_complete" 37388 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 37389 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 37390 fi 37391 fi 37392 37393 # Setup the resource compiler (RC) 37394 # Extract the first word of "rc", so it can be a program name with args. 37395 set dummy rc; ac_word=$2 37396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37397 $as_echo_n "checking for $ac_word... " >&6; } 37398 if ${ac_cv_prog_RC+:} false; then : 37399 $as_echo_n "(cached) " >&6 37400 else 37401 if test -n "$RC"; then 37402 ac_cv_prog_RC="$RC" # Let the user override the test. 37403 else 37404 ac_prog_rejected=no 37405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37406 for as_dir in $PATH 37407 do 37408 IFS=$as_save_IFS 37409 test -z "$as_dir" && as_dir=. 37410 for ac_exec_ext in '' $ac_executable_extensions; do 37411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37412 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 37413 ac_prog_rejected=yes 37414 continue 37415 fi 37416 ac_cv_prog_RC="rc" 37417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37418 break 2 37419 fi 37420 done 37421 done 37422 IFS=$as_save_IFS 37423 37424 if test $ac_prog_rejected = yes; then 37425 # We found a bogon in the path, so make sure we never use it. 37426 set dummy $ac_cv_prog_RC 37427 shift 37428 if test $# != 0; then 37429 # We chose a different compiler from the bogus one. 37430 # However, it has the same basename, so the bogon will be chosen 37431 # first if we set RC to just the basename; use the full file name. 37432 shift 37433 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 37434 fi 37435 fi 37436 fi 37437 fi 37438 RC=$ac_cv_prog_RC 37439 if test -n "$RC"; then 37440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 37441 $as_echo "$RC" >&6; } 37442 else 37443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37444 $as_echo "no" >&6; } 37445 fi 37446 37447 37448 37449 # Only process if variable expands to non-empty 37450 37451 if test "x$RC" != x; then 37452 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37453 37454 # First separate the path from the arguments. This will split at the first 37455 # space. 37456 complete="$RC" 37457 path="${complete%% *}" 37458 tmp="$complete EOL" 37459 arguments="${tmp#* }" 37460 37461 # Input might be given as Windows format, start by converting to 37462 # unix format. 37463 new_path=`$CYGPATH -u "$path"` 37464 37465 # Now try to locate executable using which 37466 new_path=`$WHICH "$new_path" 2> /dev/null` 37467 # bat and cmd files are not always considered executable in cygwin causing which 37468 # to not find them 37469 if test "x$new_path" = x \ 37470 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37471 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37472 new_path=`$CYGPATH -u "$path"` 37473 fi 37474 if test "x$new_path" = x; then 37475 # Oops. Which didn't find the executable. 37476 # The splitting of arguments from the executable at a space might have been incorrect, 37477 # since paths with space are more likely in Windows. Give it another try with the whole 37478 # argument. 37479 path="$complete" 37480 arguments="EOL" 37481 new_path=`$CYGPATH -u "$path"` 37482 new_path=`$WHICH "$new_path" 2> /dev/null` 37483 # bat and cmd files are not always considered executable in cygwin causing which 37484 # to not find them 37485 if test "x$new_path" = x \ 37486 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37487 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37488 new_path=`$CYGPATH -u "$path"` 37489 fi 37490 if test "x$new_path" = x; then 37491 # It's still not found. Now this is an unrecoverable error. 37492 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 37493 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 37494 has_space=`$ECHO "$complete" | $GREP " "` 37495 if test "x$has_space" != x; then 37496 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37497 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37498 fi 37499 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 37500 fi 37501 fi 37502 37503 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37504 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37505 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37506 # "foo.exe" is OK but "foo" is an error. 37507 # 37508 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37509 # It is also a way to make sure we got the proper file name for the real test later on. 37510 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37511 if test "x$test_shortpath" = x; then 37512 # Short path failed, file does not exist as specified. 37513 # Try adding .exe or .cmd 37514 if test -f "${new_path}.exe"; then 37515 input_to_shortpath="${new_path}.exe" 37516 elif test -f "${new_path}.cmd"; then 37517 input_to_shortpath="${new_path}.cmd" 37518 else 37519 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 37520 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 37521 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37522 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37523 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 37524 fi 37525 else 37526 input_to_shortpath="$new_path" 37527 fi 37528 37529 # Call helper function which possibly converts this using DOS-style short mode. 37530 # If so, the updated path is stored in $new_path. 37531 new_path="$input_to_shortpath" 37532 37533 input_path="$input_to_shortpath" 37534 # Check if we need to convert this using DOS-style short mode. If the path 37535 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37536 # take no chances and rewrite it. 37537 # Note: m4 eats our [], so we need to use [ and ] instead. 37538 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37539 if test "x$has_forbidden_chars" != x; then 37540 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37541 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37542 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37543 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37544 # Going to short mode and back again did indeed matter. Since short mode is 37545 # case insensitive, let's make it lowercase to improve readability. 37546 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37547 # Now convert it back to Unix-style (cygpath) 37548 input_path=`$CYGPATH -u "$shortmode_path"` 37549 new_path="$input_path" 37550 fi 37551 fi 37552 37553 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37554 if test "x$test_cygdrive_prefix" = x; then 37555 # As a simple fix, exclude /usr/bin since it's not a real path. 37556 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37557 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37558 # a path prefixed by /cygdrive for fixpath to work. 37559 new_path="$CYGWIN_ROOT_PATH$input_path" 37560 fi 37561 fi 37562 37563 # remove trailing .exe if any 37564 new_path="${new_path/%.exe/}" 37565 37566 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37567 37568 # First separate the path from the arguments. This will split at the first 37569 # space. 37570 complete="$RC" 37571 path="${complete%% *}" 37572 tmp="$complete EOL" 37573 arguments="${tmp#* }" 37574 37575 # Input might be given as Windows format, start by converting to 37576 # unix format. 37577 new_path="$path" 37578 37579 windows_path="$new_path" 37580 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37581 unix_path=`$CYGPATH -u "$windows_path"` 37582 new_path="$unix_path" 37583 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37584 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37585 new_path="$unix_path" 37586 fi 37587 37588 37589 # Now try to locate executable using which 37590 new_path=`$WHICH "$new_path" 2> /dev/null` 37591 37592 if test "x$new_path" = x; then 37593 # Oops. Which didn't find the executable. 37594 # The splitting of arguments from the executable at a space might have been incorrect, 37595 # since paths with space are more likely in Windows. Give it another try with the whole 37596 # argument. 37597 path="$complete" 37598 arguments="EOL" 37599 new_path="$path" 37600 37601 windows_path="$new_path" 37602 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37603 unix_path=`$CYGPATH -u "$windows_path"` 37604 new_path="$unix_path" 37605 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37606 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37607 new_path="$unix_path" 37608 fi 37609 37610 37611 new_path=`$WHICH "$new_path" 2> /dev/null` 37612 # bat and cmd files are not always considered executable in MSYS causing which 37613 # to not find them 37614 if test "x$new_path" = x \ 37615 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37616 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37617 new_path="$path" 37618 37619 windows_path="$new_path" 37620 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37621 unix_path=`$CYGPATH -u "$windows_path"` 37622 new_path="$unix_path" 37623 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37624 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37625 new_path="$unix_path" 37626 fi 37627 37628 fi 37629 37630 if test "x$new_path" = x; then 37631 # It's still not found. Now this is an unrecoverable error. 37632 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 37633 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 37634 has_space=`$ECHO "$complete" | $GREP " "` 37635 if test "x$has_space" != x; then 37636 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37637 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37638 fi 37639 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 37640 fi 37641 fi 37642 37643 # Now new_path has a complete unix path to the binary 37644 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37645 # Keep paths in /bin as-is, but remove trailing .exe if any 37646 new_path="${new_path/%.exe/}" 37647 # Do not save /bin paths to all_fixpath_prefixes! 37648 else 37649 # Not in mixed or Windows style, start by that. 37650 new_path=`cmd //c echo $new_path` 37651 37652 input_path="$new_path" 37653 # Check if we need to convert this using DOS-style short mode. If the path 37654 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37655 # take no chances and rewrite it. 37656 # Note: m4 eats our [], so we need to use [ and ] instead. 37657 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37658 if test "x$has_forbidden_chars" != x; then 37659 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37660 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37661 fi 37662 37663 # Output is in $new_path 37664 37665 windows_path="$new_path" 37666 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37667 unix_path=`$CYGPATH -u "$windows_path"` 37668 new_path="$unix_path" 37669 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37670 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37671 new_path="$unix_path" 37672 fi 37673 37674 # remove trailing .exe if any 37675 new_path="${new_path/%.exe/}" 37676 37677 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37678 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37679 fi 37680 37681 else 37682 # We're on a unix platform. Hooray! :) 37683 # First separate the path from the arguments. This will split at the first 37684 # space. 37685 complete="$RC" 37686 path="${complete%% *}" 37687 tmp="$complete EOL" 37688 arguments="${tmp#* }" 37689 37690 # Cannot rely on the command "which" here since it doesn't always work. 37691 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37692 if test -z "$is_absolute_path"; then 37693 # Path to executable is not absolute. Find it. 37694 IFS_save="$IFS" 37695 IFS=: 37696 for p in $PATH; do 37697 if test -f "$p/$path" && test -x "$p/$path"; then 37698 new_path="$p/$path" 37699 break 37700 fi 37701 done 37702 IFS="$IFS_save" 37703 else 37704 # This is an absolute path, we can use it without further modifications. 37705 new_path="$path" 37706 fi 37707 37708 if test "x$new_path" = x; then 37709 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 37710 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 37711 has_space=`$ECHO "$complete" | $GREP " "` 37712 if test "x$has_space" != x; then 37713 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37714 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37715 fi 37716 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 37717 fi 37718 fi 37719 37720 # Now join together the path and the arguments once again 37721 if test "x$arguments" != xEOL; then 37722 new_complete="$new_path ${arguments% *}" 37723 else 37724 new_complete="$new_path" 37725 fi 37726 37727 if test "x$complete" != "x$new_complete"; then 37728 RC="$new_complete" 37729 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 37730 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 37731 fi 37732 fi 37733 37734 # Extract the first word of "dumpbin", so it can be a program name with args. 37735 set dummy dumpbin; ac_word=$2 37736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37737 $as_echo_n "checking for $ac_word... " >&6; } 37738 if ${ac_cv_prog_DUMPBIN+:} false; then : 37739 $as_echo_n "(cached) " >&6 37740 else 37741 if test -n "$DUMPBIN"; then 37742 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 37743 else 37744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37745 for as_dir in $PATH 37746 do 37747 IFS=$as_save_IFS 37748 test -z "$as_dir" && as_dir=. 37749 for ac_exec_ext in '' $ac_executable_extensions; do 37750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37751 ac_cv_prog_DUMPBIN="dumpbin" 37752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37753 break 2 37754 fi 37755 done 37756 done 37757 IFS=$as_save_IFS 37758 37759 fi 37760 fi 37761 DUMPBIN=$ac_cv_prog_DUMPBIN 37762 if test -n "$DUMPBIN"; then 37763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 37764 $as_echo "$DUMPBIN" >&6; } 37765 else 37766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37767 $as_echo "no" >&6; } 37768 fi 37769 37770 37771 37772 # Only process if variable expands to non-empty 37773 37774 if test "x$DUMPBIN" != x; then 37775 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37776 37777 # First separate the path from the arguments. This will split at the first 37778 # space. 37779 complete="$DUMPBIN" 37780 path="${complete%% *}" 37781 tmp="$complete EOL" 37782 arguments="${tmp#* }" 37783 37784 # Input might be given as Windows format, start by converting to 37785 # unix format. 37786 new_path=`$CYGPATH -u "$path"` 37787 37788 # Now try to locate executable using which 37789 new_path=`$WHICH "$new_path" 2> /dev/null` 37790 # bat and cmd files are not always considered executable in cygwin causing which 37791 # to not find them 37792 if test "x$new_path" = x \ 37793 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37794 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37795 new_path=`$CYGPATH -u "$path"` 37796 fi 37797 if test "x$new_path" = x; then 37798 # Oops. Which didn't find the executable. 37799 # The splitting of arguments from the executable at a space might have been incorrect, 37800 # since paths with space are more likely in Windows. Give it another try with the whole 37801 # argument. 37802 path="$complete" 37803 arguments="EOL" 37804 new_path=`$CYGPATH -u "$path"` 37805 new_path=`$WHICH "$new_path" 2> /dev/null` 37806 # bat and cmd files are not always considered executable in cygwin causing which 37807 # to not find them 37808 if test "x$new_path" = x \ 37809 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37810 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37811 new_path=`$CYGPATH -u "$path"` 37812 fi 37813 if test "x$new_path" = x; then 37814 # It's still not found. Now this is an unrecoverable error. 37815 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 37816 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 37817 has_space=`$ECHO "$complete" | $GREP " "` 37818 if test "x$has_space" != x; then 37819 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37820 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37821 fi 37822 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 37823 fi 37824 fi 37825 37826 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37827 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37828 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37829 # "foo.exe" is OK but "foo" is an error. 37830 # 37831 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37832 # It is also a way to make sure we got the proper file name for the real test later on. 37833 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37834 if test "x$test_shortpath" = x; then 37835 # Short path failed, file does not exist as specified. 37836 # Try adding .exe or .cmd 37837 if test -f "${new_path}.exe"; then 37838 input_to_shortpath="${new_path}.exe" 37839 elif test -f "${new_path}.cmd"; then 37840 input_to_shortpath="${new_path}.cmd" 37841 else 37842 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 37843 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 37844 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37845 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37846 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 37847 fi 37848 else 37849 input_to_shortpath="$new_path" 37850 fi 37851 37852 # Call helper function which possibly converts this using DOS-style short mode. 37853 # If so, the updated path is stored in $new_path. 37854 new_path="$input_to_shortpath" 37855 37856 input_path="$input_to_shortpath" 37857 # Check if we need to convert this using DOS-style short mode. If the path 37858 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37859 # take no chances and rewrite it. 37860 # Note: m4 eats our [], so we need to use [ and ] instead. 37861 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37862 if test "x$has_forbidden_chars" != x; then 37863 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37864 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37865 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37866 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37867 # Going to short mode and back again did indeed matter. Since short mode is 37868 # case insensitive, let's make it lowercase to improve readability. 37869 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37870 # Now convert it back to Unix-style (cygpath) 37871 input_path=`$CYGPATH -u "$shortmode_path"` 37872 new_path="$input_path" 37873 fi 37874 fi 37875 37876 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37877 if test "x$test_cygdrive_prefix" = x; then 37878 # As a simple fix, exclude /usr/bin since it's not a real path. 37879 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37880 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37881 # a path prefixed by /cygdrive for fixpath to work. 37882 new_path="$CYGWIN_ROOT_PATH$input_path" 37883 fi 37884 fi 37885 37886 # remove trailing .exe if any 37887 new_path="${new_path/%.exe/}" 37888 37889 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37890 37891 # First separate the path from the arguments. This will split at the first 37892 # space. 37893 complete="$DUMPBIN" 37894 path="${complete%% *}" 37895 tmp="$complete EOL" 37896 arguments="${tmp#* }" 37897 37898 # Input might be given as Windows format, start by converting to 37899 # unix format. 37900 new_path="$path" 37901 37902 windows_path="$new_path" 37903 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37904 unix_path=`$CYGPATH -u "$windows_path"` 37905 new_path="$unix_path" 37906 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37907 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37908 new_path="$unix_path" 37909 fi 37910 37911 37912 # Now try to locate executable using which 37913 new_path=`$WHICH "$new_path" 2> /dev/null` 37914 37915 if test "x$new_path" = x; then 37916 # Oops. Which didn't find the executable. 37917 # The splitting of arguments from the executable at a space might have been incorrect, 37918 # since paths with space are more likely in Windows. Give it another try with the whole 37919 # argument. 37920 path="$complete" 37921 arguments="EOL" 37922 new_path="$path" 37923 37924 windows_path="$new_path" 37925 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37926 unix_path=`$CYGPATH -u "$windows_path"` 37927 new_path="$unix_path" 37928 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37929 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37930 new_path="$unix_path" 37931 fi 37932 37933 37934 new_path=`$WHICH "$new_path" 2> /dev/null` 37935 # bat and cmd files are not always considered executable in MSYS causing which 37936 # to not find them 37937 if test "x$new_path" = x \ 37938 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37939 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37940 new_path="$path" 37941 37942 windows_path="$new_path" 37943 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37944 unix_path=`$CYGPATH -u "$windows_path"` 37945 new_path="$unix_path" 37946 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37947 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37948 new_path="$unix_path" 37949 fi 37950 37951 fi 37952 37953 if test "x$new_path" = x; then 37954 # It's still not found. Now this is an unrecoverable error. 37955 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 37956 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 37957 has_space=`$ECHO "$complete" | $GREP " "` 37958 if test "x$has_space" != x; then 37959 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37960 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37961 fi 37962 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 37963 fi 37964 fi 37965 37966 # Now new_path has a complete unix path to the binary 37967 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37968 # Keep paths in /bin as-is, but remove trailing .exe if any 37969 new_path="${new_path/%.exe/}" 37970 # Do not save /bin paths to all_fixpath_prefixes! 37971 else 37972 # Not in mixed or Windows style, start by that. 37973 new_path=`cmd //c echo $new_path` 37974 37975 input_path="$new_path" 37976 # Check if we need to convert this using DOS-style short mode. If the path 37977 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37978 # take no chances and rewrite it. 37979 # Note: m4 eats our [], so we need to use [ and ] instead. 37980 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37981 if test "x$has_forbidden_chars" != x; then 37982 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37983 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37984 fi 37985 37986 # Output is in $new_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 # remove trailing .exe if any 37998 new_path="${new_path/%.exe/}" 37999 38000 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38001 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38002 fi 38003 38004 else 38005 # We're on a unix platform. Hooray! :) 38006 # First separate the path from the arguments. This will split at the first 38007 # space. 38008 complete="$DUMPBIN" 38009 path="${complete%% *}" 38010 tmp="$complete EOL" 38011 arguments="${tmp#* }" 38012 38013 # Cannot rely on the command "which" here since it doesn't always work. 38014 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38015 if test -z "$is_absolute_path"; then 38016 # Path to executable is not absolute. Find it. 38017 IFS_save="$IFS" 38018 IFS=: 38019 for p in $PATH; do 38020 if test -f "$p/$path" && test -x "$p/$path"; then 38021 new_path="$p/$path" 38022 break 38023 fi 38024 done 38025 IFS="$IFS_save" 38026 else 38027 # This is an absolute path, we can use it without further modifications. 38028 new_path="$path" 38029 fi 38030 38031 if test "x$new_path" = x; then 38032 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 38033 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 38034 has_space=`$ECHO "$complete" | $GREP " "` 38035 if test "x$has_space" != x; then 38036 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38037 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38038 fi 38039 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 38040 fi 38041 fi 38042 38043 # Now join together the path and the arguments once again 38044 if test "x$arguments" != xEOL; then 38045 new_complete="$new_path ${arguments% *}" 38046 else 38047 new_complete="$new_path" 38048 fi 38049 38050 if test "x$complete" != "x$new_complete"; then 38051 DUMPBIN="$new_complete" 38052 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 38053 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 38054 fi 38055 fi 38056 38057 # We need to check for 'msbuild.exe' because at the place where we expect to 38058 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 38059 # won't find the 'msbuild.exe' executable in that case (and the 38060 # 'ac_executable_extensions' is unusable due to performance reasons). 38061 # Notice that we intentionally don't fix up the path to MSBUILD because we 38062 # will call it in a DOS shell during freetype detection on Windows (see 38063 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 38064 # Extract the first word of "msbuild.exe", so it can be a program name with args. 38065 set dummy msbuild.exe; ac_word=$2 38066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38067 $as_echo_n "checking for $ac_word... " >&6; } 38068 if ${ac_cv_prog_MSBUILD+:} false; then : 38069 $as_echo_n "(cached) " >&6 38070 else 38071 if test -n "$MSBUILD"; then 38072 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 38073 else 38074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38075 for as_dir in $PATH 38076 do 38077 IFS=$as_save_IFS 38078 test -z "$as_dir" && as_dir=. 38079 for ac_exec_ext in '' $ac_executable_extensions; do 38080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38081 ac_cv_prog_MSBUILD="msbuild.exe" 38082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38083 break 2 38084 fi 38085 done 38086 done 38087 IFS=$as_save_IFS 38088 38089 fi 38090 fi 38091 MSBUILD=$ac_cv_prog_MSBUILD 38092 if test -n "$MSBUILD"; then 38093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 38094 $as_echo "$MSBUILD" >&6; } 38095 else 38096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38097 $as_echo "no" >&6; } 38098 fi 38099 38100 38101 fi 38102 38103 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 38104 38105 38106 # Publish this variable in the help. 38107 38108 38109 if [ -z "${STRIP+x}" ]; then 38110 # The variable is not set by user, try to locate tool using the code snippet 38111 for ac_prog in strip 38112 do 38113 # Extract the first word of "$ac_prog", so it can be a program name with args. 38114 set dummy $ac_prog; ac_word=$2 38115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38116 $as_echo_n "checking for $ac_word... " >&6; } 38117 if ${ac_cv_path_STRIP+:} false; then : 38118 $as_echo_n "(cached) " >&6 38119 else 38120 case $STRIP in 38121 [\\/]* | ?:[\\/]*) 38122 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 38123 ;; 38124 *) 38125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38126 for as_dir in $PATH 38127 do 38128 IFS=$as_save_IFS 38129 test -z "$as_dir" && as_dir=. 38130 for ac_exec_ext in '' $ac_executable_extensions; do 38131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38132 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 38133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38134 break 2 38135 fi 38136 done 38137 done 38138 IFS=$as_save_IFS 38139 38140 ;; 38141 esac 38142 fi 38143 STRIP=$ac_cv_path_STRIP 38144 if test -n "$STRIP"; then 38145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 38146 $as_echo "$STRIP" >&6; } 38147 else 38148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38149 $as_echo "no" >&6; } 38150 fi 38151 38152 38153 test -n "$STRIP" && break 38154 done 38155 38156 else 38157 # The variable is set, but is it from the command line or the environment? 38158 38159 # Try to remove the string !STRIP! from our list. 38160 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 38161 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38162 # If it failed, the variable was not from the command line. Ignore it, 38163 # but warn the user (except for BASH, which is always set by the calling BASH). 38164 if test "xSTRIP" != xBASH; then 38165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 38166 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 38167 fi 38168 # Try to locate tool using the code snippet 38169 for ac_prog in strip 38170 do 38171 # Extract the first word of "$ac_prog", so it can be a program name with args. 38172 set dummy $ac_prog; ac_word=$2 38173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38174 $as_echo_n "checking for $ac_word... " >&6; } 38175 if ${ac_cv_path_STRIP+:} false; then : 38176 $as_echo_n "(cached) " >&6 38177 else 38178 case $STRIP in 38179 [\\/]* | ?:[\\/]*) 38180 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 38181 ;; 38182 *) 38183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38184 for as_dir in $PATH 38185 do 38186 IFS=$as_save_IFS 38187 test -z "$as_dir" && as_dir=. 38188 for ac_exec_ext in '' $ac_executable_extensions; do 38189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38190 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 38191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38192 break 2 38193 fi 38194 done 38195 done 38196 IFS=$as_save_IFS 38197 38198 ;; 38199 esac 38200 fi 38201 STRIP=$ac_cv_path_STRIP 38202 if test -n "$STRIP"; then 38203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 38204 $as_echo "$STRIP" >&6; } 38205 else 38206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38207 $as_echo "no" >&6; } 38208 fi 38209 38210 38211 test -n "$STRIP" && break 38212 done 38213 38214 else 38215 # If it succeeded, then it was overridden by the user. We will use it 38216 # for the tool. 38217 38218 # First remove it from the list of overridden variables, so we can test 38219 # for unknown variables in the end. 38220 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38221 38222 # Check if we try to supply an empty value 38223 if test "x$STRIP" = x; then 38224 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 38225 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 38226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 38227 $as_echo_n "checking for STRIP... " >&6; } 38228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38229 $as_echo "disabled" >&6; } 38230 else 38231 # Check if the provided tool contains a complete path. 38232 tool_specified="$STRIP" 38233 tool_basename="${tool_specified##*/}" 38234 if test "x$tool_basename" = "x$tool_specified"; then 38235 # A command without a complete path is provided, search $PATH. 38236 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 38237 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 38238 # Extract the first word of "$tool_basename", so it can be a program name with args. 38239 set dummy $tool_basename; ac_word=$2 38240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38241 $as_echo_n "checking for $ac_word... " >&6; } 38242 if ${ac_cv_path_STRIP+:} false; then : 38243 $as_echo_n "(cached) " >&6 38244 else 38245 case $STRIP in 38246 [\\/]* | ?:[\\/]*) 38247 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 38248 ;; 38249 *) 38250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38251 for as_dir in $PATH 38252 do 38253 IFS=$as_save_IFS 38254 test -z "$as_dir" && as_dir=. 38255 for ac_exec_ext in '' $ac_executable_extensions; do 38256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38257 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 38258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38259 break 2 38260 fi 38261 done 38262 done 38263 IFS=$as_save_IFS 38264 38265 ;; 38266 esac 38267 fi 38268 STRIP=$ac_cv_path_STRIP 38269 if test -n "$STRIP"; then 38270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 38271 $as_echo "$STRIP" >&6; } 38272 else 38273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38274 $as_echo "no" >&6; } 38275 fi 38276 38277 38278 if test "x$STRIP" = x; then 38279 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38280 fi 38281 else 38282 # Otherwise we believe it is a complete path. Use it as it is. 38283 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 38284 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 38285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 38286 $as_echo_n "checking for STRIP... " >&6; } 38287 if test ! -x "$tool_specified"; then 38288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38289 $as_echo "not found" >&6; } 38290 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 38291 fi 38292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38293 $as_echo "$tool_specified" >&6; } 38294 fi 38295 fi 38296 fi 38297 38298 fi 38299 38300 38301 38302 # Only process if variable expands to non-empty 38303 38304 if test "x$STRIP" != x; then 38305 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38306 38307 # First separate the path from the arguments. This will split at the first 38308 # space. 38309 complete="$STRIP" 38310 path="${complete%% *}" 38311 tmp="$complete EOL" 38312 arguments="${tmp#* }" 38313 38314 # Input might be given as Windows format, start by converting to 38315 # unix format. 38316 new_path=`$CYGPATH -u "$path"` 38317 38318 # Now try to locate executable using which 38319 new_path=`$WHICH "$new_path" 2> /dev/null` 38320 # bat and cmd files are not always considered executable in cygwin causing which 38321 # to not find them 38322 if test "x$new_path" = x \ 38323 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38324 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38325 new_path=`$CYGPATH -u "$path"` 38326 fi 38327 if test "x$new_path" = x; then 38328 # Oops. Which didn't find the executable. 38329 # The splitting of arguments from the executable at a space might have been incorrect, 38330 # since paths with space are more likely in Windows. Give it another try with the whole 38331 # argument. 38332 path="$complete" 38333 arguments="EOL" 38334 new_path=`$CYGPATH -u "$path"` 38335 new_path=`$WHICH "$new_path" 2> /dev/null` 38336 # bat and cmd files are not always considered executable in cygwin causing which 38337 # to not find them 38338 if test "x$new_path" = x \ 38339 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38340 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38341 new_path=`$CYGPATH -u "$path"` 38342 fi 38343 if test "x$new_path" = x; then 38344 # It's still not found. Now this is an unrecoverable error. 38345 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 38346 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 38347 has_space=`$ECHO "$complete" | $GREP " "` 38348 if test "x$has_space" != x; then 38349 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38350 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38351 fi 38352 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 38353 fi 38354 fi 38355 38356 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38357 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38358 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38359 # "foo.exe" is OK but "foo" is an error. 38360 # 38361 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38362 # It is also a way to make sure we got the proper file name for the real test later on. 38363 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38364 if test "x$test_shortpath" = x; then 38365 # Short path failed, file does not exist as specified. 38366 # Try adding .exe or .cmd 38367 if test -f "${new_path}.exe"; then 38368 input_to_shortpath="${new_path}.exe" 38369 elif test -f "${new_path}.cmd"; then 38370 input_to_shortpath="${new_path}.cmd" 38371 else 38372 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 38373 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 38374 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38375 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38376 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 38377 fi 38378 else 38379 input_to_shortpath="$new_path" 38380 fi 38381 38382 # Call helper function which possibly converts this using DOS-style short mode. 38383 # If so, the updated path is stored in $new_path. 38384 new_path="$input_to_shortpath" 38385 38386 input_path="$input_to_shortpath" 38387 # Check if we need to convert this using DOS-style short mode. If the path 38388 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38389 # take no chances and rewrite it. 38390 # Note: m4 eats our [], so we need to use [ and ] instead. 38391 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38392 if test "x$has_forbidden_chars" != x; then 38393 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38394 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38395 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38396 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38397 # Going to short mode and back again did indeed matter. Since short mode is 38398 # case insensitive, let's make it lowercase to improve readability. 38399 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38400 # Now convert it back to Unix-style (cygpath) 38401 input_path=`$CYGPATH -u "$shortmode_path"` 38402 new_path="$input_path" 38403 fi 38404 fi 38405 38406 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38407 if test "x$test_cygdrive_prefix" = x; then 38408 # As a simple fix, exclude /usr/bin since it's not a real path. 38409 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38410 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38411 # a path prefixed by /cygdrive for fixpath to work. 38412 new_path="$CYGWIN_ROOT_PATH$input_path" 38413 fi 38414 fi 38415 38416 # remove trailing .exe if any 38417 new_path="${new_path/%.exe/}" 38418 38419 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38420 38421 # First separate the path from the arguments. This will split at the first 38422 # space. 38423 complete="$STRIP" 38424 path="${complete%% *}" 38425 tmp="$complete EOL" 38426 arguments="${tmp#* }" 38427 38428 # Input might be given as Windows format, start by converting to 38429 # unix format. 38430 new_path="$path" 38431 38432 windows_path="$new_path" 38433 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38434 unix_path=`$CYGPATH -u "$windows_path"` 38435 new_path="$unix_path" 38436 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38437 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38438 new_path="$unix_path" 38439 fi 38440 38441 38442 # Now try to locate executable using which 38443 new_path=`$WHICH "$new_path" 2> /dev/null` 38444 38445 if test "x$new_path" = x; then 38446 # Oops. Which didn't find the executable. 38447 # The splitting of arguments from the executable at a space might have been incorrect, 38448 # since paths with space are more likely in Windows. Give it another try with the whole 38449 # argument. 38450 path="$complete" 38451 arguments="EOL" 38452 new_path="$path" 38453 38454 windows_path="$new_path" 38455 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38456 unix_path=`$CYGPATH -u "$windows_path"` 38457 new_path="$unix_path" 38458 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38459 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38460 new_path="$unix_path" 38461 fi 38462 38463 38464 new_path=`$WHICH "$new_path" 2> /dev/null` 38465 # bat and cmd files are not always considered executable in MSYS causing which 38466 # to not find them 38467 if test "x$new_path" = x \ 38468 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38469 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38470 new_path="$path" 38471 38472 windows_path="$new_path" 38473 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38474 unix_path=`$CYGPATH -u "$windows_path"` 38475 new_path="$unix_path" 38476 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38477 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38478 new_path="$unix_path" 38479 fi 38480 38481 fi 38482 38483 if test "x$new_path" = x; then 38484 # It's still not found. Now this is an unrecoverable error. 38485 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 38486 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 38487 has_space=`$ECHO "$complete" | $GREP " "` 38488 if test "x$has_space" != x; then 38489 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38490 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38491 fi 38492 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 38493 fi 38494 fi 38495 38496 # Now new_path has a complete unix path to the binary 38497 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38498 # Keep paths in /bin as-is, but remove trailing .exe if any 38499 new_path="${new_path/%.exe/}" 38500 # Do not save /bin paths to all_fixpath_prefixes! 38501 else 38502 # Not in mixed or Windows style, start by that. 38503 new_path=`cmd //c echo $new_path` 38504 38505 input_path="$new_path" 38506 # Check if we need to convert this using DOS-style short mode. If the path 38507 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38508 # take no chances and rewrite it. 38509 # Note: m4 eats our [], so we need to use [ and ] instead. 38510 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38511 if test "x$has_forbidden_chars" != x; then 38512 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38513 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38514 fi 38515 38516 # Output is in $new_path 38517 38518 windows_path="$new_path" 38519 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38520 unix_path=`$CYGPATH -u "$windows_path"` 38521 new_path="$unix_path" 38522 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38523 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38524 new_path="$unix_path" 38525 fi 38526 38527 # remove trailing .exe if any 38528 new_path="${new_path/%.exe/}" 38529 38530 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38531 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38532 fi 38533 38534 else 38535 # We're on a unix platform. Hooray! :) 38536 # First separate the path from the arguments. This will split at the first 38537 # space. 38538 complete="$STRIP" 38539 path="${complete%% *}" 38540 tmp="$complete EOL" 38541 arguments="${tmp#* }" 38542 38543 # Cannot rely on the command "which" here since it doesn't always work. 38544 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38545 if test -z "$is_absolute_path"; then 38546 # Path to executable is not absolute. Find it. 38547 IFS_save="$IFS" 38548 IFS=: 38549 for p in $PATH; do 38550 if test -f "$p/$path" && test -x "$p/$path"; then 38551 new_path="$p/$path" 38552 break 38553 fi 38554 done 38555 IFS="$IFS_save" 38556 else 38557 # This is an absolute path, we can use it without further modifications. 38558 new_path="$path" 38559 fi 38560 38561 if test "x$new_path" = x; then 38562 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 38563 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 38564 has_space=`$ECHO "$complete" | $GREP " "` 38565 if test "x$has_space" != x; then 38566 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38567 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38568 fi 38569 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 38570 fi 38571 fi 38572 38573 # Now join together the path and the arguments once again 38574 if test "x$arguments" != xEOL; then 38575 new_complete="$new_path ${arguments% *}" 38576 else 38577 new_complete="$new_path" 38578 fi 38579 38580 if test "x$complete" != "x$new_complete"; then 38581 STRIP="$new_complete" 38582 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 38583 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 38584 fi 38585 fi 38586 38587 38588 38589 # Publish this variable in the help. 38590 38591 38592 if [ -z "${NM+x}" ]; then 38593 # The variable is not set by user, try to locate tool using the code snippet 38594 for ac_prog in nm 38595 do 38596 # Extract the first word of "$ac_prog", so it can be a program name with args. 38597 set dummy $ac_prog; ac_word=$2 38598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38599 $as_echo_n "checking for $ac_word... " >&6; } 38600 if ${ac_cv_path_NM+:} false; then : 38601 $as_echo_n "(cached) " >&6 38602 else 38603 case $NM in 38604 [\\/]* | ?:[\\/]*) 38605 ac_cv_path_NM="$NM" # Let the user override the test with a path. 38606 ;; 38607 *) 38608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38609 for as_dir in $PATH 38610 do 38611 IFS=$as_save_IFS 38612 test -z "$as_dir" && as_dir=. 38613 for ac_exec_ext in '' $ac_executable_extensions; do 38614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38615 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 38616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38617 break 2 38618 fi 38619 done 38620 done 38621 IFS=$as_save_IFS 38622 38623 ;; 38624 esac 38625 fi 38626 NM=$ac_cv_path_NM 38627 if test -n "$NM"; then 38628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 38629 $as_echo "$NM" >&6; } 38630 else 38631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38632 $as_echo "no" >&6; } 38633 fi 38634 38635 38636 test -n "$NM" && break 38637 done 38638 38639 else 38640 # The variable is set, but is it from the command line or the environment? 38641 38642 # Try to remove the string !NM! from our list. 38643 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 38644 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38645 # If it failed, the variable was not from the command line. Ignore it, 38646 # but warn the user (except for BASH, which is always set by the calling BASH). 38647 if test "xNM" != xBASH; then 38648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 38649 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 38650 fi 38651 # Try to locate tool using the code snippet 38652 for ac_prog in nm 38653 do 38654 # Extract the first word of "$ac_prog", so it can be a program name with args. 38655 set dummy $ac_prog; ac_word=$2 38656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38657 $as_echo_n "checking for $ac_word... " >&6; } 38658 if ${ac_cv_path_NM+:} false; then : 38659 $as_echo_n "(cached) " >&6 38660 else 38661 case $NM in 38662 [\\/]* | ?:[\\/]*) 38663 ac_cv_path_NM="$NM" # Let the user override the test with a path. 38664 ;; 38665 *) 38666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38667 for as_dir in $PATH 38668 do 38669 IFS=$as_save_IFS 38670 test -z "$as_dir" && as_dir=. 38671 for ac_exec_ext in '' $ac_executable_extensions; do 38672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38673 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 38674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38675 break 2 38676 fi 38677 done 38678 done 38679 IFS=$as_save_IFS 38680 38681 ;; 38682 esac 38683 fi 38684 NM=$ac_cv_path_NM 38685 if test -n "$NM"; then 38686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 38687 $as_echo "$NM" >&6; } 38688 else 38689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38690 $as_echo "no" >&6; } 38691 fi 38692 38693 38694 test -n "$NM" && break 38695 done 38696 38697 else 38698 # If it succeeded, then it was overridden by the user. We will use it 38699 # for the tool. 38700 38701 # First remove it from the list of overridden variables, so we can test 38702 # for unknown variables in the end. 38703 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38704 38705 # Check if we try to supply an empty value 38706 if test "x$NM" = x; then 38707 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 38708 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 38709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 38710 $as_echo_n "checking for NM... " >&6; } 38711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38712 $as_echo "disabled" >&6; } 38713 else 38714 # Check if the provided tool contains a complete path. 38715 tool_specified="$NM" 38716 tool_basename="${tool_specified##*/}" 38717 if test "x$tool_basename" = "x$tool_specified"; then 38718 # A command without a complete path is provided, search $PATH. 38719 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 38720 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 38721 # Extract the first word of "$tool_basename", so it can be a program name with args. 38722 set dummy $tool_basename; ac_word=$2 38723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38724 $as_echo_n "checking for $ac_word... " >&6; } 38725 if ${ac_cv_path_NM+:} false; then : 38726 $as_echo_n "(cached) " >&6 38727 else 38728 case $NM in 38729 [\\/]* | ?:[\\/]*) 38730 ac_cv_path_NM="$NM" # Let the user override the test with a path. 38731 ;; 38732 *) 38733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38734 for as_dir in $PATH 38735 do 38736 IFS=$as_save_IFS 38737 test -z "$as_dir" && as_dir=. 38738 for ac_exec_ext in '' $ac_executable_extensions; do 38739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38740 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 38741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38742 break 2 38743 fi 38744 done 38745 done 38746 IFS=$as_save_IFS 38747 38748 ;; 38749 esac 38750 fi 38751 NM=$ac_cv_path_NM 38752 if test -n "$NM"; then 38753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 38754 $as_echo "$NM" >&6; } 38755 else 38756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38757 $as_echo "no" >&6; } 38758 fi 38759 38760 38761 if test "x$NM" = x; then 38762 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38763 fi 38764 else 38765 # Otherwise we believe it is a complete path. Use it as it is. 38766 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 38767 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 38768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 38769 $as_echo_n "checking for NM... " >&6; } 38770 if test ! -x "$tool_specified"; then 38771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38772 $as_echo "not found" >&6; } 38773 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 38774 fi 38775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38776 $as_echo "$tool_specified" >&6; } 38777 fi 38778 fi 38779 fi 38780 38781 fi 38782 38783 38784 38785 # Only process if variable expands to non-empty 38786 38787 if test "x$NM" != x; then 38788 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38789 38790 # First separate the path from the arguments. This will split at the first 38791 # space. 38792 complete="$NM" 38793 path="${complete%% *}" 38794 tmp="$complete EOL" 38795 arguments="${tmp#* }" 38796 38797 # Input might be given as Windows format, start by converting to 38798 # unix format. 38799 new_path=`$CYGPATH -u "$path"` 38800 38801 # Now try to locate executable using which 38802 new_path=`$WHICH "$new_path" 2> /dev/null` 38803 # bat and cmd files are not always considered executable in cygwin causing which 38804 # to not find them 38805 if test "x$new_path" = x \ 38806 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38807 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38808 new_path=`$CYGPATH -u "$path"` 38809 fi 38810 if test "x$new_path" = x; then 38811 # Oops. Which didn't find the executable. 38812 # The splitting of arguments from the executable at a space might have been incorrect, 38813 # since paths with space are more likely in Windows. Give it another try with the whole 38814 # argument. 38815 path="$complete" 38816 arguments="EOL" 38817 new_path=`$CYGPATH -u "$path"` 38818 new_path=`$WHICH "$new_path" 2> /dev/null` 38819 # bat and cmd files are not always considered executable in cygwin causing which 38820 # to not find them 38821 if test "x$new_path" = x \ 38822 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38823 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38824 new_path=`$CYGPATH -u "$path"` 38825 fi 38826 if test "x$new_path" = x; then 38827 # It's still not found. Now this is an unrecoverable error. 38828 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38829 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38830 has_space=`$ECHO "$complete" | $GREP " "` 38831 if test "x$has_space" != x; then 38832 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38833 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38834 fi 38835 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38836 fi 38837 fi 38838 38839 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38840 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38841 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38842 # "foo.exe" is OK but "foo" is an error. 38843 # 38844 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38845 # It is also a way to make sure we got the proper file name for the real test later on. 38846 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38847 if test "x$test_shortpath" = x; then 38848 # Short path failed, file does not exist as specified. 38849 # Try adding .exe or .cmd 38850 if test -f "${new_path}.exe"; then 38851 input_to_shortpath="${new_path}.exe" 38852 elif test -f "${new_path}.cmd"; then 38853 input_to_shortpath="${new_path}.cmd" 38854 else 38855 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 38856 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 38857 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38858 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38859 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38860 fi 38861 else 38862 input_to_shortpath="$new_path" 38863 fi 38864 38865 # Call helper function which possibly converts this using DOS-style short mode. 38866 # If so, the updated path is stored in $new_path. 38867 new_path="$input_to_shortpath" 38868 38869 input_path="$input_to_shortpath" 38870 # Check if we need to convert this using DOS-style short mode. If the path 38871 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38872 # take no chances and rewrite it. 38873 # Note: m4 eats our [], so we need to use [ and ] instead. 38874 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38875 if test "x$has_forbidden_chars" != x; then 38876 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38877 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38878 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38879 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38880 # Going to short mode and back again did indeed matter. Since short mode is 38881 # case insensitive, let's make it lowercase to improve readability. 38882 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38883 # Now convert it back to Unix-style (cygpath) 38884 input_path=`$CYGPATH -u "$shortmode_path"` 38885 new_path="$input_path" 38886 fi 38887 fi 38888 38889 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38890 if test "x$test_cygdrive_prefix" = x; then 38891 # As a simple fix, exclude /usr/bin since it's not a real path. 38892 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38893 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38894 # a path prefixed by /cygdrive for fixpath to work. 38895 new_path="$CYGWIN_ROOT_PATH$input_path" 38896 fi 38897 fi 38898 38899 # remove trailing .exe if any 38900 new_path="${new_path/%.exe/}" 38901 38902 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38903 38904 # First separate the path from the arguments. This will split at the first 38905 # space. 38906 complete="$NM" 38907 path="${complete%% *}" 38908 tmp="$complete EOL" 38909 arguments="${tmp#* }" 38910 38911 # Input might be given as Windows format, start by converting to 38912 # unix format. 38913 new_path="$path" 38914 38915 windows_path="$new_path" 38916 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38917 unix_path=`$CYGPATH -u "$windows_path"` 38918 new_path="$unix_path" 38919 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38920 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38921 new_path="$unix_path" 38922 fi 38923 38924 38925 # Now try to locate executable using which 38926 new_path=`$WHICH "$new_path" 2> /dev/null` 38927 38928 if test "x$new_path" = x; then 38929 # Oops. Which didn't find the executable. 38930 # The splitting of arguments from the executable at a space might have been incorrect, 38931 # since paths with space are more likely in Windows. Give it another try with the whole 38932 # argument. 38933 path="$complete" 38934 arguments="EOL" 38935 new_path="$path" 38936 38937 windows_path="$new_path" 38938 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38939 unix_path=`$CYGPATH -u "$windows_path"` 38940 new_path="$unix_path" 38941 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38942 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38943 new_path="$unix_path" 38944 fi 38945 38946 38947 new_path=`$WHICH "$new_path" 2> /dev/null` 38948 # bat and cmd files are not always considered executable in MSYS causing which 38949 # to not find them 38950 if test "x$new_path" = x \ 38951 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38952 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38953 new_path="$path" 38954 38955 windows_path="$new_path" 38956 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38957 unix_path=`$CYGPATH -u "$windows_path"` 38958 new_path="$unix_path" 38959 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38960 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38961 new_path="$unix_path" 38962 fi 38963 38964 fi 38965 38966 if test "x$new_path" = x; then 38967 # It's still not found. Now this is an unrecoverable error. 38968 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38969 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38970 has_space=`$ECHO "$complete" | $GREP " "` 38971 if test "x$has_space" != x; then 38972 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38973 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38974 fi 38975 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38976 fi 38977 fi 38978 38979 # Now new_path has a complete unix path to the binary 38980 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38981 # Keep paths in /bin as-is, but remove trailing .exe if any 38982 new_path="${new_path/%.exe/}" 38983 # Do not save /bin paths to all_fixpath_prefixes! 38984 else 38985 # Not in mixed or Windows style, start by that. 38986 new_path=`cmd //c echo $new_path` 38987 38988 input_path="$new_path" 38989 # Check if we need to convert this using DOS-style short mode. If the path 38990 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38991 # take no chances and rewrite it. 38992 # Note: m4 eats our [], so we need to use [ and ] instead. 38993 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38994 if test "x$has_forbidden_chars" != x; then 38995 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38996 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38997 fi 38998 38999 # Output is in $new_path 39000 39001 windows_path="$new_path" 39002 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39003 unix_path=`$CYGPATH -u "$windows_path"` 39004 new_path="$unix_path" 39005 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39006 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39007 new_path="$unix_path" 39008 fi 39009 39010 # remove trailing .exe if any 39011 new_path="${new_path/%.exe/}" 39012 39013 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39014 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39015 fi 39016 39017 else 39018 # We're on a unix platform. Hooray! :) 39019 # First separate the path from the arguments. This will split at the first 39020 # space. 39021 complete="$NM" 39022 path="${complete%% *}" 39023 tmp="$complete EOL" 39024 arguments="${tmp#* }" 39025 39026 # Cannot rely on the command "which" here since it doesn't always work. 39027 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39028 if test -z "$is_absolute_path"; then 39029 # Path to executable is not absolute. Find it. 39030 IFS_save="$IFS" 39031 IFS=: 39032 for p in $PATH; do 39033 if test -f "$p/$path" && test -x "$p/$path"; then 39034 new_path="$p/$path" 39035 break 39036 fi 39037 done 39038 IFS="$IFS_save" 39039 else 39040 # This is an absolute path, we can use it without further modifications. 39041 new_path="$path" 39042 fi 39043 39044 if test "x$new_path" = x; then 39045 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 39046 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 39047 has_space=`$ECHO "$complete" | $GREP " "` 39048 if test "x$has_space" != x; then 39049 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39050 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39051 fi 39052 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 39053 fi 39054 fi 39055 39056 # Now join together the path and the arguments once again 39057 if test "x$arguments" != xEOL; then 39058 new_complete="$new_path ${arguments% *}" 39059 else 39060 new_complete="$new_path" 39061 fi 39062 39063 if test "x$complete" != "x$new_complete"; then 39064 NM="$new_complete" 39065 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 39066 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 39067 fi 39068 fi 39069 39070 39071 39072 # Publish this variable in the help. 39073 39074 39075 if [ -z "${GNM+x}" ]; then 39076 # The variable is not set by user, try to locate tool using the code snippet 39077 for ac_prog in gnm 39078 do 39079 # Extract the first word of "$ac_prog", so it can be a program name with args. 39080 set dummy $ac_prog; ac_word=$2 39081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39082 $as_echo_n "checking for $ac_word... " >&6; } 39083 if ${ac_cv_path_GNM+:} false; then : 39084 $as_echo_n "(cached) " >&6 39085 else 39086 case $GNM in 39087 [\\/]* | ?:[\\/]*) 39088 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 39089 ;; 39090 *) 39091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39092 for as_dir in $PATH 39093 do 39094 IFS=$as_save_IFS 39095 test -z "$as_dir" && as_dir=. 39096 for ac_exec_ext in '' $ac_executable_extensions; do 39097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39098 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 39099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39100 break 2 39101 fi 39102 done 39103 done 39104 IFS=$as_save_IFS 39105 39106 ;; 39107 esac 39108 fi 39109 GNM=$ac_cv_path_GNM 39110 if test -n "$GNM"; then 39111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 39112 $as_echo "$GNM" >&6; } 39113 else 39114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39115 $as_echo "no" >&6; } 39116 fi 39117 39118 39119 test -n "$GNM" && break 39120 done 39121 39122 else 39123 # The variable is set, but is it from the command line or the environment? 39124 39125 # Try to remove the string !GNM! from our list. 39126 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 39127 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39128 # If it failed, the variable was not from the command line. Ignore it, 39129 # but warn the user (except for BASH, which is always set by the calling BASH). 39130 if test "xGNM" != xBASH; then 39131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 39132 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 39133 fi 39134 # Try to locate tool using the code snippet 39135 for ac_prog in gnm 39136 do 39137 # Extract the first word of "$ac_prog", so it can be a program name with args. 39138 set dummy $ac_prog; ac_word=$2 39139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39140 $as_echo_n "checking for $ac_word... " >&6; } 39141 if ${ac_cv_path_GNM+:} false; then : 39142 $as_echo_n "(cached) " >&6 39143 else 39144 case $GNM in 39145 [\\/]* | ?:[\\/]*) 39146 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 39147 ;; 39148 *) 39149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39150 for as_dir in $PATH 39151 do 39152 IFS=$as_save_IFS 39153 test -z "$as_dir" && as_dir=. 39154 for ac_exec_ext in '' $ac_executable_extensions; do 39155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39156 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 39157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39158 break 2 39159 fi 39160 done 39161 done 39162 IFS=$as_save_IFS 39163 39164 ;; 39165 esac 39166 fi 39167 GNM=$ac_cv_path_GNM 39168 if test -n "$GNM"; then 39169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 39170 $as_echo "$GNM" >&6; } 39171 else 39172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39173 $as_echo "no" >&6; } 39174 fi 39175 39176 39177 test -n "$GNM" && break 39178 done 39179 39180 else 39181 # If it succeeded, then it was overridden by the user. We will use it 39182 # for the tool. 39183 39184 # First remove it from the list of overridden variables, so we can test 39185 # for unknown variables in the end. 39186 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39187 39188 # Check if we try to supply an empty value 39189 if test "x$GNM" = x; then 39190 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GNM= (no value)" >&5 39191 $as_echo "$as_me: Setting user supplied tool GNM= (no value)" >&6;} 39192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 39193 $as_echo_n "checking for GNM... " >&6; } 39194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 39195 $as_echo "disabled" >&6; } 39196 else 39197 # Check if the provided tool contains a complete path. 39198 tool_specified="$GNM" 39199 tool_basename="${tool_specified##*/}" 39200 if test "x$tool_basename" = "x$tool_specified"; then 39201 # A command without a complete path is provided, search $PATH. 39202 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 39203 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 39204 # Extract the first word of "$tool_basename", so it can be a program name with args. 39205 set dummy $tool_basename; ac_word=$2 39206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39207 $as_echo_n "checking for $ac_word... " >&6; } 39208 if ${ac_cv_path_GNM+:} false; then : 39209 $as_echo_n "(cached) " >&6 39210 else 39211 case $GNM in 39212 [\\/]* | ?:[\\/]*) 39213 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 39214 ;; 39215 *) 39216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39217 for as_dir in $PATH 39218 do 39219 IFS=$as_save_IFS 39220 test -z "$as_dir" && as_dir=. 39221 for ac_exec_ext in '' $ac_executable_extensions; do 39222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39223 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 39224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39225 break 2 39226 fi 39227 done 39228 done 39229 IFS=$as_save_IFS 39230 39231 ;; 39232 esac 39233 fi 39234 GNM=$ac_cv_path_GNM 39235 if test -n "$GNM"; then 39236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 39237 $as_echo "$GNM" >&6; } 39238 else 39239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39240 $as_echo "no" >&6; } 39241 fi 39242 39243 39244 if test "x$GNM" = x; then 39245 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39246 fi 39247 else 39248 # Otherwise we believe it is a complete path. Use it as it is. 39249 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 39250 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 39251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 39252 $as_echo_n "checking for GNM... " >&6; } 39253 if test ! -x "$tool_specified"; then 39254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39255 $as_echo "not found" >&6; } 39256 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 39257 fi 39258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39259 $as_echo "$tool_specified" >&6; } 39260 fi 39261 fi 39262 fi 39263 39264 fi 39265 39266 39267 39268 # Only process if variable expands to non-empty 39269 39270 if test "x$GNM" != x; then 39271 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39272 39273 # First separate the path from the arguments. This will split at the first 39274 # space. 39275 complete="$GNM" 39276 path="${complete%% *}" 39277 tmp="$complete EOL" 39278 arguments="${tmp#* }" 39279 39280 # Input might be given as Windows format, start by converting to 39281 # unix format. 39282 new_path=`$CYGPATH -u "$path"` 39283 39284 # Now try to locate executable using which 39285 new_path=`$WHICH "$new_path" 2> /dev/null` 39286 # bat and cmd files are not always considered executable in cygwin causing which 39287 # to not find them 39288 if test "x$new_path" = x \ 39289 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39290 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39291 new_path=`$CYGPATH -u "$path"` 39292 fi 39293 if test "x$new_path" = x; then 39294 # Oops. Which didn't find the executable. 39295 # The splitting of arguments from the executable at a space might have been incorrect, 39296 # since paths with space are more likely in Windows. Give it another try with the whole 39297 # argument. 39298 path="$complete" 39299 arguments="EOL" 39300 new_path=`$CYGPATH -u "$path"` 39301 new_path=`$WHICH "$new_path" 2> /dev/null` 39302 # bat and cmd files are not always considered executable in cygwin causing which 39303 # to not find them 39304 if test "x$new_path" = x \ 39305 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39306 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39307 new_path=`$CYGPATH -u "$path"` 39308 fi 39309 if test "x$new_path" = x; then 39310 # It's still not found. Now this is an unrecoverable error. 39311 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 39312 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 39313 has_space=`$ECHO "$complete" | $GREP " "` 39314 if test "x$has_space" != x; then 39315 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39316 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39317 fi 39318 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 39319 fi 39320 fi 39321 39322 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39323 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39324 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39325 # "foo.exe" is OK but "foo" is an error. 39326 # 39327 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39328 # It is also a way to make sure we got the proper file name for the real test later on. 39329 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39330 if test "x$test_shortpath" = x; then 39331 # Short path failed, file does not exist as specified. 39332 # Try adding .exe or .cmd 39333 if test -f "${new_path}.exe"; then 39334 input_to_shortpath="${new_path}.exe" 39335 elif test -f "${new_path}.cmd"; then 39336 input_to_shortpath="${new_path}.cmd" 39337 else 39338 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 39339 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 39340 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39341 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39342 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 39343 fi 39344 else 39345 input_to_shortpath="$new_path" 39346 fi 39347 39348 # Call helper function which possibly converts this using DOS-style short mode. 39349 # If so, the updated path is stored in $new_path. 39350 new_path="$input_to_shortpath" 39351 39352 input_path="$input_to_shortpath" 39353 # Check if we need to convert this using DOS-style short mode. If the path 39354 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39355 # take no chances and rewrite it. 39356 # Note: m4 eats our [], so we need to use [ and ] instead. 39357 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39358 if test "x$has_forbidden_chars" != x; then 39359 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39360 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39361 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39362 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39363 # Going to short mode and back again did indeed matter. Since short mode is 39364 # case insensitive, let's make it lowercase to improve readability. 39365 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39366 # Now convert it back to Unix-style (cygpath) 39367 input_path=`$CYGPATH -u "$shortmode_path"` 39368 new_path="$input_path" 39369 fi 39370 fi 39371 39372 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39373 if test "x$test_cygdrive_prefix" = x; then 39374 # As a simple fix, exclude /usr/bin since it's not a real path. 39375 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39376 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39377 # a path prefixed by /cygdrive for fixpath to work. 39378 new_path="$CYGWIN_ROOT_PATH$input_path" 39379 fi 39380 fi 39381 39382 # remove trailing .exe if any 39383 new_path="${new_path/%.exe/}" 39384 39385 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39386 39387 # First separate the path from the arguments. This will split at the first 39388 # space. 39389 complete="$GNM" 39390 path="${complete%% *}" 39391 tmp="$complete EOL" 39392 arguments="${tmp#* }" 39393 39394 # Input might be given as Windows format, start by converting to 39395 # unix format. 39396 new_path="$path" 39397 39398 windows_path="$new_path" 39399 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39400 unix_path=`$CYGPATH -u "$windows_path"` 39401 new_path="$unix_path" 39402 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39403 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39404 new_path="$unix_path" 39405 fi 39406 39407 39408 # Now try to locate executable using which 39409 new_path=`$WHICH "$new_path" 2> /dev/null` 39410 39411 if test "x$new_path" = x; then 39412 # Oops. Which didn't find the executable. 39413 # The splitting of arguments from the executable at a space might have been incorrect, 39414 # since paths with space are more likely in Windows. Give it another try with the whole 39415 # argument. 39416 path="$complete" 39417 arguments="EOL" 39418 new_path="$path" 39419 39420 windows_path="$new_path" 39421 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39422 unix_path=`$CYGPATH -u "$windows_path"` 39423 new_path="$unix_path" 39424 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39425 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39426 new_path="$unix_path" 39427 fi 39428 39429 39430 new_path=`$WHICH "$new_path" 2> /dev/null` 39431 # bat and cmd files are not always considered executable in MSYS causing which 39432 # to not find them 39433 if test "x$new_path" = x \ 39434 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39435 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39436 new_path="$path" 39437 39438 windows_path="$new_path" 39439 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39440 unix_path=`$CYGPATH -u "$windows_path"` 39441 new_path="$unix_path" 39442 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39443 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39444 new_path="$unix_path" 39445 fi 39446 39447 fi 39448 39449 if test "x$new_path" = x; then 39450 # It's still not found. Now this is an unrecoverable error. 39451 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 39452 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 39453 has_space=`$ECHO "$complete" | $GREP " "` 39454 if test "x$has_space" != x; then 39455 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39456 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39457 fi 39458 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 39459 fi 39460 fi 39461 39462 # Now new_path has a complete unix path to the binary 39463 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39464 # Keep paths in /bin as-is, but remove trailing .exe if any 39465 new_path="${new_path/%.exe/}" 39466 # Do not save /bin paths to all_fixpath_prefixes! 39467 else 39468 # Not in mixed or Windows style, start by that. 39469 new_path=`cmd //c echo $new_path` 39470 39471 input_path="$new_path" 39472 # Check if we need to convert this using DOS-style short mode. If the path 39473 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39474 # take no chances and rewrite it. 39475 # Note: m4 eats our [], so we need to use [ and ] instead. 39476 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39477 if test "x$has_forbidden_chars" != x; then 39478 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39479 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39480 fi 39481 39482 # Output is in $new_path 39483 39484 windows_path="$new_path" 39485 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39486 unix_path=`$CYGPATH -u "$windows_path"` 39487 new_path="$unix_path" 39488 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39489 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39490 new_path="$unix_path" 39491 fi 39492 39493 # remove trailing .exe if any 39494 new_path="${new_path/%.exe/}" 39495 39496 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39497 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39498 fi 39499 39500 else 39501 # We're on a unix platform. Hooray! :) 39502 # First separate the path from the arguments. This will split at the first 39503 # space. 39504 complete="$GNM" 39505 path="${complete%% *}" 39506 tmp="$complete EOL" 39507 arguments="${tmp#* }" 39508 39509 # Cannot rely on the command "which" here since it doesn't always work. 39510 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39511 if test -z "$is_absolute_path"; then 39512 # Path to executable is not absolute. Find it. 39513 IFS_save="$IFS" 39514 IFS=: 39515 for p in $PATH; do 39516 if test -f "$p/$path" && test -x "$p/$path"; then 39517 new_path="$p/$path" 39518 break 39519 fi 39520 done 39521 IFS="$IFS_save" 39522 else 39523 # This is an absolute path, we can use it without further modifications. 39524 new_path="$path" 39525 fi 39526 39527 if test "x$new_path" = x; then 39528 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 39529 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 39530 has_space=`$ECHO "$complete" | $GREP " "` 39531 if test "x$has_space" != x; then 39532 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39533 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39534 fi 39535 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 39536 fi 39537 fi 39538 39539 # Now join together the path and the arguments once again 39540 if test "x$arguments" != xEOL; then 39541 new_complete="$new_path ${arguments% *}" 39542 else 39543 new_complete="$new_path" 39544 fi 39545 39546 if test "x$complete" != "x$new_complete"; then 39547 GNM="$new_complete" 39548 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 39549 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 39550 fi 39551 fi 39552 39553 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 39554 # FIXME: we should unify this with the solaris case above. 39555 39556 39557 # Publish this variable in the help. 39558 39559 39560 if [ -z "${STRIP+x}" ]; then 39561 # The variable is not set by user, try to locate tool using the code snippet 39562 if test -n "$ac_tool_prefix"; then 39563 for ac_prog in strip 39564 do 39565 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 39566 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 39567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39568 $as_echo_n "checking for $ac_word... " >&6; } 39569 if ${ac_cv_prog_STRIP+:} false; then : 39570 $as_echo_n "(cached) " >&6 39571 else 39572 if test -n "$STRIP"; then 39573 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 39574 else 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 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 39583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39584 break 2 39585 fi 39586 done 39587 done 39588 IFS=$as_save_IFS 39589 39590 fi 39591 fi 39592 STRIP=$ac_cv_prog_STRIP 39593 if test -n "$STRIP"; then 39594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 39595 $as_echo "$STRIP" >&6; } 39596 else 39597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39598 $as_echo "no" >&6; } 39599 fi 39600 39601 39602 test -n "$STRIP" && break 39603 done 39604 fi 39605 if test -z "$STRIP"; then 39606 ac_ct_STRIP=$STRIP 39607 for ac_prog in strip 39608 do 39609 # Extract the first word of "$ac_prog", so it can be a program name with args. 39610 set dummy $ac_prog; ac_word=$2 39611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39612 $as_echo_n "checking for $ac_word... " >&6; } 39613 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 39614 $as_echo_n "(cached) " >&6 39615 else 39616 if test -n "$ac_ct_STRIP"; then 39617 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 39618 else 39619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39620 for as_dir in $PATH 39621 do 39622 IFS=$as_save_IFS 39623 test -z "$as_dir" && as_dir=. 39624 for ac_exec_ext in '' $ac_executable_extensions; do 39625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39626 ac_cv_prog_ac_ct_STRIP="$ac_prog" 39627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39628 break 2 39629 fi 39630 done 39631 done 39632 IFS=$as_save_IFS 39633 39634 fi 39635 fi 39636 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 39637 if test -n "$ac_ct_STRIP"; then 39638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 39639 $as_echo "$ac_ct_STRIP" >&6; } 39640 else 39641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39642 $as_echo "no" >&6; } 39643 fi 39644 39645 39646 test -n "$ac_ct_STRIP" && break 39647 done 39648 39649 if test "x$ac_ct_STRIP" = x; then 39650 STRIP="" 39651 else 39652 case $cross_compiling:$ac_tool_warned in 39653 yes:) 39654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 39655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 39656 ac_tool_warned=yes ;; 39657 esac 39658 STRIP=$ac_ct_STRIP 39659 fi 39660 fi 39661 39662 else 39663 # The variable is set, but is it from the command line or the environment? 39664 39665 # Try to remove the string !STRIP! from our list. 39666 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 39667 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39668 # If it failed, the variable was not from the command line. Ignore it, 39669 # but warn the user (except for BASH, which is always set by the calling BASH). 39670 if test "xSTRIP" != xBASH; then 39671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 39672 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 39673 fi 39674 # Try to locate tool using the code snippet 39675 if test -n "$ac_tool_prefix"; then 39676 for ac_prog in strip 39677 do 39678 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 39679 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 39680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39681 $as_echo_n "checking for $ac_word... " >&6; } 39682 if ${ac_cv_prog_STRIP+:} false; then : 39683 $as_echo_n "(cached) " >&6 39684 else 39685 if test -n "$STRIP"; then 39686 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 39687 else 39688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39689 for as_dir in $PATH 39690 do 39691 IFS=$as_save_IFS 39692 test -z "$as_dir" && as_dir=. 39693 for ac_exec_ext in '' $ac_executable_extensions; do 39694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39695 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 39696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39697 break 2 39698 fi 39699 done 39700 done 39701 IFS=$as_save_IFS 39702 39703 fi 39704 fi 39705 STRIP=$ac_cv_prog_STRIP 39706 if test -n "$STRIP"; then 39707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 39708 $as_echo "$STRIP" >&6; } 39709 else 39710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39711 $as_echo "no" >&6; } 39712 fi 39713 39714 39715 test -n "$STRIP" && break 39716 done 39717 fi 39718 if test -z "$STRIP"; then 39719 ac_ct_STRIP=$STRIP 39720 for ac_prog in strip 39721 do 39722 # Extract the first word of "$ac_prog", so it can be a program name with args. 39723 set dummy $ac_prog; ac_word=$2 39724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39725 $as_echo_n "checking for $ac_word... " >&6; } 39726 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 39727 $as_echo_n "(cached) " >&6 39728 else 39729 if test -n "$ac_ct_STRIP"; then 39730 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 39731 else 39732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39733 for as_dir in $PATH 39734 do 39735 IFS=$as_save_IFS 39736 test -z "$as_dir" && as_dir=. 39737 for ac_exec_ext in '' $ac_executable_extensions; do 39738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39739 ac_cv_prog_ac_ct_STRIP="$ac_prog" 39740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39741 break 2 39742 fi 39743 done 39744 done 39745 IFS=$as_save_IFS 39746 39747 fi 39748 fi 39749 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 39750 if test -n "$ac_ct_STRIP"; then 39751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 39752 $as_echo "$ac_ct_STRIP" >&6; } 39753 else 39754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39755 $as_echo "no" >&6; } 39756 fi 39757 39758 39759 test -n "$ac_ct_STRIP" && break 39760 done 39761 39762 if test "x$ac_ct_STRIP" = x; then 39763 STRIP="" 39764 else 39765 case $cross_compiling:$ac_tool_warned in 39766 yes:) 39767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 39768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 39769 ac_tool_warned=yes ;; 39770 esac 39771 STRIP=$ac_ct_STRIP 39772 fi 39773 fi 39774 39775 else 39776 # If it succeeded, then it was overridden by the user. We will use it 39777 # for the tool. 39778 39779 # First remove it from the list of overridden variables, so we can test 39780 # for unknown variables in the end. 39781 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39782 39783 # Check if we try to supply an empty value 39784 if test "x$STRIP" = x; then 39785 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 39786 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 39787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 39788 $as_echo_n "checking for STRIP... " >&6; } 39789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 39790 $as_echo "disabled" >&6; } 39791 else 39792 # Check if the provided tool contains a complete path. 39793 tool_specified="$STRIP" 39794 tool_basename="${tool_specified##*/}" 39795 if test "x$tool_basename" = "x$tool_specified"; then 39796 # A command without a complete path is provided, search $PATH. 39797 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 39798 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 39799 # Extract the first word of "$tool_basename", so it can be a program name with args. 39800 set dummy $tool_basename; ac_word=$2 39801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39802 $as_echo_n "checking for $ac_word... " >&6; } 39803 if ${ac_cv_path_STRIP+:} false; then : 39804 $as_echo_n "(cached) " >&6 39805 else 39806 case $STRIP in 39807 [\\/]* | ?:[\\/]*) 39808 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 39809 ;; 39810 *) 39811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39812 for as_dir in $PATH 39813 do 39814 IFS=$as_save_IFS 39815 test -z "$as_dir" && as_dir=. 39816 for ac_exec_ext in '' $ac_executable_extensions; do 39817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39818 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 39819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39820 break 2 39821 fi 39822 done 39823 done 39824 IFS=$as_save_IFS 39825 39826 ;; 39827 esac 39828 fi 39829 STRIP=$ac_cv_path_STRIP 39830 if test -n "$STRIP"; then 39831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 39832 $as_echo "$STRIP" >&6; } 39833 else 39834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39835 $as_echo "no" >&6; } 39836 fi 39837 39838 39839 if test "x$STRIP" = x; then 39840 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39841 fi 39842 else 39843 # Otherwise we believe it is a complete path. Use it as it is. 39844 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 39845 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 39846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 39847 $as_echo_n "checking for STRIP... " >&6; } 39848 if test ! -x "$tool_specified"; then 39849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39850 $as_echo "not found" >&6; } 39851 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 39852 fi 39853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39854 $as_echo "$tool_specified" >&6; } 39855 fi 39856 fi 39857 fi 39858 39859 fi 39860 39861 39862 39863 # Only process if variable expands to non-empty 39864 39865 if test "x$STRIP" != x; then 39866 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39867 39868 # First separate the path from the arguments. This will split at the first 39869 # space. 39870 complete="$STRIP" 39871 path="${complete%% *}" 39872 tmp="$complete EOL" 39873 arguments="${tmp#* }" 39874 39875 # Input might be given as Windows format, start by converting to 39876 # unix format. 39877 new_path=`$CYGPATH -u "$path"` 39878 39879 # Now try to locate executable using which 39880 new_path=`$WHICH "$new_path" 2> /dev/null` 39881 # bat and cmd files are not always considered executable in cygwin causing which 39882 # to not find them 39883 if test "x$new_path" = x \ 39884 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39885 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39886 new_path=`$CYGPATH -u "$path"` 39887 fi 39888 if test "x$new_path" = x; then 39889 # Oops. Which didn't find the executable. 39890 # The splitting of arguments from the executable at a space might have been incorrect, 39891 # since paths with space are more likely in Windows. Give it another try with the whole 39892 # argument. 39893 path="$complete" 39894 arguments="EOL" 39895 new_path=`$CYGPATH -u "$path"` 39896 new_path=`$WHICH "$new_path" 2> /dev/null` 39897 # bat and cmd files are not always considered executable in cygwin causing which 39898 # to not find them 39899 if test "x$new_path" = x \ 39900 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39901 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39902 new_path=`$CYGPATH -u "$path"` 39903 fi 39904 if test "x$new_path" = x; then 39905 # It's still not found. Now this is an unrecoverable error. 39906 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 39907 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 39908 has_space=`$ECHO "$complete" | $GREP " "` 39909 if test "x$has_space" != x; then 39910 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39911 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39912 fi 39913 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 39914 fi 39915 fi 39916 39917 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39918 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39919 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39920 # "foo.exe" is OK but "foo" is an error. 39921 # 39922 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39923 # It is also a way to make sure we got the proper file name for the real test later on. 39924 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39925 if test "x$test_shortpath" = x; then 39926 # Short path failed, file does not exist as specified. 39927 # Try adding .exe or .cmd 39928 if test -f "${new_path}.exe"; then 39929 input_to_shortpath="${new_path}.exe" 39930 elif test -f "${new_path}.cmd"; then 39931 input_to_shortpath="${new_path}.cmd" 39932 else 39933 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 39934 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 39935 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39936 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39937 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 39938 fi 39939 else 39940 input_to_shortpath="$new_path" 39941 fi 39942 39943 # Call helper function which possibly converts this using DOS-style short mode. 39944 # If so, the updated path is stored in $new_path. 39945 new_path="$input_to_shortpath" 39946 39947 input_path="$input_to_shortpath" 39948 # Check if we need to convert this using DOS-style short mode. If the path 39949 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39950 # take no chances and rewrite it. 39951 # Note: m4 eats our [], so we need to use [ and ] instead. 39952 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39953 if test "x$has_forbidden_chars" != x; then 39954 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39955 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39956 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39957 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39958 # Going to short mode and back again did indeed matter. Since short mode is 39959 # case insensitive, let's make it lowercase to improve readability. 39960 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39961 # Now convert it back to Unix-style (cygpath) 39962 input_path=`$CYGPATH -u "$shortmode_path"` 39963 new_path="$input_path" 39964 fi 39965 fi 39966 39967 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39968 if test "x$test_cygdrive_prefix" = x; then 39969 # As a simple fix, exclude /usr/bin since it's not a real path. 39970 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39971 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39972 # a path prefixed by /cygdrive for fixpath to work. 39973 new_path="$CYGWIN_ROOT_PATH$input_path" 39974 fi 39975 fi 39976 39977 # remove trailing .exe if any 39978 new_path="${new_path/%.exe/}" 39979 39980 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39981 39982 # First separate the path from the arguments. This will split at the first 39983 # space. 39984 complete="$STRIP" 39985 path="${complete%% *}" 39986 tmp="$complete EOL" 39987 arguments="${tmp#* }" 39988 39989 # Input might be given as Windows format, start by converting to 39990 # unix format. 39991 new_path="$path" 39992 39993 windows_path="$new_path" 39994 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39995 unix_path=`$CYGPATH -u "$windows_path"` 39996 new_path="$unix_path" 39997 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39998 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39999 new_path="$unix_path" 40000 fi 40001 40002 40003 # Now try to locate executable using which 40004 new_path=`$WHICH "$new_path" 2> /dev/null` 40005 40006 if test "x$new_path" = x; then 40007 # Oops. Which didn't find the executable. 40008 # The splitting of arguments from the executable at a space might have been incorrect, 40009 # since paths with space are more likely in Windows. Give it another try with the whole 40010 # argument. 40011 path="$complete" 40012 arguments="EOL" 40013 new_path="$path" 40014 40015 windows_path="$new_path" 40016 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40017 unix_path=`$CYGPATH -u "$windows_path"` 40018 new_path="$unix_path" 40019 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40020 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40021 new_path="$unix_path" 40022 fi 40023 40024 40025 new_path=`$WHICH "$new_path" 2> /dev/null` 40026 # bat and cmd files are not always considered executable in MSYS causing which 40027 # to not find them 40028 if test "x$new_path" = x \ 40029 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40030 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40031 new_path="$path" 40032 40033 windows_path="$new_path" 40034 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40035 unix_path=`$CYGPATH -u "$windows_path"` 40036 new_path="$unix_path" 40037 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40038 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40039 new_path="$unix_path" 40040 fi 40041 40042 fi 40043 40044 if test "x$new_path" = x; then 40045 # It's still not found. Now this is an unrecoverable error. 40046 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 40047 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 40048 has_space=`$ECHO "$complete" | $GREP " "` 40049 if test "x$has_space" != x; then 40050 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40051 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40052 fi 40053 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40054 fi 40055 fi 40056 40057 # Now new_path has a complete unix path to the binary 40058 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40059 # Keep paths in /bin as-is, but remove trailing .exe if any 40060 new_path="${new_path/%.exe/}" 40061 # Do not save /bin paths to all_fixpath_prefixes! 40062 else 40063 # Not in mixed or Windows style, start by that. 40064 new_path=`cmd //c echo $new_path` 40065 40066 input_path="$new_path" 40067 # Check if we need to convert this using DOS-style short mode. If the path 40068 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40069 # take no chances and rewrite it. 40070 # Note: m4 eats our [], so we need to use [ and ] instead. 40071 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40072 if test "x$has_forbidden_chars" != x; then 40073 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40074 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40075 fi 40076 40077 # Output is in $new_path 40078 40079 windows_path="$new_path" 40080 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40081 unix_path=`$CYGPATH -u "$windows_path"` 40082 new_path="$unix_path" 40083 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40084 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40085 new_path="$unix_path" 40086 fi 40087 40088 # remove trailing .exe if any 40089 new_path="${new_path/%.exe/}" 40090 40091 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40092 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40093 fi 40094 40095 else 40096 # We're on a unix platform. Hooray! :) 40097 # First separate the path from the arguments. This will split at the first 40098 # space. 40099 complete="$STRIP" 40100 path="${complete%% *}" 40101 tmp="$complete EOL" 40102 arguments="${tmp#* }" 40103 40104 # Cannot rely on the command "which" here since it doesn't always work. 40105 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40106 if test -z "$is_absolute_path"; then 40107 # Path to executable is not absolute. Find it. 40108 IFS_save="$IFS" 40109 IFS=: 40110 for p in $PATH; do 40111 if test -f "$p/$path" && test -x "$p/$path"; then 40112 new_path="$p/$path" 40113 break 40114 fi 40115 done 40116 IFS="$IFS_save" 40117 else 40118 # This is an absolute path, we can use it without further modifications. 40119 new_path="$path" 40120 fi 40121 40122 if test "x$new_path" = x; then 40123 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 40124 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 40125 has_space=`$ECHO "$complete" | $GREP " "` 40126 if test "x$has_space" != x; then 40127 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40128 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40129 fi 40130 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40131 fi 40132 fi 40133 40134 # Now join together the path and the arguments once again 40135 if test "x$arguments" != xEOL; then 40136 new_complete="$new_path ${arguments% *}" 40137 else 40138 new_complete="$new_path" 40139 fi 40140 40141 if test "x$complete" != "x$new_complete"; then 40142 STRIP="$new_complete" 40143 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 40144 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 40145 fi 40146 fi 40147 40148 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40149 40150 40151 # Publish this variable in the help. 40152 40153 40154 if [ -z "${NM+x}" ]; then 40155 # The variable is not set by user, try to locate tool using the code snippet 40156 if test -n "$ac_tool_prefix"; then 40157 for ac_prog in nm gcc-nm 40158 do 40159 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 40160 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 40161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40162 $as_echo_n "checking for $ac_word... " >&6; } 40163 if ${ac_cv_prog_NM+:} false; then : 40164 $as_echo_n "(cached) " >&6 40165 else 40166 if test -n "$NM"; then 40167 ac_cv_prog_NM="$NM" # Let the user override the test. 40168 else 40169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40170 for as_dir in $PATH 40171 do 40172 IFS=$as_save_IFS 40173 test -z "$as_dir" && as_dir=. 40174 for ac_exec_ext in '' $ac_executable_extensions; do 40175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40176 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 40177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40178 break 2 40179 fi 40180 done 40181 done 40182 IFS=$as_save_IFS 40183 40184 fi 40185 fi 40186 NM=$ac_cv_prog_NM 40187 if test -n "$NM"; then 40188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 40189 $as_echo "$NM" >&6; } 40190 else 40191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40192 $as_echo "no" >&6; } 40193 fi 40194 40195 40196 test -n "$NM" && break 40197 done 40198 fi 40199 if test -z "$NM"; then 40200 ac_ct_NM=$NM 40201 for ac_prog in nm gcc-nm 40202 do 40203 # Extract the first word of "$ac_prog", so it can be a program name with args. 40204 set dummy $ac_prog; ac_word=$2 40205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40206 $as_echo_n "checking for $ac_word... " >&6; } 40207 if ${ac_cv_prog_ac_ct_NM+:} false; then : 40208 $as_echo_n "(cached) " >&6 40209 else 40210 if test -n "$ac_ct_NM"; then 40211 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 40212 else 40213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40214 for as_dir in $PATH 40215 do 40216 IFS=$as_save_IFS 40217 test -z "$as_dir" && as_dir=. 40218 for ac_exec_ext in '' $ac_executable_extensions; do 40219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40220 ac_cv_prog_ac_ct_NM="$ac_prog" 40221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40222 break 2 40223 fi 40224 done 40225 done 40226 IFS=$as_save_IFS 40227 40228 fi 40229 fi 40230 ac_ct_NM=$ac_cv_prog_ac_ct_NM 40231 if test -n "$ac_ct_NM"; then 40232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 40233 $as_echo "$ac_ct_NM" >&6; } 40234 else 40235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40236 $as_echo "no" >&6; } 40237 fi 40238 40239 40240 test -n "$ac_ct_NM" && break 40241 done 40242 40243 if test "x$ac_ct_NM" = x; then 40244 NM="" 40245 else 40246 case $cross_compiling:$ac_tool_warned in 40247 yes:) 40248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 40249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 40250 ac_tool_warned=yes ;; 40251 esac 40252 NM=$ac_ct_NM 40253 fi 40254 fi 40255 40256 else 40257 # The variable is set, but is it from the command line or the environment? 40258 40259 # Try to remove the string !NM! from our list. 40260 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 40261 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40262 # If it failed, the variable was not from the command line. Ignore it, 40263 # but warn the user (except for BASH, which is always set by the calling BASH). 40264 if test "xNM" != xBASH; then 40265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 40266 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 40267 fi 40268 # Try to locate tool using the code snippet 40269 if test -n "$ac_tool_prefix"; then 40270 for ac_prog in nm gcc-nm 40271 do 40272 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 40273 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 40274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40275 $as_echo_n "checking for $ac_word... " >&6; } 40276 if ${ac_cv_prog_NM+:} false; then : 40277 $as_echo_n "(cached) " >&6 40278 else 40279 if test -n "$NM"; then 40280 ac_cv_prog_NM="$NM" # Let the user override the test. 40281 else 40282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40283 for as_dir in $PATH 40284 do 40285 IFS=$as_save_IFS 40286 test -z "$as_dir" && as_dir=. 40287 for ac_exec_ext in '' $ac_executable_extensions; do 40288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40289 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 40290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40291 break 2 40292 fi 40293 done 40294 done 40295 IFS=$as_save_IFS 40296 40297 fi 40298 fi 40299 NM=$ac_cv_prog_NM 40300 if test -n "$NM"; then 40301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 40302 $as_echo "$NM" >&6; } 40303 else 40304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40305 $as_echo "no" >&6; } 40306 fi 40307 40308 40309 test -n "$NM" && break 40310 done 40311 fi 40312 if test -z "$NM"; then 40313 ac_ct_NM=$NM 40314 for ac_prog in nm gcc-nm 40315 do 40316 # Extract the first word of "$ac_prog", so it can be a program name with args. 40317 set dummy $ac_prog; ac_word=$2 40318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40319 $as_echo_n "checking for $ac_word... " >&6; } 40320 if ${ac_cv_prog_ac_ct_NM+:} false; then : 40321 $as_echo_n "(cached) " >&6 40322 else 40323 if test -n "$ac_ct_NM"; then 40324 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 40325 else 40326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40327 for as_dir in $PATH 40328 do 40329 IFS=$as_save_IFS 40330 test -z "$as_dir" && as_dir=. 40331 for ac_exec_ext in '' $ac_executable_extensions; do 40332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40333 ac_cv_prog_ac_ct_NM="$ac_prog" 40334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40335 break 2 40336 fi 40337 done 40338 done 40339 IFS=$as_save_IFS 40340 40341 fi 40342 fi 40343 ac_ct_NM=$ac_cv_prog_ac_ct_NM 40344 if test -n "$ac_ct_NM"; then 40345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 40346 $as_echo "$ac_ct_NM" >&6; } 40347 else 40348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40349 $as_echo "no" >&6; } 40350 fi 40351 40352 40353 test -n "$ac_ct_NM" && break 40354 done 40355 40356 if test "x$ac_ct_NM" = x; then 40357 NM="" 40358 else 40359 case $cross_compiling:$ac_tool_warned in 40360 yes:) 40361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 40362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 40363 ac_tool_warned=yes ;; 40364 esac 40365 NM=$ac_ct_NM 40366 fi 40367 fi 40368 40369 else 40370 # If it succeeded, then it was overridden by the user. We will use it 40371 # for the tool. 40372 40373 # First remove it from the list of overridden variables, so we can test 40374 # for unknown variables in the end. 40375 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40376 40377 # Check if we try to supply an empty value 40378 if test "x$NM" = x; then 40379 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 40380 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 40381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 40382 $as_echo_n "checking for NM... " >&6; } 40383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 40384 $as_echo "disabled" >&6; } 40385 else 40386 # Check if the provided tool contains a complete path. 40387 tool_specified="$NM" 40388 tool_basename="${tool_specified##*/}" 40389 if test "x$tool_basename" = "x$tool_specified"; then 40390 # A command without a complete path is provided, search $PATH. 40391 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 40392 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 40393 # Extract the first word of "$tool_basename", so it can be a program name with args. 40394 set dummy $tool_basename; ac_word=$2 40395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40396 $as_echo_n "checking for $ac_word... " >&6; } 40397 if ${ac_cv_path_NM+:} false; then : 40398 $as_echo_n "(cached) " >&6 40399 else 40400 case $NM in 40401 [\\/]* | ?:[\\/]*) 40402 ac_cv_path_NM="$NM" # Let the user override the test with a path. 40403 ;; 40404 *) 40405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40406 for as_dir in $PATH 40407 do 40408 IFS=$as_save_IFS 40409 test -z "$as_dir" && as_dir=. 40410 for ac_exec_ext in '' $ac_executable_extensions; do 40411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40412 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 40413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40414 break 2 40415 fi 40416 done 40417 done 40418 IFS=$as_save_IFS 40419 40420 ;; 40421 esac 40422 fi 40423 NM=$ac_cv_path_NM 40424 if test -n "$NM"; then 40425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 40426 $as_echo "$NM" >&6; } 40427 else 40428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40429 $as_echo "no" >&6; } 40430 fi 40431 40432 40433 if test "x$NM" = x; then 40434 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40435 fi 40436 else 40437 # Otherwise we believe it is a complete path. Use it as it is. 40438 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 40439 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 40440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 40441 $as_echo_n "checking for NM... " >&6; } 40442 if test ! -x "$tool_specified"; then 40443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40444 $as_echo "not found" >&6; } 40445 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 40446 fi 40447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40448 $as_echo "$tool_specified" >&6; } 40449 fi 40450 fi 40451 fi 40452 40453 fi 40454 40455 40456 else 40457 40458 40459 # Publish this variable in the help. 40460 40461 40462 if [ -z "${NM+x}" ]; then 40463 # The variable is not set by user, try to locate tool using the code snippet 40464 if test -n "$ac_tool_prefix"; then 40465 for ac_prog in nm 40466 do 40467 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 40468 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 40469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40470 $as_echo_n "checking for $ac_word... " >&6; } 40471 if ${ac_cv_prog_NM+:} false; then : 40472 $as_echo_n "(cached) " >&6 40473 else 40474 if test -n "$NM"; then 40475 ac_cv_prog_NM="$NM" # Let the user override the test. 40476 else 40477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40478 for as_dir in $PATH 40479 do 40480 IFS=$as_save_IFS 40481 test -z "$as_dir" && as_dir=. 40482 for ac_exec_ext in '' $ac_executable_extensions; do 40483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40484 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 40485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40486 break 2 40487 fi 40488 done 40489 done 40490 IFS=$as_save_IFS 40491 40492 fi 40493 fi 40494 NM=$ac_cv_prog_NM 40495 if test -n "$NM"; then 40496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 40497 $as_echo "$NM" >&6; } 40498 else 40499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40500 $as_echo "no" >&6; } 40501 fi 40502 40503 40504 test -n "$NM" && break 40505 done 40506 fi 40507 if test -z "$NM"; then 40508 ac_ct_NM=$NM 40509 for ac_prog in nm 40510 do 40511 # Extract the first word of "$ac_prog", so it can be a program name with args. 40512 set dummy $ac_prog; ac_word=$2 40513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40514 $as_echo_n "checking for $ac_word... " >&6; } 40515 if ${ac_cv_prog_ac_ct_NM+:} false; then : 40516 $as_echo_n "(cached) " >&6 40517 else 40518 if test -n "$ac_ct_NM"; then 40519 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 40520 else 40521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40522 for as_dir in $PATH 40523 do 40524 IFS=$as_save_IFS 40525 test -z "$as_dir" && as_dir=. 40526 for ac_exec_ext in '' $ac_executable_extensions; do 40527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40528 ac_cv_prog_ac_ct_NM="$ac_prog" 40529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40530 break 2 40531 fi 40532 done 40533 done 40534 IFS=$as_save_IFS 40535 40536 fi 40537 fi 40538 ac_ct_NM=$ac_cv_prog_ac_ct_NM 40539 if test -n "$ac_ct_NM"; then 40540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 40541 $as_echo "$ac_ct_NM" >&6; } 40542 else 40543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40544 $as_echo "no" >&6; } 40545 fi 40546 40547 40548 test -n "$ac_ct_NM" && break 40549 done 40550 40551 if test "x$ac_ct_NM" = x; then 40552 NM="" 40553 else 40554 case $cross_compiling:$ac_tool_warned in 40555 yes:) 40556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 40557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 40558 ac_tool_warned=yes ;; 40559 esac 40560 NM=$ac_ct_NM 40561 fi 40562 fi 40563 40564 else 40565 # The variable is set, but is it from the command line or the environment? 40566 40567 # Try to remove the string !NM! from our list. 40568 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 40569 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40570 # If it failed, the variable was not from the command line. Ignore it, 40571 # but warn the user (except for BASH, which is always set by the calling BASH). 40572 if test "xNM" != xBASH; then 40573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 40574 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 40575 fi 40576 # Try to locate tool using the code snippet 40577 if test -n "$ac_tool_prefix"; then 40578 for ac_prog in nm 40579 do 40580 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 40581 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 40582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40583 $as_echo_n "checking for $ac_word... " >&6; } 40584 if ${ac_cv_prog_NM+:} false; then : 40585 $as_echo_n "(cached) " >&6 40586 else 40587 if test -n "$NM"; then 40588 ac_cv_prog_NM="$NM" # Let the user override the test. 40589 else 40590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40591 for as_dir in $PATH 40592 do 40593 IFS=$as_save_IFS 40594 test -z "$as_dir" && as_dir=. 40595 for ac_exec_ext in '' $ac_executable_extensions; do 40596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40597 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 40598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40599 break 2 40600 fi 40601 done 40602 done 40603 IFS=$as_save_IFS 40604 40605 fi 40606 fi 40607 NM=$ac_cv_prog_NM 40608 if test -n "$NM"; then 40609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 40610 $as_echo "$NM" >&6; } 40611 else 40612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40613 $as_echo "no" >&6; } 40614 fi 40615 40616 40617 test -n "$NM" && break 40618 done 40619 fi 40620 if test -z "$NM"; then 40621 ac_ct_NM=$NM 40622 for ac_prog in nm 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_prog_ac_ct_NM+:} false; then : 40629 $as_echo_n "(cached) " >&6 40630 else 40631 if test -n "$ac_ct_NM"; then 40632 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 40633 else 40634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40635 for as_dir in $PATH 40636 do 40637 IFS=$as_save_IFS 40638 test -z "$as_dir" && as_dir=. 40639 for ac_exec_ext in '' $ac_executable_extensions; do 40640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40641 ac_cv_prog_ac_ct_NM="$ac_prog" 40642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40643 break 2 40644 fi 40645 done 40646 done 40647 IFS=$as_save_IFS 40648 40649 fi 40650 fi 40651 ac_ct_NM=$ac_cv_prog_ac_ct_NM 40652 if test -n "$ac_ct_NM"; then 40653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 40654 $as_echo "$ac_ct_NM" >&6; } 40655 else 40656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40657 $as_echo "no" >&6; } 40658 fi 40659 40660 40661 test -n "$ac_ct_NM" && break 40662 done 40663 40664 if test "x$ac_ct_NM" = x; then 40665 NM="" 40666 else 40667 case $cross_compiling:$ac_tool_warned in 40668 yes:) 40669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 40670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 40671 ac_tool_warned=yes ;; 40672 esac 40673 NM=$ac_ct_NM 40674 fi 40675 fi 40676 40677 else 40678 # If it succeeded, then it was overridden by the user. We will use it 40679 # for the tool. 40680 40681 # First remove it from the list of overridden variables, so we can test 40682 # for unknown variables in the end. 40683 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40684 40685 # Check if we try to supply an empty value 40686 if test "x$NM" = x; then 40687 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 40688 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 40689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 40690 $as_echo_n "checking for NM... " >&6; } 40691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 40692 $as_echo "disabled" >&6; } 40693 else 40694 # Check if the provided tool contains a complete path. 40695 tool_specified="$NM" 40696 tool_basename="${tool_specified##*/}" 40697 if test "x$tool_basename" = "x$tool_specified"; then 40698 # A command without a complete path is provided, search $PATH. 40699 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 40700 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 40701 # Extract the first word of "$tool_basename", so it can be a program name with args. 40702 set dummy $tool_basename; ac_word=$2 40703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40704 $as_echo_n "checking for $ac_word... " >&6; } 40705 if ${ac_cv_path_NM+:} false; then : 40706 $as_echo_n "(cached) " >&6 40707 else 40708 case $NM in 40709 [\\/]* | ?:[\\/]*) 40710 ac_cv_path_NM="$NM" # Let the user override the test with a path. 40711 ;; 40712 *) 40713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40714 for as_dir in $PATH 40715 do 40716 IFS=$as_save_IFS 40717 test -z "$as_dir" && as_dir=. 40718 for ac_exec_ext in '' $ac_executable_extensions; do 40719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40720 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 40721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40722 break 2 40723 fi 40724 done 40725 done 40726 IFS=$as_save_IFS 40727 40728 ;; 40729 esac 40730 fi 40731 NM=$ac_cv_path_NM 40732 if test -n "$NM"; then 40733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 40734 $as_echo "$NM" >&6; } 40735 else 40736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40737 $as_echo "no" >&6; } 40738 fi 40739 40740 40741 if test "x$NM" = x; then 40742 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40743 fi 40744 else 40745 # Otherwise we believe it is a complete path. Use it as it is. 40746 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 40747 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 40748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 40749 $as_echo_n "checking for NM... " >&6; } 40750 if test ! -x "$tool_specified"; then 40751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40752 $as_echo "not found" >&6; } 40753 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 40754 fi 40755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40756 $as_echo "$tool_specified" >&6; } 40757 fi 40758 fi 40759 fi 40760 40761 fi 40762 40763 40764 fi 40765 40766 # Only process if variable expands to non-empty 40767 40768 if test "x$NM" != x; then 40769 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40770 40771 # First separate the path from the arguments. This will split at the first 40772 # space. 40773 complete="$NM" 40774 path="${complete%% *}" 40775 tmp="$complete EOL" 40776 arguments="${tmp#* }" 40777 40778 # Input might be given as Windows format, start by converting to 40779 # unix format. 40780 new_path=`$CYGPATH -u "$path"` 40781 40782 # Now try to locate executable using which 40783 new_path=`$WHICH "$new_path" 2> /dev/null` 40784 # bat and cmd files are not always considered executable in cygwin causing which 40785 # to not find them 40786 if test "x$new_path" = x \ 40787 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40788 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40789 new_path=`$CYGPATH -u "$path"` 40790 fi 40791 if test "x$new_path" = x; then 40792 # Oops. Which didn't find the executable. 40793 # The splitting of arguments from the executable at a space might have been incorrect, 40794 # since paths with space are more likely in Windows. Give it another try with the whole 40795 # argument. 40796 path="$complete" 40797 arguments="EOL" 40798 new_path=`$CYGPATH -u "$path"` 40799 new_path=`$WHICH "$new_path" 2> /dev/null` 40800 # bat and cmd files are not always considered executable in cygwin causing which 40801 # to not find them 40802 if test "x$new_path" = x \ 40803 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40804 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40805 new_path=`$CYGPATH -u "$path"` 40806 fi 40807 if test "x$new_path" = x; then 40808 # It's still not found. Now this is an unrecoverable error. 40809 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 40810 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 40811 has_space=`$ECHO "$complete" | $GREP " "` 40812 if test "x$has_space" != x; then 40813 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40814 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40815 fi 40816 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 40817 fi 40818 fi 40819 40820 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40821 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40822 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40823 # "foo.exe" is OK but "foo" is an error. 40824 # 40825 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40826 # It is also a way to make sure we got the proper file name for the real test later on. 40827 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40828 if test "x$test_shortpath" = x; then 40829 # Short path failed, file does not exist as specified. 40830 # Try adding .exe or .cmd 40831 if test -f "${new_path}.exe"; then 40832 input_to_shortpath="${new_path}.exe" 40833 elif test -f "${new_path}.cmd"; then 40834 input_to_shortpath="${new_path}.cmd" 40835 else 40836 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 40837 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 40838 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40839 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40840 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 40841 fi 40842 else 40843 input_to_shortpath="$new_path" 40844 fi 40845 40846 # Call helper function which possibly converts this using DOS-style short mode. 40847 # If so, the updated path is stored in $new_path. 40848 new_path="$input_to_shortpath" 40849 40850 input_path="$input_to_shortpath" 40851 # Check if we need to convert this using DOS-style short mode. If the path 40852 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40853 # take no chances and rewrite it. 40854 # Note: m4 eats our [], so we need to use [ and ] instead. 40855 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40856 if test "x$has_forbidden_chars" != x; then 40857 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40858 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40859 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40860 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40861 # Going to short mode and back again did indeed matter. Since short mode is 40862 # case insensitive, let's make it lowercase to improve readability. 40863 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40864 # Now convert it back to Unix-style (cygpath) 40865 input_path=`$CYGPATH -u "$shortmode_path"` 40866 new_path="$input_path" 40867 fi 40868 fi 40869 40870 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40871 if test "x$test_cygdrive_prefix" = x; then 40872 # As a simple fix, exclude /usr/bin since it's not a real path. 40873 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40874 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40875 # a path prefixed by /cygdrive for fixpath to work. 40876 new_path="$CYGWIN_ROOT_PATH$input_path" 40877 fi 40878 fi 40879 40880 # remove trailing .exe if any 40881 new_path="${new_path/%.exe/}" 40882 40883 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40884 40885 # First separate the path from the arguments. This will split at the first 40886 # space. 40887 complete="$NM" 40888 path="${complete%% *}" 40889 tmp="$complete EOL" 40890 arguments="${tmp#* }" 40891 40892 # Input might be given as Windows format, start by converting to 40893 # unix format. 40894 new_path="$path" 40895 40896 windows_path="$new_path" 40897 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40898 unix_path=`$CYGPATH -u "$windows_path"` 40899 new_path="$unix_path" 40900 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40901 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40902 new_path="$unix_path" 40903 fi 40904 40905 40906 # Now try to locate executable using which 40907 new_path=`$WHICH "$new_path" 2> /dev/null` 40908 40909 if test "x$new_path" = x; then 40910 # Oops. Which didn't find the executable. 40911 # The splitting of arguments from the executable at a space might have been incorrect, 40912 # since paths with space are more likely in Windows. Give it another try with the whole 40913 # argument. 40914 path="$complete" 40915 arguments="EOL" 40916 new_path="$path" 40917 40918 windows_path="$new_path" 40919 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40920 unix_path=`$CYGPATH -u "$windows_path"` 40921 new_path="$unix_path" 40922 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40923 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40924 new_path="$unix_path" 40925 fi 40926 40927 40928 new_path=`$WHICH "$new_path" 2> /dev/null` 40929 # bat and cmd files are not always considered executable in MSYS causing which 40930 # to not find them 40931 if test "x$new_path" = x \ 40932 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40933 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40934 new_path="$path" 40935 40936 windows_path="$new_path" 40937 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40938 unix_path=`$CYGPATH -u "$windows_path"` 40939 new_path="$unix_path" 40940 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40941 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40942 new_path="$unix_path" 40943 fi 40944 40945 fi 40946 40947 if test "x$new_path" = x; then 40948 # It's still not found. Now this is an unrecoverable error. 40949 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 40950 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 40951 has_space=`$ECHO "$complete" | $GREP " "` 40952 if test "x$has_space" != x; then 40953 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40954 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40955 fi 40956 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 40957 fi 40958 fi 40959 40960 # Now new_path has a complete unix path to the binary 40961 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40962 # Keep paths in /bin as-is, but remove trailing .exe if any 40963 new_path="${new_path/%.exe/}" 40964 # Do not save /bin paths to all_fixpath_prefixes! 40965 else 40966 # Not in mixed or Windows style, start by that. 40967 new_path=`cmd //c echo $new_path` 40968 40969 input_path="$new_path" 40970 # Check if we need to convert this using DOS-style short mode. If the path 40971 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40972 # take no chances and rewrite it. 40973 # Note: m4 eats our [], so we need to use [ and ] instead. 40974 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40975 if test "x$has_forbidden_chars" != x; then 40976 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40977 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40978 fi 40979 40980 # Output is in $new_path 40981 40982 windows_path="$new_path" 40983 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40984 unix_path=`$CYGPATH -u "$windows_path"` 40985 new_path="$unix_path" 40986 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40987 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40988 new_path="$unix_path" 40989 fi 40990 40991 # remove trailing .exe if any 40992 new_path="${new_path/%.exe/}" 40993 40994 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40995 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40996 fi 40997 40998 else 40999 # We're on a unix platform. Hooray! :) 41000 # First separate the path from the arguments. This will split at the first 41001 # space. 41002 complete="$NM" 41003 path="${complete%% *}" 41004 tmp="$complete EOL" 41005 arguments="${tmp#* }" 41006 41007 # Cannot rely on the command "which" here since it doesn't always work. 41008 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41009 if test -z "$is_absolute_path"; then 41010 # Path to executable is not absolute. Find it. 41011 IFS_save="$IFS" 41012 IFS=: 41013 for p in $PATH; do 41014 if test -f "$p/$path" && test -x "$p/$path"; then 41015 new_path="$p/$path" 41016 break 41017 fi 41018 done 41019 IFS="$IFS_save" 41020 else 41021 # This is an absolute path, we can use it without further modifications. 41022 new_path="$path" 41023 fi 41024 41025 if test "x$new_path" = x; then 41026 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 41027 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 41028 has_space=`$ECHO "$complete" | $GREP " "` 41029 if test "x$has_space" != x; then 41030 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41031 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41032 fi 41033 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 41034 fi 41035 fi 41036 41037 # Now join together the path and the arguments once again 41038 if test "x$arguments" != xEOL; then 41039 new_complete="$new_path ${arguments% *}" 41040 else 41041 new_complete="$new_path" 41042 fi 41043 41044 if test "x$complete" != "x$new_complete"; then 41045 NM="$new_complete" 41046 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 41047 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 41048 fi 41049 fi 41050 41051 GNM="$NM" 41052 41053 fi 41054 41055 # objcopy is used for moving debug symbols to separate files when 41056 # full debug symbols are enabled. 41057 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 41058 41059 41060 # Publish this variable in the help. 41061 41062 41063 if [ -z "${OBJCOPY+x}" ]; then 41064 # The variable is not set by user, try to locate tool using the code snippet 41065 if test -n "$ac_tool_prefix"; then 41066 for ac_prog in gobjcopy objcopy 41067 do 41068 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41069 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41071 $as_echo_n "checking for $ac_word... " >&6; } 41072 if ${ac_cv_prog_OBJCOPY+:} false; then : 41073 $as_echo_n "(cached) " >&6 41074 else 41075 if test -n "$OBJCOPY"; then 41076 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 41077 else 41078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41079 for as_dir in $PATH 41080 do 41081 IFS=$as_save_IFS 41082 test -z "$as_dir" && as_dir=. 41083 for ac_exec_ext in '' $ac_executable_extensions; do 41084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41085 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 41086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41087 break 2 41088 fi 41089 done 41090 done 41091 IFS=$as_save_IFS 41092 41093 fi 41094 fi 41095 OBJCOPY=$ac_cv_prog_OBJCOPY 41096 if test -n "$OBJCOPY"; then 41097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 41098 $as_echo "$OBJCOPY" >&6; } 41099 else 41100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41101 $as_echo "no" >&6; } 41102 fi 41103 41104 41105 test -n "$OBJCOPY" && break 41106 done 41107 fi 41108 if test -z "$OBJCOPY"; then 41109 ac_ct_OBJCOPY=$OBJCOPY 41110 for ac_prog in gobjcopy objcopy 41111 do 41112 # Extract the first word of "$ac_prog", so it can be a program name with args. 41113 set dummy $ac_prog; ac_word=$2 41114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41115 $as_echo_n "checking for $ac_word... " >&6; } 41116 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 41117 $as_echo_n "(cached) " >&6 41118 else 41119 if test -n "$ac_ct_OBJCOPY"; then 41120 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 41121 else 41122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41123 for as_dir in $PATH 41124 do 41125 IFS=$as_save_IFS 41126 test -z "$as_dir" && as_dir=. 41127 for ac_exec_ext in '' $ac_executable_extensions; do 41128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41129 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 41130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41131 break 2 41132 fi 41133 done 41134 done 41135 IFS=$as_save_IFS 41136 41137 fi 41138 fi 41139 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 41140 if test -n "$ac_ct_OBJCOPY"; then 41141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 41142 $as_echo "$ac_ct_OBJCOPY" >&6; } 41143 else 41144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41145 $as_echo "no" >&6; } 41146 fi 41147 41148 41149 test -n "$ac_ct_OBJCOPY" && break 41150 done 41151 41152 if test "x$ac_ct_OBJCOPY" = x; then 41153 OBJCOPY="" 41154 else 41155 case $cross_compiling:$ac_tool_warned in 41156 yes:) 41157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41159 ac_tool_warned=yes ;; 41160 esac 41161 OBJCOPY=$ac_ct_OBJCOPY 41162 fi 41163 fi 41164 41165 else 41166 # The variable is set, but is it from the command line or the environment? 41167 41168 # Try to remove the string !OBJCOPY! from our list. 41169 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 41170 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41171 # If it failed, the variable was not from the command line. Ignore it, 41172 # but warn the user (except for BASH, which is always set by the calling BASH). 41173 if test "xOBJCOPY" != xBASH; then 41174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 41175 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 41176 fi 41177 # Try to locate tool using the code snippet 41178 if test -n "$ac_tool_prefix"; then 41179 for ac_prog in gobjcopy objcopy 41180 do 41181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41182 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41184 $as_echo_n "checking for $ac_word... " >&6; } 41185 if ${ac_cv_prog_OBJCOPY+:} false; then : 41186 $as_echo_n "(cached) " >&6 41187 else 41188 if test -n "$OBJCOPY"; then 41189 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 41190 else 41191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41192 for as_dir in $PATH 41193 do 41194 IFS=$as_save_IFS 41195 test -z "$as_dir" && as_dir=. 41196 for ac_exec_ext in '' $ac_executable_extensions; do 41197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41198 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 41199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41200 break 2 41201 fi 41202 done 41203 done 41204 IFS=$as_save_IFS 41205 41206 fi 41207 fi 41208 OBJCOPY=$ac_cv_prog_OBJCOPY 41209 if test -n "$OBJCOPY"; then 41210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 41211 $as_echo "$OBJCOPY" >&6; } 41212 else 41213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41214 $as_echo "no" >&6; } 41215 fi 41216 41217 41218 test -n "$OBJCOPY" && break 41219 done 41220 fi 41221 if test -z "$OBJCOPY"; then 41222 ac_ct_OBJCOPY=$OBJCOPY 41223 for ac_prog in gobjcopy objcopy 41224 do 41225 # Extract the first word of "$ac_prog", so it can be a program name with args. 41226 set dummy $ac_prog; ac_word=$2 41227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41228 $as_echo_n "checking for $ac_word... " >&6; } 41229 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 41230 $as_echo_n "(cached) " >&6 41231 else 41232 if test -n "$ac_ct_OBJCOPY"; then 41233 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 41234 else 41235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41236 for as_dir in $PATH 41237 do 41238 IFS=$as_save_IFS 41239 test -z "$as_dir" && as_dir=. 41240 for ac_exec_ext in '' $ac_executable_extensions; do 41241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41242 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 41243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41244 break 2 41245 fi 41246 done 41247 done 41248 IFS=$as_save_IFS 41249 41250 fi 41251 fi 41252 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 41253 if test -n "$ac_ct_OBJCOPY"; then 41254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 41255 $as_echo "$ac_ct_OBJCOPY" >&6; } 41256 else 41257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41258 $as_echo "no" >&6; } 41259 fi 41260 41261 41262 test -n "$ac_ct_OBJCOPY" && break 41263 done 41264 41265 if test "x$ac_ct_OBJCOPY" = x; then 41266 OBJCOPY="" 41267 else 41268 case $cross_compiling:$ac_tool_warned in 41269 yes:) 41270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41272 ac_tool_warned=yes ;; 41273 esac 41274 OBJCOPY=$ac_ct_OBJCOPY 41275 fi 41276 fi 41277 41278 else 41279 # If it succeeded, then it was overridden by the user. We will use it 41280 # for the tool. 41281 41282 # First remove it from the list of overridden variables, so we can test 41283 # for unknown variables in the end. 41284 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41285 41286 # Check if we try to supply an empty value 41287 if test "x$OBJCOPY" = x; then 41288 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJCOPY= (no value)" >&5 41289 $as_echo "$as_me: Setting user supplied tool OBJCOPY= (no value)" >&6;} 41290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 41291 $as_echo_n "checking for OBJCOPY... " >&6; } 41292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41293 $as_echo "disabled" >&6; } 41294 else 41295 # Check if the provided tool contains a complete path. 41296 tool_specified="$OBJCOPY" 41297 tool_basename="${tool_specified##*/}" 41298 if test "x$tool_basename" = "x$tool_specified"; then 41299 # A command without a complete path is provided, search $PATH. 41300 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 41301 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 41302 # Extract the first word of "$tool_basename", so it can be a program name with args. 41303 set dummy $tool_basename; ac_word=$2 41304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41305 $as_echo_n "checking for $ac_word... " >&6; } 41306 if ${ac_cv_path_OBJCOPY+:} false; then : 41307 $as_echo_n "(cached) " >&6 41308 else 41309 case $OBJCOPY in 41310 [\\/]* | ?:[\\/]*) 41311 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 41312 ;; 41313 *) 41314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41315 for as_dir in $PATH 41316 do 41317 IFS=$as_save_IFS 41318 test -z "$as_dir" && as_dir=. 41319 for ac_exec_ext in '' $ac_executable_extensions; do 41320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41321 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 41322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41323 break 2 41324 fi 41325 done 41326 done 41327 IFS=$as_save_IFS 41328 41329 ;; 41330 esac 41331 fi 41332 OBJCOPY=$ac_cv_path_OBJCOPY 41333 if test -n "$OBJCOPY"; then 41334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 41335 $as_echo "$OBJCOPY" >&6; } 41336 else 41337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41338 $as_echo "no" >&6; } 41339 fi 41340 41341 41342 if test "x$OBJCOPY" = x; then 41343 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41344 fi 41345 else 41346 # Otherwise we believe it is a complete path. Use it as it is. 41347 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 41348 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 41349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 41350 $as_echo_n "checking for OBJCOPY... " >&6; } 41351 if test ! -x "$tool_specified"; then 41352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41353 $as_echo "not found" >&6; } 41354 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 41355 fi 41356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41357 $as_echo "$tool_specified" >&6; } 41358 fi 41359 fi 41360 fi 41361 41362 fi 41363 41364 41365 # Only call fixup if objcopy was found. 41366 if test -n "$OBJCOPY"; then 41367 41368 # Only process if variable expands to non-empty 41369 41370 if test "x$OBJCOPY" != x; then 41371 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41372 41373 # First separate the path from the arguments. This will split at the first 41374 # space. 41375 complete="$OBJCOPY" 41376 path="${complete%% *}" 41377 tmp="$complete EOL" 41378 arguments="${tmp#* }" 41379 41380 # Input might be given as Windows format, start by converting to 41381 # unix format. 41382 new_path=`$CYGPATH -u "$path"` 41383 41384 # Now try to locate executable using which 41385 new_path=`$WHICH "$new_path" 2> /dev/null` 41386 # bat and cmd files are not always considered executable in cygwin causing which 41387 # to not find them 41388 if test "x$new_path" = x \ 41389 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41390 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41391 new_path=`$CYGPATH -u "$path"` 41392 fi 41393 if test "x$new_path" = x; then 41394 # Oops. Which didn't find the executable. 41395 # The splitting of arguments from the executable at a space might have been incorrect, 41396 # since paths with space are more likely in Windows. Give it another try with the whole 41397 # argument. 41398 path="$complete" 41399 arguments="EOL" 41400 new_path=`$CYGPATH -u "$path"` 41401 new_path=`$WHICH "$new_path" 2> /dev/null` 41402 # bat and cmd files are not always considered executable in cygwin causing which 41403 # to not find them 41404 if test "x$new_path" = x \ 41405 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41406 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41407 new_path=`$CYGPATH -u "$path"` 41408 fi 41409 if test "x$new_path" = x; then 41410 # It's still not found. Now this is an unrecoverable error. 41411 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 41412 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 41413 has_space=`$ECHO "$complete" | $GREP " "` 41414 if test "x$has_space" != x; then 41415 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41416 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41417 fi 41418 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 41419 fi 41420 fi 41421 41422 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41423 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41424 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41425 # "foo.exe" is OK but "foo" is an error. 41426 # 41427 # This test is therefore slightly more accurate than "test -f" to check for file presence. 41428 # It is also a way to make sure we got the proper file name for the real test later on. 41429 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41430 if test "x$test_shortpath" = x; then 41431 # Short path failed, file does not exist as specified. 41432 # Try adding .exe or .cmd 41433 if test -f "${new_path}.exe"; then 41434 input_to_shortpath="${new_path}.exe" 41435 elif test -f "${new_path}.cmd"; then 41436 input_to_shortpath="${new_path}.cmd" 41437 else 41438 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 41439 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 41440 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 41441 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 41442 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 41443 fi 41444 else 41445 input_to_shortpath="$new_path" 41446 fi 41447 41448 # Call helper function which possibly converts this using DOS-style short mode. 41449 # If so, the updated path is stored in $new_path. 41450 new_path="$input_to_shortpath" 41451 41452 input_path="$input_to_shortpath" 41453 # Check if we need to convert this using DOS-style short mode. If the path 41454 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41455 # take no chances and rewrite it. 41456 # Note: m4 eats our [], so we need to use [ and ] instead. 41457 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41458 if test "x$has_forbidden_chars" != x; then 41459 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41460 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41461 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41462 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41463 # Going to short mode and back again did indeed matter. Since short mode is 41464 # case insensitive, let's make it lowercase to improve readability. 41465 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41466 # Now convert it back to Unix-style (cygpath) 41467 input_path=`$CYGPATH -u "$shortmode_path"` 41468 new_path="$input_path" 41469 fi 41470 fi 41471 41472 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41473 if test "x$test_cygdrive_prefix" = x; then 41474 # As a simple fix, exclude /usr/bin since it's not a real path. 41475 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 41476 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41477 # a path prefixed by /cygdrive for fixpath to work. 41478 new_path="$CYGWIN_ROOT_PATH$input_path" 41479 fi 41480 fi 41481 41482 # remove trailing .exe if any 41483 new_path="${new_path/%.exe/}" 41484 41485 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41486 41487 # First separate the path from the arguments. This will split at the first 41488 # space. 41489 complete="$OBJCOPY" 41490 path="${complete%% *}" 41491 tmp="$complete EOL" 41492 arguments="${tmp#* }" 41493 41494 # Input might be given as Windows format, start by converting to 41495 # unix format. 41496 new_path="$path" 41497 41498 windows_path="$new_path" 41499 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41500 unix_path=`$CYGPATH -u "$windows_path"` 41501 new_path="$unix_path" 41502 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41503 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41504 new_path="$unix_path" 41505 fi 41506 41507 41508 # Now try to locate executable using which 41509 new_path=`$WHICH "$new_path" 2> /dev/null` 41510 41511 if test "x$new_path" = x; then 41512 # Oops. Which didn't find the executable. 41513 # The splitting of arguments from the executable at a space might have been incorrect, 41514 # since paths with space are more likely in Windows. Give it another try with the whole 41515 # argument. 41516 path="$complete" 41517 arguments="EOL" 41518 new_path="$path" 41519 41520 windows_path="$new_path" 41521 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41522 unix_path=`$CYGPATH -u "$windows_path"` 41523 new_path="$unix_path" 41524 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41525 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41526 new_path="$unix_path" 41527 fi 41528 41529 41530 new_path=`$WHICH "$new_path" 2> /dev/null` 41531 # bat and cmd files are not always considered executable in MSYS causing which 41532 # to not find them 41533 if test "x$new_path" = x \ 41534 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41535 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41536 new_path="$path" 41537 41538 windows_path="$new_path" 41539 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41540 unix_path=`$CYGPATH -u "$windows_path"` 41541 new_path="$unix_path" 41542 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41543 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41544 new_path="$unix_path" 41545 fi 41546 41547 fi 41548 41549 if test "x$new_path" = x; then 41550 # It's still not found. Now this is an unrecoverable error. 41551 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 41552 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 41553 has_space=`$ECHO "$complete" | $GREP " "` 41554 if test "x$has_space" != x; then 41555 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41556 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41557 fi 41558 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 41559 fi 41560 fi 41561 41562 # Now new_path has a complete unix path to the binary 41563 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41564 # Keep paths in /bin as-is, but remove trailing .exe if any 41565 new_path="${new_path/%.exe/}" 41566 # Do not save /bin paths to all_fixpath_prefixes! 41567 else 41568 # Not in mixed or Windows style, start by that. 41569 new_path=`cmd //c echo $new_path` 41570 41571 input_path="$new_path" 41572 # Check if we need to convert this using DOS-style short mode. If the path 41573 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41574 # take no chances and rewrite it. 41575 # Note: m4 eats our [], so we need to use [ and ] instead. 41576 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41577 if test "x$has_forbidden_chars" != x; then 41578 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41579 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41580 fi 41581 41582 # Output is in $new_path 41583 41584 windows_path="$new_path" 41585 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41586 unix_path=`$CYGPATH -u "$windows_path"` 41587 new_path="$unix_path" 41588 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41589 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41590 new_path="$unix_path" 41591 fi 41592 41593 # remove trailing .exe if any 41594 new_path="${new_path/%.exe/}" 41595 41596 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41597 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41598 fi 41599 41600 else 41601 # We're on a unix platform. Hooray! :) 41602 # First separate the path from the arguments. This will split at the first 41603 # space. 41604 complete="$OBJCOPY" 41605 path="${complete%% *}" 41606 tmp="$complete EOL" 41607 arguments="${tmp#* }" 41608 41609 # Cannot rely on the command "which" here since it doesn't always work. 41610 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41611 if test -z "$is_absolute_path"; then 41612 # Path to executable is not absolute. Find it. 41613 IFS_save="$IFS" 41614 IFS=: 41615 for p in $PATH; do 41616 if test -f "$p/$path" && test -x "$p/$path"; then 41617 new_path="$p/$path" 41618 break 41619 fi 41620 done 41621 IFS="$IFS_save" 41622 else 41623 # This is an absolute path, we can use it without further modifications. 41624 new_path="$path" 41625 fi 41626 41627 if test "x$new_path" = x; then 41628 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 41629 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 41630 has_space=`$ECHO "$complete" | $GREP " "` 41631 if test "x$has_space" != x; then 41632 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41633 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41634 fi 41635 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 41636 fi 41637 fi 41638 41639 # Now join together the path and the arguments once again 41640 if test "x$arguments" != xEOL; then 41641 new_complete="$new_path ${arguments% *}" 41642 else 41643 new_complete="$new_path" 41644 fi 41645 41646 if test "x$complete" != "x$new_complete"; then 41647 OBJCOPY="$new_complete" 41648 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 41649 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 41650 fi 41651 fi 41652 41653 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 41654 # objcopy prior to 2.21.1 on solaris is broken and is not usable. 41655 # Rewrite objcopy version output to VALID_VERSION or BAD_VERSION. 41656 # - version number is last blank separate word on first line 41657 # - version number formats that have been seen: 41658 # - <major>.<minor> 41659 # - <major>.<minor>.<micro> 41660 OBJCOPY_VERSION=`$OBJCOPY --version | $HEAD -n 1` 41661 # The outer [ ] is to prevent m4 from eating the [] in the sed expression. 41662 OBJCOPY_VERSION_CHECK=`$ECHO $OBJCOPY_VERSION | $SED -n \ 41663 -e 's/.* //' \ 41664 -e '/^[01]\./b bad' \ 41665 -e '/^2\./{' \ 41666 -e ' s/^2\.//' \ 41667 -e ' /^[0-9]$/b bad' \ 41668 -e ' /^[0-9]\./b bad' \ 41669 -e ' /^1[0-9]$/b bad' \ 41670 -e ' /^1[0-9]\./b bad' \ 41671 -e ' /^20\./b bad' \ 41672 -e ' /^21\.0$/b bad' \ 41673 -e ' /^21\.0\./b bad' \ 41674 -e '}' \ 41675 -e ':good' \ 41676 -e 's/.*/VALID_VERSION/p' \ 41677 -e 'q' \ 41678 -e ':bad' \ 41679 -e 's/.*/BAD_VERSION/p' \ 41680 -e 'q'` 41681 if test "x$OBJCOPY_VERSION_CHECK" = xBAD_VERSION; then 41682 OBJCOPY= 41683 { $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 41684 $as_echo "$as_me: WARNING: Ignoring found objcopy since it is broken (prior to 2.21.1). No debug symbols will be generated." >&2;} 41685 { $as_echo "$as_me:${as_lineno-$LINENO}: objcopy reports version $OBJCOPY_VERSION" >&5 41686 $as_echo "$as_me: objcopy reports version $OBJCOPY_VERSION" >&6;} 41687 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&5 41688 $as_echo "$as_me: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&6;} 41689 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&5 41690 $as_echo "$as_me: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&6;} 41691 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: Solaris 11 Update 1 contains the correct version" >&5 41692 $as_echo "$as_me: Note: Solaris 11 Update 1 contains the correct version" >&6;} 41693 fi 41694 fi 41695 fi 41696 fi 41697 41698 41699 41700 # Publish this variable in the help. 41701 41702 41703 if [ -z "${OBJDUMP+x}" ]; then 41704 # The variable is not set by user, try to locate tool using the code snippet 41705 if test -n "$ac_tool_prefix"; then 41706 for ac_prog in gobjdump objdump 41707 do 41708 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41709 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41711 $as_echo_n "checking for $ac_word... " >&6; } 41712 if ${ac_cv_prog_OBJDUMP+:} false; then : 41713 $as_echo_n "(cached) " >&6 41714 else 41715 if test -n "$OBJDUMP"; then 41716 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 41717 else 41718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41719 for as_dir in $PATH 41720 do 41721 IFS=$as_save_IFS 41722 test -z "$as_dir" && as_dir=. 41723 for ac_exec_ext in '' $ac_executable_extensions; do 41724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41725 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 41726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41727 break 2 41728 fi 41729 done 41730 done 41731 IFS=$as_save_IFS 41732 41733 fi 41734 fi 41735 OBJDUMP=$ac_cv_prog_OBJDUMP 41736 if test -n "$OBJDUMP"; then 41737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 41738 $as_echo "$OBJDUMP" >&6; } 41739 else 41740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41741 $as_echo "no" >&6; } 41742 fi 41743 41744 41745 test -n "$OBJDUMP" && break 41746 done 41747 fi 41748 if test -z "$OBJDUMP"; then 41749 ac_ct_OBJDUMP=$OBJDUMP 41750 for ac_prog in gobjdump objdump 41751 do 41752 # Extract the first word of "$ac_prog", so it can be a program name with args. 41753 set dummy $ac_prog; ac_word=$2 41754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41755 $as_echo_n "checking for $ac_word... " >&6; } 41756 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 41757 $as_echo_n "(cached) " >&6 41758 else 41759 if test -n "$ac_ct_OBJDUMP"; then 41760 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 41761 else 41762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41763 for as_dir in $PATH 41764 do 41765 IFS=$as_save_IFS 41766 test -z "$as_dir" && as_dir=. 41767 for ac_exec_ext in '' $ac_executable_extensions; do 41768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41769 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 41770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41771 break 2 41772 fi 41773 done 41774 done 41775 IFS=$as_save_IFS 41776 41777 fi 41778 fi 41779 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 41780 if test -n "$ac_ct_OBJDUMP"; then 41781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 41782 $as_echo "$ac_ct_OBJDUMP" >&6; } 41783 else 41784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41785 $as_echo "no" >&6; } 41786 fi 41787 41788 41789 test -n "$ac_ct_OBJDUMP" && break 41790 done 41791 41792 if test "x$ac_ct_OBJDUMP" = x; then 41793 OBJDUMP="" 41794 else 41795 case $cross_compiling:$ac_tool_warned in 41796 yes:) 41797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41799 ac_tool_warned=yes ;; 41800 esac 41801 OBJDUMP=$ac_ct_OBJDUMP 41802 fi 41803 fi 41804 41805 else 41806 # The variable is set, but is it from the command line or the environment? 41807 41808 # Try to remove the string !OBJDUMP! from our list. 41809 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 41810 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41811 # If it failed, the variable was not from the command line. Ignore it, 41812 # but warn the user (except for BASH, which is always set by the calling BASH). 41813 if test "xOBJDUMP" != xBASH; then 41814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 41815 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 41816 fi 41817 # Try to locate tool using the code snippet 41818 if test -n "$ac_tool_prefix"; then 41819 for ac_prog in gobjdump objdump 41820 do 41821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41822 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41824 $as_echo_n "checking for $ac_word... " >&6; } 41825 if ${ac_cv_prog_OBJDUMP+:} false; then : 41826 $as_echo_n "(cached) " >&6 41827 else 41828 if test -n "$OBJDUMP"; then 41829 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 41830 else 41831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41832 for as_dir in $PATH 41833 do 41834 IFS=$as_save_IFS 41835 test -z "$as_dir" && as_dir=. 41836 for ac_exec_ext in '' $ac_executable_extensions; do 41837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41838 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 41839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41840 break 2 41841 fi 41842 done 41843 done 41844 IFS=$as_save_IFS 41845 41846 fi 41847 fi 41848 OBJDUMP=$ac_cv_prog_OBJDUMP 41849 if test -n "$OBJDUMP"; then 41850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 41851 $as_echo "$OBJDUMP" >&6; } 41852 else 41853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41854 $as_echo "no" >&6; } 41855 fi 41856 41857 41858 test -n "$OBJDUMP" && break 41859 done 41860 fi 41861 if test -z "$OBJDUMP"; then 41862 ac_ct_OBJDUMP=$OBJDUMP 41863 for ac_prog in gobjdump objdump 41864 do 41865 # Extract the first word of "$ac_prog", so it can be a program name with args. 41866 set dummy $ac_prog; ac_word=$2 41867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41868 $as_echo_n "checking for $ac_word... " >&6; } 41869 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 41870 $as_echo_n "(cached) " >&6 41871 else 41872 if test -n "$ac_ct_OBJDUMP"; then 41873 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 41874 else 41875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41876 for as_dir in $PATH 41877 do 41878 IFS=$as_save_IFS 41879 test -z "$as_dir" && as_dir=. 41880 for ac_exec_ext in '' $ac_executable_extensions; do 41881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41882 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 41883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41884 break 2 41885 fi 41886 done 41887 done 41888 IFS=$as_save_IFS 41889 41890 fi 41891 fi 41892 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 41893 if test -n "$ac_ct_OBJDUMP"; then 41894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 41895 $as_echo "$ac_ct_OBJDUMP" >&6; } 41896 else 41897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41898 $as_echo "no" >&6; } 41899 fi 41900 41901 41902 test -n "$ac_ct_OBJDUMP" && break 41903 done 41904 41905 if test "x$ac_ct_OBJDUMP" = x; then 41906 OBJDUMP="" 41907 else 41908 case $cross_compiling:$ac_tool_warned in 41909 yes:) 41910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41912 ac_tool_warned=yes ;; 41913 esac 41914 OBJDUMP=$ac_ct_OBJDUMP 41915 fi 41916 fi 41917 41918 else 41919 # If it succeeded, then it was overridden by the user. We will use it 41920 # for the tool. 41921 41922 # First remove it from the list of overridden variables, so we can test 41923 # for unknown variables in the end. 41924 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41925 41926 # Check if we try to supply an empty value 41927 if test "x$OBJDUMP" = x; then 41928 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJDUMP= (no value)" >&5 41929 $as_echo "$as_me: Setting user supplied tool OBJDUMP= (no value)" >&6;} 41930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 41931 $as_echo_n "checking for OBJDUMP... " >&6; } 41932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41933 $as_echo "disabled" >&6; } 41934 else 41935 # Check if the provided tool contains a complete path. 41936 tool_specified="$OBJDUMP" 41937 tool_basename="${tool_specified##*/}" 41938 if test "x$tool_basename" = "x$tool_specified"; then 41939 # A command without a complete path is provided, search $PATH. 41940 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 41941 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 41942 # Extract the first word of "$tool_basename", so it can be a program name with args. 41943 set dummy $tool_basename; ac_word=$2 41944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41945 $as_echo_n "checking for $ac_word... " >&6; } 41946 if ${ac_cv_path_OBJDUMP+:} false; then : 41947 $as_echo_n "(cached) " >&6 41948 else 41949 case $OBJDUMP in 41950 [\\/]* | ?:[\\/]*) 41951 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 41952 ;; 41953 *) 41954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41955 for as_dir in $PATH 41956 do 41957 IFS=$as_save_IFS 41958 test -z "$as_dir" && as_dir=. 41959 for ac_exec_ext in '' $ac_executable_extensions; do 41960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41961 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 41962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41963 break 2 41964 fi 41965 done 41966 done 41967 IFS=$as_save_IFS 41968 41969 ;; 41970 esac 41971 fi 41972 OBJDUMP=$ac_cv_path_OBJDUMP 41973 if test -n "$OBJDUMP"; then 41974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 41975 $as_echo "$OBJDUMP" >&6; } 41976 else 41977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41978 $as_echo "no" >&6; } 41979 fi 41980 41981 41982 if test "x$OBJDUMP" = x; then 41983 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41984 fi 41985 else 41986 # Otherwise we believe it is a complete path. Use it as it is. 41987 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 41988 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 41989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 41990 $as_echo_n "checking for OBJDUMP... " >&6; } 41991 if test ! -x "$tool_specified"; then 41992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41993 $as_echo "not found" >&6; } 41994 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 41995 fi 41996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41997 $as_echo "$tool_specified" >&6; } 41998 fi 41999 fi 42000 fi 42001 42002 fi 42003 42004 42005 if test "x$OBJDUMP" != x; then 42006 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 42007 # bails if argument is missing. 42008 42009 # Only process if variable expands to non-empty 42010 42011 if test "x$OBJDUMP" != x; then 42012 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42013 42014 # First separate the path from the arguments. This will split at the first 42015 # space. 42016 complete="$OBJDUMP" 42017 path="${complete%% *}" 42018 tmp="$complete EOL" 42019 arguments="${tmp#* }" 42020 42021 # Input might be given as Windows format, start by converting to 42022 # unix format. 42023 new_path=`$CYGPATH -u "$path"` 42024 42025 # Now try to locate executable using which 42026 new_path=`$WHICH "$new_path" 2> /dev/null` 42027 # bat and cmd files are not always considered executable in cygwin causing which 42028 # to not find them 42029 if test "x$new_path" = x \ 42030 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42031 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42032 new_path=`$CYGPATH -u "$path"` 42033 fi 42034 if test "x$new_path" = x; then 42035 # Oops. Which didn't find the executable. 42036 # The splitting of arguments from the executable at a space might have been incorrect, 42037 # since paths with space are more likely in Windows. Give it another try with the whole 42038 # argument. 42039 path="$complete" 42040 arguments="EOL" 42041 new_path=`$CYGPATH -u "$path"` 42042 new_path=`$WHICH "$new_path" 2> /dev/null` 42043 # bat and cmd files are not always considered executable in cygwin causing which 42044 # to not find them 42045 if test "x$new_path" = x \ 42046 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42047 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42048 new_path=`$CYGPATH -u "$path"` 42049 fi 42050 if test "x$new_path" = x; then 42051 # It's still not found. Now this is an unrecoverable error. 42052 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 42053 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 42054 has_space=`$ECHO "$complete" | $GREP " "` 42055 if test "x$has_space" != x; then 42056 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42057 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42058 fi 42059 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 42060 fi 42061 fi 42062 42063 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42064 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42065 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42066 # "foo.exe" is OK but "foo" is an error. 42067 # 42068 # This test is therefore slightly more accurate than "test -f" to check for file presence. 42069 # It is also a way to make sure we got the proper file name for the real test later on. 42070 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42071 if test "x$test_shortpath" = x; then 42072 # Short path failed, file does not exist as specified. 42073 # Try adding .exe or .cmd 42074 if test -f "${new_path}.exe"; then 42075 input_to_shortpath="${new_path}.exe" 42076 elif test -f "${new_path}.cmd"; then 42077 input_to_shortpath="${new_path}.cmd" 42078 else 42079 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 42080 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 42081 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 42082 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 42083 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 42084 fi 42085 else 42086 input_to_shortpath="$new_path" 42087 fi 42088 42089 # Call helper function which possibly converts this using DOS-style short mode. 42090 # If so, the updated path is stored in $new_path. 42091 new_path="$input_to_shortpath" 42092 42093 input_path="$input_to_shortpath" 42094 # Check if we need to convert this using DOS-style short mode. If the path 42095 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42096 # take no chances and rewrite it. 42097 # Note: m4 eats our [], so we need to use [ and ] instead. 42098 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42099 if test "x$has_forbidden_chars" != x; then 42100 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42101 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42102 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42103 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42104 # Going to short mode and back again did indeed matter. Since short mode is 42105 # case insensitive, let's make it lowercase to improve readability. 42106 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42107 # Now convert it back to Unix-style (cygpath) 42108 input_path=`$CYGPATH -u "$shortmode_path"` 42109 new_path="$input_path" 42110 fi 42111 fi 42112 42113 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42114 if test "x$test_cygdrive_prefix" = x; then 42115 # As a simple fix, exclude /usr/bin since it's not a real path. 42116 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 42117 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42118 # a path prefixed by /cygdrive for fixpath to work. 42119 new_path="$CYGWIN_ROOT_PATH$input_path" 42120 fi 42121 fi 42122 42123 # remove trailing .exe if any 42124 new_path="${new_path/%.exe/}" 42125 42126 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42127 42128 # First separate the path from the arguments. This will split at the first 42129 # space. 42130 complete="$OBJDUMP" 42131 path="${complete%% *}" 42132 tmp="$complete EOL" 42133 arguments="${tmp#* }" 42134 42135 # Input might be given as Windows format, start by converting to 42136 # unix format. 42137 new_path="$path" 42138 42139 windows_path="$new_path" 42140 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42141 unix_path=`$CYGPATH -u "$windows_path"` 42142 new_path="$unix_path" 42143 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42144 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42145 new_path="$unix_path" 42146 fi 42147 42148 42149 # Now try to locate executable using which 42150 new_path=`$WHICH "$new_path" 2> /dev/null` 42151 42152 if test "x$new_path" = x; then 42153 # Oops. Which didn't find the executable. 42154 # The splitting of arguments from the executable at a space might have been incorrect, 42155 # since paths with space are more likely in Windows. Give it another try with the whole 42156 # argument. 42157 path="$complete" 42158 arguments="EOL" 42159 new_path="$path" 42160 42161 windows_path="$new_path" 42162 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42163 unix_path=`$CYGPATH -u "$windows_path"` 42164 new_path="$unix_path" 42165 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42166 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42167 new_path="$unix_path" 42168 fi 42169 42170 42171 new_path=`$WHICH "$new_path" 2> /dev/null` 42172 # bat and cmd files are not always considered executable in MSYS causing which 42173 # to not find them 42174 if test "x$new_path" = x \ 42175 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42176 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42177 new_path="$path" 42178 42179 windows_path="$new_path" 42180 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42181 unix_path=`$CYGPATH -u "$windows_path"` 42182 new_path="$unix_path" 42183 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42184 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42185 new_path="$unix_path" 42186 fi 42187 42188 fi 42189 42190 if test "x$new_path" = x; then 42191 # It's still not found. Now this is an unrecoverable error. 42192 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 42193 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 42194 has_space=`$ECHO "$complete" | $GREP " "` 42195 if test "x$has_space" != x; then 42196 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42197 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42198 fi 42199 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 42200 fi 42201 fi 42202 42203 # Now new_path has a complete unix path to the binary 42204 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 42205 # Keep paths in /bin as-is, but remove trailing .exe if any 42206 new_path="${new_path/%.exe/}" 42207 # Do not save /bin paths to all_fixpath_prefixes! 42208 else 42209 # Not in mixed or Windows style, start by that. 42210 new_path=`cmd //c echo $new_path` 42211 42212 input_path="$new_path" 42213 # Check if we need to convert this using DOS-style short mode. If the path 42214 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42215 # take no chances and rewrite it. 42216 # Note: m4 eats our [], so we need to use [ and ] instead. 42217 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42218 if test "x$has_forbidden_chars" != x; then 42219 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42220 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42221 fi 42222 42223 # Output is in $new_path 42224 42225 windows_path="$new_path" 42226 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42227 unix_path=`$CYGPATH -u "$windows_path"` 42228 new_path="$unix_path" 42229 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42230 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42231 new_path="$unix_path" 42232 fi 42233 42234 # remove trailing .exe if any 42235 new_path="${new_path/%.exe/}" 42236 42237 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42238 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42239 fi 42240 42241 else 42242 # We're on a unix platform. Hooray! :) 42243 # First separate the path from the arguments. This will split at the first 42244 # space. 42245 complete="$OBJDUMP" 42246 path="${complete%% *}" 42247 tmp="$complete EOL" 42248 arguments="${tmp#* }" 42249 42250 # Cannot rely on the command "which" here since it doesn't always work. 42251 is_absolute_path=`$ECHO "$path" | $GREP ^/` 42252 if test -z "$is_absolute_path"; then 42253 # Path to executable is not absolute. Find it. 42254 IFS_save="$IFS" 42255 IFS=: 42256 for p in $PATH; do 42257 if test -f "$p/$path" && test -x "$p/$path"; then 42258 new_path="$p/$path" 42259 break 42260 fi 42261 done 42262 IFS="$IFS_save" 42263 else 42264 # This is an absolute path, we can use it without further modifications. 42265 new_path="$path" 42266 fi 42267 42268 if test "x$new_path" = x; then 42269 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 42270 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 42271 has_space=`$ECHO "$complete" | $GREP " "` 42272 if test "x$has_space" != x; then 42273 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 42274 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 42275 fi 42276 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 42277 fi 42278 fi 42279 42280 # Now join together the path and the arguments once again 42281 if test "x$arguments" != xEOL; then 42282 new_complete="$new_path ${arguments% *}" 42283 else 42284 new_complete="$new_path" 42285 fi 42286 42287 if test "x$complete" != "x$new_complete"; then 42288 OBJDUMP="$new_complete" 42289 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 42290 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 42291 fi 42292 fi 42293 42294 fi 42295 42296 42297 # Restore old path. 42298 PATH="$OLD_PATH" 42299 42300 # Restore the flags to the user specified values. 42301 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 42302 CFLAGS="$ORG_CFLAGS" 42303 CXXFLAGS="$ORG_CXXFLAGS" 42304 42305 42306 # Finally do some processing after the detection phase 42307 42308 if test "x$COMPILE_TYPE" = "xcross"; then 42309 # Now we need to find a C/C++ compiler that can build executables for the 42310 # build platform. We can't use the AC_PROG_CC macro, since it can only be 42311 # used once. Also, we need to do this without adding a tools dir to the 42312 # path, otherwise we might pick up cross-compilers which don't use standard 42313 # naming. 42314 42315 OLDPATH="$PATH" 42316 42317 42318 # Check whether --with-build-devkit was given. 42319 if test "${with_build_devkit+set}" = set; then : 42320 withval=$with_build_devkit; 42321 fi 42322 42323 if test "x$with_build_devkit" = "xyes"; then 42324 as_fn_error $? "--with-build-devkit must have a value" "$LINENO" 5 42325 elif test -n "$with_build_devkit"; then 42326 if test ! -d "$with_build_devkit"; then 42327 as_fn_error $? "--with-build-devkit points to non existing dir: $with_build_devkit" "$LINENO" 5 42328 else 42329 42330 # Only process if variable expands to non-empty 42331 42332 if test "x$with_build_devkit" != x; then 42333 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42334 42335 # Input might be given as Windows format, start by converting to 42336 # unix format. 42337 path="$with_build_devkit" 42338 new_path=`$CYGPATH -u "$path"` 42339 42340 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42341 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42342 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42343 # "foo.exe" is OK but "foo" is an error. 42344 # 42345 # This test is therefore slightly more accurate than "test -f" to check for file precense. 42346 # It is also a way to make sure we got the proper file name for the real test later on. 42347 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42348 if test "x$test_shortpath" = x; then 42349 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 42350 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 42351 as_fn_error $? "Cannot locate the the path of with_build_devkit" "$LINENO" 5 42352 fi 42353 42354 # Call helper function which possibly converts this using DOS-style short mode. 42355 # If so, the updated path is stored in $new_path. 42356 42357 input_path="$new_path" 42358 # Check if we need to convert this using DOS-style short mode. If the path 42359 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42360 # take no chances and rewrite it. 42361 # Note: m4 eats our [], so we need to use [ and ] instead. 42362 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42363 if test "x$has_forbidden_chars" != x; then 42364 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42365 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42366 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42367 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42368 # Going to short mode and back again did indeed matter. Since short mode is 42369 # case insensitive, let's make it lowercase to improve readability. 42370 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42371 # Now convert it back to Unix-style (cygpath) 42372 input_path=`$CYGPATH -u "$shortmode_path"` 42373 new_path="$input_path" 42374 fi 42375 fi 42376 42377 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42378 if test "x$test_cygdrive_prefix" = x; then 42379 # As a simple fix, exclude /usr/bin since it's not a real path. 42380 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 42381 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42382 # a path prefixed by /cygdrive for fixpath to work. 42383 new_path="$CYGWIN_ROOT_PATH$input_path" 42384 fi 42385 fi 42386 42387 42388 if test "x$path" != "x$new_path"; then 42389 with_build_devkit="$new_path" 42390 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 42391 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 42392 fi 42393 42394 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42395 42396 path="$with_build_devkit" 42397 has_colon=`$ECHO $path | $GREP ^.:` 42398 new_path="$path" 42399 if test "x$has_colon" = x; then 42400 # Not in mixed or Windows style, start by that. 42401 new_path=`cmd //c echo $path` 42402 fi 42403 42404 42405 input_path="$new_path" 42406 # Check if we need to convert this using DOS-style short mode. If the path 42407 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42408 # take no chances and rewrite it. 42409 # Note: m4 eats our [], so we need to use [ and ] instead. 42410 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42411 if test "x$has_forbidden_chars" != x; then 42412 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42413 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42414 fi 42415 42416 42417 windows_path="$new_path" 42418 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42419 unix_path=`$CYGPATH -u "$windows_path"` 42420 new_path="$unix_path" 42421 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42422 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42423 new_path="$unix_path" 42424 fi 42425 42426 if test "x$path" != "x$new_path"; then 42427 with_build_devkit="$new_path" 42428 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 42429 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 42430 fi 42431 42432 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42433 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42434 42435 else 42436 # We're on a unix platform. Hooray! :) 42437 path="$with_build_devkit" 42438 has_space=`$ECHO "$path" | $GREP " "` 42439 if test "x$has_space" != x; then 42440 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 42441 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 42442 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 42443 fi 42444 42445 # Use eval to expand a potential ~ 42446 eval path="$path" 42447 if test ! -f "$path" && test ! -d "$path"; then 42448 as_fn_error $? "The path of with_build_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 42449 fi 42450 42451 if test -d "$path"; then 42452 with_build_devkit="`cd "$path"; $THEPWDCMD -L`" 42453 else 42454 dir="`$DIRNAME "$path"`" 42455 base="`$BASENAME "$path"`" 42456 with_build_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 42457 fi 42458 fi 42459 fi 42460 42461 BUILD_DEVKIT_ROOT="$with_build_devkit" 42462 # Check for a meta data info file in the root of the devkit 42463 if test -f "$BUILD_DEVKIT_ROOT/devkit.info"; then 42464 # Process devkit.info so that existing devkit variables are not 42465 # modified by this 42466 $SED -e "s/^DEVKIT_/BUILD_DEVKIT_/g" \ 42467 -e "s/\$DEVKIT_ROOT/\$BUILD_DEVKIT_ROOT/g" \ 42468 -e "s/\$host/\$build/g" \ 42469 $BUILD_DEVKIT_ROOT/devkit.info \ 42470 > $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 42471 . $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 42472 # This potentially sets the following: 42473 # A descriptive name of the devkit 42474 42475 if test "x$BUILD_DEVKIT_NAME" = x; then 42476 eval BUILD_DEVKIT_NAME="\${BUILD_DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 42477 fi 42478 42479 # Corresponds to --with-extra-path 42480 42481 if test "x$BUILD_DEVKIT_EXTRA_PATH" = x; then 42482 eval BUILD_DEVKIT_EXTRA_PATH="\${BUILD_DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 42483 fi 42484 42485 # Corresponds to --with-toolchain-path 42486 42487 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 42488 eval BUILD_DEVKIT_TOOLCHAIN_PATH="\${BUILD_DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 42489 fi 42490 42491 # Corresponds to --with-sysroot 42492 42493 if test "x$BUILD_DEVKIT_SYSROOT" = x; then 42494 eval BUILD_DEVKIT_SYSROOT="\${BUILD_DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 42495 fi 42496 42497 # Skip the Window specific parts 42498 fi 42499 42500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build platform devkit" >&5 42501 $as_echo_n "checking for build platform devkit... " >&6; } 42502 if test "x$BUILD_DEVKIT_NAME" != x; then 42503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&5 42504 $as_echo "$BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&6; } 42505 else 42506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_ROOT" >&5 42507 $as_echo "$BUILD_DEVKIT_ROOT" >&6; } 42508 fi 42509 42510 BUILD_SYSROOT="$BUILD_DEVKIT_SYSROOT" 42511 42512 if test "x$BUILD_SYSROOT" != "x"; then 42513 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42514 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42515 # Solaris Studio does not have a concept of sysroot. Instead we must 42516 # make sure the default include and lib dirs are appended to each 42517 # compile and link command line. Must also add -I-xbuiltin to enable 42518 # inlining of system functions and intrinsics. 42519 BUILD_SYSROOT_CFLAGS="-I-xbuiltin -I$BUILD_SYSROOT/usr/include" 42520 BUILD_SYSROOT_LDFLAGS="-L$BUILD_SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 42521 -L$BUILD_SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \ 42522 -L$BUILD_SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR" 42523 fi 42524 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 42525 BUILD_SYSROOT_CFLAGS="--sysroot=$BUILD_SYSROOT" 42526 BUILD_SYSROOT_LDFLAGS="--sysroot=$BUILD_SYSROOT" 42527 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42528 BUILD_SYSROOT_CFLAGS="-isysroot $BUILD_SYSROOT" 42529 BUILD_SYSROOT_LDFLAGS="-isysroot $BUILD_SYSROOT" 42530 fi 42531 # Propagate the sysroot args to hotspot 42532 BUILD_LEGACY_EXTRA_CFLAGS="$BUILD_LEGACY_EXTRA_CFLAGS $BUILD_SYSROOT_CFLAGS" 42533 BUILD_LEGACY_EXTRA_CXXFLAGS="$BUILD_LEGACY_EXTRA_CXXFLAGS $BUILD_SYSROOT_CFLAGS" 42534 BUILD_LEGACY_EXTRA_LDFLAGS="$BUILD_LEGACY_EXTRA_LDFLAGS $BUILD_SYSROOT_LDFLAGS" 42535 # The global CFLAGS and LDFLAGS variables need these for configure to function 42536 BUILD_CFLAGS="$BUILD_CFLAGS $BUILD_SYSROOT_CFLAGS" 42537 BUILD_CPPFLAGS="$BUILD_CPPFLAGS $BUILD_SYSROOT_CFLAGS" 42538 BUILD_CXXFLAGS="$BUILD_CXXFLAGS $BUILD_SYSROOT_CFLAGS" 42539 BUILD_LDFLAGS="$BUILD_LDFLAGS $BUILD_SYSROOT_LDFLAGS" 42540 fi 42541 42542 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42543 # We also need -iframework<path>/System/Library/Frameworks 42544 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 42545 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 42546 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 42547 # set this here so it doesn't have to be peppered throughout the forest 42548 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 42549 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 42550 fi 42551 42552 42553 42554 42555 42556 # Fallback default of just /bin if DEVKIT_PATH is not defined 42557 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 42558 BUILD_DEVKIT_TOOLCHAIN_PATH="$BUILD_DEVKIT_ROOT/bin" 42559 fi 42560 PATH="$BUILD_DEVKIT_TOOLCHAIN_PATH:$BUILD_DEVKIT_EXTRA_PATH" 42561 fi 42562 fi 42563 42564 # FIXME: we should list the discovered compilers as an exclude pattern! 42565 # If we do that, we can do this detection before POST_DETECTION, and still 42566 # find the build compilers in the tools dir, if needed. 42567 42568 42569 42570 # Publish this variable in the help. 42571 42572 42573 if [ -z "${BUILD_CC+x}" ]; then 42574 # The variable is not set by user, try to locate tool using the code snippet 42575 for ac_prog in cl cc gcc 42576 do 42577 # Extract the first word of "$ac_prog", so it can be a program name with args. 42578 set dummy $ac_prog; ac_word=$2 42579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42580 $as_echo_n "checking for $ac_word... " >&6; } 42581 if ${ac_cv_path_BUILD_CC+:} false; then : 42582 $as_echo_n "(cached) " >&6 42583 else 42584 case $BUILD_CC in 42585 [\\/]* | ?:[\\/]*) 42586 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 42587 ;; 42588 *) 42589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42590 for as_dir in $PATH 42591 do 42592 IFS=$as_save_IFS 42593 test -z "$as_dir" && as_dir=. 42594 for ac_exec_ext in '' $ac_executable_extensions; do 42595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42596 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 42597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42598 break 2 42599 fi 42600 done 42601 done 42602 IFS=$as_save_IFS 42603 42604 ;; 42605 esac 42606 fi 42607 BUILD_CC=$ac_cv_path_BUILD_CC 42608 if test -n "$BUILD_CC"; then 42609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 42610 $as_echo "$BUILD_CC" >&6; } 42611 else 42612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42613 $as_echo "no" >&6; } 42614 fi 42615 42616 42617 test -n "$BUILD_CC" && break 42618 done 42619 42620 else 42621 # The variable is set, but is it from the command line or the environment? 42622 42623 # Try to remove the string !BUILD_CC! from our list. 42624 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 42625 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42626 # If it failed, the variable was not from the command line. Ignore it, 42627 # but warn the user (except for BASH, which is always set by the calling BASH). 42628 if test "xBUILD_CC" != xBASH; then 42629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 42630 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 42631 fi 42632 # Try to locate tool using the code snippet 42633 for ac_prog in cl cc gcc 42634 do 42635 # Extract the first word of "$ac_prog", so it can be a program name with args. 42636 set dummy $ac_prog; ac_word=$2 42637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42638 $as_echo_n "checking for $ac_word... " >&6; } 42639 if ${ac_cv_path_BUILD_CC+:} false; then : 42640 $as_echo_n "(cached) " >&6 42641 else 42642 case $BUILD_CC in 42643 [\\/]* | ?:[\\/]*) 42644 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 42645 ;; 42646 *) 42647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42648 for as_dir in $PATH 42649 do 42650 IFS=$as_save_IFS 42651 test -z "$as_dir" && as_dir=. 42652 for ac_exec_ext in '' $ac_executable_extensions; do 42653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42654 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 42655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42656 break 2 42657 fi 42658 done 42659 done 42660 IFS=$as_save_IFS 42661 42662 ;; 42663 esac 42664 fi 42665 BUILD_CC=$ac_cv_path_BUILD_CC 42666 if test -n "$BUILD_CC"; then 42667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 42668 $as_echo "$BUILD_CC" >&6; } 42669 else 42670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42671 $as_echo "no" >&6; } 42672 fi 42673 42674 42675 test -n "$BUILD_CC" && break 42676 done 42677 42678 else 42679 # If it succeeded, then it was overridden by the user. We will use it 42680 # for the tool. 42681 42682 # First remove it from the list of overridden variables, so we can test 42683 # for unknown variables in the end. 42684 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42685 42686 # Check if we try to supply an empty value 42687 if test "x$BUILD_CC" = x; then 42688 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CC= (no value)" >&5 42689 $as_echo "$as_me: Setting user supplied tool BUILD_CC= (no value)" >&6;} 42690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 42691 $as_echo_n "checking for BUILD_CC... " >&6; } 42692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42693 $as_echo "disabled" >&6; } 42694 else 42695 # Check if the provided tool contains a complete path. 42696 tool_specified="$BUILD_CC" 42697 tool_basename="${tool_specified##*/}" 42698 if test "x$tool_basename" = "x$tool_specified"; then 42699 # A command without a complete path is provided, search $PATH. 42700 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 42701 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 42702 # Extract the first word of "$tool_basename", so it can be a program name with args. 42703 set dummy $tool_basename; ac_word=$2 42704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42705 $as_echo_n "checking for $ac_word... " >&6; } 42706 if ${ac_cv_path_BUILD_CC+:} false; then : 42707 $as_echo_n "(cached) " >&6 42708 else 42709 case $BUILD_CC in 42710 [\\/]* | ?:[\\/]*) 42711 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 42712 ;; 42713 *) 42714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42715 for as_dir in $PATH 42716 do 42717 IFS=$as_save_IFS 42718 test -z "$as_dir" && as_dir=. 42719 for ac_exec_ext in '' $ac_executable_extensions; do 42720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42721 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 42722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42723 break 2 42724 fi 42725 done 42726 done 42727 IFS=$as_save_IFS 42728 42729 ;; 42730 esac 42731 fi 42732 BUILD_CC=$ac_cv_path_BUILD_CC 42733 if test -n "$BUILD_CC"; then 42734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 42735 $as_echo "$BUILD_CC" >&6; } 42736 else 42737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42738 $as_echo "no" >&6; } 42739 fi 42740 42741 42742 if test "x$BUILD_CC" = x; then 42743 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42744 fi 42745 else 42746 # Otherwise we believe it is a complete path. Use it as it is. 42747 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 42748 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 42749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 42750 $as_echo_n "checking for BUILD_CC... " >&6; } 42751 if test ! -x "$tool_specified"; then 42752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42753 $as_echo "not found" >&6; } 42754 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 42755 fi 42756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42757 $as_echo "$tool_specified" >&6; } 42758 fi 42759 fi 42760 fi 42761 42762 fi 42763 42764 42765 42766 if test "x$BUILD_CC" = x; then 42767 as_fn_error $? "Could not find required tool for BUILD_CC" "$LINENO" 5 42768 fi 42769 42770 42771 42772 # Only process if variable expands to non-empty 42773 42774 if test "x$BUILD_CC" != x; then 42775 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42776 42777 # First separate the path from the arguments. This will split at the first 42778 # space. 42779 complete="$BUILD_CC" 42780 path="${complete%% *}" 42781 tmp="$complete EOL" 42782 arguments="${tmp#* }" 42783 42784 # Input might be given as Windows format, start by converting to 42785 # unix format. 42786 new_path=`$CYGPATH -u "$path"` 42787 42788 # Now try to locate executable using which 42789 new_path=`$WHICH "$new_path" 2> /dev/null` 42790 # bat and cmd files are not always considered executable in cygwin causing which 42791 # to not find them 42792 if test "x$new_path" = x \ 42793 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42794 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42795 new_path=`$CYGPATH -u "$path"` 42796 fi 42797 if test "x$new_path" = x; then 42798 # Oops. Which didn't find the executable. 42799 # The splitting of arguments from the executable at a space might have been incorrect, 42800 # since paths with space are more likely in Windows. Give it another try with the whole 42801 # argument. 42802 path="$complete" 42803 arguments="EOL" 42804 new_path=`$CYGPATH -u "$path"` 42805 new_path=`$WHICH "$new_path" 2> /dev/null` 42806 # bat and cmd files are not always considered executable in cygwin causing which 42807 # to not find them 42808 if test "x$new_path" = x \ 42809 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42810 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42811 new_path=`$CYGPATH -u "$path"` 42812 fi 42813 if test "x$new_path" = x; then 42814 # It's still not found. Now this is an unrecoverable error. 42815 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 42816 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 42817 has_space=`$ECHO "$complete" | $GREP " "` 42818 if test "x$has_space" != x; then 42819 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42820 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42821 fi 42822 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 42823 fi 42824 fi 42825 42826 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42827 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42828 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42829 # "foo.exe" is OK but "foo" is an error. 42830 # 42831 # This test is therefore slightly more accurate than "test -f" to check for file presence. 42832 # It is also a way to make sure we got the proper file name for the real test later on. 42833 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42834 if test "x$test_shortpath" = x; then 42835 # Short path failed, file does not exist as specified. 42836 # Try adding .exe or .cmd 42837 if test -f "${new_path}.exe"; then 42838 input_to_shortpath="${new_path}.exe" 42839 elif test -f "${new_path}.cmd"; then 42840 input_to_shortpath="${new_path}.cmd" 42841 else 42842 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 42843 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 42844 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 42845 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 42846 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 42847 fi 42848 else 42849 input_to_shortpath="$new_path" 42850 fi 42851 42852 # Call helper function which possibly converts this using DOS-style short mode. 42853 # If so, the updated path is stored in $new_path. 42854 new_path="$input_to_shortpath" 42855 42856 input_path="$input_to_shortpath" 42857 # Check if we need to convert this using DOS-style short mode. If the path 42858 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42859 # take no chances and rewrite it. 42860 # Note: m4 eats our [], so we need to use [ and ] instead. 42861 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42862 if test "x$has_forbidden_chars" != x; then 42863 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42864 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42865 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42866 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42867 # Going to short mode and back again did indeed matter. Since short mode is 42868 # case insensitive, let's make it lowercase to improve readability. 42869 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42870 # Now convert it back to Unix-style (cygpath) 42871 input_path=`$CYGPATH -u "$shortmode_path"` 42872 new_path="$input_path" 42873 fi 42874 fi 42875 42876 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42877 if test "x$test_cygdrive_prefix" = x; then 42878 # As a simple fix, exclude /usr/bin since it's not a real path. 42879 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 42880 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42881 # a path prefixed by /cygdrive for fixpath to work. 42882 new_path="$CYGWIN_ROOT_PATH$input_path" 42883 fi 42884 fi 42885 42886 # remove trailing .exe if any 42887 new_path="${new_path/%.exe/}" 42888 42889 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42890 42891 # First separate the path from the arguments. This will split at the first 42892 # space. 42893 complete="$BUILD_CC" 42894 path="${complete%% *}" 42895 tmp="$complete EOL" 42896 arguments="${tmp#* }" 42897 42898 # Input might be given as Windows format, start by converting to 42899 # unix format. 42900 new_path="$path" 42901 42902 windows_path="$new_path" 42903 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42904 unix_path=`$CYGPATH -u "$windows_path"` 42905 new_path="$unix_path" 42906 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42907 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42908 new_path="$unix_path" 42909 fi 42910 42911 42912 # Now try to locate executable using which 42913 new_path=`$WHICH "$new_path" 2> /dev/null` 42914 42915 if test "x$new_path" = x; then 42916 # Oops. Which didn't find the executable. 42917 # The splitting of arguments from the executable at a space might have been incorrect, 42918 # since paths with space are more likely in Windows. Give it another try with the whole 42919 # argument. 42920 path="$complete" 42921 arguments="EOL" 42922 new_path="$path" 42923 42924 windows_path="$new_path" 42925 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42926 unix_path=`$CYGPATH -u "$windows_path"` 42927 new_path="$unix_path" 42928 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42929 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42930 new_path="$unix_path" 42931 fi 42932 42933 42934 new_path=`$WHICH "$new_path" 2> /dev/null` 42935 # bat and cmd files are not always considered executable in MSYS causing which 42936 # to not find them 42937 if test "x$new_path" = x \ 42938 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42939 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42940 new_path="$path" 42941 42942 windows_path="$new_path" 42943 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42944 unix_path=`$CYGPATH -u "$windows_path"` 42945 new_path="$unix_path" 42946 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42947 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42948 new_path="$unix_path" 42949 fi 42950 42951 fi 42952 42953 if test "x$new_path" = x; then 42954 # It's still not found. Now this is an unrecoverable error. 42955 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 42956 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 42957 has_space=`$ECHO "$complete" | $GREP " "` 42958 if test "x$has_space" != x; then 42959 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42960 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42961 fi 42962 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 42963 fi 42964 fi 42965 42966 # Now new_path has a complete unix path to the binary 42967 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 42968 # Keep paths in /bin as-is, but remove trailing .exe if any 42969 new_path="${new_path/%.exe/}" 42970 # Do not save /bin paths to all_fixpath_prefixes! 42971 else 42972 # Not in mixed or Windows style, start by that. 42973 new_path=`cmd //c echo $new_path` 42974 42975 input_path="$new_path" 42976 # Check if we need to convert this using DOS-style short mode. If the path 42977 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42978 # take no chances and rewrite it. 42979 # Note: m4 eats our [], so we need to use [ and ] instead. 42980 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42981 if test "x$has_forbidden_chars" != x; then 42982 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42983 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42984 fi 42985 42986 # Output is in $new_path 42987 42988 windows_path="$new_path" 42989 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42990 unix_path=`$CYGPATH -u "$windows_path"` 42991 new_path="$unix_path" 42992 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42993 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42994 new_path="$unix_path" 42995 fi 42996 42997 # remove trailing .exe if any 42998 new_path="${new_path/%.exe/}" 42999 43000 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43001 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43002 fi 43003 43004 else 43005 # We're on a unix platform. Hooray! :) 43006 # First separate the path from the arguments. This will split at the first 43007 # space. 43008 complete="$BUILD_CC" 43009 path="${complete%% *}" 43010 tmp="$complete EOL" 43011 arguments="${tmp#* }" 43012 43013 # Cannot rely on the command "which" here since it doesn't always work. 43014 is_absolute_path=`$ECHO "$path" | $GREP ^/` 43015 if test -z "$is_absolute_path"; then 43016 # Path to executable is not absolute. Find it. 43017 IFS_save="$IFS" 43018 IFS=: 43019 for p in $PATH; do 43020 if test -f "$p/$path" && test -x "$p/$path"; then 43021 new_path="$p/$path" 43022 break 43023 fi 43024 done 43025 IFS="$IFS_save" 43026 else 43027 # This is an absolute path, we can use it without further modifications. 43028 new_path="$path" 43029 fi 43030 43031 if test "x$new_path" = x; then 43032 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 43033 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 43034 has_space=`$ECHO "$complete" | $GREP " "` 43035 if test "x$has_space" != x; then 43036 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 43037 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 43038 fi 43039 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 43040 fi 43041 fi 43042 43043 # Now join together the path and the arguments once again 43044 if test "x$arguments" != xEOL; then 43045 new_complete="$new_path ${arguments% *}" 43046 else 43047 new_complete="$new_path" 43048 fi 43049 43050 if test "x$complete" != "x$new_complete"; then 43051 BUILD_CC="$new_complete" 43052 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 43053 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 43054 fi 43055 fi 43056 43057 43058 43059 43060 # Publish this variable in the help. 43061 43062 43063 if [ -z "${BUILD_CXX+x}" ]; then 43064 # The variable is not set by user, try to locate tool using the code snippet 43065 for ac_prog in cl CC g++ 43066 do 43067 # Extract the first word of "$ac_prog", so it can be a program name with args. 43068 set dummy $ac_prog; ac_word=$2 43069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43070 $as_echo_n "checking for $ac_word... " >&6; } 43071 if ${ac_cv_path_BUILD_CXX+:} false; then : 43072 $as_echo_n "(cached) " >&6 43073 else 43074 case $BUILD_CXX in 43075 [\\/]* | ?:[\\/]*) 43076 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 43077 ;; 43078 *) 43079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43080 for as_dir in $PATH 43081 do 43082 IFS=$as_save_IFS 43083 test -z "$as_dir" && as_dir=. 43084 for ac_exec_ext in '' $ac_executable_extensions; do 43085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43086 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 43087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43088 break 2 43089 fi 43090 done 43091 done 43092 IFS=$as_save_IFS 43093 43094 ;; 43095 esac 43096 fi 43097 BUILD_CXX=$ac_cv_path_BUILD_CXX 43098 if test -n "$BUILD_CXX"; then 43099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 43100 $as_echo "$BUILD_CXX" >&6; } 43101 else 43102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43103 $as_echo "no" >&6; } 43104 fi 43105 43106 43107 test -n "$BUILD_CXX" && break 43108 done 43109 43110 else 43111 # The variable is set, but is it from the command line or the environment? 43112 43113 # Try to remove the string !BUILD_CXX! from our list. 43114 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 43115 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43116 # If it failed, the variable was not from the command line. Ignore it, 43117 # but warn the user (except for BASH, which is always set by the calling BASH). 43118 if test "xBUILD_CXX" != xBASH; then 43119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 43120 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 43121 fi 43122 # Try to locate tool using the code snippet 43123 for ac_prog in cl CC g++ 43124 do 43125 # Extract the first word of "$ac_prog", so it can be a program name with args. 43126 set dummy $ac_prog; ac_word=$2 43127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43128 $as_echo_n "checking for $ac_word... " >&6; } 43129 if ${ac_cv_path_BUILD_CXX+:} false; then : 43130 $as_echo_n "(cached) " >&6 43131 else 43132 case $BUILD_CXX in 43133 [\\/]* | ?:[\\/]*) 43134 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 43135 ;; 43136 *) 43137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43138 for as_dir in $PATH 43139 do 43140 IFS=$as_save_IFS 43141 test -z "$as_dir" && as_dir=. 43142 for ac_exec_ext in '' $ac_executable_extensions; do 43143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43144 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 43145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43146 break 2 43147 fi 43148 done 43149 done 43150 IFS=$as_save_IFS 43151 43152 ;; 43153 esac 43154 fi 43155 BUILD_CXX=$ac_cv_path_BUILD_CXX 43156 if test -n "$BUILD_CXX"; then 43157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 43158 $as_echo "$BUILD_CXX" >&6; } 43159 else 43160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43161 $as_echo "no" >&6; } 43162 fi 43163 43164 43165 test -n "$BUILD_CXX" && break 43166 done 43167 43168 else 43169 # If it succeeded, then it was overridden by the user. We will use it 43170 # for the tool. 43171 43172 # First remove it from the list of overridden variables, so we can test 43173 # for unknown variables in the end. 43174 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43175 43176 # Check if we try to supply an empty value 43177 if test "x$BUILD_CXX" = x; then 43178 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CXX= (no value)" >&5 43179 $as_echo "$as_me: Setting user supplied tool BUILD_CXX= (no value)" >&6;} 43180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 43181 $as_echo_n "checking for BUILD_CXX... " >&6; } 43182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43183 $as_echo "disabled" >&6; } 43184 else 43185 # Check if the provided tool contains a complete path. 43186 tool_specified="$BUILD_CXX" 43187 tool_basename="${tool_specified##*/}" 43188 if test "x$tool_basename" = "x$tool_specified"; then 43189 # A command without a complete path is provided, search $PATH. 43190 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 43191 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 43192 # Extract the first word of "$tool_basename", so it can be a program name with args. 43193 set dummy $tool_basename; ac_word=$2 43194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43195 $as_echo_n "checking for $ac_word... " >&6; } 43196 if ${ac_cv_path_BUILD_CXX+:} false; then : 43197 $as_echo_n "(cached) " >&6 43198 else 43199 case $BUILD_CXX in 43200 [\\/]* | ?:[\\/]*) 43201 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 43202 ;; 43203 *) 43204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43205 for as_dir in $PATH 43206 do 43207 IFS=$as_save_IFS 43208 test -z "$as_dir" && as_dir=. 43209 for ac_exec_ext in '' $ac_executable_extensions; do 43210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43211 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 43212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43213 break 2 43214 fi 43215 done 43216 done 43217 IFS=$as_save_IFS 43218 43219 ;; 43220 esac 43221 fi 43222 BUILD_CXX=$ac_cv_path_BUILD_CXX 43223 if test -n "$BUILD_CXX"; then 43224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 43225 $as_echo "$BUILD_CXX" >&6; } 43226 else 43227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43228 $as_echo "no" >&6; } 43229 fi 43230 43231 43232 if test "x$BUILD_CXX" = x; then 43233 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 43234 fi 43235 else 43236 # Otherwise we believe it is a complete path. Use it as it is. 43237 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 43238 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 43239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 43240 $as_echo_n "checking for BUILD_CXX... " >&6; } 43241 if test ! -x "$tool_specified"; then 43242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 43243 $as_echo "not found" >&6; } 43244 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 43245 fi 43246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 43247 $as_echo "$tool_specified" >&6; } 43248 fi 43249 fi 43250 fi 43251 43252 fi 43253 43254 43255 43256 if test "x$BUILD_CXX" = x; then 43257 as_fn_error $? "Could not find required tool for BUILD_CXX" "$LINENO" 5 43258 fi 43259 43260 43261 43262 # Only process if variable expands to non-empty 43263 43264 if test "x$BUILD_CXX" != x; then 43265 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43266 43267 # First separate the path from the arguments. This will split at the first 43268 # space. 43269 complete="$BUILD_CXX" 43270 path="${complete%% *}" 43271 tmp="$complete EOL" 43272 arguments="${tmp#* }" 43273 43274 # Input might be given as Windows format, start by converting to 43275 # unix format. 43276 new_path=`$CYGPATH -u "$path"` 43277 43278 # Now try to locate executable using which 43279 new_path=`$WHICH "$new_path" 2> /dev/null` 43280 # bat and cmd files are not always considered executable in cygwin causing which 43281 # to not find them 43282 if test "x$new_path" = x \ 43283 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43284 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43285 new_path=`$CYGPATH -u "$path"` 43286 fi 43287 if test "x$new_path" = x; then 43288 # Oops. Which didn't find the executable. 43289 # The splitting of arguments from the executable at a space might have been incorrect, 43290 # since paths with space are more likely in Windows. Give it another try with the whole 43291 # argument. 43292 path="$complete" 43293 arguments="EOL" 43294 new_path=`$CYGPATH -u "$path"` 43295 new_path=`$WHICH "$new_path" 2> /dev/null` 43296 # bat and cmd files are not always considered executable in cygwin causing which 43297 # to not find them 43298 if test "x$new_path" = x \ 43299 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43300 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43301 new_path=`$CYGPATH -u "$path"` 43302 fi 43303 if test "x$new_path" = x; then 43304 # It's still not found. Now this is an unrecoverable error. 43305 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 43306 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 43307 has_space=`$ECHO "$complete" | $GREP " "` 43308 if test "x$has_space" != x; then 43309 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43310 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43311 fi 43312 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 43313 fi 43314 fi 43315 43316 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43317 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43318 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43319 # "foo.exe" is OK but "foo" is an error. 43320 # 43321 # This test is therefore slightly more accurate than "test -f" to check for file presence. 43322 # It is also a way to make sure we got the proper file name for the real test later on. 43323 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43324 if test "x$test_shortpath" = x; then 43325 # Short path failed, file does not exist as specified. 43326 # Try adding .exe or .cmd 43327 if test -f "${new_path}.exe"; then 43328 input_to_shortpath="${new_path}.exe" 43329 elif test -f "${new_path}.cmd"; then 43330 input_to_shortpath="${new_path}.cmd" 43331 else 43332 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 43333 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 43334 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 43335 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 43336 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 43337 fi 43338 else 43339 input_to_shortpath="$new_path" 43340 fi 43341 43342 # Call helper function which possibly converts this using DOS-style short mode. 43343 # If so, the updated path is stored in $new_path. 43344 new_path="$input_to_shortpath" 43345 43346 input_path="$input_to_shortpath" 43347 # Check if we need to convert this using DOS-style short mode. If the path 43348 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43349 # take no chances and rewrite it. 43350 # Note: m4 eats our [], so we need to use [ and ] instead. 43351 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43352 if test "x$has_forbidden_chars" != x; then 43353 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43354 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43355 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43356 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43357 # Going to short mode and back again did indeed matter. Since short mode is 43358 # case insensitive, let's make it lowercase to improve readability. 43359 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43360 # Now convert it back to Unix-style (cygpath) 43361 input_path=`$CYGPATH -u "$shortmode_path"` 43362 new_path="$input_path" 43363 fi 43364 fi 43365 43366 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43367 if test "x$test_cygdrive_prefix" = x; then 43368 # As a simple fix, exclude /usr/bin since it's not a real path. 43369 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 43370 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43371 # a path prefixed by /cygdrive for fixpath to work. 43372 new_path="$CYGWIN_ROOT_PATH$input_path" 43373 fi 43374 fi 43375 43376 # remove trailing .exe if any 43377 new_path="${new_path/%.exe/}" 43378 43379 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43380 43381 # First separate the path from the arguments. This will split at the first 43382 # space. 43383 complete="$BUILD_CXX" 43384 path="${complete%% *}" 43385 tmp="$complete EOL" 43386 arguments="${tmp#* }" 43387 43388 # Input might be given as Windows format, start by converting to 43389 # unix format. 43390 new_path="$path" 43391 43392 windows_path="$new_path" 43393 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43394 unix_path=`$CYGPATH -u "$windows_path"` 43395 new_path="$unix_path" 43396 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43397 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43398 new_path="$unix_path" 43399 fi 43400 43401 43402 # Now try to locate executable using which 43403 new_path=`$WHICH "$new_path" 2> /dev/null` 43404 43405 if test "x$new_path" = x; then 43406 # Oops. Which didn't find the executable. 43407 # The splitting of arguments from the executable at a space might have been incorrect, 43408 # since paths with space are more likely in Windows. Give it another try with the whole 43409 # argument. 43410 path="$complete" 43411 arguments="EOL" 43412 new_path="$path" 43413 43414 windows_path="$new_path" 43415 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43416 unix_path=`$CYGPATH -u "$windows_path"` 43417 new_path="$unix_path" 43418 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43419 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43420 new_path="$unix_path" 43421 fi 43422 43423 43424 new_path=`$WHICH "$new_path" 2> /dev/null` 43425 # bat and cmd files are not always considered executable in MSYS causing which 43426 # to not find them 43427 if test "x$new_path" = x \ 43428 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43429 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43430 new_path="$path" 43431 43432 windows_path="$new_path" 43433 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43434 unix_path=`$CYGPATH -u "$windows_path"` 43435 new_path="$unix_path" 43436 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43437 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43438 new_path="$unix_path" 43439 fi 43440 43441 fi 43442 43443 if test "x$new_path" = x; then 43444 # It's still not found. Now this is an unrecoverable error. 43445 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 43446 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 43447 has_space=`$ECHO "$complete" | $GREP " "` 43448 if test "x$has_space" != x; then 43449 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43450 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43451 fi 43452 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 43453 fi 43454 fi 43455 43456 # Now new_path has a complete unix path to the binary 43457 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 43458 # Keep paths in /bin as-is, but remove trailing .exe if any 43459 new_path="${new_path/%.exe/}" 43460 # Do not save /bin paths to all_fixpath_prefixes! 43461 else 43462 # Not in mixed or Windows style, start by that. 43463 new_path=`cmd //c echo $new_path` 43464 43465 input_path="$new_path" 43466 # Check if we need to convert this using DOS-style short mode. If the path 43467 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43468 # take no chances and rewrite it. 43469 # Note: m4 eats our [], so we need to use [ and ] instead. 43470 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43471 if test "x$has_forbidden_chars" != x; then 43472 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43473 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43474 fi 43475 43476 # Output is in $new_path 43477 43478 windows_path="$new_path" 43479 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43480 unix_path=`$CYGPATH -u "$windows_path"` 43481 new_path="$unix_path" 43482 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43483 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43484 new_path="$unix_path" 43485 fi 43486 43487 # remove trailing .exe if any 43488 new_path="${new_path/%.exe/}" 43489 43490 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43491 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43492 fi 43493 43494 else 43495 # We're on a unix platform. Hooray! :) 43496 # First separate the path from the arguments. This will split at the first 43497 # space. 43498 complete="$BUILD_CXX" 43499 path="${complete%% *}" 43500 tmp="$complete EOL" 43501 arguments="${tmp#* }" 43502 43503 # Cannot rely on the command "which" here since it doesn't always work. 43504 is_absolute_path=`$ECHO "$path" | $GREP ^/` 43505 if test -z "$is_absolute_path"; then 43506 # Path to executable is not absolute. Find it. 43507 IFS_save="$IFS" 43508 IFS=: 43509 for p in $PATH; do 43510 if test -f "$p/$path" && test -x "$p/$path"; then 43511 new_path="$p/$path" 43512 break 43513 fi 43514 done 43515 IFS="$IFS_save" 43516 else 43517 # This is an absolute path, we can use it without further modifications. 43518 new_path="$path" 43519 fi 43520 43521 if test "x$new_path" = x; then 43522 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 43523 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 43524 has_space=`$ECHO "$complete" | $GREP " "` 43525 if test "x$has_space" != x; then 43526 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 43527 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 43528 fi 43529 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 43530 fi 43531 fi 43532 43533 # Now join together the path and the arguments once again 43534 if test "x$arguments" != xEOL; then 43535 new_complete="$new_path ${arguments% *}" 43536 else 43537 new_complete="$new_path" 43538 fi 43539 43540 if test "x$complete" != "x$new_complete"; then 43541 BUILD_CXX="$new_complete" 43542 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 43543 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 43544 fi 43545 fi 43546 43547 43548 43549 # Publish this variable in the help. 43550 43551 43552 if [ -z "${BUILD_NM+x}" ]; then 43553 # The variable is not set by user, try to locate tool using the code snippet 43554 for ac_prog in nm gcc-nm 43555 do 43556 # Extract the first word of "$ac_prog", so it can be a program name with args. 43557 set dummy $ac_prog; ac_word=$2 43558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43559 $as_echo_n "checking for $ac_word... " >&6; } 43560 if ${ac_cv_path_BUILD_NM+:} false; then : 43561 $as_echo_n "(cached) " >&6 43562 else 43563 case $BUILD_NM in 43564 [\\/]* | ?:[\\/]*) 43565 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 43566 ;; 43567 *) 43568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43569 for as_dir in $PATH 43570 do 43571 IFS=$as_save_IFS 43572 test -z "$as_dir" && as_dir=. 43573 for ac_exec_ext in '' $ac_executable_extensions; do 43574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43575 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 43576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43577 break 2 43578 fi 43579 done 43580 done 43581 IFS=$as_save_IFS 43582 43583 ;; 43584 esac 43585 fi 43586 BUILD_NM=$ac_cv_path_BUILD_NM 43587 if test -n "$BUILD_NM"; then 43588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 43589 $as_echo "$BUILD_NM" >&6; } 43590 else 43591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43592 $as_echo "no" >&6; } 43593 fi 43594 43595 43596 test -n "$BUILD_NM" && break 43597 done 43598 43599 else 43600 # The variable is set, but is it from the command line or the environment? 43601 43602 # Try to remove the string !BUILD_NM! from our list. 43603 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_NM!/} 43604 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43605 # If it failed, the variable was not from the command line. Ignore it, 43606 # but warn the user (except for BASH, which is always set by the calling BASH). 43607 if test "xBUILD_NM" != xBASH; then 43608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&5 43609 $as_echo "$as_me: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&2;} 43610 fi 43611 # Try to locate tool using the code snippet 43612 for ac_prog in nm gcc-nm 43613 do 43614 # Extract the first word of "$ac_prog", so it can be a program name with args. 43615 set dummy $ac_prog; ac_word=$2 43616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43617 $as_echo_n "checking for $ac_word... " >&6; } 43618 if ${ac_cv_path_BUILD_NM+:} false; then : 43619 $as_echo_n "(cached) " >&6 43620 else 43621 case $BUILD_NM in 43622 [\\/]* | ?:[\\/]*) 43623 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 43624 ;; 43625 *) 43626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43627 for as_dir in $PATH 43628 do 43629 IFS=$as_save_IFS 43630 test -z "$as_dir" && as_dir=. 43631 for ac_exec_ext in '' $ac_executable_extensions; do 43632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43633 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 43634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43635 break 2 43636 fi 43637 done 43638 done 43639 IFS=$as_save_IFS 43640 43641 ;; 43642 esac 43643 fi 43644 BUILD_NM=$ac_cv_path_BUILD_NM 43645 if test -n "$BUILD_NM"; then 43646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 43647 $as_echo "$BUILD_NM" >&6; } 43648 else 43649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43650 $as_echo "no" >&6; } 43651 fi 43652 43653 43654 test -n "$BUILD_NM" && break 43655 done 43656 43657 else 43658 # If it succeeded, then it was overridden by the user. We will use it 43659 # for the tool. 43660 43661 # First remove it from the list of overridden variables, so we can test 43662 # for unknown variables in the end. 43663 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43664 43665 # Check if we try to supply an empty value 43666 if test "x$BUILD_NM" = x; then 43667 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_NM= (no value)" >&5 43668 $as_echo "$as_me: Setting user supplied tool BUILD_NM= (no value)" >&6;} 43669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 43670 $as_echo_n "checking for BUILD_NM... " >&6; } 43671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43672 $as_echo "disabled" >&6; } 43673 else 43674 # Check if the provided tool contains a complete path. 43675 tool_specified="$BUILD_NM" 43676 tool_basename="${tool_specified##*/}" 43677 if test "x$tool_basename" = "x$tool_specified"; then 43678 # A command without a complete path is provided, search $PATH. 43679 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_NM=$tool_basename" >&5 43680 $as_echo "$as_me: Will search for user supplied tool BUILD_NM=$tool_basename" >&6;} 43681 # Extract the first word of "$tool_basename", so it can be a program name with args. 43682 set dummy $tool_basename; ac_word=$2 43683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43684 $as_echo_n "checking for $ac_word... " >&6; } 43685 if ${ac_cv_path_BUILD_NM+:} false; then : 43686 $as_echo_n "(cached) " >&6 43687 else 43688 case $BUILD_NM in 43689 [\\/]* | ?:[\\/]*) 43690 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 43691 ;; 43692 *) 43693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43694 for as_dir in $PATH 43695 do 43696 IFS=$as_save_IFS 43697 test -z "$as_dir" && as_dir=. 43698 for ac_exec_ext in '' $ac_executable_extensions; do 43699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43700 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 43701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43702 break 2 43703 fi 43704 done 43705 done 43706 IFS=$as_save_IFS 43707 43708 ;; 43709 esac 43710 fi 43711 BUILD_NM=$ac_cv_path_BUILD_NM 43712 if test -n "$BUILD_NM"; then 43713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 43714 $as_echo "$BUILD_NM" >&6; } 43715 else 43716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43717 $as_echo "no" >&6; } 43718 fi 43719 43720 43721 if test "x$BUILD_NM" = x; then 43722 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 43723 fi 43724 else 43725 # Otherwise we believe it is a complete path. Use it as it is. 43726 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_NM=$tool_specified" >&5 43727 $as_echo "$as_me: Will use user supplied tool BUILD_NM=$tool_specified" >&6;} 43728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 43729 $as_echo_n "checking for BUILD_NM... " >&6; } 43730 if test ! -x "$tool_specified"; then 43731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 43732 $as_echo "not found" >&6; } 43733 as_fn_error $? "User supplied tool BUILD_NM=$tool_specified does not exist or is not executable" "$LINENO" 5 43734 fi 43735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 43736 $as_echo "$tool_specified" >&6; } 43737 fi 43738 fi 43739 fi 43740 43741 fi 43742 43743 43744 43745 # Only process if variable expands to non-empty 43746 43747 if test "x$BUILD_NM" != x; then 43748 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43749 43750 # First separate the path from the arguments. This will split at the first 43751 # space. 43752 complete="$BUILD_NM" 43753 path="${complete%% *}" 43754 tmp="$complete EOL" 43755 arguments="${tmp#* }" 43756 43757 # Input might be given as Windows format, start by converting to 43758 # unix format. 43759 new_path=`$CYGPATH -u "$path"` 43760 43761 # Now try to locate executable using which 43762 new_path=`$WHICH "$new_path" 2> /dev/null` 43763 # bat and cmd files are not always considered executable in cygwin causing which 43764 # to not find them 43765 if test "x$new_path" = x \ 43766 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43767 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43768 new_path=`$CYGPATH -u "$path"` 43769 fi 43770 if test "x$new_path" = x; then 43771 # Oops. Which didn't find the executable. 43772 # The splitting of arguments from the executable at a space might have been incorrect, 43773 # since paths with space are more likely in Windows. Give it another try with the whole 43774 # argument. 43775 path="$complete" 43776 arguments="EOL" 43777 new_path=`$CYGPATH -u "$path"` 43778 new_path=`$WHICH "$new_path" 2> /dev/null` 43779 # bat and cmd files are not always considered executable in cygwin causing which 43780 # to not find them 43781 if test "x$new_path" = x \ 43782 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43783 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43784 new_path=`$CYGPATH -u "$path"` 43785 fi 43786 if test "x$new_path" = x; then 43787 # It's still not found. Now this is an unrecoverable error. 43788 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 43789 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 43790 has_space=`$ECHO "$complete" | $GREP " "` 43791 if test "x$has_space" != x; then 43792 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43793 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43794 fi 43795 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 43796 fi 43797 fi 43798 43799 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43800 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43801 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43802 # "foo.exe" is OK but "foo" is an error. 43803 # 43804 # This test is therefore slightly more accurate than "test -f" to check for file presence. 43805 # It is also a way to make sure we got the proper file name for the real test later on. 43806 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43807 if test "x$test_shortpath" = x; then 43808 # Short path failed, file does not exist as specified. 43809 # Try adding .exe or .cmd 43810 if test -f "${new_path}.exe"; then 43811 input_to_shortpath="${new_path}.exe" 43812 elif test -f "${new_path}.cmd"; then 43813 input_to_shortpath="${new_path}.cmd" 43814 else 43815 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&5 43816 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&6;} 43817 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 43818 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 43819 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 43820 fi 43821 else 43822 input_to_shortpath="$new_path" 43823 fi 43824 43825 # Call helper function which possibly converts this using DOS-style short mode. 43826 # If so, the updated path is stored in $new_path. 43827 new_path="$input_to_shortpath" 43828 43829 input_path="$input_to_shortpath" 43830 # Check if we need to convert this using DOS-style short mode. If the path 43831 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43832 # take no chances and rewrite it. 43833 # Note: m4 eats our [], so we need to use [ and ] instead. 43834 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43835 if test "x$has_forbidden_chars" != x; then 43836 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43837 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43838 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43839 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43840 # Going to short mode and back again did indeed matter. Since short mode is 43841 # case insensitive, let's make it lowercase to improve readability. 43842 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43843 # Now convert it back to Unix-style (cygpath) 43844 input_path=`$CYGPATH -u "$shortmode_path"` 43845 new_path="$input_path" 43846 fi 43847 fi 43848 43849 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43850 if test "x$test_cygdrive_prefix" = x; then 43851 # As a simple fix, exclude /usr/bin since it's not a real path. 43852 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 43853 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43854 # a path prefixed by /cygdrive for fixpath to work. 43855 new_path="$CYGWIN_ROOT_PATH$input_path" 43856 fi 43857 fi 43858 43859 # remove trailing .exe if any 43860 new_path="${new_path/%.exe/}" 43861 43862 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43863 43864 # First separate the path from the arguments. This will split at the first 43865 # space. 43866 complete="$BUILD_NM" 43867 path="${complete%% *}" 43868 tmp="$complete EOL" 43869 arguments="${tmp#* }" 43870 43871 # Input might be given as Windows format, start by converting to 43872 # unix format. 43873 new_path="$path" 43874 43875 windows_path="$new_path" 43876 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43877 unix_path=`$CYGPATH -u "$windows_path"` 43878 new_path="$unix_path" 43879 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43880 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43881 new_path="$unix_path" 43882 fi 43883 43884 43885 # Now try to locate executable using which 43886 new_path=`$WHICH "$new_path" 2> /dev/null` 43887 43888 if test "x$new_path" = x; then 43889 # Oops. Which didn't find the executable. 43890 # The splitting of arguments from the executable at a space might have been incorrect, 43891 # since paths with space are more likely in Windows. Give it another try with the whole 43892 # argument. 43893 path="$complete" 43894 arguments="EOL" 43895 new_path="$path" 43896 43897 windows_path="$new_path" 43898 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43899 unix_path=`$CYGPATH -u "$windows_path"` 43900 new_path="$unix_path" 43901 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43902 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43903 new_path="$unix_path" 43904 fi 43905 43906 43907 new_path=`$WHICH "$new_path" 2> /dev/null` 43908 # bat and cmd files are not always considered executable in MSYS causing which 43909 # to not find them 43910 if test "x$new_path" = x \ 43911 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43912 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43913 new_path="$path" 43914 43915 windows_path="$new_path" 43916 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43917 unix_path=`$CYGPATH -u "$windows_path"` 43918 new_path="$unix_path" 43919 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43920 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43921 new_path="$unix_path" 43922 fi 43923 43924 fi 43925 43926 if test "x$new_path" = x; then 43927 # It's still not found. Now this is an unrecoverable error. 43928 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 43929 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 43930 has_space=`$ECHO "$complete" | $GREP " "` 43931 if test "x$has_space" != x; then 43932 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43933 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43934 fi 43935 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 43936 fi 43937 fi 43938 43939 # Now new_path has a complete unix path to the binary 43940 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 43941 # Keep paths in /bin as-is, but remove trailing .exe if any 43942 new_path="${new_path/%.exe/}" 43943 # Do not save /bin paths to all_fixpath_prefixes! 43944 else 43945 # Not in mixed or Windows style, start by that. 43946 new_path=`cmd //c echo $new_path` 43947 43948 input_path="$new_path" 43949 # Check if we need to convert this using DOS-style short mode. If the path 43950 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43951 # take no chances and rewrite it. 43952 # Note: m4 eats our [], so we need to use [ and ] instead. 43953 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43954 if test "x$has_forbidden_chars" != x; then 43955 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43956 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43957 fi 43958 43959 # Output is in $new_path 43960 43961 windows_path="$new_path" 43962 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43963 unix_path=`$CYGPATH -u "$windows_path"` 43964 new_path="$unix_path" 43965 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43966 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43967 new_path="$unix_path" 43968 fi 43969 43970 # remove trailing .exe if any 43971 new_path="${new_path/%.exe/}" 43972 43973 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43974 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43975 fi 43976 43977 else 43978 # We're on a unix platform. Hooray! :) 43979 # First separate the path from the arguments. This will split at the first 43980 # space. 43981 complete="$BUILD_NM" 43982 path="${complete%% *}" 43983 tmp="$complete EOL" 43984 arguments="${tmp#* }" 43985 43986 # Cannot rely on the command "which" here since it doesn't always work. 43987 is_absolute_path=`$ECHO "$path" | $GREP ^/` 43988 if test -z "$is_absolute_path"; then 43989 # Path to executable is not absolute. Find it. 43990 IFS_save="$IFS" 43991 IFS=: 43992 for p in $PATH; do 43993 if test -f "$p/$path" && test -x "$p/$path"; then 43994 new_path="$p/$path" 43995 break 43996 fi 43997 done 43998 IFS="$IFS_save" 43999 else 44000 # This is an absolute path, we can use it without further modifications. 44001 new_path="$path" 44002 fi 44003 44004 if test "x$new_path" = x; then 44005 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 44006 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 44007 has_space=`$ECHO "$complete" | $GREP " "` 44008 if test "x$has_space" != x; then 44009 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44010 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44011 fi 44012 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 44013 fi 44014 fi 44015 44016 # Now join together the path and the arguments once again 44017 if test "x$arguments" != xEOL; then 44018 new_complete="$new_path ${arguments% *}" 44019 else 44020 new_complete="$new_path" 44021 fi 44022 44023 if test "x$complete" != "x$new_complete"; then 44024 BUILD_NM="$new_complete" 44025 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_NM to \"$new_complete\"" >&5 44026 $as_echo "$as_me: Rewriting BUILD_NM to \"$new_complete\"" >&6;} 44027 fi 44028 fi 44029 44030 44031 44032 # Publish this variable in the help. 44033 44034 44035 if [ -z "${BUILD_AR+x}" ]; then 44036 # The variable is not set by user, try to locate tool using the code snippet 44037 for ac_prog in ar gcc-ar 44038 do 44039 # Extract the first word of "$ac_prog", so it can be a program name with args. 44040 set dummy $ac_prog; ac_word=$2 44041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44042 $as_echo_n "checking for $ac_word... " >&6; } 44043 if ${ac_cv_path_BUILD_AR+:} false; then : 44044 $as_echo_n "(cached) " >&6 44045 else 44046 case $BUILD_AR in 44047 [\\/]* | ?:[\\/]*) 44048 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 44049 ;; 44050 *) 44051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44052 for as_dir in $PATH 44053 do 44054 IFS=$as_save_IFS 44055 test -z "$as_dir" && as_dir=. 44056 for ac_exec_ext in '' $ac_executable_extensions; do 44057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44058 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 44059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44060 break 2 44061 fi 44062 done 44063 done 44064 IFS=$as_save_IFS 44065 44066 ;; 44067 esac 44068 fi 44069 BUILD_AR=$ac_cv_path_BUILD_AR 44070 if test -n "$BUILD_AR"; then 44071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 44072 $as_echo "$BUILD_AR" >&6; } 44073 else 44074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44075 $as_echo "no" >&6; } 44076 fi 44077 44078 44079 test -n "$BUILD_AR" && break 44080 done 44081 44082 else 44083 # The variable is set, but is it from the command line or the environment? 44084 44085 # Try to remove the string !BUILD_AR! from our list. 44086 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_AR!/} 44087 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 44088 # If it failed, the variable was not from the command line. Ignore it, 44089 # but warn the user (except for BASH, which is always set by the calling BASH). 44090 if test "xBUILD_AR" != xBASH; then 44091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&5 44092 $as_echo "$as_me: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&2;} 44093 fi 44094 # Try to locate tool using the code snippet 44095 for ac_prog in ar gcc-ar 44096 do 44097 # Extract the first word of "$ac_prog", so it can be a program name with args. 44098 set dummy $ac_prog; ac_word=$2 44099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44100 $as_echo_n "checking for $ac_word... " >&6; } 44101 if ${ac_cv_path_BUILD_AR+:} false; then : 44102 $as_echo_n "(cached) " >&6 44103 else 44104 case $BUILD_AR in 44105 [\\/]* | ?:[\\/]*) 44106 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 44107 ;; 44108 *) 44109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44110 for as_dir in $PATH 44111 do 44112 IFS=$as_save_IFS 44113 test -z "$as_dir" && as_dir=. 44114 for ac_exec_ext in '' $ac_executable_extensions; do 44115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44116 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 44117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44118 break 2 44119 fi 44120 done 44121 done 44122 IFS=$as_save_IFS 44123 44124 ;; 44125 esac 44126 fi 44127 BUILD_AR=$ac_cv_path_BUILD_AR 44128 if test -n "$BUILD_AR"; then 44129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 44130 $as_echo "$BUILD_AR" >&6; } 44131 else 44132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44133 $as_echo "no" >&6; } 44134 fi 44135 44136 44137 test -n "$BUILD_AR" && break 44138 done 44139 44140 else 44141 # If it succeeded, then it was overridden by the user. We will use it 44142 # for the tool. 44143 44144 # First remove it from the list of overridden variables, so we can test 44145 # for unknown variables in the end. 44146 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 44147 44148 # Check if we try to supply an empty value 44149 if test "x$BUILD_AR" = x; then 44150 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_AR= (no value)" >&5 44151 $as_echo "$as_me: Setting user supplied tool BUILD_AR= (no value)" >&6;} 44152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 44153 $as_echo_n "checking for BUILD_AR... " >&6; } 44154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 44155 $as_echo "disabled" >&6; } 44156 else 44157 # Check if the provided tool contains a complete path. 44158 tool_specified="$BUILD_AR" 44159 tool_basename="${tool_specified##*/}" 44160 if test "x$tool_basename" = "x$tool_specified"; then 44161 # A command without a complete path is provided, search $PATH. 44162 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_AR=$tool_basename" >&5 44163 $as_echo "$as_me: Will search for user supplied tool BUILD_AR=$tool_basename" >&6;} 44164 # Extract the first word of "$tool_basename", so it can be a program name with args. 44165 set dummy $tool_basename; ac_word=$2 44166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44167 $as_echo_n "checking for $ac_word... " >&6; } 44168 if ${ac_cv_path_BUILD_AR+:} false; then : 44169 $as_echo_n "(cached) " >&6 44170 else 44171 case $BUILD_AR in 44172 [\\/]* | ?:[\\/]*) 44173 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 44174 ;; 44175 *) 44176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44177 for as_dir in $PATH 44178 do 44179 IFS=$as_save_IFS 44180 test -z "$as_dir" && as_dir=. 44181 for ac_exec_ext in '' $ac_executable_extensions; do 44182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44183 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 44184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44185 break 2 44186 fi 44187 done 44188 done 44189 IFS=$as_save_IFS 44190 44191 ;; 44192 esac 44193 fi 44194 BUILD_AR=$ac_cv_path_BUILD_AR 44195 if test -n "$BUILD_AR"; then 44196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 44197 $as_echo "$BUILD_AR" >&6; } 44198 else 44199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44200 $as_echo "no" >&6; } 44201 fi 44202 44203 44204 if test "x$BUILD_AR" = x; then 44205 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 44206 fi 44207 else 44208 # Otherwise we believe it is a complete path. Use it as it is. 44209 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_AR=$tool_specified" >&5 44210 $as_echo "$as_me: Will use user supplied tool BUILD_AR=$tool_specified" >&6;} 44211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 44212 $as_echo_n "checking for BUILD_AR... " >&6; } 44213 if test ! -x "$tool_specified"; then 44214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 44215 $as_echo "not found" >&6; } 44216 as_fn_error $? "User supplied tool BUILD_AR=$tool_specified does not exist or is not executable" "$LINENO" 5 44217 fi 44218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 44219 $as_echo "$tool_specified" >&6; } 44220 fi 44221 fi 44222 fi 44223 44224 fi 44225 44226 44227 44228 # Only process if variable expands to non-empty 44229 44230 if test "x$BUILD_AR" != x; then 44231 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44232 44233 # First separate the path from the arguments. This will split at the first 44234 # space. 44235 complete="$BUILD_AR" 44236 path="${complete%% *}" 44237 tmp="$complete EOL" 44238 arguments="${tmp#* }" 44239 44240 # Input might be given as Windows format, start by converting to 44241 # unix format. 44242 new_path=`$CYGPATH -u "$path"` 44243 44244 # Now try to locate executable using which 44245 new_path=`$WHICH "$new_path" 2> /dev/null` 44246 # bat and cmd files are not always considered executable in cygwin causing which 44247 # to not find them 44248 if test "x$new_path" = x \ 44249 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44250 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44251 new_path=`$CYGPATH -u "$path"` 44252 fi 44253 if test "x$new_path" = x; then 44254 # Oops. Which didn't find the executable. 44255 # The splitting of arguments from the executable at a space might have been incorrect, 44256 # since paths with space are more likely in Windows. Give it another try with the whole 44257 # argument. 44258 path="$complete" 44259 arguments="EOL" 44260 new_path=`$CYGPATH -u "$path"` 44261 new_path=`$WHICH "$new_path" 2> /dev/null` 44262 # bat and cmd files are not always considered executable in cygwin causing which 44263 # to not find them 44264 if test "x$new_path" = x \ 44265 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44266 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44267 new_path=`$CYGPATH -u "$path"` 44268 fi 44269 if test "x$new_path" = x; then 44270 # It's still not found. Now this is an unrecoverable error. 44271 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 44272 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 44273 has_space=`$ECHO "$complete" | $GREP " "` 44274 if test "x$has_space" != x; then 44275 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44276 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44277 fi 44278 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 44279 fi 44280 fi 44281 44282 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44283 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44284 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44285 # "foo.exe" is OK but "foo" is an error. 44286 # 44287 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44288 # It is also a way to make sure we got the proper file name for the real test later on. 44289 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44290 if test "x$test_shortpath" = x; then 44291 # Short path failed, file does not exist as specified. 44292 # Try adding .exe or .cmd 44293 if test -f "${new_path}.exe"; then 44294 input_to_shortpath="${new_path}.exe" 44295 elif test -f "${new_path}.cmd"; then 44296 input_to_shortpath="${new_path}.cmd" 44297 else 44298 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&5 44299 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&6;} 44300 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44301 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44302 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 44303 fi 44304 else 44305 input_to_shortpath="$new_path" 44306 fi 44307 44308 # Call helper function which possibly converts this using DOS-style short mode. 44309 # If so, the updated path is stored in $new_path. 44310 new_path="$input_to_shortpath" 44311 44312 input_path="$input_to_shortpath" 44313 # Check if we need to convert this using DOS-style short mode. If the path 44314 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44315 # take no chances and rewrite it. 44316 # Note: m4 eats our [], so we need to use [ and ] instead. 44317 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44318 if test "x$has_forbidden_chars" != x; then 44319 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44320 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44321 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44322 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44323 # Going to short mode and back again did indeed matter. Since short mode is 44324 # case insensitive, let's make it lowercase to improve readability. 44325 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44326 # Now convert it back to Unix-style (cygpath) 44327 input_path=`$CYGPATH -u "$shortmode_path"` 44328 new_path="$input_path" 44329 fi 44330 fi 44331 44332 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44333 if test "x$test_cygdrive_prefix" = x; then 44334 # As a simple fix, exclude /usr/bin since it's not a real path. 44335 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44336 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44337 # a path prefixed by /cygdrive for fixpath to work. 44338 new_path="$CYGWIN_ROOT_PATH$input_path" 44339 fi 44340 fi 44341 44342 # remove trailing .exe if any 44343 new_path="${new_path/%.exe/}" 44344 44345 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44346 44347 # First separate the path from the arguments. This will split at the first 44348 # space. 44349 complete="$BUILD_AR" 44350 path="${complete%% *}" 44351 tmp="$complete EOL" 44352 arguments="${tmp#* }" 44353 44354 # Input might be given as Windows format, start by converting to 44355 # unix format. 44356 new_path="$path" 44357 44358 windows_path="$new_path" 44359 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44360 unix_path=`$CYGPATH -u "$windows_path"` 44361 new_path="$unix_path" 44362 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44363 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44364 new_path="$unix_path" 44365 fi 44366 44367 44368 # Now try to locate executable using which 44369 new_path=`$WHICH "$new_path" 2> /dev/null` 44370 44371 if test "x$new_path" = x; then 44372 # Oops. Which didn't find the executable. 44373 # The splitting of arguments from the executable at a space might have been incorrect, 44374 # since paths with space are more likely in Windows. Give it another try with the whole 44375 # argument. 44376 path="$complete" 44377 arguments="EOL" 44378 new_path="$path" 44379 44380 windows_path="$new_path" 44381 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44382 unix_path=`$CYGPATH -u "$windows_path"` 44383 new_path="$unix_path" 44384 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44385 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44386 new_path="$unix_path" 44387 fi 44388 44389 44390 new_path=`$WHICH "$new_path" 2> /dev/null` 44391 # bat and cmd files are not always considered executable in MSYS causing which 44392 # to not find them 44393 if test "x$new_path" = x \ 44394 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44395 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44396 new_path="$path" 44397 44398 windows_path="$new_path" 44399 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44400 unix_path=`$CYGPATH -u "$windows_path"` 44401 new_path="$unix_path" 44402 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44403 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44404 new_path="$unix_path" 44405 fi 44406 44407 fi 44408 44409 if test "x$new_path" = x; then 44410 # It's still not found. Now this is an unrecoverable error. 44411 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 44412 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 44413 has_space=`$ECHO "$complete" | $GREP " "` 44414 if test "x$has_space" != x; then 44415 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44416 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44417 fi 44418 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 44419 fi 44420 fi 44421 44422 # Now new_path has a complete unix path to the binary 44423 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44424 # Keep paths in /bin as-is, but remove trailing .exe if any 44425 new_path="${new_path/%.exe/}" 44426 # Do not save /bin paths to all_fixpath_prefixes! 44427 else 44428 # Not in mixed or Windows style, start by that. 44429 new_path=`cmd //c echo $new_path` 44430 44431 input_path="$new_path" 44432 # Check if we need to convert this using DOS-style short mode. If the path 44433 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44434 # take no chances and rewrite it. 44435 # Note: m4 eats our [], so we need to use [ and ] instead. 44436 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44437 if test "x$has_forbidden_chars" != x; then 44438 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44439 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44440 fi 44441 44442 # Output is in $new_path 44443 44444 windows_path="$new_path" 44445 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44446 unix_path=`$CYGPATH -u "$windows_path"` 44447 new_path="$unix_path" 44448 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44449 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44450 new_path="$unix_path" 44451 fi 44452 44453 # remove trailing .exe if any 44454 new_path="${new_path/%.exe/}" 44455 44456 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44457 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44458 fi 44459 44460 else 44461 # We're on a unix platform. Hooray! :) 44462 # First separate the path from the arguments. This will split at the first 44463 # space. 44464 complete="$BUILD_AR" 44465 path="${complete%% *}" 44466 tmp="$complete EOL" 44467 arguments="${tmp#* }" 44468 44469 # Cannot rely on the command "which" here since it doesn't always work. 44470 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44471 if test -z "$is_absolute_path"; then 44472 # Path to executable is not absolute. Find it. 44473 IFS_save="$IFS" 44474 IFS=: 44475 for p in $PATH; do 44476 if test -f "$p/$path" && test -x "$p/$path"; then 44477 new_path="$p/$path" 44478 break 44479 fi 44480 done 44481 IFS="$IFS_save" 44482 else 44483 # This is an absolute path, we can use it without further modifications. 44484 new_path="$path" 44485 fi 44486 44487 if test "x$new_path" = x; then 44488 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 44489 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 44490 has_space=`$ECHO "$complete" | $GREP " "` 44491 if test "x$has_space" != x; then 44492 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44493 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44494 fi 44495 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 44496 fi 44497 fi 44498 44499 # Now join together the path and the arguments once again 44500 if test "x$arguments" != xEOL; then 44501 new_complete="$new_path ${arguments% *}" 44502 else 44503 new_complete="$new_path" 44504 fi 44505 44506 if test "x$complete" != "x$new_complete"; then 44507 BUILD_AR="$new_complete" 44508 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_AR to \"$new_complete\"" >&5 44509 $as_echo "$as_me: Rewriting BUILD_AR to \"$new_complete\"" >&6;} 44510 fi 44511 fi 44512 44513 # Assume the C compiler is the assembler 44514 BUILD_AS="$BUILD_CC -c" 44515 # Just like for the target compiler, use the compiler as linker 44516 BUILD_LD="$BUILD_CC" 44517 BUILD_LDCXX="$BUILD_CXX" 44518 44519 PATH="$OLDPATH" 44520 else 44521 # If we are not cross compiling, use the normal target compilers for 44522 # building the build platform executables. 44523 BUILD_CC="$CC" 44524 BUILD_CXX="$CXX" 44525 BUILD_LD="$LD" 44526 BUILD_LDCXX="$LDCXX" 44527 BUILD_NM="$NM" 44528 BUILD_AS="$AS" 44529 BUILD_SYSROOT_CFLAGS="$SYSROOT_CFLAGS" 44530 BUILD_SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS" 44531 BUILD_AR="$AR" 44532 fi 44533 44534 44535 44536 44537 44538 44539 44540 44541 44542 44543 44544 44545 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 44546 # For hotspot, we need these in Windows mixed path, 44547 # so rewrite them all. Need added .exe suffix. 44548 HOTSPOT_CXX="$CXX.exe" 44549 HOTSPOT_LD="$LD.exe" 44550 HOTSPOT_MT="$MT.exe" 44551 HOTSPOT_RC="$RC.exe" 44552 44553 unix_path="$HOTSPOT_CXX" 44554 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44555 windows_path=`$CYGPATH -m "$unix_path"` 44556 HOTSPOT_CXX="$windows_path" 44557 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44558 windows_path=`cmd //c echo $unix_path` 44559 HOTSPOT_CXX="$windows_path" 44560 fi 44561 44562 44563 unix_path="$HOTSPOT_LD" 44564 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44565 windows_path=`$CYGPATH -m "$unix_path"` 44566 HOTSPOT_LD="$windows_path" 44567 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44568 windows_path=`cmd //c echo $unix_path` 44569 HOTSPOT_LD="$windows_path" 44570 fi 44571 44572 44573 unix_path="$HOTSPOT_MT" 44574 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44575 windows_path=`$CYGPATH -m "$unix_path"` 44576 HOTSPOT_MT="$windows_path" 44577 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44578 windows_path=`cmd //c echo $unix_path` 44579 HOTSPOT_MT="$windows_path" 44580 fi 44581 44582 44583 unix_path="$HOTSPOT_RC" 44584 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44585 windows_path=`$CYGPATH -m "$unix_path"` 44586 HOTSPOT_RC="$windows_path" 44587 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44588 windows_path=`cmd //c echo $unix_path` 44589 HOTSPOT_RC="$windows_path" 44590 fi 44591 44592 44593 44594 else 44595 HOTSPOT_CXX="$CXX" 44596 HOTSPOT_LD="$LD" 44597 fi 44598 44599 44600 44601 if test "x$TOOLCHAIN_TYPE" = xclang; then 44602 USE_CLANG=true 44603 fi 44604 44605 44606 44607 44608 44609 # The package path is used only on macosx? 44610 # FIXME: clean this up, and/or move it elsewhere. 44611 PACKAGE_PATH=/opt/local 44612 44613 44614 # Check for extra potential brokenness. 44615 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 44616 # On Windows, double-check that we got the right compiler. 44617 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 44618 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 44619 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 44620 if test "x$COMPILER_CPU_TEST" != "x80x86" -a "x$COMPILER_CPU_TEST" != "xx86"; then 44621 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 44622 fi 44623 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 44624 if test "x$COMPILER_CPU_TEST" != "xx64"; then 44625 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 44626 fi 44627 fi 44628 fi 44629 44630 if test "x$TOOLCHAIN_TYPE" = xgcc; then 44631 # If this is a --hash-style=gnu system, use --hash-style=both, why? 44632 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 44633 # This is later checked when setting flags. 44634 44635 # "-Og" suppported for GCC 4.8 and later 44636 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 44637 44638 44639 44640 44641 44642 44643 44644 44645 44646 44647 44648 44649 44650 44651 44652 44653 44654 44655 44656 44657 44658 44659 44660 44661 44662 44663 44664 44665 44666 44667 44668 44669 44670 44671 44672 44673 44674 44675 44676 44677 44678 44679 44680 44681 44682 44683 44684 # Execute function body 44685 44686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 44687 $as_echo_n "checking if compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 44688 supports=yes 44689 44690 saved_cflags="$CFLAGS" 44691 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 44692 ac_ext=c 44693 ac_cpp='$CPP $CPPFLAGS' 44694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44696 ac_compiler_gnu=$ac_cv_c_compiler_gnu 44697 44698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44699 /* end confdefs.h. */ 44700 int i; 44701 _ACEOF 44702 if ac_fn_c_try_compile "$LINENO"; then : 44703 44704 else 44705 supports=no 44706 fi 44707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 44708 ac_ext=cpp 44709 ac_cpp='$CXXCPP $CPPFLAGS' 44710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 44713 44714 CFLAGS="$saved_cflags" 44715 44716 saved_cxxflags="$CXXFLAGS" 44717 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 44718 ac_ext=cpp 44719 ac_cpp='$CXXCPP $CPPFLAGS' 44720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 44723 44724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44725 /* end confdefs.h. */ 44726 int i; 44727 _ACEOF 44728 if ac_fn_cxx_try_compile "$LINENO"; then : 44729 44730 else 44731 supports=no 44732 fi 44733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 44734 ac_ext=cpp 44735 ac_cpp='$CXXCPP $CPPFLAGS' 44736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 44739 44740 CXXFLAGS="$saved_cxxflags" 44741 44742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 44743 $as_echo "$supports" >&6; } 44744 if test "x$supports" = "xyes" ; then 44745 : 44746 HAS_CFLAG_OPTIMIZE_DEBUG=true 44747 else 44748 : 44749 HAS_CFLAG_OPTIMIZE_DEBUG=false 44750 fi 44751 44752 44753 44754 44755 44756 44757 44758 44759 44760 44761 44762 44763 44764 # "-z relro" supported in GNU binutils 2.17 and later 44765 LINKER_RELRO_FLAG="-Wl,-z,relro" 44766 44767 44768 44769 44770 44771 44772 44773 44774 44775 44776 44777 44778 44779 44780 44781 44782 44783 44784 44785 44786 44787 44788 44789 44790 44791 44792 44793 44794 44795 44796 44797 44798 44799 44800 44801 44802 44803 44804 44805 44806 44807 44808 44809 44810 44811 44812 44813 # Execute function body 44814 44815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 44816 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 44817 supports=yes 44818 44819 saved_ldflags="$LDFLAGS" 44820 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 44821 ac_ext=c 44822 ac_cpp='$CPP $CPPFLAGS' 44823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44825 ac_compiler_gnu=$ac_cv_c_compiler_gnu 44826 44827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44828 /* end confdefs.h. */ 44829 44830 int 44831 main () 44832 { 44833 44834 ; 44835 return 0; 44836 } 44837 _ACEOF 44838 if ac_fn_c_try_link "$LINENO"; then : 44839 44840 else 44841 supports=no 44842 fi 44843 rm -f core conftest.err conftest.$ac_objext \ 44844 conftest$ac_exeext conftest.$ac_ext 44845 ac_ext=cpp 44846 ac_cpp='$CXXCPP $CPPFLAGS' 44847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 44850 44851 LDFLAGS="$saved_ldflags" 44852 44853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 44854 $as_echo "$supports" >&6; } 44855 if test "x$supports" = "xyes" ; then 44856 : 44857 HAS_LINKER_RELRO=true 44858 else 44859 : 44860 HAS_LINKER_RELRO=false 44861 fi 44862 44863 44864 44865 44866 44867 44868 44869 44870 44871 44872 44873 44874 44875 # "-z now" supported in GNU binutils 2.11 and later 44876 LINKER_NOW_FLAG="-Wl,-z,now" 44877 44878 44879 44880 44881 44882 44883 44884 44885 44886 44887 44888 44889 44890 44891 44892 44893 44894 44895 44896 44897 44898 44899 44900 44901 44902 44903 44904 44905 44906 44907 44908 44909 44910 44911 44912 44913 44914 44915 44916 44917 44918 44919 44920 44921 44922 44923 44924 # Execute function body 44925 44926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 44927 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 44928 supports=yes 44929 44930 saved_ldflags="$LDFLAGS" 44931 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 44932 ac_ext=c 44933 ac_cpp='$CPP $CPPFLAGS' 44934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44936 ac_compiler_gnu=$ac_cv_c_compiler_gnu 44937 44938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44939 /* end confdefs.h. */ 44940 44941 int 44942 main () 44943 { 44944 44945 ; 44946 return 0; 44947 } 44948 _ACEOF 44949 if ac_fn_c_try_link "$LINENO"; then : 44950 44951 else 44952 supports=no 44953 fi 44954 rm -f core conftest.err conftest.$ac_objext \ 44955 conftest$ac_exeext conftest.$ac_ext 44956 ac_ext=cpp 44957 ac_cpp='$CXXCPP $CPPFLAGS' 44958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 44961 44962 LDFLAGS="$saved_ldflags" 44963 44964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 44965 $as_echo "$supports" >&6; } 44966 if test "x$supports" = "xyes" ; then 44967 : 44968 HAS_LINKER_NOW=true 44969 else 44970 : 44971 HAS_LINKER_NOW=false 44972 fi 44973 44974 44975 44976 44977 44978 44979 44980 44981 44982 44983 44984 44985 fi 44986 44987 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 44988 # in executable.' 44989 USING_BROKEN_SUSE_LD=no 44990 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 44991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 44992 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 44993 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 44994 $ECHO "int main() { }" > main.c 44995 if $CXX -Wl,-version-script=version-script.map main.c 2>&5 >&5; then 44996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44997 $as_echo "no" >&6; } 44998 USING_BROKEN_SUSE_LD=no 44999 else 45000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45001 $as_echo "yes" >&6; } 45002 USING_BROKEN_SUSE_LD=yes 45003 fi 45004 rm -rf version-script.map main.c a.out 45005 fi 45006 45007 45008 45009 # Setup the JTReg Regression Test Harness. 45010 45011 45012 # Check whether --with-jtreg was given. 45013 if test "${with_jtreg+set}" = set; then : 45014 withval=$with_jtreg; 45015 else 45016 with_jtreg=no 45017 fi 45018 45019 45020 if test "x$with_jtreg" = xno; then 45021 # jtreg disabled 45022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 45023 $as_echo_n "checking for jtreg... " >&6; } 45024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45025 $as_echo "no" >&6; } 45026 else 45027 if test "x$with_jtreg" != xyes; then 45028 # with path specified. 45029 JT_HOME="$with_jtreg" 45030 fi 45031 45032 if test "x$JT_HOME" != x; then 45033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 45034 $as_echo_n "checking for jtreg... " >&6; } 45035 45036 # use JT_HOME enviroment var. 45037 45038 # Only process if variable expands to non-empty 45039 45040 if test "x$JT_HOME" != x; then 45041 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45042 45043 # Input might be given as Windows format, start by converting to 45044 # unix format. 45045 path="$JT_HOME" 45046 new_path=`$CYGPATH -u "$path"` 45047 45048 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45049 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45050 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45051 # "foo.exe" is OK but "foo" is an error. 45052 # 45053 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45054 # It is also a way to make sure we got the proper file name for the real test later on. 45055 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45056 if test "x$test_shortpath" = x; then 45057 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 45058 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 45059 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 45060 fi 45061 45062 # Call helper function which possibly converts this using DOS-style short mode. 45063 # If so, the updated path is stored in $new_path. 45064 45065 input_path="$new_path" 45066 # Check if we need to convert this using DOS-style short mode. If the path 45067 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45068 # take no chances and rewrite it. 45069 # Note: m4 eats our [], so we need to use [ and ] instead. 45070 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45071 if test "x$has_forbidden_chars" != x; then 45072 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45073 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45074 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45075 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45076 # Going to short mode and back again did indeed matter. Since short mode is 45077 # case insensitive, let's make it lowercase to improve readability. 45078 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45079 # Now convert it back to Unix-style (cygpath) 45080 input_path=`$CYGPATH -u "$shortmode_path"` 45081 new_path="$input_path" 45082 fi 45083 fi 45084 45085 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45086 if test "x$test_cygdrive_prefix" = x; then 45087 # As a simple fix, exclude /usr/bin since it's not a real path. 45088 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45089 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45090 # a path prefixed by /cygdrive for fixpath to work. 45091 new_path="$CYGWIN_ROOT_PATH$input_path" 45092 fi 45093 fi 45094 45095 45096 if test "x$path" != "x$new_path"; then 45097 JT_HOME="$new_path" 45098 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 45099 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 45100 fi 45101 45102 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45103 45104 path="$JT_HOME" 45105 has_colon=`$ECHO $path | $GREP ^.:` 45106 new_path="$path" 45107 if test "x$has_colon" = x; then 45108 # Not in mixed or Windows style, start by that. 45109 new_path=`cmd //c echo $path` 45110 fi 45111 45112 45113 input_path="$new_path" 45114 # Check if we need to convert this using DOS-style short mode. If the path 45115 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45116 # take no chances and rewrite it. 45117 # Note: m4 eats our [], so we need to use [ and ] instead. 45118 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45119 if test "x$has_forbidden_chars" != x; then 45120 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45121 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45122 fi 45123 45124 45125 windows_path="$new_path" 45126 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45127 unix_path=`$CYGPATH -u "$windows_path"` 45128 new_path="$unix_path" 45129 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45130 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45131 new_path="$unix_path" 45132 fi 45133 45134 if test "x$path" != "x$new_path"; then 45135 JT_HOME="$new_path" 45136 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 45137 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 45138 fi 45139 45140 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45141 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45142 45143 else 45144 # We're on a unix platform. Hooray! :) 45145 path="$JT_HOME" 45146 has_space=`$ECHO "$path" | $GREP " "` 45147 if test "x$has_space" != x; then 45148 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 45149 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 45150 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45151 fi 45152 45153 # Use eval to expand a potential ~ 45154 eval path="$path" 45155 if test ! -f "$path" && test ! -d "$path"; then 45156 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 45157 fi 45158 45159 if test -d "$path"; then 45160 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 45161 else 45162 dir="`$DIRNAME "$path"`" 45163 base="`$BASENAME "$path"`" 45164 JT_HOME="`cd "$dir"; $THEPWDCMD -L`/$base" 45165 fi 45166 fi 45167 fi 45168 45169 45170 # jtreg win32 script works for everybody 45171 JTREGEXE="$JT_HOME/bin/jtreg" 45172 45173 if test ! -f "$JTREGEXE"; then 45174 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 45175 fi 45176 45177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 45178 $as_echo "$JTREGEXE" >&6; } 45179 else 45180 # try to find jtreg on path 45181 45182 45183 45184 # Publish this variable in the help. 45185 45186 45187 if [ -z "${JTREGEXE+x}" ]; then 45188 # The variable is not set by user, try to locate tool using the code snippet 45189 for ac_prog in jtreg 45190 do 45191 # Extract the first word of "$ac_prog", so it can be a program name with args. 45192 set dummy $ac_prog; ac_word=$2 45193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45194 $as_echo_n "checking for $ac_word... " >&6; } 45195 if ${ac_cv_path_JTREGEXE+:} false; then : 45196 $as_echo_n "(cached) " >&6 45197 else 45198 case $JTREGEXE in 45199 [\\/]* | ?:[\\/]*) 45200 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 45201 ;; 45202 *) 45203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45204 for as_dir in $PATH 45205 do 45206 IFS=$as_save_IFS 45207 test -z "$as_dir" && as_dir=. 45208 for ac_exec_ext in '' $ac_executable_extensions; do 45209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45210 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 45211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45212 break 2 45213 fi 45214 done 45215 done 45216 IFS=$as_save_IFS 45217 45218 ;; 45219 esac 45220 fi 45221 JTREGEXE=$ac_cv_path_JTREGEXE 45222 if test -n "$JTREGEXE"; then 45223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 45224 $as_echo "$JTREGEXE" >&6; } 45225 else 45226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45227 $as_echo "no" >&6; } 45228 fi 45229 45230 45231 test -n "$JTREGEXE" && break 45232 done 45233 45234 else 45235 # The variable is set, but is it from the command line or the environment? 45236 45237 # Try to remove the string !JTREGEXE! from our list. 45238 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 45239 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45240 # If it failed, the variable was not from the command line. Ignore it, 45241 # but warn the user (except for BASH, which is always set by the calling BASH). 45242 if test "xJTREGEXE" != xBASH; then 45243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 45244 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 45245 fi 45246 # Try to locate tool using the code snippet 45247 for ac_prog in jtreg 45248 do 45249 # Extract the first word of "$ac_prog", so it can be a program name with args. 45250 set dummy $ac_prog; ac_word=$2 45251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45252 $as_echo_n "checking for $ac_word... " >&6; } 45253 if ${ac_cv_path_JTREGEXE+:} false; then : 45254 $as_echo_n "(cached) " >&6 45255 else 45256 case $JTREGEXE in 45257 [\\/]* | ?:[\\/]*) 45258 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 45259 ;; 45260 *) 45261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45262 for as_dir in $PATH 45263 do 45264 IFS=$as_save_IFS 45265 test -z "$as_dir" && as_dir=. 45266 for ac_exec_ext in '' $ac_executable_extensions; do 45267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45268 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 45269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45270 break 2 45271 fi 45272 done 45273 done 45274 IFS=$as_save_IFS 45275 45276 ;; 45277 esac 45278 fi 45279 JTREGEXE=$ac_cv_path_JTREGEXE 45280 if test -n "$JTREGEXE"; then 45281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 45282 $as_echo "$JTREGEXE" >&6; } 45283 else 45284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45285 $as_echo "no" >&6; } 45286 fi 45287 45288 45289 test -n "$JTREGEXE" && break 45290 done 45291 45292 else 45293 # If it succeeded, then it was overridden by the user. We will use it 45294 # for the tool. 45295 45296 # First remove it from the list of overridden variables, so we can test 45297 # for unknown variables in the end. 45298 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45299 45300 # Check if we try to supply an empty value 45301 if test "x$JTREGEXE" = x; then 45302 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JTREGEXE= (no value)" >&5 45303 $as_echo "$as_me: Setting user supplied tool JTREGEXE= (no value)" >&6;} 45304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 45305 $as_echo_n "checking for JTREGEXE... " >&6; } 45306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45307 $as_echo "disabled" >&6; } 45308 else 45309 # Check if the provided tool contains a complete path. 45310 tool_specified="$JTREGEXE" 45311 tool_basename="${tool_specified##*/}" 45312 if test "x$tool_basename" = "x$tool_specified"; then 45313 # A command without a complete path is provided, search $PATH. 45314 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 45315 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 45316 # Extract the first word of "$tool_basename", so it can be a program name with args. 45317 set dummy $tool_basename; ac_word=$2 45318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45319 $as_echo_n "checking for $ac_word... " >&6; } 45320 if ${ac_cv_path_JTREGEXE+:} false; then : 45321 $as_echo_n "(cached) " >&6 45322 else 45323 case $JTREGEXE in 45324 [\\/]* | ?:[\\/]*) 45325 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 45326 ;; 45327 *) 45328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45329 for as_dir in $PATH 45330 do 45331 IFS=$as_save_IFS 45332 test -z "$as_dir" && as_dir=. 45333 for ac_exec_ext in '' $ac_executable_extensions; do 45334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45335 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 45336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45337 break 2 45338 fi 45339 done 45340 done 45341 IFS=$as_save_IFS 45342 45343 ;; 45344 esac 45345 fi 45346 JTREGEXE=$ac_cv_path_JTREGEXE 45347 if test -n "$JTREGEXE"; then 45348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 45349 $as_echo "$JTREGEXE" >&6; } 45350 else 45351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45352 $as_echo "no" >&6; } 45353 fi 45354 45355 45356 if test "x$JTREGEXE" = x; then 45357 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 45358 fi 45359 else 45360 # Otherwise we believe it is a complete path. Use it as it is. 45361 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 45362 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 45363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 45364 $as_echo_n "checking for JTREGEXE... " >&6; } 45365 if test ! -x "$tool_specified"; then 45366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 45367 $as_echo "not found" >&6; } 45368 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 45369 fi 45370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 45371 $as_echo "$tool_specified" >&6; } 45372 fi 45373 fi 45374 fi 45375 45376 fi 45377 45378 45379 45380 if test "x$JTREGEXE" = x; then 45381 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 45382 fi 45383 45384 45385 JT_HOME="`$DIRNAME $JTREGEXE`" 45386 fi 45387 fi 45388 45389 45390 45391 45392 45393 45394 # COMPILER_TARGET_BITS_FLAG : option for selecting 32- or 64-bit output 45395 # COMPILER_COMMAND_FILE_FLAG : option for passing a command file to the compiler 45396 # COMPILER_BINDCMD_FILE_FLAG : option for specifying a file which saves the binder 45397 # commands produced by the link step (currently AIX only) 45398 if test "x$TOOLCHAIN_TYPE" = xxlc; then 45399 COMPILER_TARGET_BITS_FLAG="-q" 45400 COMPILER_COMMAND_FILE_FLAG="-f" 45401 COMPILER_BINDCMD_FILE_FLAG="-bloadmap:" 45402 else 45403 COMPILER_TARGET_BITS_FLAG="-m" 45404 COMPILER_COMMAND_FILE_FLAG="@" 45405 COMPILER_BINDCMD_FILE_FLAG="" 45406 45407 # The solstudio linker does not support @-files. 45408 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 45409 COMPILER_COMMAND_FILE_FLAG= 45410 fi 45411 45412 # Check if @file is supported by gcc 45413 if test "x$TOOLCHAIN_TYPE" = xgcc; then 45414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if @file is supported by gcc" >&5 45415 $as_echo_n "checking if @file is supported by gcc... " >&6; } 45416 # Extra emtpy "" to prevent ECHO from interpreting '--version' as argument 45417 $ECHO "" "--version" > command.file 45418 if $CXX @command.file 2>&5 >&5; then 45419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45420 $as_echo "yes" >&6; } 45421 COMPILER_COMMAND_FILE_FLAG="@" 45422 else 45423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45424 $as_echo "no" >&6; } 45425 COMPILER_COMMAND_FILE_FLAG= 45426 fi 45427 rm -rf command.file 45428 fi 45429 fi 45430 45431 45432 45433 45434 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 45435 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 45436 ARFLAGS="-r" 45437 elif test "x$OPENJDK_TARGET_OS" = xaix; then 45438 ARFLAGS="-X64" 45439 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 45440 # lib.exe is used as AR to create static libraries. 45441 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 45442 else 45443 ARFLAGS="" 45444 fi 45445 45446 45447 ## Setup strip. 45448 # FIXME: should this really be per platform, or should it be per toolchain type? 45449 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 45450 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 45451 if test "x$OPENJDK_TARGET_OS" = xlinux; then 45452 STRIPFLAGS="-g" 45453 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 45454 STRIPFLAGS="-x" 45455 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 45456 STRIPFLAGS="-S" 45457 elif test "x$OPENJDK_TARGET_OS" = xaix; then 45458 STRIPFLAGS="-X32_64" 45459 fi 45460 45461 45462 45463 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 45464 CC_OUT_OPTION=-Fo 45465 EXE_OUT_OPTION=-out: 45466 LD_OUT_OPTION=-out: 45467 AR_OUT_OPTION=-out: 45468 else 45469 # The option used to specify the target .o,.a or .so file. 45470 # When compiling, how to specify the to be created object file. 45471 CC_OUT_OPTION='-o$(SPACE)' 45472 # When linking, how to specify the to be created executable. 45473 EXE_OUT_OPTION='-o$(SPACE)' 45474 # When linking, how to specify the to be created dynamically linkable library. 45475 LD_OUT_OPTION='-o$(SPACE)' 45476 # When archiving, how to specify the to be create static archive for object files. 45477 AR_OUT_OPTION='rcs$(SPACE)' 45478 fi 45479 45480 45481 45482 45483 45484 # On Windows, we need to set RC flags. 45485 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 45486 RC_FLAGS="-nologo -l0x409" 45487 if test "x$DEBUG_LEVEL" = xrelease; then 45488 RC_FLAGS="$RC_FLAGS -DNDEBUG" 45489 fi 45490 45491 # The version variables used to create RC_FLAGS may be overridden 45492 # in a custom configure script, or possibly the command line. 45493 # Let those variables be expanded at make time in spec.gmk. 45494 # The \$ are escaped to the shell, and the $(...) variables 45495 # are evaluated by make. 45496 RC_FLAGS="$RC_FLAGS \ 45497 -D\"JDK_VERSION_STRING=\$(VERSION_STRING)\" \ 45498 -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \ 45499 -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 45500 -D\"JDK_VER=\$(VERSION_NUMBER)\" \ 45501 -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 45502 -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(VERSION_MAJOR)\" \ 45503 -D\"JDK_FVER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\"" 45504 fi 45505 45506 45507 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 45508 # silence copyright notice and other headers. 45509 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 45510 fi 45511 45512 45513 # Now we can test some aspects on the target using configure macros. 45514 45515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 45516 $as_echo_n "checking for ANSI C header files... " >&6; } 45517 if ${ac_cv_header_stdc+:} false; then : 45518 $as_echo_n "(cached) " >&6 45519 else 45520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45521 /* end confdefs.h. */ 45522 #include <stdlib.h> 45523 #include <stdarg.h> 45524 #include <string.h> 45525 #include <float.h> 45526 45527 int 45528 main () 45529 { 45530 45531 ; 45532 return 0; 45533 } 45534 _ACEOF 45535 if ac_fn_cxx_try_compile "$LINENO"; then : 45536 ac_cv_header_stdc=yes 45537 else 45538 ac_cv_header_stdc=no 45539 fi 45540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 45541 45542 if test $ac_cv_header_stdc = yes; then 45543 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 45544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45545 /* end confdefs.h. */ 45546 #include <string.h> 45547 45548 _ACEOF 45549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 45550 $EGREP "memchr" >/dev/null 2>&1; then : 45551 45552 else 45553 ac_cv_header_stdc=no 45554 fi 45555 rm -f conftest* 45556 45557 fi 45558 45559 if test $ac_cv_header_stdc = yes; then 45560 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 45561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45562 /* end confdefs.h. */ 45563 #include <stdlib.h> 45564 45565 _ACEOF 45566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 45567 $EGREP "free" >/dev/null 2>&1; then : 45568 45569 else 45570 ac_cv_header_stdc=no 45571 fi 45572 rm -f conftest* 45573 45574 fi 45575 45576 if test $ac_cv_header_stdc = yes; then 45577 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 45578 if test "$cross_compiling" = yes; then : 45579 : 45580 else 45581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45582 /* end confdefs.h. */ 45583 #include <ctype.h> 45584 #include <stdlib.h> 45585 #if ((' ' & 0x0FF) == 0x020) 45586 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 45587 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 45588 #else 45589 # define ISLOWER(c) \ 45590 (('a' <= (c) && (c) <= 'i') \ 45591 || ('j' <= (c) && (c) <= 'r') \ 45592 || ('s' <= (c) && (c) <= 'z')) 45593 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 45594 #endif 45595 45596 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 45597 int 45598 main () 45599 { 45600 int i; 45601 for (i = 0; i < 256; i++) 45602 if (XOR (islower (i), ISLOWER (i)) 45603 || toupper (i) != TOUPPER (i)) 45604 return 2; 45605 return 0; 45606 } 45607 _ACEOF 45608 if ac_fn_cxx_try_run "$LINENO"; then : 45609 45610 else 45611 ac_cv_header_stdc=no 45612 fi 45613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 45614 conftest.$ac_objext conftest.beam conftest.$ac_ext 45615 fi 45616 45617 fi 45618 fi 45619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 45620 $as_echo "$ac_cv_header_stdc" >&6; } 45621 if test $ac_cv_header_stdc = yes; then 45622 45623 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 45624 45625 fi 45626 45627 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 45628 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 45629 inttypes.h stdint.h unistd.h 45630 do : 45631 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 45632 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 45633 " 45634 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 45635 cat >>confdefs.h <<_ACEOF 45636 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 45637 _ACEOF 45638 45639 fi 45640 45641 done 45642 45643 45644 45645 ############################################################################### 45646 # 45647 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 45648 # (The JVM can use 32 or 64 bit Java pointers but that decision 45649 # is made at runtime.) 45650 # 45651 45652 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 45653 # Always specify -m flag on Solaris 45654 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 45655 45656 # When we add flags to the "official" CFLAGS etc, we need to 45657 # keep track of these additions in ADDED_CFLAGS etc. These 45658 # will later be checked to make sure only controlled additions 45659 # have been made to CFLAGS etc. 45660 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 45661 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 45662 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 45663 45664 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 45665 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 45666 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 45667 45668 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 45669 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 45670 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 45671 45672 elif test "x$COMPILE_TYPE" = xreduced; then 45673 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 45674 # Specify -m if running reduced on unix platforms 45675 45676 # When we add flags to the "official" CFLAGS etc, we need to 45677 # keep track of these additions in ADDED_CFLAGS etc. These 45678 # will later be checked to make sure only controlled additions 45679 # have been made to CFLAGS etc. 45680 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 45681 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 45682 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 45683 45684 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 45685 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 45686 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 45687 45688 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 45689 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 45690 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 45691 45692 fi 45693 fi 45694 45695 # Make compilation sanity check 45696 for ac_header in stdio.h 45697 do : 45698 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 45699 if test "x$ac_cv_header_stdio_h" = xyes; then : 45700 cat >>confdefs.h <<_ACEOF 45701 #define HAVE_STDIO_H 1 45702 _ACEOF 45703 45704 else 45705 45706 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 45707 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 45708 if test "x$COMPILE_TYPE" = xreduced; then 45709 45710 # Print a helpful message on how to acquire the necessary build dependency. 45711 # reduced is the help tag: freetype, cups, alsa etc 45712 MISSING_DEPENDENCY=reduced 45713 45714 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45715 cygwin_help $MISSING_DEPENDENCY 45716 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45717 msys_help $MISSING_DEPENDENCY 45718 else 45719 PKGHANDLER_COMMAND= 45720 45721 case $PKGHANDLER in 45722 apt-get) 45723 apt_help $MISSING_DEPENDENCY ;; 45724 yum) 45725 yum_help $MISSING_DEPENDENCY ;; 45726 port) 45727 port_help $MISSING_DEPENDENCY ;; 45728 pkgutil) 45729 pkgutil_help $MISSING_DEPENDENCY ;; 45730 pkgadd) 45731 pkgadd_help $MISSING_DEPENDENCY ;; 45732 esac 45733 45734 if test "x$PKGHANDLER_COMMAND" != x; then 45735 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 45736 fi 45737 fi 45738 45739 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 45740 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 45741 elif test "x$COMPILE_TYPE" = xcross; then 45742 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 45743 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 45744 fi 45745 as_fn_error $? "Cannot continue." "$LINENO" 5 45746 45747 fi 45748 45749 done 45750 45751 45752 # The cast to long int works around a bug in the HP C Compiler 45753 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 45754 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 45755 # This bug is HP SR number 8606223364. 45756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 45757 $as_echo_n "checking size of int *... " >&6; } 45758 if ${ac_cv_sizeof_int_p+:} false; then : 45759 $as_echo_n "(cached) " >&6 45760 else 45761 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 45762 45763 else 45764 if test "$ac_cv_type_int_p" = yes; then 45765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 45766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 45767 as_fn_error 77 "cannot compute sizeof (int *) 45768 See \`config.log' for more details" "$LINENO" 5; } 45769 else 45770 ac_cv_sizeof_int_p=0 45771 fi 45772 fi 45773 45774 fi 45775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 45776 $as_echo "$ac_cv_sizeof_int_p" >&6; } 45777 45778 45779 45780 cat >>confdefs.h <<_ACEOF 45781 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 45782 _ACEOF 45783 45784 45785 45786 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 45787 if test "x$ac_cv_sizeof_int_p" = x; then 45788 # The test failed, lets stick to the assumed value. 45789 { $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 45790 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 45791 else 45792 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 45793 45794 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 45795 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 45796 # Let's try to implicitely set the compilers target architecture and retry the test 45797 { $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 45798 $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;} 45799 { $as_echo "$as_me:${as_lineno-$LINENO}: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&5 45800 $as_echo "$as_me: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&6;} 45801 45802 # When we add flags to the "official" CFLAGS etc, we need to 45803 # keep track of these additions in ADDED_CFLAGS etc. These 45804 # will later be checked to make sure only controlled additions 45805 # have been made to CFLAGS etc. 45806 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 45807 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 45808 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 45809 45810 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 45811 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 45812 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 45813 45814 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 45815 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 45816 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 45817 45818 45819 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 45820 unset ac_cv_sizeof_int_p 45821 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 45822 cat >>confdefs.h <<_ACEOF 45823 #undef SIZEOF_INT_P 45824 _ACEOF 45825 45826 # The cast to long int works around a bug in the HP C Compiler 45827 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 45828 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 45829 # This bug is HP SR number 8606223364. 45830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 45831 $as_echo_n "checking size of int *... " >&6; } 45832 if ${ac_cv_sizeof_int_p+:} false; then : 45833 $as_echo_n "(cached) " >&6 45834 else 45835 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 45836 45837 else 45838 if test "$ac_cv_type_int_p" = yes; then 45839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 45840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 45841 as_fn_error 77 "cannot compute sizeof (int *) 45842 See \`config.log' for more details" "$LINENO" 5; } 45843 else 45844 ac_cv_sizeof_int_p=0 45845 fi 45846 fi 45847 45848 fi 45849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 45850 $as_echo "$ac_cv_sizeof_int_p" >&6; } 45851 45852 45853 45854 cat >>confdefs.h <<_ACEOF 45855 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 45856 _ACEOF 45857 45858 45859 45860 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 45861 45862 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 45863 { $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 45864 $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;} 45865 if test "x$COMPILE_TYPE" = xreduced; then 45866 45867 # Print a helpful message on how to acquire the necessary build dependency. 45868 # reduced is the help tag: freetype, cups, alsa etc 45869 MISSING_DEPENDENCY=reduced 45870 45871 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45872 cygwin_help $MISSING_DEPENDENCY 45873 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45874 msys_help $MISSING_DEPENDENCY 45875 else 45876 PKGHANDLER_COMMAND= 45877 45878 case $PKGHANDLER in 45879 apt-get) 45880 apt_help $MISSING_DEPENDENCY ;; 45881 yum) 45882 yum_help $MISSING_DEPENDENCY ;; 45883 port) 45884 port_help $MISSING_DEPENDENCY ;; 45885 pkgutil) 45886 pkgutil_help $MISSING_DEPENDENCY ;; 45887 pkgadd) 45888 pkgadd_help $MISSING_DEPENDENCY ;; 45889 esac 45890 45891 if test "x$PKGHANDLER_COMMAND" != x; then 45892 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 45893 fi 45894 fi 45895 45896 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 45897 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 45898 elif test "x$COMPILE_TYPE" = xcross; then 45899 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 45900 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 45901 fi 45902 as_fn_error $? "Cannot continue." "$LINENO" 5 45903 fi 45904 fi 45905 fi 45906 45907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 45908 $as_echo_n "checking for target address size... " >&6; } 45909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 45910 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 45911 45912 45913 ############################################################################### 45914 # 45915 # Is the target little of big endian? 45916 # 45917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 45918 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 45919 if ${ac_cv_c_bigendian+:} false; then : 45920 $as_echo_n "(cached) " >&6 45921 else 45922 ac_cv_c_bigendian=unknown 45923 # See if we're dealing with a universal compiler. 45924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45925 /* end confdefs.h. */ 45926 #ifndef __APPLE_CC__ 45927 not a universal capable compiler 45928 #endif 45929 typedef int dummy; 45930 45931 _ACEOF 45932 if ac_fn_cxx_try_compile "$LINENO"; then : 45933 45934 # Check for potential -arch flags. It is not universal unless 45935 # there are at least two -arch flags with different values. 45936 ac_arch= 45937 ac_prev= 45938 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 45939 if test -n "$ac_prev"; then 45940 case $ac_word in 45941 i?86 | x86_64 | ppc | ppc64) 45942 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 45943 ac_arch=$ac_word 45944 else 45945 ac_cv_c_bigendian=universal 45946 break 45947 fi 45948 ;; 45949 esac 45950 ac_prev= 45951 elif test "x$ac_word" = "x-arch"; then 45952 ac_prev=arch 45953 fi 45954 done 45955 fi 45956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 45957 if test $ac_cv_c_bigendian = unknown; then 45958 # See if sys/param.h defines the BYTE_ORDER macro. 45959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45960 /* end confdefs.h. */ 45961 #include <sys/types.h> 45962 #include <sys/param.h> 45963 45964 int 45965 main () 45966 { 45967 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 45968 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 45969 && LITTLE_ENDIAN) 45970 bogus endian macros 45971 #endif 45972 45973 ; 45974 return 0; 45975 } 45976 _ACEOF 45977 if ac_fn_cxx_try_compile "$LINENO"; then : 45978 # It does; now see whether it defined to BIG_ENDIAN or not. 45979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45980 /* end confdefs.h. */ 45981 #include <sys/types.h> 45982 #include <sys/param.h> 45983 45984 int 45985 main () 45986 { 45987 #if BYTE_ORDER != BIG_ENDIAN 45988 not big endian 45989 #endif 45990 45991 ; 45992 return 0; 45993 } 45994 _ACEOF 45995 if ac_fn_cxx_try_compile "$LINENO"; then : 45996 ac_cv_c_bigendian=yes 45997 else 45998 ac_cv_c_bigendian=no 45999 fi 46000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 46001 fi 46002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 46003 fi 46004 if test $ac_cv_c_bigendian = unknown; then 46005 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 46006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46007 /* end confdefs.h. */ 46008 #include <limits.h> 46009 46010 int 46011 main () 46012 { 46013 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 46014 bogus endian macros 46015 #endif 46016 46017 ; 46018 return 0; 46019 } 46020 _ACEOF 46021 if ac_fn_cxx_try_compile "$LINENO"; then : 46022 # It does; now see whether it defined to _BIG_ENDIAN or not. 46023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46024 /* end confdefs.h. */ 46025 #include <limits.h> 46026 46027 int 46028 main () 46029 { 46030 #ifndef _BIG_ENDIAN 46031 not big endian 46032 #endif 46033 46034 ; 46035 return 0; 46036 } 46037 _ACEOF 46038 if ac_fn_cxx_try_compile "$LINENO"; then : 46039 ac_cv_c_bigendian=yes 46040 else 46041 ac_cv_c_bigendian=no 46042 fi 46043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 46044 fi 46045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 46046 fi 46047 if test $ac_cv_c_bigendian = unknown; then 46048 # Compile a test program. 46049 if test "$cross_compiling" = yes; then : 46050 # Try to guess by grepping values from an object file. 46051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46052 /* end confdefs.h. */ 46053 short int ascii_mm[] = 46054 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 46055 short int ascii_ii[] = 46056 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 46057 int use_ascii (int i) { 46058 return ascii_mm[i] + ascii_ii[i]; 46059 } 46060 short int ebcdic_ii[] = 46061 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 46062 short int ebcdic_mm[] = 46063 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 46064 int use_ebcdic (int i) { 46065 return ebcdic_mm[i] + ebcdic_ii[i]; 46066 } 46067 extern int foo; 46068 46069 int 46070 main () 46071 { 46072 return use_ascii (foo) == use_ebcdic (foo); 46073 ; 46074 return 0; 46075 } 46076 _ACEOF 46077 if ac_fn_cxx_try_compile "$LINENO"; then : 46078 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 46079 ac_cv_c_bigendian=yes 46080 fi 46081 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 46082 if test "$ac_cv_c_bigendian" = unknown; then 46083 ac_cv_c_bigendian=no 46084 else 46085 # finding both strings is unlikely to happen, but who knows? 46086 ac_cv_c_bigendian=unknown 46087 fi 46088 fi 46089 fi 46090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 46091 else 46092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46093 /* end confdefs.h. */ 46094 $ac_includes_default 46095 int 46096 main () 46097 { 46098 46099 /* Are we little or big endian? From Harbison&Steele. */ 46100 union 46101 { 46102 long int l; 46103 char c[sizeof (long int)]; 46104 } u; 46105 u.l = 1; 46106 return u.c[sizeof (long int) - 1] == 1; 46107 46108 ; 46109 return 0; 46110 } 46111 _ACEOF 46112 if ac_fn_cxx_try_run "$LINENO"; then : 46113 ac_cv_c_bigendian=no 46114 else 46115 ac_cv_c_bigendian=yes 46116 fi 46117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 46118 conftest.$ac_objext conftest.beam conftest.$ac_ext 46119 fi 46120 46121 fi 46122 fi 46123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 46124 $as_echo "$ac_cv_c_bigendian" >&6; } 46125 case $ac_cv_c_bigendian in #( 46126 yes) 46127 ENDIAN="big";; #( 46128 no) 46129 ENDIAN="little" ;; #( 46130 universal) 46131 ENDIAN="universal_endianness" 46132 ;; #( 46133 *) 46134 ENDIAN="unknown" ;; 46135 esac 46136 46137 46138 if test "x$ENDIAN" = xuniversal_endianness; then 46139 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 46140 fi 46141 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 46142 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 46143 fi 46144 46145 46146 # Configure flags for the tools 46147 46148 ############################################################################### 46149 # 46150 # How to compile shared libraries. 46151 # 46152 46153 if test "x$TOOLCHAIN_TYPE" = xgcc; then 46154 PICFLAG="-fPIC" 46155 C_FLAG_REORDER='' 46156 CXX_FLAG_REORDER='' 46157 46158 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 46159 # Linking is different on MacOSX 46160 if test "x$STATIC_BUILD" = xtrue; then 46161 SHARED_LIBRARY_FLAGS ='-undefined dynamic_lookup' 46162 else 46163 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 46164 fi 46165 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path/.' 46166 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 46167 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 46168 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 46169 else 46170 # Default works for linux, might work on other platforms as well. 46171 SHARED_LIBRARY_FLAGS='-shared' 46172 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$$$ORIGIN$1' 46173 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 46174 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 46175 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 46176 fi 46177 elif test "x$TOOLCHAIN_TYPE" = xclang; then 46178 C_FLAG_REORDER='' 46179 CXX_FLAG_REORDER='' 46180 46181 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 46182 # Linking is different on MacOSX 46183 PICFLAG='' 46184 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 46185 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path/.' 46186 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 46187 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 46188 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 46189 else 46190 # Default works for linux, might work on other platforms as well. 46191 PICFLAG='-fPIC' 46192 SHARED_LIBRARY_FLAGS='-shared' 46193 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$$$ORIGIN$1' 46194 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 46195 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 46196 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 46197 fi 46198 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 46199 PICFLAG="-KPIC" 46200 C_FLAG_REORDER='-xF' 46201 CXX_FLAG_REORDER='-xF' 46202 SHARED_LIBRARY_FLAGS="-G" 46203 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1' 46204 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 46205 SET_SHARED_LIBRARY_NAME='-h $1' 46206 SET_SHARED_LIBRARY_MAPFILE='-M$1' 46207 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 46208 # '-qpic' defaults to 'qpic=small'. This means that the compiler generates only 46209 # one instruction for accessing the TOC. If the TOC grows larger than 64K, the linker 46210 # will have to patch this single instruction with a call to some out-of-order code which 46211 # does the load from the TOC. This is of course slow. But in that case we also would have 46212 # to use '-bbigtoc' for linking anyway so we could also change the PICFLAG to 'qpic=large'. 46213 # With 'qpic=large' the compiler will by default generate a two-instruction sequence which 46214 # can be patched directly by the linker and does not require a jump to out-of-order code. 46215 # Another alternative instead of using 'qpic=large -bbigtoc' may be to use '-qminimaltoc' 46216 # instead. This creates a distinct TOC for every compilation unit (and thus requires two 46217 # loads for accessing a global variable). But there are rumors that this may be seen as a 46218 # 'performance feature' because of improved code locality of the symbols used in a 46219 # compilation unit. 46220 PICFLAG="-qpic" 46221 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 46222 C_FLAG_REORDER='' 46223 CXX_FLAG_REORDER='' 46224 SHARED_LIBRARY_FLAGS="-qmkshrobj -bM:SRE -bnoentry" 46225 SET_EXECUTABLE_ORIGIN="" 46226 SET_SHARED_LIBRARY_ORIGIN='' 46227 SET_SHARED_LIBRARY_NAME='' 46228 SET_SHARED_LIBRARY_MAPFILE='' 46229 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 46230 PICFLAG="" 46231 C_FLAG_REORDER='' 46232 CXX_FLAG_REORDER='' 46233 SHARED_LIBRARY_FLAGS="-dll" 46234 SET_EXECUTABLE_ORIGIN='' 46235 SET_SHARED_LIBRARY_ORIGIN='' 46236 SET_SHARED_LIBRARY_NAME='' 46237 SET_SHARED_LIBRARY_MAPFILE='-def:$1' 46238 fi 46239 46240 46241 46242 46243 46244 46245 46246 46247 46248 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 46249 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 46250 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 46251 CFLAGS_JDKLIB_EXTRA='-xstrconst' 46252 fi 46253 # The (cross) compiler is now configured, we can now test capabilities 46254 # of the target platform. 46255 46256 46257 46258 ############################################################################### 46259 # 46260 # Setup the opt flags for different compilers 46261 # and different operating systems. 46262 # 46263 46264 # FIXME: this was indirectly the old default, but just inherited. 46265 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 46266 # C_FLAG_DEPS="-MMD -MF" 46267 # fi 46268 46269 # Generate make dependency files 46270 if test "x$TOOLCHAIN_TYPE" = xgcc; then 46271 C_FLAG_DEPS="-MMD -MF" 46272 elif test "x$TOOLCHAIN_TYPE" = xclang; then 46273 C_FLAG_DEPS="-MMD -MF" 46274 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 46275 C_FLAG_DEPS="-xMMD -xMF" 46276 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 46277 C_FLAG_DEPS="-qmakedep=gcc -MF" 46278 fi 46279 CXX_FLAG_DEPS="$C_FLAG_DEPS" 46280 46281 46282 46283 # Debug symbols 46284 if test "x$TOOLCHAIN_TYPE" = xgcc; then 46285 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 46286 # reduce from default "-g2" option to save space 46287 CFLAGS_DEBUG_SYMBOLS="-g1" 46288 CXXFLAGS_DEBUG_SYMBOLS="-g1" 46289 else 46290 CFLAGS_DEBUG_SYMBOLS="-g" 46291 CXXFLAGS_DEBUG_SYMBOLS="-g" 46292 fi 46293 elif test "x$TOOLCHAIN_TYPE" = xclang; then 46294 CFLAGS_DEBUG_SYMBOLS="-g" 46295 CXXFLAGS_DEBUG_SYMBOLS="-g" 46296 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 46297 CFLAGS_DEBUG_SYMBOLS="-g -xs" 46298 # -g0 enables debug symbols without disabling inlining. 46299 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 46300 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 46301 CFLAGS_DEBUG_SYMBOLS="-g" 46302 CXXFLAGS_DEBUG_SYMBOLS="-g" 46303 fi 46304 46305 46306 46307 # bounds, memory and behavior checking options 46308 if test "x$TOOLCHAIN_TYPE" = xgcc; then 46309 case $DEBUG_LEVEL in 46310 release ) 46311 # no adjustment 46312 ;; 46313 fastdebug ) 46314 # no adjustment 46315 ;; 46316 slowdebug ) 46317 # FIXME: By adding this to C(XX)FLAGS_DEBUG_OPTIONS it 46318 # get's added conditionally on whether we produce debug symbols or not. 46319 # This is most likely not really correct. 46320 46321 # Add runtime stack smashing and undefined behavior checks. 46322 # Not all versions of gcc support -fstack-protector 46323 STACK_PROTECTOR_CFLAG="-fstack-protector-all" 46324 46325 46326 46327 46328 46329 46330 46331 46332 46333 46334 46335 46336 46337 46338 46339 46340 46341 46342 46343 46344 46345 46346 46347 46348 46349 46350 46351 46352 46353 46354 46355 46356 46357 46358 46359 46360 46361 46362 46363 46364 46365 46366 # Execute function body 46367 46368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 46369 $as_echo_n "checking if compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 46370 supports=yes 46371 46372 saved_cflags="$CFLAGS" 46373 CFLAGS="$CFLAGS $STACK_PROTECTOR_CFLAG -Werror" 46374 ac_ext=c 46375 ac_cpp='$CPP $CPPFLAGS' 46376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46378 ac_compiler_gnu=$ac_cv_c_compiler_gnu 46379 46380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46381 /* end confdefs.h. */ 46382 int i; 46383 _ACEOF 46384 if ac_fn_c_try_compile "$LINENO"; then : 46385 46386 else 46387 supports=no 46388 fi 46389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 46390 ac_ext=cpp 46391 ac_cpp='$CXXCPP $CPPFLAGS' 46392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 46395 46396 CFLAGS="$saved_cflags" 46397 46398 saved_cxxflags="$CXXFLAGS" 46399 CXXFLAGS="$CXXFLAG $STACK_PROTECTOR_CFLAG -Werror" 46400 ac_ext=cpp 46401 ac_cpp='$CXXCPP $CPPFLAGS' 46402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 46405 46406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46407 /* end confdefs.h. */ 46408 int i; 46409 _ACEOF 46410 if ac_fn_cxx_try_compile "$LINENO"; then : 46411 46412 else 46413 supports=no 46414 fi 46415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 46416 ac_ext=cpp 46417 ac_cpp='$CXXCPP $CPPFLAGS' 46418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 46421 46422 CXXFLAGS="$saved_cxxflags" 46423 46424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 46425 $as_echo "$supports" >&6; } 46426 if test "x$supports" = "xyes" ; then 46427 : 46428 46429 else 46430 : 46431 STACK_PROTECTOR_CFLAG="" 46432 fi 46433 46434 46435 46436 46437 46438 46439 46440 46441 46442 46443 46444 46445 46446 CFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 46447 CXXFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 46448 ;; 46449 esac 46450 fi 46451 46452 # Optimization levels 46453 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 46454 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 46455 46456 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 46457 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 46458 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 46459 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 46460 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 46461 C_O_FLAG_DEBUG="-xregs=no%frameptr" 46462 C_O_FLAG_NONE="-xregs=no%frameptr" 46463 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 46464 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 46465 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 46466 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 46467 CXX_O_FLAG_NONE="-xregs=no%frameptr" 46468 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 46469 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 46470 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 46471 fi 46472 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 46473 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 46474 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 46475 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 46476 C_O_FLAG_DEBUG="" 46477 C_O_FLAG_NONE="" 46478 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 46479 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 46480 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 46481 CXX_O_FLAG_DEBUG="" 46482 CXX_O_FLAG_NONE="" 46483 fi 46484 else 46485 # The remaining toolchains share opt flags between CC and CXX; 46486 # setup for C and duplicate afterwards. 46487 if test "x$TOOLCHAIN_TYPE" = xgcc; then 46488 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 46489 # On MacOSX we optimize for size, something 46490 # we should do for all platforms? 46491 C_O_FLAG_HIGHEST="-Os" 46492 C_O_FLAG_HI="-Os" 46493 C_O_FLAG_NORM="-Os" 46494 else 46495 C_O_FLAG_HIGHEST="-O3" 46496 C_O_FLAG_HI="-O3" 46497 C_O_FLAG_NORM="-O2" 46498 fi 46499 C_O_FLAG_DEBUG="-O0" 46500 C_O_FLAG_NONE="-O0" 46501 elif test "x$TOOLCHAIN_TYPE" = xclang; then 46502 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 46503 # On MacOSX we optimize for size, something 46504 # we should do for all platforms? 46505 C_O_FLAG_HIGHEST="-Os" 46506 C_O_FLAG_HI="-Os" 46507 C_O_FLAG_NORM="-Os" 46508 else 46509 C_O_FLAG_HIGHEST="-O3" 46510 C_O_FLAG_HI="-O3" 46511 C_O_FLAG_NORM="-O2" 46512 fi 46513 C_O_FLAG_DEBUG="-O0" 46514 C_O_FLAG_NONE="-O0" 46515 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 46516 C_O_FLAG_HIGHEST="-O3" 46517 C_O_FLAG_HI="-O3 -qstrict" 46518 C_O_FLAG_NORM="-O2" 46519 C_O_FLAG_DEBUG="-qnoopt" 46520 C_O_FLAG_NONE="-qnoopt" 46521 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 46522 C_O_FLAG_HIGHEST="-O2" 46523 C_O_FLAG_HI="-O1" 46524 C_O_FLAG_NORM="-O1" 46525 C_O_FLAG_DEBUG="-Od" 46526 C_O_FLAG_NONE="-Od" 46527 fi 46528 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 46529 CXX_O_FLAG_HI="$C_O_FLAG_HI" 46530 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 46531 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 46532 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 46533 fi 46534 46535 # Adjust optimization flags according to debug level. 46536 case $DEBUG_LEVEL in 46537 release ) 46538 # no adjustment 46539 ;; 46540 fastdebug ) 46541 # Not quite so much optimization 46542 C_O_FLAG_HI="$C_O_FLAG_NORM" 46543 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 46544 ;; 46545 slowdebug ) 46546 # Disable optimization 46547 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 46548 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 46549 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 46550 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 46551 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 46552 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 46553 ;; 46554 esac 46555 46556 46557 46558 46559 46560 46561 46562 46563 46564 46565 46566 46567 46568 # Special extras... 46569 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 46570 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 46571 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 46572 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 46573 fi 46574 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 46575 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 46576 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 46577 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 46578 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 46579 fi 46580 46581 CFLAGS_JDK="${CFLAGS_JDK} $EXTRA_CFLAGS" 46582 CXXFLAGS_JDK="${CXXFLAGS_JDK} $EXTRA_CXXFLAGS" 46583 LDFLAGS_JDK="${LDFLAGS_JDK} $EXTRA_LDFLAGS" 46584 46585 ############################################################################### 46586 # 46587 # Now setup the CFLAGS and LDFLAGS for the JDK build. 46588 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 46589 # 46590 46591 # Setup compiler/platform specific flags into 46592 # CFLAGS_JDK - C Compiler flags 46593 # CXXFLAGS_JDK - C++ Compiler flags 46594 # COMMON_CCXXFLAGS_JDK - common to C and C++ 46595 if test "x$TOOLCHAIN_TYPE" = xgcc; then 46596 if test "x$OPENJDK_TARGET_CPU" = xx86; then 46597 # Force compatibility with i586 on 32 bit intel platforms. 46598 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 46599 fi 46600 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 46601 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 46602 case $OPENJDK_TARGET_CPU_ARCH in 46603 arm ) 46604 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 46605 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 46606 ;; 46607 ppc ) 46608 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 46609 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 46610 ;; 46611 * ) 46612 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 46613 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 46614 ;; 46615 esac 46616 elif test "x$TOOLCHAIN_TYPE" = xclang; then 46617 if test "x$OPENJDK_TARGET_OS" = xlinux; then 46618 if test "x$OPENJDK_TARGET_CPU" = xx86; then 46619 # Force compatibility with i586 on 32 bit intel platforms. 46620 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 46621 fi 46622 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 46623 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 46624 case $OPENJDK_TARGET_CPU_ARCH in 46625 ppc ) 46626 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 46627 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 46628 ;; 46629 * ) 46630 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 46631 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 46632 ;; 46633 esac 46634 fi 46635 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 46636 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 46637 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 46638 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 46639 fi 46640 46641 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 46642 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 46643 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 46644 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 46645 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 46646 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 46647 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK \ 46648 -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ 46649 -DWIN32_LEAN_AND_MEAN \ 46650 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 46651 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 46652 -DWIN32 -DIAL" 46653 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 46654 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 46655 else 46656 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 46657 fi 46658 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 46659 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 46660 # studio. 46661 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 46662 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 46663 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 46664 fi 46665 fi 46666 46667 ############################################################################### 46668 46669 # Adjust flags according to debug level. 46670 case $DEBUG_LEVEL in 46671 fastdebug | slowdebug ) 46672 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 46673 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 46674 JAVAC_FLAGS="$JAVAC_FLAGS -g" 46675 ;; 46676 release ) 46677 ;; 46678 * ) 46679 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 46680 ;; 46681 esac 46682 46683 # Setup LP64 46684 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $ADD_LP64" 46685 46686 # Set some common defines. These works for all compilers, but assume 46687 # -D is universally accepted. 46688 46689 # Setup endianness 46690 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 46691 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 46692 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 46693 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 46694 # Note: -Dmacro is the same as #define macro 1 46695 # -Dmacro= is the same as #define macro 46696 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 46697 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 46698 else 46699 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 46700 fi 46701 else 46702 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 46703 # are defined in the system? 46704 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 46705 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 46706 else 46707 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 46708 fi 46709 fi 46710 46711 # Setup target OS define. Use OS target name but in upper case. 46712 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 46713 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 46714 46715 # Setup target CPU 46716 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 46717 46718 # Setup debug/release defines 46719 if test "x$DEBUG_LEVEL" = xrelease; then 46720 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 46721 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 46722 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 46723 fi 46724 else 46725 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 46726 fi 46727 46728 # Set some additional per-OS defines. 46729 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 46730 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 46731 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 46732 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 46733 fi 46734 46735 # Additional macosx handling 46736 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 46737 # Setting these parameters makes it an error to link to macosx APIs that are 46738 # newer than the given OS version and makes the linked binaries compatible 46739 # even if built on a newer version of the OS. 46740 # The expected format is X.Y.Z 46741 MACOSX_VERSION_MIN=10.7.0 46742 46743 46744 # The macro takes the version with no dots, ex: 1070 46745 # Let the flags variables get resolved in make for easier override on make 46746 # command line. 46747 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 46748 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 46749 fi 46750 46751 # Setup some hard coded includes 46752 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 46753 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 46754 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS/native/include \ 46755 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/include \ 46756 -I${JDK_TOPDIR}/src/java.base/share/native/libjava \ 46757 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/libjava" 46758 46759 # The shared libraries are compiled using the picflag. 46760 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 46761 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 46762 46763 # Executable flags 46764 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 46765 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 46766 46767 46768 46769 46770 46771 46772 # Flags for compiling test libraries 46773 CFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 46774 CXXFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 46775 46776 # Flags for compiling test executables 46777 CFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 46778 CXXFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 46779 46780 46781 46782 46783 46784 46785 # Setup LDFLAGS et al. 46786 # 46787 46788 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 46789 LDFLAGS_MICROSOFT="-nologo -opt:ref" 46790 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 46791 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 46792 LDFLAGS_SAFESH="-safeseh" 46793 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SAFESH" 46794 fi 46795 # TODO: make -debug optional "--disable-full-debug-symbols" 46796 LDFLAGS_MICROSOFT_DEBUG="-debug" 46797 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_MICROSOFT_DEBUG" 46798 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 46799 # If this is a --hash-style=gnu system, use --hash-style=both, why? 46800 # We have previously set HAS_GNU_HASH if this is the case 46801 if test -n "$HAS_GNU_HASH"; then 46802 LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 46803 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_HASH_STYLE" 46804 fi 46805 if test "x$OPENJDK_TARGET_OS" = xlinux; then 46806 # And since we now know that the linker is gnu, then add -z defs, to forbid 46807 # undefined symbols in object files. 46808 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 46809 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 46810 case $DEBUG_LEVEL in 46811 release ) 46812 # tell linker to optimize libraries. 46813 # Should this be supplied to the OSS linker as well? 46814 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 46815 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 46816 ;; 46817 slowdebug ) 46818 if test "x$HAS_LINKER_NOW" = "xtrue"; then 46819 # do relocations at load 46820 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 46821 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 46822 fi 46823 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 46824 # mark relocations read only 46825 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 46826 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 46827 fi 46828 ;; 46829 fastdebug ) 46830 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 46831 # mark relocations read only 46832 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 46833 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 46834 fi 46835 ;; 46836 * ) 46837 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 46838 ;; 46839 esac 46840 fi 46841 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 46842 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 46843 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -xildoff -ztext" 46844 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 46845 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 46846 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 46847 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok" 46848 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_XLC" 46849 fi 46850 46851 # Customize LDFLAGS for executables 46852 46853 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 46854 46855 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 46856 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 46857 LDFLAGS_STACK_SIZE=1048576 46858 else 46859 LDFLAGS_STACK_SIZE=327680 46860 fi 46861 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 46862 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 46863 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 46864 fi 46865 46866 # Customize LDFLAGS for libs 46867 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 46868 46869 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 46870 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 46871 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} \ 46872 -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 46873 JDKLIB_LIBS="" 46874 else 46875 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} \ 46876 -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}" 46877 46878 # On some platforms (mac) the linker warns about non existing -L dirs. 46879 # Add server first if available. Linking aginst client does not always produce the same results. 46880 # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1. 46881 # Default to server for other variants. 46882 if test "x$JVM_VARIANT_SERVER" = xtrue; then 46883 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/server" 46884 elif test "x$JVM_VARIANT_CLIENT" = xtrue; then 46885 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/client" 46886 elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 46887 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/minimal" 46888 else 46889 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/server" 46890 fi 46891 46892 JDKLIB_LIBS="-ljava -ljvm" 46893 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 46894 JDKLIB_LIBS="$JDKLIB_LIBS -lc" 46895 fi 46896 fi 46897 46898 46899 46900 46901 46902 46903 46904 46905 LDFLAGS_TESTLIB="$LDFLAGS_JDKLIB" 46906 LDFLAGS_TESTEXE="$LDFLAGS_JDKEXE" 46907 46908 46909 46910 46911 46912 # Some Zero and Shark settings. 46913 # ZERO_ARCHFLAG tells the compiler which mode to build for 46914 case "${OPENJDK_TARGET_CPU}" in 46915 s390) 46916 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 46917 ;; 46918 *) 46919 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 46920 esac 46921 46922 46923 46924 46925 46926 46927 46928 46929 46930 46931 46932 46933 46934 46935 46936 46937 46938 46939 46940 46941 46942 46943 46944 46945 46946 46947 46948 46949 46950 46951 46952 46953 46954 46955 46956 46957 46958 46959 46960 46961 46962 46963 # Execute function body 46964 46965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$ZERO_ARCHFLAG\"" >&5 46966 $as_echo_n "checking if compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 46967 supports=yes 46968 46969 saved_cflags="$CFLAGS" 46970 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 46971 ac_ext=c 46972 ac_cpp='$CPP $CPPFLAGS' 46973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46975 ac_compiler_gnu=$ac_cv_c_compiler_gnu 46976 46977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46978 /* end confdefs.h. */ 46979 int i; 46980 _ACEOF 46981 if ac_fn_c_try_compile "$LINENO"; then : 46982 46983 else 46984 supports=no 46985 fi 46986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 46987 ac_ext=cpp 46988 ac_cpp='$CXXCPP $CPPFLAGS' 46989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 46992 46993 CFLAGS="$saved_cflags" 46994 46995 saved_cxxflags="$CXXFLAGS" 46996 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 46997 ac_ext=cpp 46998 ac_cpp='$CXXCPP $CPPFLAGS' 46999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47002 47003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47004 /* end confdefs.h. */ 47005 int i; 47006 _ACEOF 47007 if ac_fn_cxx_try_compile "$LINENO"; then : 47008 47009 else 47010 supports=no 47011 fi 47012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47013 ac_ext=cpp 47014 ac_cpp='$CXXCPP $CPPFLAGS' 47015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47018 47019 CXXFLAGS="$saved_cxxflags" 47020 47021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47022 $as_echo "$supports" >&6; } 47023 if test "x$supports" = "xyes" ; then 47024 : 47025 47026 else 47027 : 47028 ZERO_ARCHFLAG="" 47029 fi 47030 47031 47032 47033 47034 47035 47036 47037 47038 47039 47040 47041 47042 47043 47044 # Check that the compiler supports -mX (or -qX on AIX) flags 47045 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 47046 47047 47048 47049 47050 47051 47052 47053 47054 47055 47056 47057 47058 47059 47060 47061 47062 47063 47064 47065 47066 47067 47068 47069 47070 47071 47072 47073 47074 47075 47076 47077 47078 47079 47080 47081 47082 47083 47084 47085 47086 47087 47088 47089 47090 47091 47092 47093 # Execute function body 47094 47095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 47096 $as_echo_n "checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 47097 supports=yes 47098 47099 saved_cflags="$CFLAGS" 47100 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 47101 ac_ext=c 47102 ac_cpp='$CPP $CPPFLAGS' 47103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47105 ac_compiler_gnu=$ac_cv_c_compiler_gnu 47106 47107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47108 /* end confdefs.h. */ 47109 int i; 47110 _ACEOF 47111 if ac_fn_c_try_compile "$LINENO"; then : 47112 47113 else 47114 supports=no 47115 fi 47116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47117 ac_ext=cpp 47118 ac_cpp='$CXXCPP $CPPFLAGS' 47119 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47120 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47121 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47122 47123 CFLAGS="$saved_cflags" 47124 47125 saved_cxxflags="$CXXFLAGS" 47126 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 47127 ac_ext=cpp 47128 ac_cpp='$CXXCPP $CPPFLAGS' 47129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47132 47133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47134 /* end confdefs.h. */ 47135 int i; 47136 _ACEOF 47137 if ac_fn_cxx_try_compile "$LINENO"; then : 47138 47139 else 47140 supports=no 47141 fi 47142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47143 ac_ext=cpp 47144 ac_cpp='$CXXCPP $CPPFLAGS' 47145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47148 47149 CXXFLAGS="$saved_cxxflags" 47150 47151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47152 $as_echo "$supports" >&6; } 47153 if test "x$supports" = "xyes" ; then 47154 : 47155 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 47156 else 47157 : 47158 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 47159 fi 47160 47161 47162 47163 47164 47165 47166 47167 47168 47169 47170 47171 47172 47173 47174 # Check whether --enable-warnings-as-errors was given. 47175 if test "${enable_warnings_as_errors+set}" = set; then : 47176 enableval=$enable_warnings_as_errors; 47177 fi 47178 47179 47180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native warnings are errors" >&5 47181 $as_echo_n "checking if native warnings are errors... " >&6; } 47182 if test "x$enable_warnings_as_errors" = "xyes"; then 47183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (explicitely set)" >&5 47184 $as_echo "yes (explicitely set)" >&6; } 47185 WARNINGS_AS_ERRORS=true 47186 elif test "x$enable_warnings_as_errors" = "xno"; then 47187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47188 $as_echo "no" >&6; } 47189 WARNINGS_AS_ERRORS=false 47190 elif test "x$enable_warnings_as_errors" = "x"; then 47191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 47192 $as_echo "yes (default)" >&6; } 47193 WARNINGS_AS_ERRORS=true 47194 else 47195 as_fn_error $? "--enable-warnings-as-errors accepts no argument" "$LINENO" 5 47196 fi 47197 47198 if test "x$WARNINGS_AS_ERRORS" = "xfalse"; then 47199 # Set legacy hotspot variable 47200 HOTSPOT_SET_WARNINGS_AS_ERRORS="WARNINGS_ARE_ERRORS=" 47201 else 47202 HOTSPOT_SET_WARNINGS_AS_ERRORS="" 47203 fi 47204 47205 47206 47207 47208 case "${TOOLCHAIN_TYPE}" in 47209 microsoft) 47210 DISABLE_WARNING_PREFIX="-wd" 47211 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 47212 ;; 47213 solstudio) 47214 DISABLE_WARNING_PREFIX="-erroff=" 47215 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 47216 ;; 47217 gcc) 47218 # Prior to gcc 4.4, a -Wno-X where X is unknown for that version of gcc will cause an error 47219 47220 47221 47222 47223 47224 47225 47226 47227 47228 47229 47230 47231 47232 47233 47234 47235 47236 47237 47238 47239 47240 47241 47242 47243 47244 47245 47246 47247 47248 47249 47250 47251 47252 47253 47254 47255 47256 47257 47258 47259 47260 47261 47262 47263 47264 47265 47266 # Execute function body 47267 47268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 47269 $as_echo_n "checking if compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 47270 supports=yes 47271 47272 saved_cflags="$CFLAGS" 47273 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 47274 ac_ext=c 47275 ac_cpp='$CPP $CPPFLAGS' 47276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47278 ac_compiler_gnu=$ac_cv_c_compiler_gnu 47279 47280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47281 /* end confdefs.h. */ 47282 int i; 47283 _ACEOF 47284 if ac_fn_c_try_compile "$LINENO"; then : 47285 47286 else 47287 supports=no 47288 fi 47289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47290 ac_ext=cpp 47291 ac_cpp='$CXXCPP $CPPFLAGS' 47292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47295 47296 CFLAGS="$saved_cflags" 47297 47298 saved_cxxflags="$CXXFLAGS" 47299 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 47300 ac_ext=cpp 47301 ac_cpp='$CXXCPP $CPPFLAGS' 47302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47305 47306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47307 /* end confdefs.h. */ 47308 int i; 47309 _ACEOF 47310 if ac_fn_cxx_try_compile "$LINENO"; then : 47311 47312 else 47313 supports=no 47314 fi 47315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47316 ac_ext=cpp 47317 ac_cpp='$CXXCPP $CPPFLAGS' 47318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47321 47322 CXXFLAGS="$saved_cxxflags" 47323 47324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47325 $as_echo "$supports" >&6; } 47326 if test "x$supports" = "xyes" ; then 47327 : 47328 GCC_CAN_DISABLE_WARNINGS=true 47329 else 47330 : 47331 GCC_CAN_DISABLE_WARNINGS=false 47332 47333 fi 47334 47335 47336 47337 47338 47339 47340 47341 47342 47343 47344 47345 47346 if test "x$GCC_CAN_DISABLE_WARNINGS" = "xtrue"; then 47347 DISABLE_WARNING_PREFIX="-Wno-" 47348 else 47349 DISABLE_WARNING_PREFIX= 47350 fi 47351 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 47352 # Repeate the check for the BUILD_CC 47353 CC_OLD="$CC" 47354 CC="$BUILD_CC" 47355 47356 47357 47358 47359 47360 47361 47362 47363 47364 47365 47366 47367 47368 47369 47370 47371 47372 47373 47374 47375 47376 47377 47378 47379 47380 47381 47382 47383 47384 47385 47386 47387 47388 47389 47390 47391 47392 47393 47394 47395 47396 47397 47398 47399 47400 47401 47402 # Execute function body 47403 47404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 47405 $as_echo_n "checking if compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 47406 supports=yes 47407 47408 saved_cflags="$CFLAGS" 47409 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 47410 ac_ext=c 47411 ac_cpp='$CPP $CPPFLAGS' 47412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47414 ac_compiler_gnu=$ac_cv_c_compiler_gnu 47415 47416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47417 /* end confdefs.h. */ 47418 int i; 47419 _ACEOF 47420 if ac_fn_c_try_compile "$LINENO"; then : 47421 47422 else 47423 supports=no 47424 fi 47425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47426 ac_ext=cpp 47427 ac_cpp='$CXXCPP $CPPFLAGS' 47428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47431 47432 CFLAGS="$saved_cflags" 47433 47434 saved_cxxflags="$CXXFLAGS" 47435 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 47436 ac_ext=cpp 47437 ac_cpp='$CXXCPP $CPPFLAGS' 47438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47441 47442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47443 /* end confdefs.h. */ 47444 int i; 47445 _ACEOF 47446 if ac_fn_cxx_try_compile "$LINENO"; then : 47447 47448 else 47449 supports=no 47450 fi 47451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47452 ac_ext=cpp 47453 ac_cpp='$CXXCPP $CPPFLAGS' 47454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47457 47458 CXXFLAGS="$saved_cxxflags" 47459 47460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47461 $as_echo "$supports" >&6; } 47462 if test "x$supports" = "xyes" ; then 47463 : 47464 BUILD_CC_CAN_DISABLE_WARNINGS=true 47465 else 47466 : 47467 BUILD_CC_CAN_DISABLE_WARNINGS=false 47468 47469 fi 47470 47471 47472 47473 47474 47475 47476 47477 47478 47479 47480 47481 47482 if test "x$BUILD_CC_CAN_DISABLE_WARNINGS" = "xtrue"; then 47483 BUILD_CC_DISABLE_WARNING_PREFIX="-Wno-" 47484 else 47485 BUILD_CC_DISABLE_WARNING_PREFIX= 47486 fi 47487 CC="$CC_OLD" 47488 ;; 47489 clang) 47490 DISABLE_WARNING_PREFIX="-Wno-" 47491 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 47492 ;; 47493 xlc) 47494 DISABLE_WARNING_PREFIX="-qsuppress=" 47495 CFLAGS_WARNINGS_ARE_ERRORS="-qhalt=w" 47496 ;; 47497 esac 47498 47499 47500 47501 47502 # Setup debug symbols (need objcopy from the toolchain for that) 47503 47504 # 47505 # NATIVE_DEBUG_SYMBOLS 47506 # This must be done after the toolchain is setup, since we're looking at objcopy. 47507 # 47508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of native debug symbols to use" >&5 47509 $as_echo_n "checking what type of native debug symbols to use... " >&6; } 47510 47511 # Check whether --with-native-debug-symbols was given. 47512 if test "${with_native_debug_symbols+set}" = set; then : 47513 withval=$with_native_debug_symbols; 47514 if test "x$OPENJDK_TARGET_OS" = xaix; then 47515 if test "x$withval" = xexternal || test "x$withval" = xzipped; then 47516 as_fn_error $? "AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols" "$LINENO" 5 47517 fi 47518 fi 47519 47520 else 47521 47522 if test "x$OPENJDK_TARGET_OS" = xaix; then 47523 # AIX doesn't support 'zipped' so use 'internal' as default 47524 with_native_debug_symbols="internal" 47525 else 47526 if test "x$STATIC_BUILD" = xtrue; then 47527 with_native_debug_symbols="none" 47528 else 47529 with_native_debug_symbols="zipped" 47530 fi 47531 fi 47532 47533 fi 47534 47535 NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols 47536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE_DEBUG_SYMBOLS" >&5 47537 $as_echo "$NATIVE_DEBUG_SYMBOLS" >&6; } 47538 47539 if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then 47540 47541 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 47542 if test "x$OBJCOPY" = x; then 47543 # enabling of enable-debug-symbols and can't find objcopy 47544 # this is an error 47545 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 47546 fi 47547 fi 47548 47549 COMPILE_WITH_DEBUG_SYMBOLS=true 47550 COPY_DEBUG_SYMBOLS=true 47551 ZIP_EXTERNAL_DEBUG_SYMBOLS=true 47552 47553 # Hotspot legacy support, not relevant with COPY_DEBUG_SYMBOLS=true 47554 DEBUG_BINARIES=false 47555 STRIP_POLICY=min_strip 47556 47557 elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then 47558 COMPILE_WITH_DEBUG_SYMBOLS=false 47559 COPY_DEBUG_SYMBOLS=false 47560 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 47561 47562 DEBUG_BINARIES=false 47563 STRIP_POLICY=no_strip 47564 elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then 47565 COMPILE_WITH_DEBUG_SYMBOLS=true 47566 COPY_DEBUG_SYMBOLS=false 47567 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 47568 47569 # Hotspot legacy support, will turn on -g when COPY_DEBUG_SYMBOLS=false 47570 DEBUG_BINARIES=true 47571 STRIP_POLICY=no_strip 47572 STRIP="" 47573 47574 elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then 47575 47576 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 47577 if test "x$OBJCOPY" = x; then 47578 # enabling of enable-debug-symbols and can't find objcopy 47579 # this is an error 47580 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 47581 fi 47582 fi 47583 47584 COMPILE_WITH_DEBUG_SYMBOLS=true 47585 COPY_DEBUG_SYMBOLS=true 47586 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 47587 47588 # Hotspot legacy support, not relevant with COPY_DEBUG_SYMBOLS=true 47589 DEBUG_BINARIES=false 47590 STRIP_POLICY=min_strip 47591 else 47592 as_fn_error $? "Allowed native debug symbols are: none, internal, external, zipped" "$LINENO" 5 47593 fi 47594 47595 # --enable-debug-symbols is deprecated. 47596 # Please use --with-native-debug-symbols=[internal,external,zipped] . 47597 47598 # Check whether --enable-debug-symbols was given. 47599 if test "${enable_debug_symbols+set}" = set; then : 47600 enableval=$enable_debug_symbols; 47601 fi 47602 47603 if test "x$enable_debug_symbols" != x; then 47604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&5 47605 $as_echo "$as_me: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&2;} 47606 47607 if test "xPlease use --with-native-debug-symbols=[internal,external,zipped] ." != x; then 47608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&5 47609 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&2;} 47610 fi 47611 47612 fi 47613 47614 47615 # --enable-zip-debug-info is deprecated. 47616 # Please use --with-native-debug-symbols=zipped . 47617 47618 # Check whether --enable-zip-debug-info was given. 47619 if test "${enable_zip_debug_info+set}" = set; then : 47620 enableval=$enable_zip_debug_info; 47621 fi 47622 47623 if test "x$enable_zip_debug_info" != x; then 47624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&5 47625 $as_echo "$as_me: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&2;} 47626 47627 if test "xPlease use --with-native-debug-symbols=zipped ." != x; then 47628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=zipped ." >&5 47629 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=zipped ." >&2;} 47630 fi 47631 47632 fi 47633 47634 47635 47636 47637 47638 47639 # Legacy values 47640 47641 47642 47643 47644 # Check whether --enable-native-coverage was given. 47645 if test "${enable_native_coverage+set}" = set; then : 47646 enableval=$enable_native_coverage; 47647 fi 47648 47649 GCOV_ENABLED="false" 47650 if test "x$enable_native_coverage" = "xyes"; then 47651 if test "x$TOOLCHAIN_TYPE" = "xgcc"; then 47652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 47653 $as_echo_n "checking if native coverage is enabled... " >&6; } 47654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47655 $as_echo "yes" >&6; } 47656 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline" 47657 GCOV_LDFLAGS="-fprofile-arcs" 47658 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $GCOV_CFLAGS" 47659 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $GCOV_CFLAGS" 47660 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $GCOV_LDFLAGS" 47661 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $GCOV_CFLAGS" 47662 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $GCOV_CFLAGS" 47663 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $GCOV_CFLAGS" 47664 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS" 47665 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS" 47666 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS" 47667 GCOV_ENABLED="true" 47668 else 47669 as_fn_error $? "--enable-native-coverage only works with toolchain type gcc" "$LINENO" 5 47670 fi 47671 elif test "x$enable_native_coverage" = "xno"; then 47672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 47673 $as_echo_n "checking if native coverage is enabled... " >&6; } 47674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47675 $as_echo "no" >&6; } 47676 elif test "x$enable_native_coverage" != "x"; then 47677 as_fn_error $? "--enable-native-coverage can only be assigned \"yes\" or \"no\"" "$LINENO" 5 47678 fi 47679 47680 47681 47682 47683 ############################################################################### 47684 # 47685 # Check dependencies for external and internal libraries. 47686 # 47687 ############################################################################### 47688 47689 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 47690 47691 # When using cygwin or msys, we need a wrapper binary that renames 47692 # /cygdrive/c/ arguments into c:/ arguments and peeks into 47693 # @files and rewrites these too! This wrapper binary is 47694 # called fixpath. 47695 FIXPATH= 47696 if test "x$OPENJDK_BUILD_OS" = xwindows; then 47697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 47698 $as_echo_n "checking if fixpath can be created... " >&6; } 47699 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 47700 FIXPATH_BIN="$CONFIGURESUPPORT_OUTPUTDIR/bin/fixpath.exe" 47701 FIXPATH_DIR="$CONFIGURESUPPORT_OUTPUTDIR/fixpath" 47702 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 47703 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 47704 FIXPATH="$FIXPATH_BIN -c" 47705 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 47706 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 47707 # @ was chosen as separator to minimize risk of other tools messing around with it 47708 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" \ 47709 | tr ' ' '\n' | grep '^/./' | sort | uniq` 47710 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 47711 FIXPATH="$FIXPATH_BIN -m$fixpath_argument_list" 47712 fi 47713 FIXPATH_SRC_W="$FIXPATH_SRC" 47714 FIXPATH_BIN_W="$FIXPATH_BIN" 47715 47716 unix_path="$FIXPATH_SRC_W" 47717 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47718 windows_path=`$CYGPATH -m "$unix_path"` 47719 FIXPATH_SRC_W="$windows_path" 47720 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47721 windows_path=`cmd //c echo $unix_path` 47722 FIXPATH_SRC_W="$windows_path" 47723 fi 47724 47725 47726 unix_path="$FIXPATH_BIN_W" 47727 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47728 windows_path=`$CYGPATH -m "$unix_path"` 47729 FIXPATH_BIN_W="$windows_path" 47730 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47731 windows_path=`cmd //c echo $unix_path` 47732 FIXPATH_BIN_W="$windows_path" 47733 fi 47734 47735 $RM -rf $FIXPATH_BIN $FIXPATH_DIR 47736 $MKDIR -p $FIXPATH_DIR $CONFIGURESUPPORT_OUTPUTDIR/bin 47737 cd $FIXPATH_DIR 47738 $CC $FIXPATH_SRC_W -Fe$FIXPATH_BIN_W > $FIXPATH_DIR/fixpath1.log 2>&1 47739 cd $CURDIR 47740 47741 if test ! -x $FIXPATH_BIN; then 47742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47743 $as_echo "no" >&6; } 47744 cat $FIXPATH_DIR/fixpath1.log 47745 as_fn_error $? "Could not create $FIXPATH_BIN" "$LINENO" 5 47746 fi 47747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47748 $as_echo "yes" >&6; } 47749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 47750 $as_echo_n "checking if fixpath.exe works... " >&6; } 47751 cd $FIXPATH_DIR 47752 $FIXPATH $CC $FIXPATH_SRC -Fe$FIXPATH_DIR/fixpath2.exe \ 47753 > $FIXPATH_DIR/fixpath2.log 2>&1 47754 cd $CURDIR 47755 if test ! -x $FIXPATH_DIR/fixpath2.exe; then 47756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47757 $as_echo "no" >&6; } 47758 cat $FIXPATH_DIR/fixpath2.log 47759 as_fn_error $? "fixpath did not work!" "$LINENO" 5 47760 fi 47761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47762 $as_echo "yes" >&6; } 47763 47764 FIXPATH_DETACH_FLAG="--detach" 47765 fi 47766 47767 47768 47769 47770 47771 47772 # Check if X11 is needed 47773 if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then 47774 # No X11 support on windows or macosx 47775 NEEDS_LIB_X11=false 47776 else 47777 if test "x$SUPPORT_HEADFUL" = xno; then 47778 # No X11 support if building headless-only 47779 NEEDS_LIB_X11=false 47780 else 47781 # All other instances need X11 47782 NEEDS_LIB_X11=true 47783 fi 47784 fi 47785 47786 # Check if cups is needed 47787 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47788 # Windows have a separate print system 47789 NEEDS_LIB_CUPS=false 47790 else 47791 NEEDS_LIB_CUPS=true 47792 fi 47793 47794 # Check if freetype is needed 47795 if test "x$OPENJDK" = "xtrue"; then 47796 NEEDS_LIB_FREETYPE=true 47797 else 47798 NEEDS_LIB_FREETYPE=false 47799 fi 47800 47801 # Check if alsa is needed 47802 if test "x$OPENJDK_TARGET_OS" = xlinux; then 47803 NEEDS_LIB_ALSA=true 47804 else 47805 NEEDS_LIB_ALSA=false 47806 fi 47807 47808 # Check if ffi is needed 47809 if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 47810 NEEDS_LIB_FFI=true 47811 else 47812 NEEDS_LIB_FFI=false 47813 fi 47814 47815 47816 # statically link libstdc++ before C++ ABI is stablized on Linux unless 47817 # dynamic build is configured on command line. 47818 47819 # Check whether --with-stdc++lib was given. 47820 if test "${with_stdc__lib+set}" = set; then : 47821 withval=$with_stdc__lib; 47822 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 47823 && test "x$with_stdc__lib" != xdefault; then 47824 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 47825 fi 47826 47827 else 47828 with_stdc__lib=default 47829 47830 fi 47831 47832 47833 if test "x$OPENJDK_TARGET_OS" = xlinux; then 47834 # Test if -lstdc++ works. 47835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 47836 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 47837 ac_ext=cpp 47838 ac_cpp='$CXXCPP $CPPFLAGS' 47839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47842 47843 OLD_CXXFLAGS="$CXXFLAGS" 47844 CXXFLAGS="$CXXFLAGS -lstdc++" 47845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47846 /* end confdefs.h. */ 47847 47848 int 47849 main () 47850 { 47851 return 0; 47852 ; 47853 return 0; 47854 } 47855 _ACEOF 47856 if ac_fn_cxx_try_link "$LINENO"; then : 47857 has_dynamic_libstdcxx=yes 47858 else 47859 has_dynamic_libstdcxx=no 47860 fi 47861 rm -f core conftest.err conftest.$ac_objext \ 47862 conftest$ac_exeext conftest.$ac_ext 47863 CXXFLAGS="$OLD_CXXFLAGS" 47864 ac_ext=cpp 47865 ac_cpp='$CXXCPP $CPPFLAGS' 47866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47869 47870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 47871 $as_echo "$has_dynamic_libstdcxx" >&6; } 47872 47873 # Test if stdc++ can be linked statically. 47874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 47875 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 47876 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 47877 ac_ext=cpp 47878 ac_cpp='$CXXCPP $CPPFLAGS' 47879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47882 47883 OLD_LIBS="$LIBS" 47884 OLD_CXX="$CXX" 47885 LIBS="$STATIC_STDCXX_FLAGS" 47886 CXX="$CC" 47887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47888 /* end confdefs.h. */ 47889 47890 int 47891 main () 47892 { 47893 return 0; 47894 ; 47895 return 0; 47896 } 47897 _ACEOF 47898 if ac_fn_cxx_try_link "$LINENO"; then : 47899 has_static_libstdcxx=yes 47900 else 47901 has_static_libstdcxx=no 47902 fi 47903 rm -f core conftest.err conftest.$ac_objext \ 47904 conftest$ac_exeext conftest.$ac_ext 47905 LIBS="$OLD_LIBS" 47906 CXX="$OLD_CXX" 47907 ac_ext=cpp 47908 ac_cpp='$CXXCPP $CPPFLAGS' 47909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47912 47913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 47914 $as_echo "$has_static_libstdcxx" >&6; } 47915 47916 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 47917 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 47918 fi 47919 47920 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 47921 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 47922 fi 47923 47924 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 47925 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 47926 fi 47927 47928 # If dynamic was requested, it's available since it would fail above otherwise. 47929 # If dynamic wasn't requested, go with static unless it isn't available. 47930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 47931 $as_echo_n "checking how to link with libstdc++... " >&6; } 47932 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 47933 LIBCXX="$LIBCXX -lstdc++" 47934 LDCXX="$CXX" 47935 STATIC_CXX_SETTING="STATIC_CXX=false" 47936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 47937 $as_echo "dynamic" >&6; } 47938 else 47939 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 47940 LDCXX="$CC" 47941 STATIC_CXX_SETTING="STATIC_CXX=true" 47942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 47943 $as_echo "static" >&6; } 47944 fi 47945 fi 47946 47947 47948 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 47949 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 47950 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 47951 fi 47952 47953 # TODO better (platform agnostic) test 47954 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then 47955 LIBCXX="-lstdc++" 47956 fi 47957 47958 47959 # Setup Windows runtime dlls 47960 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 47961 47962 47963 # Check whether --with-msvcr-dll was given. 47964 if test "${with_msvcr_dll+set}" = set; then : 47965 withval=$with_msvcr_dll; 47966 fi 47967 47968 47969 if test "x$with_msvcr_dll" != x; then 47970 # If given explicitely by user, do not probe. If not present, fail directly. 47971 47972 DLL_NAME="$MSVCR_NAME" 47973 POSSIBLE_MSVC_DLL="$with_msvcr_dll" 47974 METHOD="--with-msvcr-dll" 47975 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 47976 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 47977 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 47978 47979 # Need to check if the found msvcr is correct architecture 47980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 47981 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 47982 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 47983 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47984 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 47985 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 47986 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 47987 CORRECT_MSVCR_ARCH="PE32 executable" 47988 else 47989 CORRECT_MSVCR_ARCH="PE32+ executable" 47990 fi 47991 else 47992 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 47993 CORRECT_MSVCR_ARCH=386 47994 else 47995 CORRECT_MSVCR_ARCH=x86-64 47996 fi 47997 fi 47998 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 47999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 48000 $as_echo "ok" >&6; } 48001 MSVC_DLL="$POSSIBLE_MSVC_DLL" 48002 48003 # Only process if variable expands to non-empty 48004 48005 if test "x$MSVC_DLL" != x; then 48006 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48007 48008 # Input might be given as Windows format, start by converting to 48009 # unix format. 48010 path="$MSVC_DLL" 48011 new_path=`$CYGPATH -u "$path"` 48012 48013 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48014 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48015 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48016 # "foo.exe" is OK but "foo" is an error. 48017 # 48018 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48019 # It is also a way to make sure we got the proper file name for the real test later on. 48020 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48021 if test "x$test_shortpath" = x; then 48022 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 48023 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 48024 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 48025 fi 48026 48027 # Call helper function which possibly converts this using DOS-style short mode. 48028 # If so, the updated path is stored in $new_path. 48029 48030 input_path="$new_path" 48031 # Check if we need to convert this using DOS-style short mode. If the path 48032 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48033 # take no chances and rewrite it. 48034 # Note: m4 eats our [], so we need to use [ and ] instead. 48035 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48036 if test "x$has_forbidden_chars" != x; then 48037 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48038 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48039 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48040 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48041 # Going to short mode and back again did indeed matter. Since short mode is 48042 # case insensitive, let's make it lowercase to improve readability. 48043 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48044 # Now convert it back to Unix-style (cygpath) 48045 input_path=`$CYGPATH -u "$shortmode_path"` 48046 new_path="$input_path" 48047 fi 48048 fi 48049 48050 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48051 if test "x$test_cygdrive_prefix" = x; then 48052 # As a simple fix, exclude /usr/bin since it's not a real path. 48053 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48054 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48055 # a path prefixed by /cygdrive for fixpath to work. 48056 new_path="$CYGWIN_ROOT_PATH$input_path" 48057 fi 48058 fi 48059 48060 48061 if test "x$path" != "x$new_path"; then 48062 MSVC_DLL="$new_path" 48063 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 48064 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 48065 fi 48066 48067 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48068 48069 path="$MSVC_DLL" 48070 has_colon=`$ECHO $path | $GREP ^.:` 48071 new_path="$path" 48072 if test "x$has_colon" = x; then 48073 # Not in mixed or Windows style, start by that. 48074 new_path=`cmd //c echo $path` 48075 fi 48076 48077 48078 input_path="$new_path" 48079 # Check if we need to convert this using DOS-style short mode. If the path 48080 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48081 # take no chances and rewrite it. 48082 # Note: m4 eats our [], so we need to use [ and ] instead. 48083 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48084 if test "x$has_forbidden_chars" != x; then 48085 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48086 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48087 fi 48088 48089 48090 windows_path="$new_path" 48091 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48092 unix_path=`$CYGPATH -u "$windows_path"` 48093 new_path="$unix_path" 48094 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48095 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48096 new_path="$unix_path" 48097 fi 48098 48099 if test "x$path" != "x$new_path"; then 48100 MSVC_DLL="$new_path" 48101 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 48102 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 48103 fi 48104 48105 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48106 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48107 48108 else 48109 # We're on a unix platform. Hooray! :) 48110 path="$MSVC_DLL" 48111 has_space=`$ECHO "$path" | $GREP " "` 48112 if test "x$has_space" != x; then 48113 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 48114 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 48115 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48116 fi 48117 48118 # Use eval to expand a potential ~ 48119 eval path="$path" 48120 if test ! -f "$path" && test ! -d "$path"; then 48121 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 48122 fi 48123 48124 if test -d "$path"; then 48125 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 48126 else 48127 dir="`$DIRNAME "$path"`" 48128 base="`$BASENAME "$path"`" 48129 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 48130 fi 48131 fi 48132 fi 48133 48134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 48135 $as_echo_n "checking for $DLL_NAME... " >&6; } 48136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 48137 $as_echo "$MSVC_DLL" >&6; } 48138 else 48139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 48140 $as_echo "incorrect, ignoring" >&6; } 48141 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 48142 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 48143 fi 48144 fi 48145 48146 if test "x$MSVC_DLL" = x; then 48147 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by --with-msvcr-dll" "$LINENO" 5 48148 fi 48149 MSVCR_DLL="$MSVC_DLL" 48150 elif test "x$DEVKIT_MSVCR_DLL" != x; then 48151 48152 DLL_NAME="$MSVCR_NAME" 48153 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCR_DLL" 48154 METHOD="devkit" 48155 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 48156 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 48157 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 48158 48159 # Need to check if the found msvcr is correct architecture 48160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 48161 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 48162 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 48163 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48164 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 48165 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 48166 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48167 CORRECT_MSVCR_ARCH="PE32 executable" 48168 else 48169 CORRECT_MSVCR_ARCH="PE32+ executable" 48170 fi 48171 else 48172 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48173 CORRECT_MSVCR_ARCH=386 48174 else 48175 CORRECT_MSVCR_ARCH=x86-64 48176 fi 48177 fi 48178 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 48179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 48180 $as_echo "ok" >&6; } 48181 MSVC_DLL="$POSSIBLE_MSVC_DLL" 48182 48183 # Only process if variable expands to non-empty 48184 48185 if test "x$MSVC_DLL" != x; then 48186 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48187 48188 # Input might be given as Windows format, start by converting to 48189 # unix format. 48190 path="$MSVC_DLL" 48191 new_path=`$CYGPATH -u "$path"` 48192 48193 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48194 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48195 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48196 # "foo.exe" is OK but "foo" is an error. 48197 # 48198 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48199 # It is also a way to make sure we got the proper file name for the real test later on. 48200 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48201 if test "x$test_shortpath" = x; then 48202 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 48203 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 48204 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 48205 fi 48206 48207 # Call helper function which possibly converts this using DOS-style short mode. 48208 # If so, the updated path is stored in $new_path. 48209 48210 input_path="$new_path" 48211 # Check if we need to convert this using DOS-style short mode. If the path 48212 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48213 # take no chances and rewrite it. 48214 # Note: m4 eats our [], so we need to use [ and ] instead. 48215 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48216 if test "x$has_forbidden_chars" != x; then 48217 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48218 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48219 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48220 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48221 # Going to short mode and back again did indeed matter. Since short mode is 48222 # case insensitive, let's make it lowercase to improve readability. 48223 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48224 # Now convert it back to Unix-style (cygpath) 48225 input_path=`$CYGPATH -u "$shortmode_path"` 48226 new_path="$input_path" 48227 fi 48228 fi 48229 48230 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48231 if test "x$test_cygdrive_prefix" = x; then 48232 # As a simple fix, exclude /usr/bin since it's not a real path. 48233 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48234 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48235 # a path prefixed by /cygdrive for fixpath to work. 48236 new_path="$CYGWIN_ROOT_PATH$input_path" 48237 fi 48238 fi 48239 48240 48241 if test "x$path" != "x$new_path"; then 48242 MSVC_DLL="$new_path" 48243 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 48244 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 48245 fi 48246 48247 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48248 48249 path="$MSVC_DLL" 48250 has_colon=`$ECHO $path | $GREP ^.:` 48251 new_path="$path" 48252 if test "x$has_colon" = x; then 48253 # Not in mixed or Windows style, start by that. 48254 new_path=`cmd //c echo $path` 48255 fi 48256 48257 48258 input_path="$new_path" 48259 # Check if we need to convert this using DOS-style short mode. If the path 48260 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48261 # take no chances and rewrite it. 48262 # Note: m4 eats our [], so we need to use [ and ] instead. 48263 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48264 if test "x$has_forbidden_chars" != x; then 48265 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48266 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48267 fi 48268 48269 48270 windows_path="$new_path" 48271 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48272 unix_path=`$CYGPATH -u "$windows_path"` 48273 new_path="$unix_path" 48274 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48275 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48276 new_path="$unix_path" 48277 fi 48278 48279 if test "x$path" != "x$new_path"; then 48280 MSVC_DLL="$new_path" 48281 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 48282 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 48283 fi 48284 48285 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48286 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48287 48288 else 48289 # We're on a unix platform. Hooray! :) 48290 path="$MSVC_DLL" 48291 has_space=`$ECHO "$path" | $GREP " "` 48292 if test "x$has_space" != x; then 48293 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 48294 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 48295 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48296 fi 48297 48298 # Use eval to expand a potential ~ 48299 eval path="$path" 48300 if test ! -f "$path" && test ! -d "$path"; then 48301 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 48302 fi 48303 48304 if test -d "$path"; then 48305 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 48306 else 48307 dir="`$DIRNAME "$path"`" 48308 base="`$BASENAME "$path"`" 48309 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 48310 fi 48311 fi 48312 fi 48313 48314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 48315 $as_echo_n "checking for $DLL_NAME... " >&6; } 48316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 48317 $as_echo "$MSVC_DLL" >&6; } 48318 else 48319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 48320 $as_echo "incorrect, ignoring" >&6; } 48321 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 48322 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 48323 fi 48324 fi 48325 48326 if test "x$MSVC_DLL" = x; then 48327 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by devkit" "$LINENO" 5 48328 fi 48329 MSVCR_DLL="$MSVC_DLL" 48330 else 48331 48332 DLL_NAME="${MSVCR_NAME}" 48333 MSVC_DLL= 48334 48335 if test "x$MSVC_DLL" = x; then 48336 # Probe: Using well-known location from Visual Studio 10.0 48337 if test "x$VCINSTALLDIR" != x; then 48338 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 48339 48340 windows_path="$CYGWIN_VC_INSTALL_DIR" 48341 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48342 unix_path=`$CYGPATH -u "$windows_path"` 48343 CYGWIN_VC_INSTALL_DIR="$unix_path" 48344 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48345 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48346 CYGWIN_VC_INSTALL_DIR="$unix_path" 48347 fi 48348 48349 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 48350 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 48351 else 48352 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 48353 fi 48354 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 48355 48356 DLL_NAME="$DLL_NAME" 48357 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 48358 METHOD="well-known location in VCINSTALLDIR" 48359 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 48360 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 48361 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 48362 48363 # Need to check if the found msvcr is correct architecture 48364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 48365 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 48366 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 48367 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48368 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 48369 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 48370 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48371 CORRECT_MSVCR_ARCH="PE32 executable" 48372 else 48373 CORRECT_MSVCR_ARCH="PE32+ executable" 48374 fi 48375 else 48376 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48377 CORRECT_MSVCR_ARCH=386 48378 else 48379 CORRECT_MSVCR_ARCH=x86-64 48380 fi 48381 fi 48382 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 48383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 48384 $as_echo "ok" >&6; } 48385 MSVC_DLL="$POSSIBLE_MSVC_DLL" 48386 48387 # Only process if variable expands to non-empty 48388 48389 if test "x$MSVC_DLL" != x; then 48390 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48391 48392 # Input might be given as Windows format, start by converting to 48393 # unix format. 48394 path="$MSVC_DLL" 48395 new_path=`$CYGPATH -u "$path"` 48396 48397 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48398 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48399 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48400 # "foo.exe" is OK but "foo" is an error. 48401 # 48402 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48403 # It is also a way to make sure we got the proper file name for the real test later on. 48404 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48405 if test "x$test_shortpath" = x; then 48406 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 48407 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 48408 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 48409 fi 48410 48411 # Call helper function which possibly converts this using DOS-style short mode. 48412 # If so, the updated path is stored in $new_path. 48413 48414 input_path="$new_path" 48415 # Check if we need to convert this using DOS-style short mode. If the path 48416 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48417 # take no chances and rewrite it. 48418 # Note: m4 eats our [], so we need to use [ and ] instead. 48419 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48420 if test "x$has_forbidden_chars" != x; then 48421 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48422 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48423 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48424 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48425 # Going to short mode and back again did indeed matter. Since short mode is 48426 # case insensitive, let's make it lowercase to improve readability. 48427 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48428 # Now convert it back to Unix-style (cygpath) 48429 input_path=`$CYGPATH -u "$shortmode_path"` 48430 new_path="$input_path" 48431 fi 48432 fi 48433 48434 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48435 if test "x$test_cygdrive_prefix" = x; then 48436 # As a simple fix, exclude /usr/bin since it's not a real path. 48437 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48438 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48439 # a path prefixed by /cygdrive for fixpath to work. 48440 new_path="$CYGWIN_ROOT_PATH$input_path" 48441 fi 48442 fi 48443 48444 48445 if test "x$path" != "x$new_path"; then 48446 MSVC_DLL="$new_path" 48447 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 48448 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 48449 fi 48450 48451 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48452 48453 path="$MSVC_DLL" 48454 has_colon=`$ECHO $path | $GREP ^.:` 48455 new_path="$path" 48456 if test "x$has_colon" = x; then 48457 # Not in mixed or Windows style, start by that. 48458 new_path=`cmd //c echo $path` 48459 fi 48460 48461 48462 input_path="$new_path" 48463 # Check if we need to convert this using DOS-style short mode. If the path 48464 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48465 # take no chances and rewrite it. 48466 # Note: m4 eats our [], so we need to use [ and ] instead. 48467 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48468 if test "x$has_forbidden_chars" != x; then 48469 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48470 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48471 fi 48472 48473 48474 windows_path="$new_path" 48475 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48476 unix_path=`$CYGPATH -u "$windows_path"` 48477 new_path="$unix_path" 48478 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48479 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48480 new_path="$unix_path" 48481 fi 48482 48483 if test "x$path" != "x$new_path"; then 48484 MSVC_DLL="$new_path" 48485 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 48486 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 48487 fi 48488 48489 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48490 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48491 48492 else 48493 # We're on a unix platform. Hooray! :) 48494 path="$MSVC_DLL" 48495 has_space=`$ECHO "$path" | $GREP " "` 48496 if test "x$has_space" != x; then 48497 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 48498 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 48499 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48500 fi 48501 48502 # Use eval to expand a potential ~ 48503 eval path="$path" 48504 if test ! -f "$path" && test ! -d "$path"; then 48505 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 48506 fi 48507 48508 if test -d "$path"; then 48509 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 48510 else 48511 dir="`$DIRNAME "$path"`" 48512 base="`$BASENAME "$path"`" 48513 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 48514 fi 48515 fi 48516 fi 48517 48518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 48519 $as_echo_n "checking for $DLL_NAME... " >&6; } 48520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 48521 $as_echo "$MSVC_DLL" >&6; } 48522 else 48523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 48524 $as_echo "incorrect, ignoring" >&6; } 48525 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 48526 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 48527 fi 48528 fi 48529 48530 fi 48531 fi 48532 48533 if test "x$MSVC_DLL" = x; then 48534 # Probe: Check in the Boot JDK directory. 48535 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 48536 48537 DLL_NAME="$DLL_NAME" 48538 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 48539 METHOD="well-known location in Boot JDK" 48540 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 48541 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 48542 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 48543 48544 # Need to check if the found msvcr is correct architecture 48545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 48546 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 48547 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 48548 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48549 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 48550 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 48551 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48552 CORRECT_MSVCR_ARCH="PE32 executable" 48553 else 48554 CORRECT_MSVCR_ARCH="PE32+ executable" 48555 fi 48556 else 48557 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48558 CORRECT_MSVCR_ARCH=386 48559 else 48560 CORRECT_MSVCR_ARCH=x86-64 48561 fi 48562 fi 48563 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 48564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 48565 $as_echo "ok" >&6; } 48566 MSVC_DLL="$POSSIBLE_MSVC_DLL" 48567 48568 # Only process if variable expands to non-empty 48569 48570 if test "x$MSVC_DLL" != x; then 48571 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48572 48573 # Input might be given as Windows format, start by converting to 48574 # unix format. 48575 path="$MSVC_DLL" 48576 new_path=`$CYGPATH -u "$path"` 48577 48578 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48579 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48580 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48581 # "foo.exe" is OK but "foo" is an error. 48582 # 48583 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48584 # It is also a way to make sure we got the proper file name for the real test later on. 48585 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48586 if test "x$test_shortpath" = x; then 48587 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 48588 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 48589 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 48590 fi 48591 48592 # Call helper function which possibly converts this using DOS-style short mode. 48593 # If so, the updated path is stored in $new_path. 48594 48595 input_path="$new_path" 48596 # Check if we need to convert this using DOS-style short mode. If the path 48597 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48598 # take no chances and rewrite it. 48599 # Note: m4 eats our [], so we need to use [ and ] instead. 48600 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48601 if test "x$has_forbidden_chars" != x; then 48602 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48603 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48604 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48605 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48606 # Going to short mode and back again did indeed matter. Since short mode is 48607 # case insensitive, let's make it lowercase to improve readability. 48608 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48609 # Now convert it back to Unix-style (cygpath) 48610 input_path=`$CYGPATH -u "$shortmode_path"` 48611 new_path="$input_path" 48612 fi 48613 fi 48614 48615 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48616 if test "x$test_cygdrive_prefix" = x; then 48617 # As a simple fix, exclude /usr/bin since it's not a real path. 48618 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48619 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48620 # a path prefixed by /cygdrive for fixpath to work. 48621 new_path="$CYGWIN_ROOT_PATH$input_path" 48622 fi 48623 fi 48624 48625 48626 if test "x$path" != "x$new_path"; then 48627 MSVC_DLL="$new_path" 48628 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 48629 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 48630 fi 48631 48632 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48633 48634 path="$MSVC_DLL" 48635 has_colon=`$ECHO $path | $GREP ^.:` 48636 new_path="$path" 48637 if test "x$has_colon" = x; then 48638 # Not in mixed or Windows style, start by that. 48639 new_path=`cmd //c echo $path` 48640 fi 48641 48642 48643 input_path="$new_path" 48644 # Check if we need to convert this using DOS-style short mode. If the path 48645 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48646 # take no chances and rewrite it. 48647 # Note: m4 eats our [], so we need to use [ and ] instead. 48648 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48649 if test "x$has_forbidden_chars" != x; then 48650 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48651 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48652 fi 48653 48654 48655 windows_path="$new_path" 48656 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48657 unix_path=`$CYGPATH -u "$windows_path"` 48658 new_path="$unix_path" 48659 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48660 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48661 new_path="$unix_path" 48662 fi 48663 48664 if test "x$path" != "x$new_path"; then 48665 MSVC_DLL="$new_path" 48666 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 48667 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 48668 fi 48669 48670 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48671 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48672 48673 else 48674 # We're on a unix platform. Hooray! :) 48675 path="$MSVC_DLL" 48676 has_space=`$ECHO "$path" | $GREP " "` 48677 if test "x$has_space" != x; then 48678 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 48679 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 48680 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48681 fi 48682 48683 # Use eval to expand a potential ~ 48684 eval path="$path" 48685 if test ! -f "$path" && test ! -d "$path"; then 48686 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 48687 fi 48688 48689 if test -d "$path"; then 48690 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 48691 else 48692 dir="`$DIRNAME "$path"`" 48693 base="`$BASENAME "$path"`" 48694 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 48695 fi 48696 fi 48697 fi 48698 48699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 48700 $as_echo_n "checking for $DLL_NAME... " >&6; } 48701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 48702 $as_echo "$MSVC_DLL" >&6; } 48703 else 48704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 48705 $as_echo "incorrect, ignoring" >&6; } 48706 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 48707 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 48708 fi 48709 fi 48710 48711 fi 48712 48713 if test "x$MSVC_DLL" = x; then 48714 # Probe: Look in the Windows system32 directory 48715 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 48716 48717 windows_path="$CYGWIN_SYSTEMROOT" 48718 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48719 unix_path=`$CYGPATH -u "$windows_path"` 48720 CYGWIN_SYSTEMROOT="$unix_path" 48721 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48722 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48723 CYGWIN_SYSTEMROOT="$unix_path" 48724 fi 48725 48726 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 48727 48728 DLL_NAME="$DLL_NAME" 48729 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 48730 METHOD="well-known location in SYSTEMROOT" 48731 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 48732 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 48733 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 48734 48735 # Need to check if the found msvcr is correct architecture 48736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 48737 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 48738 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 48739 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48740 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 48741 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 48742 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48743 CORRECT_MSVCR_ARCH="PE32 executable" 48744 else 48745 CORRECT_MSVCR_ARCH="PE32+ executable" 48746 fi 48747 else 48748 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48749 CORRECT_MSVCR_ARCH=386 48750 else 48751 CORRECT_MSVCR_ARCH=x86-64 48752 fi 48753 fi 48754 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 48755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 48756 $as_echo "ok" >&6; } 48757 MSVC_DLL="$POSSIBLE_MSVC_DLL" 48758 48759 # Only process if variable expands to non-empty 48760 48761 if test "x$MSVC_DLL" != x; then 48762 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48763 48764 # Input might be given as Windows format, start by converting to 48765 # unix format. 48766 path="$MSVC_DLL" 48767 new_path=`$CYGPATH -u "$path"` 48768 48769 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48770 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48771 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48772 # "foo.exe" is OK but "foo" is an error. 48773 # 48774 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48775 # It is also a way to make sure we got the proper file name for the real test later on. 48776 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48777 if test "x$test_shortpath" = x; then 48778 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 48779 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 48780 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 48781 fi 48782 48783 # Call helper function which possibly converts this using DOS-style short mode. 48784 # If so, the updated path is stored in $new_path. 48785 48786 input_path="$new_path" 48787 # Check if we need to convert this using DOS-style short mode. If the path 48788 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48789 # take no chances and rewrite it. 48790 # Note: m4 eats our [], so we need to use [ and ] instead. 48791 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48792 if test "x$has_forbidden_chars" != x; then 48793 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48794 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48795 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48796 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48797 # Going to short mode and back again did indeed matter. Since short mode is 48798 # case insensitive, let's make it lowercase to improve readability. 48799 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48800 # Now convert it back to Unix-style (cygpath) 48801 input_path=`$CYGPATH -u "$shortmode_path"` 48802 new_path="$input_path" 48803 fi 48804 fi 48805 48806 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48807 if test "x$test_cygdrive_prefix" = x; then 48808 # As a simple fix, exclude /usr/bin since it's not a real path. 48809 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48810 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48811 # a path prefixed by /cygdrive for fixpath to work. 48812 new_path="$CYGWIN_ROOT_PATH$input_path" 48813 fi 48814 fi 48815 48816 48817 if test "x$path" != "x$new_path"; then 48818 MSVC_DLL="$new_path" 48819 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 48820 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 48821 fi 48822 48823 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48824 48825 path="$MSVC_DLL" 48826 has_colon=`$ECHO $path | $GREP ^.:` 48827 new_path="$path" 48828 if test "x$has_colon" = x; then 48829 # Not in mixed or Windows style, start by that. 48830 new_path=`cmd //c echo $path` 48831 fi 48832 48833 48834 input_path="$new_path" 48835 # Check if we need to convert this using DOS-style short mode. If the path 48836 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48837 # take no chances and rewrite it. 48838 # Note: m4 eats our [], so we need to use [ and ] instead. 48839 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48840 if test "x$has_forbidden_chars" != x; then 48841 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48842 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48843 fi 48844 48845 48846 windows_path="$new_path" 48847 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48848 unix_path=`$CYGPATH -u "$windows_path"` 48849 new_path="$unix_path" 48850 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48851 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48852 new_path="$unix_path" 48853 fi 48854 48855 if test "x$path" != "x$new_path"; then 48856 MSVC_DLL="$new_path" 48857 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 48858 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 48859 fi 48860 48861 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48862 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48863 48864 else 48865 # We're on a unix platform. Hooray! :) 48866 path="$MSVC_DLL" 48867 has_space=`$ECHO "$path" | $GREP " "` 48868 if test "x$has_space" != x; then 48869 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 48870 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 48871 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48872 fi 48873 48874 # Use eval to expand a potential ~ 48875 eval path="$path" 48876 if test ! -f "$path" && test ! -d "$path"; then 48877 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 48878 fi 48879 48880 if test -d "$path"; then 48881 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 48882 else 48883 dir="`$DIRNAME "$path"`" 48884 base="`$BASENAME "$path"`" 48885 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 48886 fi 48887 fi 48888 fi 48889 48890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 48891 $as_echo_n "checking for $DLL_NAME... " >&6; } 48892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 48893 $as_echo "$MSVC_DLL" >&6; } 48894 else 48895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 48896 $as_echo "incorrect, ignoring" >&6; } 48897 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 48898 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 48899 fi 48900 fi 48901 48902 fi 48903 48904 if test "x$MSVC_DLL" = x; then 48905 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 48906 if test "x$VS100COMNTOOLS" != x; then 48907 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 48908 48909 windows_path="$CYGWIN_VS_TOOLS_DIR" 48910 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48911 unix_path=`$CYGPATH -u "$windows_path"` 48912 CYGWIN_VS_TOOLS_DIR="$unix_path" 48913 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48914 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48915 CYGWIN_VS_TOOLS_DIR="$unix_path" 48916 fi 48917 48918 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 48919 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 48920 | $GREP -i /x64/ | $HEAD --lines 1` 48921 else 48922 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 48923 | $GREP -i /x86/ | $HEAD --lines 1` 48924 fi 48925 48926 DLL_NAME="$DLL_NAME" 48927 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 48928 METHOD="search of VS100COMNTOOLS" 48929 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 48930 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 48931 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 48932 48933 # Need to check if the found msvcr is correct architecture 48934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 48935 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 48936 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 48937 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48938 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 48939 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 48940 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48941 CORRECT_MSVCR_ARCH="PE32 executable" 48942 else 48943 CORRECT_MSVCR_ARCH="PE32+ executable" 48944 fi 48945 else 48946 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48947 CORRECT_MSVCR_ARCH=386 48948 else 48949 CORRECT_MSVCR_ARCH=x86-64 48950 fi 48951 fi 48952 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 48953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 48954 $as_echo "ok" >&6; } 48955 MSVC_DLL="$POSSIBLE_MSVC_DLL" 48956 48957 # Only process if variable expands to non-empty 48958 48959 if test "x$MSVC_DLL" != x; then 48960 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48961 48962 # Input might be given as Windows format, start by converting to 48963 # unix format. 48964 path="$MSVC_DLL" 48965 new_path=`$CYGPATH -u "$path"` 48966 48967 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48968 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48969 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48970 # "foo.exe" is OK but "foo" is an error. 48971 # 48972 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48973 # It is also a way to make sure we got the proper file name for the real test later on. 48974 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48975 if test "x$test_shortpath" = x; then 48976 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 48977 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 48978 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 48979 fi 48980 48981 # Call helper function which possibly converts this using DOS-style short mode. 48982 # If so, the updated path is stored in $new_path. 48983 48984 input_path="$new_path" 48985 # Check if we need to convert this using DOS-style short mode. If the path 48986 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48987 # take no chances and rewrite it. 48988 # Note: m4 eats our [], so we need to use [ and ] instead. 48989 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48990 if test "x$has_forbidden_chars" != x; then 48991 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48992 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48993 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48994 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48995 # Going to short mode and back again did indeed matter. Since short mode is 48996 # case insensitive, let's make it lowercase to improve readability. 48997 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48998 # Now convert it back to Unix-style (cygpath) 48999 input_path=`$CYGPATH -u "$shortmode_path"` 49000 new_path="$input_path" 49001 fi 49002 fi 49003 49004 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49005 if test "x$test_cygdrive_prefix" = x; then 49006 # As a simple fix, exclude /usr/bin since it's not a real path. 49007 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49008 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49009 # a path prefixed by /cygdrive for fixpath to work. 49010 new_path="$CYGWIN_ROOT_PATH$input_path" 49011 fi 49012 fi 49013 49014 49015 if test "x$path" != "x$new_path"; then 49016 MSVC_DLL="$new_path" 49017 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49018 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49019 fi 49020 49021 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49022 49023 path="$MSVC_DLL" 49024 has_colon=`$ECHO $path | $GREP ^.:` 49025 new_path="$path" 49026 if test "x$has_colon" = x; then 49027 # Not in mixed or Windows style, start by that. 49028 new_path=`cmd //c echo $path` 49029 fi 49030 49031 49032 input_path="$new_path" 49033 # Check if we need to convert this using DOS-style short mode. If the path 49034 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49035 # take no chances and rewrite it. 49036 # Note: m4 eats our [], so we need to use [ and ] instead. 49037 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49038 if test "x$has_forbidden_chars" != x; then 49039 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49040 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49041 fi 49042 49043 49044 windows_path="$new_path" 49045 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49046 unix_path=`$CYGPATH -u "$windows_path"` 49047 new_path="$unix_path" 49048 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49049 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49050 new_path="$unix_path" 49051 fi 49052 49053 if test "x$path" != "x$new_path"; then 49054 MSVC_DLL="$new_path" 49055 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49056 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49057 fi 49058 49059 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49060 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49061 49062 else 49063 # We're on a unix platform. Hooray! :) 49064 path="$MSVC_DLL" 49065 has_space=`$ECHO "$path" | $GREP " "` 49066 if test "x$has_space" != x; then 49067 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49068 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49069 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49070 fi 49071 49072 # Use eval to expand a potential ~ 49073 eval path="$path" 49074 if test ! -f "$path" && test ! -d "$path"; then 49075 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49076 fi 49077 49078 if test -d "$path"; then 49079 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 49080 else 49081 dir="`$DIRNAME "$path"`" 49082 base="`$BASENAME "$path"`" 49083 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 49084 fi 49085 fi 49086 fi 49087 49088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49089 $as_echo_n "checking for $DLL_NAME... " >&6; } 49090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49091 $as_echo "$MSVC_DLL" >&6; } 49092 else 49093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49094 $as_echo "incorrect, ignoring" >&6; } 49095 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49096 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49097 fi 49098 fi 49099 49100 fi 49101 fi 49102 49103 if test "x$MSVC_DLL" = x; then 49104 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 49105 # (This was the original behaviour; kept since it might turn something up) 49106 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 49107 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49108 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 49109 | $GREP x64 | $HEAD --lines 1` 49110 else 49111 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 49112 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 49113 if test "x$POSSIBLE_MSVC_DLL" = x; then 49114 # We're grasping at straws now... 49115 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 49116 | $HEAD --lines 1` 49117 fi 49118 fi 49119 49120 49121 DLL_NAME="$DLL_NAME" 49122 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 49123 METHOD="search of VCINSTALLDIR" 49124 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49125 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49126 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49127 49128 # Need to check if the found msvcr is correct architecture 49129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49130 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49131 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49132 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49133 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49134 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49135 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49136 CORRECT_MSVCR_ARCH="PE32 executable" 49137 else 49138 CORRECT_MSVCR_ARCH="PE32+ executable" 49139 fi 49140 else 49141 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49142 CORRECT_MSVCR_ARCH=386 49143 else 49144 CORRECT_MSVCR_ARCH=x86-64 49145 fi 49146 fi 49147 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49149 $as_echo "ok" >&6; } 49150 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49151 49152 # Only process if variable expands to non-empty 49153 49154 if test "x$MSVC_DLL" != x; then 49155 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49156 49157 # Input might be given as Windows format, start by converting to 49158 # unix format. 49159 path="$MSVC_DLL" 49160 new_path=`$CYGPATH -u "$path"` 49161 49162 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49163 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49164 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49165 # "foo.exe" is OK but "foo" is an error. 49166 # 49167 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49168 # It is also a way to make sure we got the proper file name for the real test later on. 49169 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49170 if test "x$test_shortpath" = x; then 49171 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49172 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49173 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49174 fi 49175 49176 # Call helper function which possibly converts this using DOS-style short mode. 49177 # If so, the updated path is stored in $new_path. 49178 49179 input_path="$new_path" 49180 # Check if we need to convert this using DOS-style short mode. If the path 49181 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49182 # take no chances and rewrite it. 49183 # Note: m4 eats our [], so we need to use [ and ] instead. 49184 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49185 if test "x$has_forbidden_chars" != x; then 49186 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49187 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49188 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49189 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49190 # Going to short mode and back again did indeed matter. Since short mode is 49191 # case insensitive, let's make it lowercase to improve readability. 49192 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49193 # Now convert it back to Unix-style (cygpath) 49194 input_path=`$CYGPATH -u "$shortmode_path"` 49195 new_path="$input_path" 49196 fi 49197 fi 49198 49199 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49200 if test "x$test_cygdrive_prefix" = x; then 49201 # As a simple fix, exclude /usr/bin since it's not a real path. 49202 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49203 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49204 # a path prefixed by /cygdrive for fixpath to work. 49205 new_path="$CYGWIN_ROOT_PATH$input_path" 49206 fi 49207 fi 49208 49209 49210 if test "x$path" != "x$new_path"; then 49211 MSVC_DLL="$new_path" 49212 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49213 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49214 fi 49215 49216 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49217 49218 path="$MSVC_DLL" 49219 has_colon=`$ECHO $path | $GREP ^.:` 49220 new_path="$path" 49221 if test "x$has_colon" = x; then 49222 # Not in mixed or Windows style, start by that. 49223 new_path=`cmd //c echo $path` 49224 fi 49225 49226 49227 input_path="$new_path" 49228 # Check if we need to convert this using DOS-style short mode. If the path 49229 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49230 # take no chances and rewrite it. 49231 # Note: m4 eats our [], so we need to use [ and ] instead. 49232 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49233 if test "x$has_forbidden_chars" != x; then 49234 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49235 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49236 fi 49237 49238 49239 windows_path="$new_path" 49240 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49241 unix_path=`$CYGPATH -u "$windows_path"` 49242 new_path="$unix_path" 49243 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49244 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49245 new_path="$unix_path" 49246 fi 49247 49248 if test "x$path" != "x$new_path"; then 49249 MSVC_DLL="$new_path" 49250 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49251 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49252 fi 49253 49254 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49255 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49256 49257 else 49258 # We're on a unix platform. Hooray! :) 49259 path="$MSVC_DLL" 49260 has_space=`$ECHO "$path" | $GREP " "` 49261 if test "x$has_space" != x; then 49262 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49263 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49264 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49265 fi 49266 49267 # Use eval to expand a potential ~ 49268 eval path="$path" 49269 if test ! -f "$path" && test ! -d "$path"; then 49270 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49271 fi 49272 49273 if test -d "$path"; then 49274 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 49275 else 49276 dir="`$DIRNAME "$path"`" 49277 base="`$BASENAME "$path"`" 49278 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 49279 fi 49280 fi 49281 fi 49282 49283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49284 $as_echo_n "checking for $DLL_NAME... " >&6; } 49285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49286 $as_echo "$MSVC_DLL" >&6; } 49287 else 49288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49289 $as_echo "incorrect, ignoring" >&6; } 49290 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49291 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49292 fi 49293 fi 49294 49295 fi 49296 fi 49297 49298 if test "x$MSVC_DLL" = x; then 49299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49300 $as_echo_n "checking for $DLL_NAME... " >&6; } 49301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49302 $as_echo "no" >&6; } 49303 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 49304 fi 49305 49306 MSVCR_DLL="$MSVC_DLL" 49307 fi 49308 49309 49310 49311 # Check whether --with-msvcp-dll was given. 49312 if test "${with_msvcp_dll+set}" = set; then : 49313 withval=$with_msvcp_dll; 49314 fi 49315 49316 49317 if test "x$MSVCP_NAME" != "x"; then 49318 if test "x$with_msvcp_dll" != x; then 49319 # If given explicitely by user, do not probe. If not present, fail directly. 49320 49321 DLL_NAME="$MSVCP_NAME" 49322 POSSIBLE_MSVC_DLL="$with_msvcp_dll" 49323 METHOD="--with-msvcp-dll" 49324 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49325 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49326 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49327 49328 # Need to check if the found msvcr is correct architecture 49329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49330 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49331 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49332 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49333 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49334 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49335 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49336 CORRECT_MSVCR_ARCH="PE32 executable" 49337 else 49338 CORRECT_MSVCR_ARCH="PE32+ executable" 49339 fi 49340 else 49341 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49342 CORRECT_MSVCR_ARCH=386 49343 else 49344 CORRECT_MSVCR_ARCH=x86-64 49345 fi 49346 fi 49347 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49349 $as_echo "ok" >&6; } 49350 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49351 49352 # Only process if variable expands to non-empty 49353 49354 if test "x$MSVC_DLL" != x; then 49355 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49356 49357 # Input might be given as Windows format, start by converting to 49358 # unix format. 49359 path="$MSVC_DLL" 49360 new_path=`$CYGPATH -u "$path"` 49361 49362 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49363 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49364 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49365 # "foo.exe" is OK but "foo" is an error. 49366 # 49367 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49368 # It is also a way to make sure we got the proper file name for the real test later on. 49369 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49370 if test "x$test_shortpath" = x; then 49371 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49372 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49373 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49374 fi 49375 49376 # Call helper function which possibly converts this using DOS-style short mode. 49377 # If so, the updated path is stored in $new_path. 49378 49379 input_path="$new_path" 49380 # Check if we need to convert this using DOS-style short mode. If the path 49381 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49382 # take no chances and rewrite it. 49383 # Note: m4 eats our [], so we need to use [ and ] instead. 49384 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49385 if test "x$has_forbidden_chars" != x; then 49386 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49387 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49388 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49389 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49390 # Going to short mode and back again did indeed matter. Since short mode is 49391 # case insensitive, let's make it lowercase to improve readability. 49392 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49393 # Now convert it back to Unix-style (cygpath) 49394 input_path=`$CYGPATH -u "$shortmode_path"` 49395 new_path="$input_path" 49396 fi 49397 fi 49398 49399 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49400 if test "x$test_cygdrive_prefix" = x; then 49401 # As a simple fix, exclude /usr/bin since it's not a real path. 49402 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49403 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49404 # a path prefixed by /cygdrive for fixpath to work. 49405 new_path="$CYGWIN_ROOT_PATH$input_path" 49406 fi 49407 fi 49408 49409 49410 if test "x$path" != "x$new_path"; then 49411 MSVC_DLL="$new_path" 49412 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49413 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49414 fi 49415 49416 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49417 49418 path="$MSVC_DLL" 49419 has_colon=`$ECHO $path | $GREP ^.:` 49420 new_path="$path" 49421 if test "x$has_colon" = x; then 49422 # Not in mixed or Windows style, start by that. 49423 new_path=`cmd //c echo $path` 49424 fi 49425 49426 49427 input_path="$new_path" 49428 # Check if we need to convert this using DOS-style short mode. If the path 49429 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49430 # take no chances and rewrite it. 49431 # Note: m4 eats our [], so we need to use [ and ] instead. 49432 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49433 if test "x$has_forbidden_chars" != x; then 49434 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49435 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49436 fi 49437 49438 49439 windows_path="$new_path" 49440 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49441 unix_path=`$CYGPATH -u "$windows_path"` 49442 new_path="$unix_path" 49443 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49444 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49445 new_path="$unix_path" 49446 fi 49447 49448 if test "x$path" != "x$new_path"; then 49449 MSVC_DLL="$new_path" 49450 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49451 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49452 fi 49453 49454 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49455 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49456 49457 else 49458 # We're on a unix platform. Hooray! :) 49459 path="$MSVC_DLL" 49460 has_space=`$ECHO "$path" | $GREP " "` 49461 if test "x$has_space" != x; then 49462 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49463 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49464 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49465 fi 49466 49467 # Use eval to expand a potential ~ 49468 eval path="$path" 49469 if test ! -f "$path" && test ! -d "$path"; then 49470 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49471 fi 49472 49473 if test -d "$path"; then 49474 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 49475 else 49476 dir="`$DIRNAME "$path"`" 49477 base="`$BASENAME "$path"`" 49478 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 49479 fi 49480 fi 49481 fi 49482 49483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49484 $as_echo_n "checking for $DLL_NAME... " >&6; } 49485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49486 $as_echo "$MSVC_DLL" >&6; } 49487 else 49488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49489 $as_echo "incorrect, ignoring" >&6; } 49490 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49491 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49492 fi 49493 fi 49494 49495 if test "x$MSVC_DLL" = x; then 49496 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by --with-msvcp-dll" "$LINENO" 5 49497 fi 49498 MSVCP_DLL="$MSVC_DLL" 49499 elif test "x$DEVKIT_MSVCP_DLL" != x; then 49500 49501 DLL_NAME="$MSVCP_NAME" 49502 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCP_DLL" 49503 METHOD="devkit" 49504 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49505 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49506 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49507 49508 # Need to check if the found msvcr is correct architecture 49509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49510 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49511 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49512 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49513 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49514 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49515 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49516 CORRECT_MSVCR_ARCH="PE32 executable" 49517 else 49518 CORRECT_MSVCR_ARCH="PE32+ executable" 49519 fi 49520 else 49521 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49522 CORRECT_MSVCR_ARCH=386 49523 else 49524 CORRECT_MSVCR_ARCH=x86-64 49525 fi 49526 fi 49527 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49529 $as_echo "ok" >&6; } 49530 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49531 49532 # Only process if variable expands to non-empty 49533 49534 if test "x$MSVC_DLL" != x; then 49535 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49536 49537 # Input might be given as Windows format, start by converting to 49538 # unix format. 49539 path="$MSVC_DLL" 49540 new_path=`$CYGPATH -u "$path"` 49541 49542 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49543 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49544 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49545 # "foo.exe" is OK but "foo" is an error. 49546 # 49547 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49548 # It is also a way to make sure we got the proper file name for the real test later on. 49549 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49550 if test "x$test_shortpath" = x; then 49551 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49552 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49553 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49554 fi 49555 49556 # Call helper function which possibly converts this using DOS-style short mode. 49557 # If so, the updated path is stored in $new_path. 49558 49559 input_path="$new_path" 49560 # Check if we need to convert this using DOS-style short mode. If the path 49561 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49562 # take no chances and rewrite it. 49563 # Note: m4 eats our [], so we need to use [ and ] instead. 49564 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49565 if test "x$has_forbidden_chars" != x; then 49566 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49567 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49568 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49569 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49570 # Going to short mode and back again did indeed matter. Since short mode is 49571 # case insensitive, let's make it lowercase to improve readability. 49572 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49573 # Now convert it back to Unix-style (cygpath) 49574 input_path=`$CYGPATH -u "$shortmode_path"` 49575 new_path="$input_path" 49576 fi 49577 fi 49578 49579 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49580 if test "x$test_cygdrive_prefix" = x; then 49581 # As a simple fix, exclude /usr/bin since it's not a real path. 49582 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49583 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49584 # a path prefixed by /cygdrive for fixpath to work. 49585 new_path="$CYGWIN_ROOT_PATH$input_path" 49586 fi 49587 fi 49588 49589 49590 if test "x$path" != "x$new_path"; then 49591 MSVC_DLL="$new_path" 49592 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49593 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49594 fi 49595 49596 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49597 49598 path="$MSVC_DLL" 49599 has_colon=`$ECHO $path | $GREP ^.:` 49600 new_path="$path" 49601 if test "x$has_colon" = x; then 49602 # Not in mixed or Windows style, start by that. 49603 new_path=`cmd //c echo $path` 49604 fi 49605 49606 49607 input_path="$new_path" 49608 # Check if we need to convert this using DOS-style short mode. If the path 49609 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49610 # take no chances and rewrite it. 49611 # Note: m4 eats our [], so we need to use [ and ] instead. 49612 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49613 if test "x$has_forbidden_chars" != x; then 49614 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49615 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49616 fi 49617 49618 49619 windows_path="$new_path" 49620 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49621 unix_path=`$CYGPATH -u "$windows_path"` 49622 new_path="$unix_path" 49623 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49624 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49625 new_path="$unix_path" 49626 fi 49627 49628 if test "x$path" != "x$new_path"; then 49629 MSVC_DLL="$new_path" 49630 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49631 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49632 fi 49633 49634 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49635 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49636 49637 else 49638 # We're on a unix platform. Hooray! :) 49639 path="$MSVC_DLL" 49640 has_space=`$ECHO "$path" | $GREP " "` 49641 if test "x$has_space" != x; then 49642 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49643 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49644 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49645 fi 49646 49647 # Use eval to expand a potential ~ 49648 eval path="$path" 49649 if test ! -f "$path" && test ! -d "$path"; then 49650 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49651 fi 49652 49653 if test -d "$path"; then 49654 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 49655 else 49656 dir="`$DIRNAME "$path"`" 49657 base="`$BASENAME "$path"`" 49658 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 49659 fi 49660 fi 49661 fi 49662 49663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49664 $as_echo_n "checking for $DLL_NAME... " >&6; } 49665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49666 $as_echo "$MSVC_DLL" >&6; } 49667 else 49668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49669 $as_echo "incorrect, ignoring" >&6; } 49670 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49671 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49672 fi 49673 fi 49674 49675 if test "x$MSVC_DLL" = x; then 49676 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by devkit" "$LINENO" 5 49677 fi 49678 MSVCP_DLL="$MSVC_DLL" 49679 else 49680 49681 DLL_NAME="${MSVCP_NAME}" 49682 MSVC_DLL= 49683 49684 if test "x$MSVC_DLL" = x; then 49685 # Probe: Using well-known location from Visual Studio 10.0 49686 if test "x$VCINSTALLDIR" != x; then 49687 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 49688 49689 windows_path="$CYGWIN_VC_INSTALL_DIR" 49690 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49691 unix_path=`$CYGPATH -u "$windows_path"` 49692 CYGWIN_VC_INSTALL_DIR="$unix_path" 49693 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49694 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49695 CYGWIN_VC_INSTALL_DIR="$unix_path" 49696 fi 49697 49698 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49699 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 49700 else 49701 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 49702 fi 49703 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 49704 49705 DLL_NAME="$DLL_NAME" 49706 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 49707 METHOD="well-known location in VCINSTALLDIR" 49708 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49709 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49710 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49711 49712 # Need to check if the found msvcr is correct architecture 49713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49714 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49715 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49716 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49717 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49718 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49719 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49720 CORRECT_MSVCR_ARCH="PE32 executable" 49721 else 49722 CORRECT_MSVCR_ARCH="PE32+ executable" 49723 fi 49724 else 49725 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49726 CORRECT_MSVCR_ARCH=386 49727 else 49728 CORRECT_MSVCR_ARCH=x86-64 49729 fi 49730 fi 49731 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49733 $as_echo "ok" >&6; } 49734 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49735 49736 # Only process if variable expands to non-empty 49737 49738 if test "x$MSVC_DLL" != x; then 49739 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49740 49741 # Input might be given as Windows format, start by converting to 49742 # unix format. 49743 path="$MSVC_DLL" 49744 new_path=`$CYGPATH -u "$path"` 49745 49746 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49747 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49748 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49749 # "foo.exe" is OK but "foo" is an error. 49750 # 49751 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49752 # It is also a way to make sure we got the proper file name for the real test later on. 49753 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49754 if test "x$test_shortpath" = x; then 49755 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49756 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49757 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49758 fi 49759 49760 # Call helper function which possibly converts this using DOS-style short mode. 49761 # If so, the updated path is stored in $new_path. 49762 49763 input_path="$new_path" 49764 # Check if we need to convert this using DOS-style short mode. If the path 49765 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49766 # take no chances and rewrite it. 49767 # Note: m4 eats our [], so we need to use [ and ] instead. 49768 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49769 if test "x$has_forbidden_chars" != x; then 49770 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49771 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49772 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49773 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49774 # Going to short mode and back again did indeed matter. Since short mode is 49775 # case insensitive, let's make it lowercase to improve readability. 49776 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49777 # Now convert it back to Unix-style (cygpath) 49778 input_path=`$CYGPATH -u "$shortmode_path"` 49779 new_path="$input_path" 49780 fi 49781 fi 49782 49783 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49784 if test "x$test_cygdrive_prefix" = x; then 49785 # As a simple fix, exclude /usr/bin since it's not a real path. 49786 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49787 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49788 # a path prefixed by /cygdrive for fixpath to work. 49789 new_path="$CYGWIN_ROOT_PATH$input_path" 49790 fi 49791 fi 49792 49793 49794 if test "x$path" != "x$new_path"; then 49795 MSVC_DLL="$new_path" 49796 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49797 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49798 fi 49799 49800 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49801 49802 path="$MSVC_DLL" 49803 has_colon=`$ECHO $path | $GREP ^.:` 49804 new_path="$path" 49805 if test "x$has_colon" = x; then 49806 # Not in mixed or Windows style, start by that. 49807 new_path=`cmd //c echo $path` 49808 fi 49809 49810 49811 input_path="$new_path" 49812 # Check if we need to convert this using DOS-style short mode. If the path 49813 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49814 # take no chances and rewrite it. 49815 # Note: m4 eats our [], so we need to use [ and ] instead. 49816 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49817 if test "x$has_forbidden_chars" != x; then 49818 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49819 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49820 fi 49821 49822 49823 windows_path="$new_path" 49824 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49825 unix_path=`$CYGPATH -u "$windows_path"` 49826 new_path="$unix_path" 49827 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49828 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49829 new_path="$unix_path" 49830 fi 49831 49832 if test "x$path" != "x$new_path"; then 49833 MSVC_DLL="$new_path" 49834 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49835 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49836 fi 49837 49838 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49839 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49840 49841 else 49842 # We're on a unix platform. Hooray! :) 49843 path="$MSVC_DLL" 49844 has_space=`$ECHO "$path" | $GREP " "` 49845 if test "x$has_space" != x; then 49846 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49847 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49848 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49849 fi 49850 49851 # Use eval to expand a potential ~ 49852 eval path="$path" 49853 if test ! -f "$path" && test ! -d "$path"; then 49854 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49855 fi 49856 49857 if test -d "$path"; then 49858 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 49859 else 49860 dir="`$DIRNAME "$path"`" 49861 base="`$BASENAME "$path"`" 49862 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 49863 fi 49864 fi 49865 fi 49866 49867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49868 $as_echo_n "checking for $DLL_NAME... " >&6; } 49869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49870 $as_echo "$MSVC_DLL" >&6; } 49871 else 49872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49873 $as_echo "incorrect, ignoring" >&6; } 49874 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49875 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49876 fi 49877 fi 49878 49879 fi 49880 fi 49881 49882 if test "x$MSVC_DLL" = x; then 49883 # Probe: Check in the Boot JDK directory. 49884 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 49885 49886 DLL_NAME="$DLL_NAME" 49887 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 49888 METHOD="well-known location in Boot JDK" 49889 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49890 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49891 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49892 49893 # Need to check if the found msvcr is correct architecture 49894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49895 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49896 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49897 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49898 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49899 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49900 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49901 CORRECT_MSVCR_ARCH="PE32 executable" 49902 else 49903 CORRECT_MSVCR_ARCH="PE32+ executable" 49904 fi 49905 else 49906 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49907 CORRECT_MSVCR_ARCH=386 49908 else 49909 CORRECT_MSVCR_ARCH=x86-64 49910 fi 49911 fi 49912 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49914 $as_echo "ok" >&6; } 49915 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49916 49917 # Only process if variable expands to non-empty 49918 49919 if test "x$MSVC_DLL" != x; then 49920 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49921 49922 # Input might be given as Windows format, start by converting to 49923 # unix format. 49924 path="$MSVC_DLL" 49925 new_path=`$CYGPATH -u "$path"` 49926 49927 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49928 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49929 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49930 # "foo.exe" is OK but "foo" is an error. 49931 # 49932 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49933 # It is also a way to make sure we got the proper file name for the real test later on. 49934 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49935 if test "x$test_shortpath" = x; then 49936 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49937 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49938 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49939 fi 49940 49941 # Call helper function which possibly converts this using DOS-style short mode. 49942 # If so, the updated path is stored in $new_path. 49943 49944 input_path="$new_path" 49945 # Check if we need to convert this using DOS-style short mode. If the path 49946 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49947 # take no chances and rewrite it. 49948 # Note: m4 eats our [], so we need to use [ and ] instead. 49949 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49950 if test "x$has_forbidden_chars" != x; then 49951 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49952 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49953 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49954 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49955 # Going to short mode and back again did indeed matter. Since short mode is 49956 # case insensitive, let's make it lowercase to improve readability. 49957 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49958 # Now convert it back to Unix-style (cygpath) 49959 input_path=`$CYGPATH -u "$shortmode_path"` 49960 new_path="$input_path" 49961 fi 49962 fi 49963 49964 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49965 if test "x$test_cygdrive_prefix" = x; then 49966 # As a simple fix, exclude /usr/bin since it's not a real path. 49967 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49968 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49969 # a path prefixed by /cygdrive for fixpath to work. 49970 new_path="$CYGWIN_ROOT_PATH$input_path" 49971 fi 49972 fi 49973 49974 49975 if test "x$path" != "x$new_path"; then 49976 MSVC_DLL="$new_path" 49977 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49978 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49979 fi 49980 49981 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49982 49983 path="$MSVC_DLL" 49984 has_colon=`$ECHO $path | $GREP ^.:` 49985 new_path="$path" 49986 if test "x$has_colon" = x; then 49987 # Not in mixed or Windows style, start by that. 49988 new_path=`cmd //c echo $path` 49989 fi 49990 49991 49992 input_path="$new_path" 49993 # Check if we need to convert this using DOS-style short mode. If the path 49994 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49995 # take no chances and rewrite it. 49996 # Note: m4 eats our [], so we need to use [ and ] instead. 49997 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49998 if test "x$has_forbidden_chars" != x; then 49999 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50000 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50001 fi 50002 50003 50004 windows_path="$new_path" 50005 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50006 unix_path=`$CYGPATH -u "$windows_path"` 50007 new_path="$unix_path" 50008 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50009 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50010 new_path="$unix_path" 50011 fi 50012 50013 if test "x$path" != "x$new_path"; then 50014 MSVC_DLL="$new_path" 50015 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50016 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50017 fi 50018 50019 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50020 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50021 50022 else 50023 # We're on a unix platform. Hooray! :) 50024 path="$MSVC_DLL" 50025 has_space=`$ECHO "$path" | $GREP " "` 50026 if test "x$has_space" != x; then 50027 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50028 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50029 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50030 fi 50031 50032 # Use eval to expand a potential ~ 50033 eval path="$path" 50034 if test ! -f "$path" && test ! -d "$path"; then 50035 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50036 fi 50037 50038 if test -d "$path"; then 50039 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50040 else 50041 dir="`$DIRNAME "$path"`" 50042 base="`$BASENAME "$path"`" 50043 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 50044 fi 50045 fi 50046 fi 50047 50048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50049 $as_echo_n "checking for $DLL_NAME... " >&6; } 50050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50051 $as_echo "$MSVC_DLL" >&6; } 50052 else 50053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50054 $as_echo "incorrect, ignoring" >&6; } 50055 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50056 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50057 fi 50058 fi 50059 50060 fi 50061 50062 if test "x$MSVC_DLL" = x; then 50063 # Probe: Look in the Windows system32 directory 50064 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 50065 50066 windows_path="$CYGWIN_SYSTEMROOT" 50067 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50068 unix_path=`$CYGPATH -u "$windows_path"` 50069 CYGWIN_SYSTEMROOT="$unix_path" 50070 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50071 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50072 CYGWIN_SYSTEMROOT="$unix_path" 50073 fi 50074 50075 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 50076 50077 DLL_NAME="$DLL_NAME" 50078 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50079 METHOD="well-known location in SYSTEMROOT" 50080 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50081 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50082 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50083 50084 # Need to check if the found msvcr is correct architecture 50085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50086 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50087 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50088 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50089 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50090 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50091 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50092 CORRECT_MSVCR_ARCH="PE32 executable" 50093 else 50094 CORRECT_MSVCR_ARCH="PE32+ executable" 50095 fi 50096 else 50097 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50098 CORRECT_MSVCR_ARCH=386 50099 else 50100 CORRECT_MSVCR_ARCH=x86-64 50101 fi 50102 fi 50103 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50105 $as_echo "ok" >&6; } 50106 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50107 50108 # Only process if variable expands to non-empty 50109 50110 if test "x$MSVC_DLL" != x; then 50111 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50112 50113 # Input might be given as Windows format, start by converting to 50114 # unix format. 50115 path="$MSVC_DLL" 50116 new_path=`$CYGPATH -u "$path"` 50117 50118 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50119 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50120 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50121 # "foo.exe" is OK but "foo" is an error. 50122 # 50123 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50124 # It is also a way to make sure we got the proper file name for the real test later on. 50125 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50126 if test "x$test_shortpath" = x; then 50127 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50128 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50129 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50130 fi 50131 50132 # Call helper function which possibly converts this using DOS-style short mode. 50133 # If so, the updated path is stored in $new_path. 50134 50135 input_path="$new_path" 50136 # Check if we need to convert this using DOS-style short mode. If the path 50137 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50138 # take no chances and rewrite it. 50139 # Note: m4 eats our [], so we need to use [ and ] instead. 50140 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50141 if test "x$has_forbidden_chars" != x; then 50142 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50143 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50144 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50145 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50146 # Going to short mode and back again did indeed matter. Since short mode is 50147 # case insensitive, let's make it lowercase to improve readability. 50148 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50149 # Now convert it back to Unix-style (cygpath) 50150 input_path=`$CYGPATH -u "$shortmode_path"` 50151 new_path="$input_path" 50152 fi 50153 fi 50154 50155 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50156 if test "x$test_cygdrive_prefix" = x; then 50157 # As a simple fix, exclude /usr/bin since it's not a real path. 50158 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50159 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50160 # a path prefixed by /cygdrive for fixpath to work. 50161 new_path="$CYGWIN_ROOT_PATH$input_path" 50162 fi 50163 fi 50164 50165 50166 if test "x$path" != "x$new_path"; then 50167 MSVC_DLL="$new_path" 50168 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50169 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50170 fi 50171 50172 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50173 50174 path="$MSVC_DLL" 50175 has_colon=`$ECHO $path | $GREP ^.:` 50176 new_path="$path" 50177 if test "x$has_colon" = x; then 50178 # Not in mixed or Windows style, start by that. 50179 new_path=`cmd //c echo $path` 50180 fi 50181 50182 50183 input_path="$new_path" 50184 # Check if we need to convert this using DOS-style short mode. If the path 50185 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50186 # take no chances and rewrite it. 50187 # Note: m4 eats our [], so we need to use [ and ] instead. 50188 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50189 if test "x$has_forbidden_chars" != x; then 50190 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50191 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50192 fi 50193 50194 50195 windows_path="$new_path" 50196 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50197 unix_path=`$CYGPATH -u "$windows_path"` 50198 new_path="$unix_path" 50199 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50200 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50201 new_path="$unix_path" 50202 fi 50203 50204 if test "x$path" != "x$new_path"; then 50205 MSVC_DLL="$new_path" 50206 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50207 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50208 fi 50209 50210 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50211 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50212 50213 else 50214 # We're on a unix platform. Hooray! :) 50215 path="$MSVC_DLL" 50216 has_space=`$ECHO "$path" | $GREP " "` 50217 if test "x$has_space" != x; then 50218 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50219 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50220 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50221 fi 50222 50223 # Use eval to expand a potential ~ 50224 eval path="$path" 50225 if test ! -f "$path" && test ! -d "$path"; then 50226 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50227 fi 50228 50229 if test -d "$path"; then 50230 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50231 else 50232 dir="`$DIRNAME "$path"`" 50233 base="`$BASENAME "$path"`" 50234 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 50235 fi 50236 fi 50237 fi 50238 50239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50240 $as_echo_n "checking for $DLL_NAME... " >&6; } 50241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50242 $as_echo "$MSVC_DLL" >&6; } 50243 else 50244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50245 $as_echo "incorrect, ignoring" >&6; } 50246 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50247 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50248 fi 50249 fi 50250 50251 fi 50252 50253 if test "x$MSVC_DLL" = x; then 50254 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 50255 if test "x$VS100COMNTOOLS" != x; then 50256 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 50257 50258 windows_path="$CYGWIN_VS_TOOLS_DIR" 50259 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50260 unix_path=`$CYGPATH -u "$windows_path"` 50261 CYGWIN_VS_TOOLS_DIR="$unix_path" 50262 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50263 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50264 CYGWIN_VS_TOOLS_DIR="$unix_path" 50265 fi 50266 50267 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50268 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 50269 | $GREP -i /x64/ | $HEAD --lines 1` 50270 else 50271 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 50272 | $GREP -i /x86/ | $HEAD --lines 1` 50273 fi 50274 50275 DLL_NAME="$DLL_NAME" 50276 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50277 METHOD="search of VS100COMNTOOLS" 50278 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50279 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50280 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50281 50282 # Need to check if the found msvcr is correct architecture 50283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50284 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50285 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50286 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50287 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50288 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50289 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50290 CORRECT_MSVCR_ARCH="PE32 executable" 50291 else 50292 CORRECT_MSVCR_ARCH="PE32+ executable" 50293 fi 50294 else 50295 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50296 CORRECT_MSVCR_ARCH=386 50297 else 50298 CORRECT_MSVCR_ARCH=x86-64 50299 fi 50300 fi 50301 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50303 $as_echo "ok" >&6; } 50304 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50305 50306 # Only process if variable expands to non-empty 50307 50308 if test "x$MSVC_DLL" != x; then 50309 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50310 50311 # Input might be given as Windows format, start by converting to 50312 # unix format. 50313 path="$MSVC_DLL" 50314 new_path=`$CYGPATH -u "$path"` 50315 50316 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50317 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50318 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50319 # "foo.exe" is OK but "foo" is an error. 50320 # 50321 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50322 # It is also a way to make sure we got the proper file name for the real test later on. 50323 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50324 if test "x$test_shortpath" = x; then 50325 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50326 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50327 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50328 fi 50329 50330 # Call helper function which possibly converts this using DOS-style short mode. 50331 # If so, the updated path is stored in $new_path. 50332 50333 input_path="$new_path" 50334 # Check if we need to convert this using DOS-style short mode. If the path 50335 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50336 # take no chances and rewrite it. 50337 # Note: m4 eats our [], so we need to use [ and ] instead. 50338 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50339 if test "x$has_forbidden_chars" != x; then 50340 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50341 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50342 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50343 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50344 # Going to short mode and back again did indeed matter. Since short mode is 50345 # case insensitive, let's make it lowercase to improve readability. 50346 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50347 # Now convert it back to Unix-style (cygpath) 50348 input_path=`$CYGPATH -u "$shortmode_path"` 50349 new_path="$input_path" 50350 fi 50351 fi 50352 50353 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50354 if test "x$test_cygdrive_prefix" = x; then 50355 # As a simple fix, exclude /usr/bin since it's not a real path. 50356 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50357 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50358 # a path prefixed by /cygdrive for fixpath to work. 50359 new_path="$CYGWIN_ROOT_PATH$input_path" 50360 fi 50361 fi 50362 50363 50364 if test "x$path" != "x$new_path"; then 50365 MSVC_DLL="$new_path" 50366 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50367 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50368 fi 50369 50370 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50371 50372 path="$MSVC_DLL" 50373 has_colon=`$ECHO $path | $GREP ^.:` 50374 new_path="$path" 50375 if test "x$has_colon" = x; then 50376 # Not in mixed or Windows style, start by that. 50377 new_path=`cmd //c echo $path` 50378 fi 50379 50380 50381 input_path="$new_path" 50382 # Check if we need to convert this using DOS-style short mode. If the path 50383 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50384 # take no chances and rewrite it. 50385 # Note: m4 eats our [], so we need to use [ and ] instead. 50386 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50387 if test "x$has_forbidden_chars" != x; then 50388 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50389 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50390 fi 50391 50392 50393 windows_path="$new_path" 50394 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50395 unix_path=`$CYGPATH -u "$windows_path"` 50396 new_path="$unix_path" 50397 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50398 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50399 new_path="$unix_path" 50400 fi 50401 50402 if test "x$path" != "x$new_path"; then 50403 MSVC_DLL="$new_path" 50404 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50405 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50406 fi 50407 50408 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50409 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50410 50411 else 50412 # We're on a unix platform. Hooray! :) 50413 path="$MSVC_DLL" 50414 has_space=`$ECHO "$path" | $GREP " "` 50415 if test "x$has_space" != x; then 50416 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50417 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50418 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50419 fi 50420 50421 # Use eval to expand a potential ~ 50422 eval path="$path" 50423 if test ! -f "$path" && test ! -d "$path"; then 50424 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50425 fi 50426 50427 if test -d "$path"; then 50428 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50429 else 50430 dir="`$DIRNAME "$path"`" 50431 base="`$BASENAME "$path"`" 50432 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 50433 fi 50434 fi 50435 fi 50436 50437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50438 $as_echo_n "checking for $DLL_NAME... " >&6; } 50439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50440 $as_echo "$MSVC_DLL" >&6; } 50441 else 50442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50443 $as_echo "incorrect, ignoring" >&6; } 50444 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50445 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50446 fi 50447 fi 50448 50449 fi 50450 fi 50451 50452 if test "x$MSVC_DLL" = x; then 50453 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 50454 # (This was the original behaviour; kept since it might turn something up) 50455 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 50456 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50457 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50458 | $GREP x64 | $HEAD --lines 1` 50459 else 50460 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50461 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 50462 if test "x$POSSIBLE_MSVC_DLL" = x; then 50463 # We're grasping at straws now... 50464 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50465 | $HEAD --lines 1` 50466 fi 50467 fi 50468 50469 50470 DLL_NAME="$DLL_NAME" 50471 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50472 METHOD="search of VCINSTALLDIR" 50473 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50474 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50475 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50476 50477 # Need to check if the found msvcr is correct architecture 50478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50479 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50480 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50481 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50482 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50483 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50484 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50485 CORRECT_MSVCR_ARCH="PE32 executable" 50486 else 50487 CORRECT_MSVCR_ARCH="PE32+ executable" 50488 fi 50489 else 50490 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50491 CORRECT_MSVCR_ARCH=386 50492 else 50493 CORRECT_MSVCR_ARCH=x86-64 50494 fi 50495 fi 50496 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50498 $as_echo "ok" >&6; } 50499 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50500 50501 # Only process if variable expands to non-empty 50502 50503 if test "x$MSVC_DLL" != x; then 50504 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50505 50506 # Input might be given as Windows format, start by converting to 50507 # unix format. 50508 path="$MSVC_DLL" 50509 new_path=`$CYGPATH -u "$path"` 50510 50511 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50512 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50513 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50514 # "foo.exe" is OK but "foo" is an error. 50515 # 50516 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50517 # It is also a way to make sure we got the proper file name for the real test later on. 50518 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50519 if test "x$test_shortpath" = x; then 50520 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50521 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50522 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50523 fi 50524 50525 # Call helper function which possibly converts this using DOS-style short mode. 50526 # If so, the updated path is stored in $new_path. 50527 50528 input_path="$new_path" 50529 # Check if we need to convert this using DOS-style short mode. If the path 50530 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50531 # take no chances and rewrite it. 50532 # Note: m4 eats our [], so we need to use [ and ] instead. 50533 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50534 if test "x$has_forbidden_chars" != x; then 50535 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50536 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50537 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50538 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50539 # Going to short mode and back again did indeed matter. Since short mode is 50540 # case insensitive, let's make it lowercase to improve readability. 50541 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50542 # Now convert it back to Unix-style (cygpath) 50543 input_path=`$CYGPATH -u "$shortmode_path"` 50544 new_path="$input_path" 50545 fi 50546 fi 50547 50548 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50549 if test "x$test_cygdrive_prefix" = x; then 50550 # As a simple fix, exclude /usr/bin since it's not a real path. 50551 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50552 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50553 # a path prefixed by /cygdrive for fixpath to work. 50554 new_path="$CYGWIN_ROOT_PATH$input_path" 50555 fi 50556 fi 50557 50558 50559 if test "x$path" != "x$new_path"; then 50560 MSVC_DLL="$new_path" 50561 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50562 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50563 fi 50564 50565 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50566 50567 path="$MSVC_DLL" 50568 has_colon=`$ECHO $path | $GREP ^.:` 50569 new_path="$path" 50570 if test "x$has_colon" = x; then 50571 # Not in mixed or Windows style, start by that. 50572 new_path=`cmd //c echo $path` 50573 fi 50574 50575 50576 input_path="$new_path" 50577 # Check if we need to convert this using DOS-style short mode. If the path 50578 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50579 # take no chances and rewrite it. 50580 # Note: m4 eats our [], so we need to use [ and ] instead. 50581 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50582 if test "x$has_forbidden_chars" != x; then 50583 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50584 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50585 fi 50586 50587 50588 windows_path="$new_path" 50589 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50590 unix_path=`$CYGPATH -u "$windows_path"` 50591 new_path="$unix_path" 50592 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50593 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50594 new_path="$unix_path" 50595 fi 50596 50597 if test "x$path" != "x$new_path"; then 50598 MSVC_DLL="$new_path" 50599 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50600 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50601 fi 50602 50603 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50604 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50605 50606 else 50607 # We're on a unix platform. Hooray! :) 50608 path="$MSVC_DLL" 50609 has_space=`$ECHO "$path" | $GREP " "` 50610 if test "x$has_space" != x; then 50611 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50612 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50613 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50614 fi 50615 50616 # Use eval to expand a potential ~ 50617 eval path="$path" 50618 if test ! -f "$path" && test ! -d "$path"; then 50619 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50620 fi 50621 50622 if test -d "$path"; then 50623 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50624 else 50625 dir="`$DIRNAME "$path"`" 50626 base="`$BASENAME "$path"`" 50627 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 50628 fi 50629 fi 50630 fi 50631 50632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50633 $as_echo_n "checking for $DLL_NAME... " >&6; } 50634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50635 $as_echo "$MSVC_DLL" >&6; } 50636 else 50637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50638 $as_echo "incorrect, ignoring" >&6; } 50639 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50640 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50641 fi 50642 fi 50643 50644 fi 50645 fi 50646 50647 if test "x$MSVC_DLL" = x; then 50648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50649 $as_echo_n "checking for $DLL_NAME... " >&6; } 50650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50651 $as_echo "no" >&6; } 50652 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 50653 fi 50654 50655 MSVCP_DLL="$MSVC_DLL" 50656 fi 50657 50658 fi 50659 50660 fi 50661 50662 50663 if test "x$NEEDS_LIB_X11" = xfalse; then 50664 if (test "x${with_x}" != x && test "x${with_x}" != xno); then 50665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 is not used, so --with-x is ignored" >&5 50666 $as_echo "$as_me: WARNING: X11 is not used, so --with-x is ignored" >&2;} 50667 fi 50668 X_CFLAGS= 50669 X_LIBS= 50670 else 50671 50672 if test "x${with_x}" = xno; then 50673 as_fn_error $? "It is not possible to disable the use of X11. Remove the --without-x option." "$LINENO" 5 50674 fi 50675 50676 if test "x${with_x}" != x && test "x${with_x}" != xyes; then 50677 # The user has specified a X11 base directory. Use it for includes and 50678 # libraries, unless explicitely overridden. 50679 if test "x$x_includes" = xNONE; then 50680 x_includes="${with_x}/include" 50681 fi 50682 if test "x$x_libraries" = xNONE; then 50683 x_libraries="${with_x}/lib" 50684 fi 50685 else 50686 # Check if the user has specified sysroot, but not --with-x, --x-includes or --x-libraries. 50687 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 50688 # --x-libraries for the sysroot, if that seems to be correct. 50689 if test "x$SYSROOT" != "x"; then 50690 if test "x$x_includes" = xNONE; then 50691 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 50692 x_includes="$SYSROOT/usr/X11R6/include" 50693 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 50694 x_includes="$SYSROOT/usr/include" 50695 fi 50696 fi 50697 if test "x$x_libraries" = xNONE; then 50698 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 50699 x_libraries="$SYSROOT/usr/X11R6/lib" 50700 elif test -f "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50701 x_libraries="$SYSROOT/usr/lib64" 50702 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 50703 x_libraries="$SYSROOT/usr/lib" 50704 fi 50705 fi 50706 fi 50707 fi 50708 50709 # Now let autoconf do it's magic 50710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 50711 $as_echo_n "checking for X... " >&6; } 50712 50713 50714 # Check whether --with-x was given. 50715 if test "${with_x+set}" = set; then : 50716 withval=$with_x; 50717 fi 50718 50719 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 50720 if test "x$with_x" = xno; then 50721 # The user explicitly disabled X. 50722 have_x=disabled 50723 else 50724 case $x_includes,$x_libraries in #( 50725 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 50726 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 50727 $as_echo_n "(cached) " >&6 50728 else 50729 # One or both of the vars are not set, and there is no cached value. 50730 ac_x_includes=no ac_x_libraries=no 50731 rm -f -r conftest.dir 50732 if mkdir conftest.dir; then 50733 cd conftest.dir 50734 cat >Imakefile <<'_ACEOF' 50735 incroot: 50736 @echo incroot='${INCROOT}' 50737 usrlibdir: 50738 @echo usrlibdir='${USRLIBDIR}' 50739 libdir: 50740 @echo libdir='${LIBDIR}' 50741 _ACEOF 50742 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 50743 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 50744 for ac_var in incroot usrlibdir libdir; do 50745 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 50746 done 50747 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 50748 for ac_extension in a so sl dylib la dll; do 50749 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 50750 test -f "$ac_im_libdir/libX11.$ac_extension"; then 50751 ac_im_usrlibdir=$ac_im_libdir; break 50752 fi 50753 done 50754 # Screen out bogus values from the imake configuration. They are 50755 # bogus both because they are the default anyway, and because 50756 # using them would break gcc on systems where it needs fixed includes. 50757 case $ac_im_incroot in 50758 /usr/include) ac_x_includes= ;; 50759 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 50760 esac 50761 case $ac_im_usrlibdir in 50762 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 50763 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 50764 esac 50765 fi 50766 cd .. 50767 rm -f -r conftest.dir 50768 fi 50769 50770 # Standard set of common directories for X headers. 50771 # Check X11 before X11Rn because it is often a symlink to the current release. 50772 ac_x_header_dirs=' 50773 /usr/X11/include 50774 /usr/X11R7/include 50775 /usr/X11R6/include 50776 /usr/X11R5/include 50777 /usr/X11R4/include 50778 50779 /usr/include/X11 50780 /usr/include/X11R7 50781 /usr/include/X11R6 50782 /usr/include/X11R5 50783 /usr/include/X11R4 50784 50785 /usr/local/X11/include 50786 /usr/local/X11R7/include 50787 /usr/local/X11R6/include 50788 /usr/local/X11R5/include 50789 /usr/local/X11R4/include 50790 50791 /usr/local/include/X11 50792 /usr/local/include/X11R7 50793 /usr/local/include/X11R6 50794 /usr/local/include/X11R5 50795 /usr/local/include/X11R4 50796 50797 /usr/X386/include 50798 /usr/x386/include 50799 /usr/XFree86/include/X11 50800 50801 /usr/include 50802 /usr/local/include 50803 /usr/unsupported/include 50804 /usr/athena/include 50805 /usr/local/x11r5/include 50806 /usr/lpp/Xamples/include 50807 50808 /usr/openwin/include 50809 /usr/openwin/share/include' 50810 50811 if test "$ac_x_includes" = no; then 50812 # Guess where to find include files, by looking for Xlib.h. 50813 # First, try using that file with no special directory specified. 50814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50815 /* end confdefs.h. */ 50816 #include <X11/Xlib.h> 50817 _ACEOF 50818 if ac_fn_cxx_try_cpp "$LINENO"; then : 50819 # We can compile using X headers with no special include directory. 50820 ac_x_includes= 50821 else 50822 for ac_dir in $ac_x_header_dirs; do 50823 if test -r "$ac_dir/X11/Xlib.h"; then 50824 ac_x_includes=$ac_dir 50825 break 50826 fi 50827 done 50828 fi 50829 rm -f conftest.err conftest.i conftest.$ac_ext 50830 fi # $ac_x_includes = no 50831 50832 if test "$ac_x_libraries" = no; then 50833 # Check for the libraries. 50834 # See if we find them without any special options. 50835 # Don't add to $LIBS permanently. 50836 ac_save_LIBS=$LIBS 50837 LIBS="-lX11 $LIBS" 50838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50839 /* end confdefs.h. */ 50840 #include <X11/Xlib.h> 50841 int 50842 main () 50843 { 50844 XrmInitialize () 50845 ; 50846 return 0; 50847 } 50848 _ACEOF 50849 if ac_fn_cxx_try_link "$LINENO"; then : 50850 LIBS=$ac_save_LIBS 50851 # We can link X programs with no special library path. 50852 ac_x_libraries= 50853 else 50854 LIBS=$ac_save_LIBS 50855 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 50856 do 50857 # Don't even attempt the hair of trying to link an X program! 50858 for ac_extension in a so sl dylib la dll; do 50859 if test -r "$ac_dir/libX11.$ac_extension"; then 50860 ac_x_libraries=$ac_dir 50861 break 2 50862 fi 50863 done 50864 done 50865 fi 50866 rm -f core conftest.err conftest.$ac_objext \ 50867 conftest$ac_exeext conftest.$ac_ext 50868 fi # $ac_x_libraries = no 50869 50870 case $ac_x_includes,$ac_x_libraries in #( 50871 no,* | *,no | *\'*) 50872 # Didn't find X, or a directory has "'" in its name. 50873 ac_cv_have_x="have_x=no";; #( 50874 *) 50875 # Record where we found X for the cache. 50876 ac_cv_have_x="have_x=yes\ 50877 ac_x_includes='$ac_x_includes'\ 50878 ac_x_libraries='$ac_x_libraries'" 50879 esac 50880 fi 50881 ;; #( 50882 *) have_x=yes;; 50883 esac 50884 eval "$ac_cv_have_x" 50885 fi # $with_x != no 50886 50887 if test "$have_x" != yes; then 50888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 50889 $as_echo "$have_x" >&6; } 50890 no_x=yes 50891 else 50892 # If each of the values was on the command line, it overrides each guess. 50893 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 50894 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 50895 # Update the cache value to reflect the command line values. 50896 ac_cv_have_x="have_x=yes\ 50897 ac_x_includes='$x_includes'\ 50898 ac_x_libraries='$x_libraries'" 50899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 50900 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 50901 fi 50902 50903 if test "$no_x" = yes; then 50904 # Not all programs may use this symbol, but it does not hurt to define it. 50905 50906 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 50907 50908 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 50909 else 50910 if test -n "$x_includes"; then 50911 X_CFLAGS="$X_CFLAGS -I$x_includes" 50912 fi 50913 50914 # It would also be nice to do this for all -L options, not just this one. 50915 if test -n "$x_libraries"; then 50916 X_LIBS="$X_LIBS -L$x_libraries" 50917 # For Solaris; some versions of Sun CC require a space after -R and 50918 # others require no space. Words are not sufficient . . . . 50919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 50920 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 50921 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 50922 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 50923 ac_cxx_werror_flag=yes 50924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50925 /* end confdefs.h. */ 50926 50927 int 50928 main () 50929 { 50930 50931 ; 50932 return 0; 50933 } 50934 _ACEOF 50935 if ac_fn_cxx_try_link "$LINENO"; then : 50936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50937 $as_echo "no" >&6; } 50938 X_LIBS="$X_LIBS -R$x_libraries" 50939 else 50940 LIBS="$ac_xsave_LIBS -R $x_libraries" 50941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50942 /* end confdefs.h. */ 50943 50944 int 50945 main () 50946 { 50947 50948 ; 50949 return 0; 50950 } 50951 _ACEOF 50952 if ac_fn_cxx_try_link "$LINENO"; then : 50953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50954 $as_echo "yes" >&6; } 50955 X_LIBS="$X_LIBS -R $x_libraries" 50956 else 50957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 50958 $as_echo "neither works" >&6; } 50959 fi 50960 rm -f core conftest.err conftest.$ac_objext \ 50961 conftest$ac_exeext conftest.$ac_ext 50962 fi 50963 rm -f core conftest.err conftest.$ac_objext \ 50964 conftest$ac_exeext conftest.$ac_ext 50965 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 50966 LIBS=$ac_xsave_LIBS 50967 fi 50968 50969 # Check for system-dependent libraries X programs must link with. 50970 # Do this before checking for the system-independent R6 libraries 50971 # (-lICE), since we may need -lsocket or whatever for X linking. 50972 50973 if test "$ISC" = yes; then 50974 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 50975 else 50976 # Martyn Johnson says this is needed for Ultrix, if the X 50977 # libraries were built with DECnet support. And Karl Berry says 50978 # the Alpha needs dnet_stub (dnet does not exist). 50979 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 50980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50981 /* end confdefs.h. */ 50982 50983 /* Override any GCC internal prototype to avoid an error. 50984 Use char because int might match the return type of a GCC 50985 builtin and then its argument prototype would still apply. */ 50986 #ifdef __cplusplus 50987 extern "C" 50988 #endif 50989 char XOpenDisplay (); 50990 int 50991 main () 50992 { 50993 return XOpenDisplay (); 50994 ; 50995 return 0; 50996 } 50997 _ACEOF 50998 if ac_fn_cxx_try_link "$LINENO"; then : 50999 51000 else 51001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 51002 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 51003 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 51004 $as_echo_n "(cached) " >&6 51005 else 51006 ac_check_lib_save_LIBS=$LIBS 51007 LIBS="-ldnet $LIBS" 51008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51009 /* end confdefs.h. */ 51010 51011 /* Override any GCC internal prototype to avoid an error. 51012 Use char because int might match the return type of a GCC 51013 builtin and then its argument prototype would still apply. */ 51014 #ifdef __cplusplus 51015 extern "C" 51016 #endif 51017 char dnet_ntoa (); 51018 int 51019 main () 51020 { 51021 return dnet_ntoa (); 51022 ; 51023 return 0; 51024 } 51025 _ACEOF 51026 if ac_fn_cxx_try_link "$LINENO"; then : 51027 ac_cv_lib_dnet_dnet_ntoa=yes 51028 else 51029 ac_cv_lib_dnet_dnet_ntoa=no 51030 fi 51031 rm -f core conftest.err conftest.$ac_objext \ 51032 conftest$ac_exeext conftest.$ac_ext 51033 LIBS=$ac_check_lib_save_LIBS 51034 fi 51035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 51036 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 51037 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 51038 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 51039 fi 51040 51041 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 51042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 51043 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 51044 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 51045 $as_echo_n "(cached) " >&6 51046 else 51047 ac_check_lib_save_LIBS=$LIBS 51048 LIBS="-ldnet_stub $LIBS" 51049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51050 /* end confdefs.h. */ 51051 51052 /* Override any GCC internal prototype to avoid an error. 51053 Use char because int might match the return type of a GCC 51054 builtin and then its argument prototype would still apply. */ 51055 #ifdef __cplusplus 51056 extern "C" 51057 #endif 51058 char dnet_ntoa (); 51059 int 51060 main () 51061 { 51062 return dnet_ntoa (); 51063 ; 51064 return 0; 51065 } 51066 _ACEOF 51067 if ac_fn_cxx_try_link "$LINENO"; then : 51068 ac_cv_lib_dnet_stub_dnet_ntoa=yes 51069 else 51070 ac_cv_lib_dnet_stub_dnet_ntoa=no 51071 fi 51072 rm -f core conftest.err conftest.$ac_objext \ 51073 conftest$ac_exeext conftest.$ac_ext 51074 LIBS=$ac_check_lib_save_LIBS 51075 fi 51076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 51077 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 51078 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 51079 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 51080 fi 51081 51082 fi 51083 fi 51084 rm -f core conftest.err conftest.$ac_objext \ 51085 conftest$ac_exeext conftest.$ac_ext 51086 LIBS="$ac_xsave_LIBS" 51087 51088 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 51089 # to get the SysV transport functions. 51090 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 51091 # needs -lnsl. 51092 # The nsl library prevents programs from opening the X display 51093 # on Irix 5.2, according to T.E. Dickey. 51094 # The functions gethostbyname, getservbyname, and inet_addr are 51095 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 51096 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 51097 if test "x$ac_cv_func_gethostbyname" = xyes; then : 51098 51099 fi 51100 51101 if test $ac_cv_func_gethostbyname = no; then 51102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 51103 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 51104 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 51105 $as_echo_n "(cached) " >&6 51106 else 51107 ac_check_lib_save_LIBS=$LIBS 51108 LIBS="-lnsl $LIBS" 51109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51110 /* end confdefs.h. */ 51111 51112 /* Override any GCC internal prototype to avoid an error. 51113 Use char because int might match the return type of a GCC 51114 builtin and then its argument prototype would still apply. */ 51115 #ifdef __cplusplus 51116 extern "C" 51117 #endif 51118 char gethostbyname (); 51119 int 51120 main () 51121 { 51122 return gethostbyname (); 51123 ; 51124 return 0; 51125 } 51126 _ACEOF 51127 if ac_fn_cxx_try_link "$LINENO"; then : 51128 ac_cv_lib_nsl_gethostbyname=yes 51129 else 51130 ac_cv_lib_nsl_gethostbyname=no 51131 fi 51132 rm -f core conftest.err conftest.$ac_objext \ 51133 conftest$ac_exeext conftest.$ac_ext 51134 LIBS=$ac_check_lib_save_LIBS 51135 fi 51136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 51137 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 51138 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 51139 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 51140 fi 51141 51142 if test $ac_cv_lib_nsl_gethostbyname = no; then 51143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 51144 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 51145 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 51146 $as_echo_n "(cached) " >&6 51147 else 51148 ac_check_lib_save_LIBS=$LIBS 51149 LIBS="-lbsd $LIBS" 51150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51151 /* end confdefs.h. */ 51152 51153 /* Override any GCC internal prototype to avoid an error. 51154 Use char because int might match the return type of a GCC 51155 builtin and then its argument prototype would still apply. */ 51156 #ifdef __cplusplus 51157 extern "C" 51158 #endif 51159 char gethostbyname (); 51160 int 51161 main () 51162 { 51163 return gethostbyname (); 51164 ; 51165 return 0; 51166 } 51167 _ACEOF 51168 if ac_fn_cxx_try_link "$LINENO"; then : 51169 ac_cv_lib_bsd_gethostbyname=yes 51170 else 51171 ac_cv_lib_bsd_gethostbyname=no 51172 fi 51173 rm -f core conftest.err conftest.$ac_objext \ 51174 conftest$ac_exeext conftest.$ac_ext 51175 LIBS=$ac_check_lib_save_LIBS 51176 fi 51177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 51178 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 51179 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 51180 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 51181 fi 51182 51183 fi 51184 fi 51185 51186 # lieder@skyler.mavd.honeywell.com says without -lsocket, 51187 # socket/setsockopt and other routines are undefined under SCO ODT 51188 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 51189 # on later versions), says Simon Leinen: it contains gethostby* 51190 # variants that don't use the name server (or something). -lsocket 51191 # must be given before -lnsl if both are needed. We assume that 51192 # if connect needs -lnsl, so does gethostbyname. 51193 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 51194 if test "x$ac_cv_func_connect" = xyes; then : 51195 51196 fi 51197 51198 if test $ac_cv_func_connect = no; then 51199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 51200 $as_echo_n "checking for connect in -lsocket... " >&6; } 51201 if ${ac_cv_lib_socket_connect+:} false; then : 51202 $as_echo_n "(cached) " >&6 51203 else 51204 ac_check_lib_save_LIBS=$LIBS 51205 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 51206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51207 /* end confdefs.h. */ 51208 51209 /* Override any GCC internal prototype to avoid an error. 51210 Use char because int might match the return type of a GCC 51211 builtin and then its argument prototype would still apply. */ 51212 #ifdef __cplusplus 51213 extern "C" 51214 #endif 51215 char connect (); 51216 int 51217 main () 51218 { 51219 return connect (); 51220 ; 51221 return 0; 51222 } 51223 _ACEOF 51224 if ac_fn_cxx_try_link "$LINENO"; then : 51225 ac_cv_lib_socket_connect=yes 51226 else 51227 ac_cv_lib_socket_connect=no 51228 fi 51229 rm -f core conftest.err conftest.$ac_objext \ 51230 conftest$ac_exeext conftest.$ac_ext 51231 LIBS=$ac_check_lib_save_LIBS 51232 fi 51233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 51234 $as_echo "$ac_cv_lib_socket_connect" >&6; } 51235 if test "x$ac_cv_lib_socket_connect" = xyes; then : 51236 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 51237 fi 51238 51239 fi 51240 51241 # Guillermo Gomez says -lposix is necessary on A/UX. 51242 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 51243 if test "x$ac_cv_func_remove" = xyes; then : 51244 51245 fi 51246 51247 if test $ac_cv_func_remove = no; then 51248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 51249 $as_echo_n "checking for remove in -lposix... " >&6; } 51250 if ${ac_cv_lib_posix_remove+:} false; then : 51251 $as_echo_n "(cached) " >&6 51252 else 51253 ac_check_lib_save_LIBS=$LIBS 51254 LIBS="-lposix $LIBS" 51255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51256 /* end confdefs.h. */ 51257 51258 /* Override any GCC internal prototype to avoid an error. 51259 Use char because int might match the return type of a GCC 51260 builtin and then its argument prototype would still apply. */ 51261 #ifdef __cplusplus 51262 extern "C" 51263 #endif 51264 char remove (); 51265 int 51266 main () 51267 { 51268 return remove (); 51269 ; 51270 return 0; 51271 } 51272 _ACEOF 51273 if ac_fn_cxx_try_link "$LINENO"; then : 51274 ac_cv_lib_posix_remove=yes 51275 else 51276 ac_cv_lib_posix_remove=no 51277 fi 51278 rm -f core conftest.err conftest.$ac_objext \ 51279 conftest$ac_exeext conftest.$ac_ext 51280 LIBS=$ac_check_lib_save_LIBS 51281 fi 51282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 51283 $as_echo "$ac_cv_lib_posix_remove" >&6; } 51284 if test "x$ac_cv_lib_posix_remove" = xyes; then : 51285 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 51286 fi 51287 51288 fi 51289 51290 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 51291 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 51292 if test "x$ac_cv_func_shmat" = xyes; then : 51293 51294 fi 51295 51296 if test $ac_cv_func_shmat = no; then 51297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 51298 $as_echo_n "checking for shmat in -lipc... " >&6; } 51299 if ${ac_cv_lib_ipc_shmat+:} false; then : 51300 $as_echo_n "(cached) " >&6 51301 else 51302 ac_check_lib_save_LIBS=$LIBS 51303 LIBS="-lipc $LIBS" 51304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51305 /* end confdefs.h. */ 51306 51307 /* Override any GCC internal prototype to avoid an error. 51308 Use char because int might match the return type of a GCC 51309 builtin and then its argument prototype would still apply. */ 51310 #ifdef __cplusplus 51311 extern "C" 51312 #endif 51313 char shmat (); 51314 int 51315 main () 51316 { 51317 return shmat (); 51318 ; 51319 return 0; 51320 } 51321 _ACEOF 51322 if ac_fn_cxx_try_link "$LINENO"; then : 51323 ac_cv_lib_ipc_shmat=yes 51324 else 51325 ac_cv_lib_ipc_shmat=no 51326 fi 51327 rm -f core conftest.err conftest.$ac_objext \ 51328 conftest$ac_exeext conftest.$ac_ext 51329 LIBS=$ac_check_lib_save_LIBS 51330 fi 51331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 51332 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 51333 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 51334 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 51335 fi 51336 51337 fi 51338 fi 51339 51340 # Check for libraries that X11R6 Xt/Xaw programs need. 51341 ac_save_LDFLAGS=$LDFLAGS 51342 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 51343 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 51344 # check for ICE first), but we must link in the order -lSM -lICE or 51345 # we get undefined symbols. So assume we have SM if we have ICE. 51346 # These have to be linked with before -lX11, unlike the other 51347 # libraries we check for below, so use a different variable. 51348 # John Interrante, Karl Berry 51349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 51350 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 51351 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 51352 $as_echo_n "(cached) " >&6 51353 else 51354 ac_check_lib_save_LIBS=$LIBS 51355 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 51356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51357 /* end confdefs.h. */ 51358 51359 /* Override any GCC internal prototype to avoid an error. 51360 Use char because int might match the return type of a GCC 51361 builtin and then its argument prototype would still apply. */ 51362 #ifdef __cplusplus 51363 extern "C" 51364 #endif 51365 char IceConnectionNumber (); 51366 int 51367 main () 51368 { 51369 return IceConnectionNumber (); 51370 ; 51371 return 0; 51372 } 51373 _ACEOF 51374 if ac_fn_cxx_try_link "$LINENO"; then : 51375 ac_cv_lib_ICE_IceConnectionNumber=yes 51376 else 51377 ac_cv_lib_ICE_IceConnectionNumber=no 51378 fi 51379 rm -f core conftest.err conftest.$ac_objext \ 51380 conftest$ac_exeext conftest.$ac_ext 51381 LIBS=$ac_check_lib_save_LIBS 51382 fi 51383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 51384 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 51385 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 51386 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 51387 fi 51388 51389 LDFLAGS=$ac_save_LDFLAGS 51390 51391 fi 51392 51393 51394 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 51395 # this doesn't make sense so we remove it. 51396 if test "x$COMPILE_TYPE" = xcross; then 51397 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 51398 fi 51399 51400 if test "x$no_x" = xyes; then 51401 51402 # Print a helpful message on how to acquire the necessary build dependency. 51403 # x11 is the help tag: freetype, cups, alsa etc 51404 MISSING_DEPENDENCY=x11 51405 51406 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51407 cygwin_help $MISSING_DEPENDENCY 51408 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51409 msys_help $MISSING_DEPENDENCY 51410 else 51411 PKGHANDLER_COMMAND= 51412 51413 case $PKGHANDLER in 51414 apt-get) 51415 apt_help $MISSING_DEPENDENCY ;; 51416 yum) 51417 yum_help $MISSING_DEPENDENCY ;; 51418 port) 51419 port_help $MISSING_DEPENDENCY ;; 51420 pkgutil) 51421 pkgutil_help $MISSING_DEPENDENCY ;; 51422 pkgadd) 51423 pkgadd_help $MISSING_DEPENDENCY ;; 51424 esac 51425 51426 if test "x$PKGHANDLER_COMMAND" != x; then 51427 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 51428 fi 51429 fi 51430 51431 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 51432 fi 51433 51434 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 51435 OPENWIN_HOME="/usr/openwin" 51436 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 51437 X_LIBS="-L$SYSROOT$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 51438 -L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 51439 -R$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 51440 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 51441 fi 51442 51443 ac_ext=c 51444 ac_cpp='$CPP $CPPFLAGS' 51445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51447 ac_compiler_gnu=$ac_cv_c_compiler_gnu 51448 51449 OLD_CFLAGS="$CFLAGS" 51450 CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS" 51451 51452 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 51453 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 51454 do : 51455 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 51456 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 51457 # include <X11/Xlib.h> 51458 # include <X11/Xutil.h> 51459 51460 51461 " 51462 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 51463 cat >>confdefs.h <<_ACEOF 51464 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 51465 _ACEOF 51466 X11_HEADERS_OK=yes 51467 else 51468 X11_HEADERS_OK=no; break 51469 fi 51470 51471 done 51472 51473 51474 if test "x$X11_HEADERS_OK" = xno; then 51475 51476 # Print a helpful message on how to acquire the necessary build dependency. 51477 # x11 is the help tag: freetype, cups, alsa etc 51478 MISSING_DEPENDENCY=x11 51479 51480 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51481 cygwin_help $MISSING_DEPENDENCY 51482 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51483 msys_help $MISSING_DEPENDENCY 51484 else 51485 PKGHANDLER_COMMAND= 51486 51487 case $PKGHANDLER in 51488 apt-get) 51489 apt_help $MISSING_DEPENDENCY ;; 51490 yum) 51491 yum_help $MISSING_DEPENDENCY ;; 51492 port) 51493 port_help $MISSING_DEPENDENCY ;; 51494 pkgutil) 51495 pkgutil_help $MISSING_DEPENDENCY ;; 51496 pkgadd) 51497 pkgadd_help $MISSING_DEPENDENCY ;; 51498 esac 51499 51500 if test "x$PKGHANDLER_COMMAND" != x; then 51501 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 51502 fi 51503 fi 51504 51505 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 51506 fi 51507 51508 # If XLinearGradient isn't available in Xrender.h, signal that it needs to be 51509 # defined in libawt_xawt. 51510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XlinearGradient is defined in Xrender.h" >&5 51511 $as_echo_n "checking if XlinearGradient is defined in Xrender.h... " >&6; } 51512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51513 /* end confdefs.h. */ 51514 #include <X11/extensions/Xrender.h> 51515 int 51516 main () 51517 { 51518 XLinearGradient x; 51519 ; 51520 return 0; 51521 } 51522 _ACEOF 51523 if ac_fn_c_try_compile "$LINENO"; then : 51524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 51525 $as_echo "yes" >&6; } 51526 else 51527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51528 $as_echo "no" >&6; } 51529 X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS" 51530 fi 51531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51532 51533 CFLAGS="$OLD_CFLAGS" 51534 ac_ext=cpp 51535 ac_cpp='$CXXCPP $CPPFLAGS' 51536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51539 51540 fi # NEEDS_LIB_X11 51541 51542 51543 51544 51545 51546 51547 # Check whether --with-cups was given. 51548 if test "${with_cups+set}" = set; then : 51549 withval=$with_cups; 51550 fi 51551 51552 51553 # Check whether --with-cups-include was given. 51554 if test "${with_cups_include+set}" = set; then : 51555 withval=$with_cups_include; 51556 fi 51557 51558 51559 if test "x$NEEDS_LIB_CUPS" = xfalse; then 51560 if (test "x${with_cups}" != x && test "x${with_cups}" != xno) || \ 51561 (test "x${with_cups_include}" != x && test "x${with_cups_include}" != xno); then 51562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups[-*] is ignored" >&5 51563 $as_echo "$as_me: WARNING: cups not used, so --with-cups[-*] is ignored" >&2;} 51564 fi 51565 CUPS_CFLAGS= 51566 else 51567 CUPS_FOUND=no 51568 51569 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 51570 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 51571 fi 51572 51573 if test "x${with_cups}" != x; then 51574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 51575 $as_echo_n "checking for cups headers... " >&6; } 51576 if test -s "${with_cups}/include/cups/cups.h"; then 51577 CUPS_CFLAGS="-I${with_cups}/include" 51578 CUPS_FOUND=yes 51579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 51580 $as_echo "$CUPS_FOUND" >&6; } 51581 else 51582 as_fn_error $? "Can't find 'include/cups/cups.h' under ${with_cups} given with the --with-cups option." "$LINENO" 5 51583 fi 51584 fi 51585 if test "x${with_cups_include}" != x; then 51586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 51587 $as_echo_n "checking for cups headers... " >&6; } 51588 if test -s "${with_cups_include}/cups/cups.h"; then 51589 CUPS_CFLAGS="-I${with_cups_include}" 51590 CUPS_FOUND=yes 51591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 51592 $as_echo "$CUPS_FOUND" >&6; } 51593 else 51594 as_fn_error $? "Can't find 'cups/cups.h' under ${with_cups_include} given with the --with-cups-include option." "$LINENO" 5 51595 fi 51596 fi 51597 if test "x$CUPS_FOUND" = xno; then 51598 # Are the cups headers installed in the default /usr/include location? 51599 for ac_header in cups/cups.h cups/ppd.h 51600 do : 51601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 51602 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 51603 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 51604 cat >>confdefs.h <<_ACEOF 51605 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 51606 _ACEOF 51607 51608 CUPS_FOUND=yes 51609 CUPS_CFLAGS= 51610 DEFAULT_CUPS=yes 51611 51612 fi 51613 51614 done 51615 51616 fi 51617 if test "x$CUPS_FOUND" = xno; then 51618 # Getting nervous now? Lets poke around for standard Solaris third-party 51619 # package installation locations. 51620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 51621 $as_echo_n "checking for cups headers... " >&6; } 51622 if test -s $SYSROOT/opt/sfw/cups/include/cups/cups.h; then 51623 # An SFW package seems to be installed! 51624 CUPS_FOUND=yes 51625 CUPS_CFLAGS="-I$SYSROOT/opt/sfw/cups/include" 51626 elif test -s $SYSROOT/opt/csw/include/cups/cups.h; then 51627 # A CSW package seems to be installed! 51628 CUPS_FOUND=yes 51629 CUPS_CFLAGS="-I$SYSROOT/opt/csw/include" 51630 fi 51631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 51632 $as_echo "$CUPS_FOUND" >&6; } 51633 fi 51634 if test "x$CUPS_FOUND" = xno; then 51635 51636 # Print a helpful message on how to acquire the necessary build dependency. 51637 # cups is the help tag: freetype, cups, alsa etc 51638 MISSING_DEPENDENCY=cups 51639 51640 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51641 cygwin_help $MISSING_DEPENDENCY 51642 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51643 msys_help $MISSING_DEPENDENCY 51644 else 51645 PKGHANDLER_COMMAND= 51646 51647 case $PKGHANDLER in 51648 apt-get) 51649 apt_help $MISSING_DEPENDENCY ;; 51650 yum) 51651 yum_help $MISSING_DEPENDENCY ;; 51652 port) 51653 port_help $MISSING_DEPENDENCY ;; 51654 pkgutil) 51655 pkgutil_help $MISSING_DEPENDENCY ;; 51656 pkgadd) 51657 pkgadd_help $MISSING_DEPENDENCY ;; 51658 esac 51659 51660 if test "x$PKGHANDLER_COMMAND" != x; then 51661 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 51662 fi 51663 fi 51664 51665 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 51666 fi 51667 fi 51668 51669 51670 51671 51672 51673 # Check whether --with-freetype was given. 51674 if test "${with_freetype+set}" = set; then : 51675 withval=$with_freetype; 51676 fi 51677 51678 51679 # Check whether --with-freetype-include was given. 51680 if test "${with_freetype_include+set}" = set; then : 51681 withval=$with_freetype_include; 51682 fi 51683 51684 51685 # Check whether --with-freetype-lib was given. 51686 if test "${with_freetype_lib+set}" = set; then : 51687 withval=$with_freetype_lib; 51688 fi 51689 51690 51691 # Check whether --with-freetype-src was given. 51692 if test "${with_freetype_src+set}" = set; then : 51693 withval=$with_freetype_src; 51694 fi 51695 51696 # Check whether --enable-freetype-bundling was given. 51697 if test "${enable_freetype_bundling+set}" = set; then : 51698 enableval=$enable_freetype_bundling; 51699 fi 51700 51701 51702 # Need to specify explicitly since it needs to be overridden on some versions of macosx 51703 FREETYPE_BASE_NAME=freetype 51704 FREETYPE_CFLAGS= 51705 FREETYPE_LIBS= 51706 FREETYPE_BUNDLE_LIB_PATH= 51707 51708 if test "x$NEEDS_LIB_FREETYPE" = xfalse; then 51709 if (test "x$with_freetype" != x && test "x$with_freetype" != xno) || \ 51710 (test "x$with_freetype_include" != x && test "x$with_freetype_include" != xno) || \ 51711 (test "x$with_freetype_lib" != x && test "x$with_freetype_lib" != xno) || \ 51712 (test "x$with_freetype_src" != x && test "x$with_freetype_src" != xno); then 51713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&5 51714 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&2;} 51715 fi 51716 if (test "x$enable_freetype_bundling" != x && test "x$enable_freetype_bundling" != xno); then 51717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 51718 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 51719 fi 51720 else 51721 # freetype is needed to build; go get it! 51722 51723 BUNDLE_FREETYPE="$enable_freetype_bundling" 51724 51725 if test "x$with_freetype_src" != x; then 51726 if test "x$OPENJDK_TARGET_OS" = xwindows; then 51727 # Try to build freetype if --with-freetype-src was given on Windows 51728 51729 FREETYPE_SRC_PATH="$with_freetype_src" 51730 BUILD_FREETYPE=yes 51731 51732 # Check if the freetype sources are acessible.. 51733 if ! test -d $FREETYPE_SRC_PATH; then 51734 { $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 51735 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 51736 BUILD_FREETYPE=no 51737 fi 51738 # ..and contain a vc2010 project file 51739 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 51740 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 51741 { $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 51742 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 51743 BUILD_FREETYPE=no 51744 fi 51745 # Now check if configure found a version of 'msbuild.exe' 51746 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 51747 { $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 51748 $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;} 51749 BUILD_FREETYPE=no 51750 fi 51751 51752 # Ready to go.. 51753 if test "x$BUILD_FREETYPE" = xyes; then 51754 # msbuild requires trailing slashes for output directories 51755 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 51756 freetype_lib_path_unix="$freetype_lib_path" 51757 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 51758 51759 unix_path="$vcxproj_path" 51760 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51761 windows_path=`$CYGPATH -m "$unix_path"` 51762 vcxproj_path="$windows_path" 51763 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51764 windows_path=`cmd //c echo $unix_path` 51765 vcxproj_path="$windows_path" 51766 fi 51767 51768 51769 unix_path="$freetype_lib_path" 51770 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51771 windows_path=`$CYGPATH -m "$unix_path"` 51772 freetype_lib_path="$windows_path" 51773 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51774 windows_path=`cmd //c echo $unix_path` 51775 freetype_lib_path="$windows_path" 51776 fi 51777 51778 51779 unix_path="$freetype_obj_path" 51780 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51781 windows_path=`$CYGPATH -m "$unix_path"` 51782 freetype_obj_path="$windows_path" 51783 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51784 windows_path=`cmd //c echo $unix_path` 51785 freetype_obj_path="$windows_path" 51786 fi 51787 51788 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 51789 freetype_platform=x64 51790 else 51791 freetype_platform=win32 51792 fi 51793 51794 # The original freetype project file is for VS 2010 (i.e. 'v100'), 51795 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 51796 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 51797 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 51798 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 51799 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 51800 51801 # First we try to build the freetype.dll 51802 $ECHO -e "@echo off\n"\ 51803 "$MSBUILD $vcxproj_path "\ 51804 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 51805 "/p:Configuration=\"Release Multithreaded\" "\ 51806 "/p:Platform=$freetype_platform "\ 51807 "/p:ConfigurationType=DynamicLibrary "\ 51808 "/p:TargetName=freetype "\ 51809 "/p:OutDir=\"$freetype_lib_path\" "\ 51810 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 51811 cmd /c freetype.bat 51812 51813 if test -s "$freetype_lib_path_unix/freetype.dll"; then 51814 # If that succeeds we also build freetype.lib 51815 $ECHO -e "@echo off\n"\ 51816 "$MSBUILD $vcxproj_path "\ 51817 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 51818 "/p:Configuration=\"Release Multithreaded\" "\ 51819 "/p:Platform=$freetype_platform "\ 51820 "/p:ConfigurationType=StaticLibrary "\ 51821 "/p:TargetName=freetype "\ 51822 "/p:OutDir=\"$freetype_lib_path\" "\ 51823 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 51824 cmd /c freetype.bat 51825 51826 if test -s "$freetype_lib_path_unix/freetype.lib"; then 51827 # Once we build both, lib and dll, set freetype lib and include path appropriately 51828 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 51829 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 51830 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 51831 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 51832 else 51833 BUILD_FREETYPE=no 51834 fi 51835 else 51836 BUILD_FREETYPE=no 51837 fi 51838 fi 51839 51840 if test "x$BUILD_FREETYPE" = xyes; then 51841 # Okay, we built it. Check that it works. 51842 51843 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 51844 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 51845 METHOD="--with-freetype-src" 51846 51847 # Let's start with an optimistic view of the world :-) 51848 FOUND_FREETYPE=yes 51849 51850 # First look for the canonical freetype main include file ft2build.h. 51851 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 51852 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 51853 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 51854 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 51855 # Fail. 51856 FOUND_FREETYPE=no 51857 fi 51858 fi 51859 51860 if test "x$FOUND_FREETYPE" = xyes; then 51861 # Include file found, let's continue the sanity check. 51862 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 51863 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 51864 51865 # Reset to default value 51866 FREETYPE_BASE_NAME=freetype 51867 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 51868 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 51869 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 51870 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 51871 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 51872 # for the .6 version explicitly. 51873 FREETYPE_BASE_NAME=freetype.6 51874 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 51875 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 51876 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 51877 else 51878 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 51879 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 51880 FOUND_FREETYPE=no 51881 fi 51882 else 51883 if test "x$OPENJDK_TARGET_OS" = xwindows; then 51884 # On Windows, we will need both .lib and .dll file. 51885 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 51886 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 51887 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 51888 FOUND_FREETYPE=no 51889 fi 51890 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 51891 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 51892 # Found lib in isa dir, use that instead. 51893 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 51894 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 51895 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 51896 fi 51897 fi 51898 fi 51899 51900 if test "x$FOUND_FREETYPE" = xyes; then 51901 51902 # Only process if variable expands to non-empty 51903 51904 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 51905 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51906 51907 # Input might be given as Windows format, start by converting to 51908 # unix format. 51909 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 51910 new_path=`$CYGPATH -u "$path"` 51911 51912 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51913 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51914 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51915 # "foo.exe" is OK but "foo" is an error. 51916 # 51917 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51918 # It is also a way to make sure we got the proper file name for the real test later on. 51919 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51920 if test "x$test_shortpath" = x; then 51921 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 51922 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 51923 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 51924 fi 51925 51926 # Call helper function which possibly converts this using DOS-style short mode. 51927 # If so, the updated path is stored in $new_path. 51928 51929 input_path="$new_path" 51930 # Check if we need to convert this using DOS-style short mode. If the path 51931 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51932 # take no chances and rewrite it. 51933 # Note: m4 eats our [], so we need to use [ and ] instead. 51934 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51935 if test "x$has_forbidden_chars" != x; then 51936 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51937 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51938 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51939 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51940 # Going to short mode and back again did indeed matter. Since short mode is 51941 # case insensitive, let's make it lowercase to improve readability. 51942 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51943 # Now convert it back to Unix-style (cygpath) 51944 input_path=`$CYGPATH -u "$shortmode_path"` 51945 new_path="$input_path" 51946 fi 51947 fi 51948 51949 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51950 if test "x$test_cygdrive_prefix" = x; then 51951 # As a simple fix, exclude /usr/bin since it's not a real path. 51952 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51953 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51954 # a path prefixed by /cygdrive for fixpath to work. 51955 new_path="$CYGWIN_ROOT_PATH$input_path" 51956 fi 51957 fi 51958 51959 51960 if test "x$path" != "x$new_path"; then 51961 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 51962 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 51963 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 51964 fi 51965 51966 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51967 51968 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 51969 has_colon=`$ECHO $path | $GREP ^.:` 51970 new_path="$path" 51971 if test "x$has_colon" = x; then 51972 # Not in mixed or Windows style, start by that. 51973 new_path=`cmd //c echo $path` 51974 fi 51975 51976 51977 input_path="$new_path" 51978 # Check if we need to convert this using DOS-style short mode. If the path 51979 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51980 # take no chances and rewrite it. 51981 # Note: m4 eats our [], so we need to use [ and ] instead. 51982 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51983 if test "x$has_forbidden_chars" != x; then 51984 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51985 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51986 fi 51987 51988 51989 windows_path="$new_path" 51990 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51991 unix_path=`$CYGPATH -u "$windows_path"` 51992 new_path="$unix_path" 51993 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51994 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51995 new_path="$unix_path" 51996 fi 51997 51998 if test "x$path" != "x$new_path"; then 51999 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 52000 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 52001 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 52002 fi 52003 52004 # Save the first 10 bytes of this path to the storage, so fixpath can work. 52005 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 52006 52007 else 52008 # We're on a unix platform. Hooray! :) 52009 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 52010 has_space=`$ECHO "$path" | $GREP " "` 52011 if test "x$has_space" != x; then 52012 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 52013 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 52014 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 52015 fi 52016 52017 # Use eval to expand a potential ~ 52018 eval path="$path" 52019 if test ! -f "$path" && test ! -d "$path"; then 52020 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 52021 fi 52022 52023 if test -d "$path"; then 52024 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 52025 else 52026 dir="`$DIRNAME "$path"`" 52027 base="`$BASENAME "$path"`" 52028 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 52029 fi 52030 fi 52031 fi 52032 52033 52034 # Only process if variable expands to non-empty 52035 52036 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 52037 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52038 52039 # Input might be given as Windows format, start by converting to 52040 # unix format. 52041 path="$POTENTIAL_FREETYPE_LIB_PATH" 52042 new_path=`$CYGPATH -u "$path"` 52043 52044 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 52045 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 52046 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 52047 # "foo.exe" is OK but "foo" is an error. 52048 # 52049 # This test is therefore slightly more accurate than "test -f" to check for file precense. 52050 # It is also a way to make sure we got the proper file name for the real test later on. 52051 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 52052 if test "x$test_shortpath" = x; then 52053 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 52054 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 52055 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 52056 fi 52057 52058 # Call helper function which possibly converts this using DOS-style short mode. 52059 # If so, the updated path is stored in $new_path. 52060 52061 input_path="$new_path" 52062 # Check if we need to convert this using DOS-style short mode. If the path 52063 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52064 # take no chances and rewrite it. 52065 # Note: m4 eats our [], so we need to use [ and ] instead. 52066 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 52067 if test "x$has_forbidden_chars" != x; then 52068 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52069 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 52070 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 52071 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 52072 # Going to short mode and back again did indeed matter. Since short mode is 52073 # case insensitive, let's make it lowercase to improve readability. 52074 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52075 # Now convert it back to Unix-style (cygpath) 52076 input_path=`$CYGPATH -u "$shortmode_path"` 52077 new_path="$input_path" 52078 fi 52079 fi 52080 52081 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 52082 if test "x$test_cygdrive_prefix" = x; then 52083 # As a simple fix, exclude /usr/bin since it's not a real path. 52084 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 52085 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 52086 # a path prefixed by /cygdrive for fixpath to work. 52087 new_path="$CYGWIN_ROOT_PATH$input_path" 52088 fi 52089 fi 52090 52091 52092 if test "x$path" != "x$new_path"; then 52093 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 52094 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 52095 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 52096 fi 52097 52098 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52099 52100 path="$POTENTIAL_FREETYPE_LIB_PATH" 52101 has_colon=`$ECHO $path | $GREP ^.:` 52102 new_path="$path" 52103 if test "x$has_colon" = x; then 52104 # Not in mixed or Windows style, start by that. 52105 new_path=`cmd //c echo $path` 52106 fi 52107 52108 52109 input_path="$new_path" 52110 # Check if we need to convert this using DOS-style short mode. If the path 52111 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52112 # take no chances and rewrite it. 52113 # Note: m4 eats our [], so we need to use [ and ] instead. 52114 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 52115 if test "x$has_forbidden_chars" != x; then 52116 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52117 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52118 fi 52119 52120 52121 windows_path="$new_path" 52122 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52123 unix_path=`$CYGPATH -u "$windows_path"` 52124 new_path="$unix_path" 52125 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52126 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 52127 new_path="$unix_path" 52128 fi 52129 52130 if test "x$path" != "x$new_path"; then 52131 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 52132 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 52133 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 52134 fi 52135 52136 # Save the first 10 bytes of this path to the storage, so fixpath can work. 52137 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 52138 52139 else 52140 # We're on a unix platform. Hooray! :) 52141 path="$POTENTIAL_FREETYPE_LIB_PATH" 52142 has_space=`$ECHO "$path" | $GREP " "` 52143 if test "x$has_space" != x; then 52144 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 52145 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 52146 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 52147 fi 52148 52149 # Use eval to expand a potential ~ 52150 eval path="$path" 52151 if test ! -f "$path" && test ! -d "$path"; then 52152 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 52153 fi 52154 52155 if test -d "$path"; then 52156 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 52157 else 52158 dir="`$DIRNAME "$path"`" 52159 base="`$BASENAME "$path"`" 52160 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 52161 fi 52162 fi 52163 fi 52164 52165 52166 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 52167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 52168 $as_echo_n "checking for freetype includes... " >&6; } 52169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 52170 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 52171 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 52172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 52173 $as_echo_n "checking for freetype libraries... " >&6; } 52174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 52175 $as_echo "$FREETYPE_LIB_PATH" >&6; } 52176 fi 52177 52178 if test "x$FOUND_FREETYPE" != xyes; then 52179 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 52180 fi 52181 else 52182 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 52183 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 52184 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 52185 fi 52186 else 52187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 52188 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 52189 fi 52190 fi 52191 52192 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 52193 # User has specified settings 52194 52195 if test "x$BUNDLE_FREETYPE" = x; then 52196 # If not specified, default is to bundle freetype 52197 BUNDLE_FREETYPE=yes 52198 fi 52199 52200 if test "x$with_freetype" != x; then 52201 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 52202 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 52203 fi 52204 52205 # Allow --with-freetype-lib and --with-freetype-include to override 52206 if test "x$with_freetype_include" != x; then 52207 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 52208 fi 52209 if test "x$with_freetype_lib" != x; then 52210 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 52211 fi 52212 52213 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 52214 # Okay, we got it. Check that it works. 52215 52216 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 52217 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 52218 METHOD="--with-freetype" 52219 52220 # Let's start with an optimistic view of the world :-) 52221 FOUND_FREETYPE=yes 52222 52223 # First look for the canonical freetype main include file ft2build.h. 52224 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 52225 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 52226 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 52227 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 52228 # Fail. 52229 FOUND_FREETYPE=no 52230 fi 52231 fi 52232 52233 if test "x$FOUND_FREETYPE" = xyes; then 52234 # Include file found, let's continue the sanity check. 52235 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 52236 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 52237 52238 # Reset to default value 52239 FREETYPE_BASE_NAME=freetype 52240 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 52241 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 52242 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 52243 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 52244 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 52245 # for the .6 version explicitly. 52246 FREETYPE_BASE_NAME=freetype.6 52247 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 52248 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 52249 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 52250 else 52251 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 52252 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 52253 FOUND_FREETYPE=no 52254 fi 52255 else 52256 if test "x$OPENJDK_TARGET_OS" = xwindows; then 52257 # On Windows, we will need both .lib and .dll file. 52258 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 52259 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 52260 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 52261 FOUND_FREETYPE=no 52262 fi 52263 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 52264 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 52265 # Found lib in isa dir, use that instead. 52266 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 52267 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 52268 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 52269 fi 52270 fi 52271 fi 52272 52273 if test "x$FOUND_FREETYPE" = xyes; then 52274 52275 # Only process if variable expands to non-empty 52276 52277 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 52278 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52279 52280 # Input might be given as Windows format, start by converting to 52281 # unix format. 52282 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 52283 new_path=`$CYGPATH -u "$path"` 52284 52285 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 52286 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 52287 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 52288 # "foo.exe" is OK but "foo" is an error. 52289 # 52290 # This test is therefore slightly more accurate than "test -f" to check for file precense. 52291 # It is also a way to make sure we got the proper file name for the real test later on. 52292 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 52293 if test "x$test_shortpath" = x; then 52294 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 52295 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 52296 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 52297 fi 52298 52299 # Call helper function which possibly converts this using DOS-style short mode. 52300 # If so, the updated path is stored in $new_path. 52301 52302 input_path="$new_path" 52303 # Check if we need to convert this using DOS-style short mode. If the path 52304 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52305 # take no chances and rewrite it. 52306 # Note: m4 eats our [], so we need to use [ and ] instead. 52307 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 52308 if test "x$has_forbidden_chars" != x; then 52309 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52310 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 52311 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 52312 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 52313 # Going to short mode and back again did indeed matter. Since short mode is 52314 # case insensitive, let's make it lowercase to improve readability. 52315 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52316 # Now convert it back to Unix-style (cygpath) 52317 input_path=`$CYGPATH -u "$shortmode_path"` 52318 new_path="$input_path" 52319 fi 52320 fi 52321 52322 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 52323 if test "x$test_cygdrive_prefix" = x; then 52324 # As a simple fix, exclude /usr/bin since it's not a real path. 52325 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 52326 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 52327 # a path prefixed by /cygdrive for fixpath to work. 52328 new_path="$CYGWIN_ROOT_PATH$input_path" 52329 fi 52330 fi 52331 52332 52333 if test "x$path" != "x$new_path"; then 52334 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 52335 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 52336 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 52337 fi 52338 52339 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52340 52341 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 52342 has_colon=`$ECHO $path | $GREP ^.:` 52343 new_path="$path" 52344 if test "x$has_colon" = x; then 52345 # Not in mixed or Windows style, start by that. 52346 new_path=`cmd //c echo $path` 52347 fi 52348 52349 52350 input_path="$new_path" 52351 # Check if we need to convert this using DOS-style short mode. If the path 52352 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52353 # take no chances and rewrite it. 52354 # Note: m4 eats our [], so we need to use [ and ] instead. 52355 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 52356 if test "x$has_forbidden_chars" != x; then 52357 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52358 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52359 fi 52360 52361 52362 windows_path="$new_path" 52363 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52364 unix_path=`$CYGPATH -u "$windows_path"` 52365 new_path="$unix_path" 52366 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52367 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 52368 new_path="$unix_path" 52369 fi 52370 52371 if test "x$path" != "x$new_path"; then 52372 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 52373 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 52374 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 52375 fi 52376 52377 # Save the first 10 bytes of this path to the storage, so fixpath can work. 52378 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 52379 52380 else 52381 # We're on a unix platform. Hooray! :) 52382 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 52383 has_space=`$ECHO "$path" | $GREP " "` 52384 if test "x$has_space" != x; then 52385 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 52386 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 52387 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 52388 fi 52389 52390 # Use eval to expand a potential ~ 52391 eval path="$path" 52392 if test ! -f "$path" && test ! -d "$path"; then 52393 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 52394 fi 52395 52396 if test -d "$path"; then 52397 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 52398 else 52399 dir="`$DIRNAME "$path"`" 52400 base="`$BASENAME "$path"`" 52401 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 52402 fi 52403 fi 52404 fi 52405 52406 52407 # Only process if variable expands to non-empty 52408 52409 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 52410 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52411 52412 # Input might be given as Windows format, start by converting to 52413 # unix format. 52414 path="$POTENTIAL_FREETYPE_LIB_PATH" 52415 new_path=`$CYGPATH -u "$path"` 52416 52417 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 52418 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 52419 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 52420 # "foo.exe" is OK but "foo" is an error. 52421 # 52422 # This test is therefore slightly more accurate than "test -f" to check for file precense. 52423 # It is also a way to make sure we got the proper file name for the real test later on. 52424 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 52425 if test "x$test_shortpath" = x; then 52426 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 52427 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 52428 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 52429 fi 52430 52431 # Call helper function which possibly converts this using DOS-style short mode. 52432 # If so, the updated path is stored in $new_path. 52433 52434 input_path="$new_path" 52435 # Check if we need to convert this using DOS-style short mode. If the path 52436 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52437 # take no chances and rewrite it. 52438 # Note: m4 eats our [], so we need to use [ and ] instead. 52439 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 52440 if test "x$has_forbidden_chars" != x; then 52441 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52442 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 52443 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 52444 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 52445 # Going to short mode and back again did indeed matter. Since short mode is 52446 # case insensitive, let's make it lowercase to improve readability. 52447 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52448 # Now convert it back to Unix-style (cygpath) 52449 input_path=`$CYGPATH -u "$shortmode_path"` 52450 new_path="$input_path" 52451 fi 52452 fi 52453 52454 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 52455 if test "x$test_cygdrive_prefix" = x; then 52456 # As a simple fix, exclude /usr/bin since it's not a real path. 52457 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 52458 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 52459 # a path prefixed by /cygdrive for fixpath to work. 52460 new_path="$CYGWIN_ROOT_PATH$input_path" 52461 fi 52462 fi 52463 52464 52465 if test "x$path" != "x$new_path"; then 52466 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 52467 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 52468 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 52469 fi 52470 52471 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52472 52473 path="$POTENTIAL_FREETYPE_LIB_PATH" 52474 has_colon=`$ECHO $path | $GREP ^.:` 52475 new_path="$path" 52476 if test "x$has_colon" = x; then 52477 # Not in mixed or Windows style, start by that. 52478 new_path=`cmd //c echo $path` 52479 fi 52480 52481 52482 input_path="$new_path" 52483 # Check if we need to convert this using DOS-style short mode. If the path 52484 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52485 # take no chances and rewrite it. 52486 # Note: m4 eats our [], so we need to use [ and ] instead. 52487 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 52488 if test "x$has_forbidden_chars" != x; then 52489 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52490 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52491 fi 52492 52493 52494 windows_path="$new_path" 52495 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52496 unix_path=`$CYGPATH -u "$windows_path"` 52497 new_path="$unix_path" 52498 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52499 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 52500 new_path="$unix_path" 52501 fi 52502 52503 if test "x$path" != "x$new_path"; then 52504 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 52505 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 52506 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 52507 fi 52508 52509 # Save the first 10 bytes of this path to the storage, so fixpath can work. 52510 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 52511 52512 else 52513 # We're on a unix platform. Hooray! :) 52514 path="$POTENTIAL_FREETYPE_LIB_PATH" 52515 has_space=`$ECHO "$path" | $GREP " "` 52516 if test "x$has_space" != x; then 52517 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 52518 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 52519 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 52520 fi 52521 52522 # Use eval to expand a potential ~ 52523 eval path="$path" 52524 if test ! -f "$path" && test ! -d "$path"; then 52525 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 52526 fi 52527 52528 if test -d "$path"; then 52529 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 52530 else 52531 dir="`$DIRNAME "$path"`" 52532 base="`$BASENAME "$path"`" 52533 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 52534 fi 52535 fi 52536 fi 52537 52538 52539 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 52540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 52541 $as_echo_n "checking for freetype includes... " >&6; } 52542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 52543 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 52544 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 52545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 52546 $as_echo_n "checking for freetype libraries... " >&6; } 52547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 52548 $as_echo "$FREETYPE_LIB_PATH" >&6; } 52549 fi 52550 52551 if test "x$FOUND_FREETYPE" != xyes; then 52552 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 52553 fi 52554 else 52555 # User specified only one of lib or include. This is an error. 52556 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 52557 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 52558 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 52559 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 52560 else 52561 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 52562 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 52563 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 52564 fi 52565 fi 52566 else 52567 # User did not specify settings, but we need freetype. Try to locate it. 52568 52569 if test "x$BUNDLE_FREETYPE" = x; then 52570 # If not specified, default is to bundle freetype only on windows 52571 if test "x$OPENJDK_TARGET_OS" = xwindows; then 52572 BUNDLE_FREETYPE=yes 52573 else 52574 BUNDLE_FREETYPE=no 52575 fi 52576 fi 52577 52578 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 52579 if test "x$SYSROOT" = x; then 52580 if test "x$FOUND_FREETYPE" != xyes; then 52581 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 52582 if test "x$PKG_CONFIG" != x; then 52583 52584 pkg_failed=no 52585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 52586 $as_echo_n "checking for FREETYPE... " >&6; } 52587 52588 if test -n "$FREETYPE_CFLAGS"; then 52589 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 52590 elif test -n "$PKG_CONFIG"; then 52591 if test -n "$PKG_CONFIG" && \ 52592 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 52593 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 52594 ac_status=$? 52595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 52596 test $ac_status = 0; }; then 52597 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 52598 else 52599 pkg_failed=yes 52600 fi 52601 else 52602 pkg_failed=untried 52603 fi 52604 if test -n "$FREETYPE_LIBS"; then 52605 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 52606 elif test -n "$PKG_CONFIG"; then 52607 if test -n "$PKG_CONFIG" && \ 52608 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 52609 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 52610 ac_status=$? 52611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 52612 test $ac_status = 0; }; then 52613 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 52614 else 52615 pkg_failed=yes 52616 fi 52617 else 52618 pkg_failed=untried 52619 fi 52620 52621 52622 52623 if test $pkg_failed = yes; then 52624 52625 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 52626 _pkg_short_errors_supported=yes 52627 else 52628 _pkg_short_errors_supported=no 52629 fi 52630 if test $_pkg_short_errors_supported = yes; then 52631 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 52632 else 52633 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 52634 fi 52635 # Put the nasty error message in config.log where it belongs 52636 echo "$FREETYPE_PKG_ERRORS" >&5 52637 52638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52639 $as_echo "no" >&6; } 52640 FOUND_FREETYPE=no 52641 elif test $pkg_failed = untried; then 52642 FOUND_FREETYPE=no 52643 else 52644 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 52645 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 52646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52647 $as_echo "yes" >&6; } 52648 FOUND_FREETYPE=yes 52649 fi 52650 if test "x$FOUND_FREETYPE" = xyes; then 52651 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 52652 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 52653 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 52654 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 52655 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 52656 fi 52657 # PKG_CHECK_MODULES will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 52658 if test "x$BUNDLE_FREETYPE" = xyes; then 52659 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 52660 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 52661 FOUND_FREETYPE=no 52662 else 52663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 52664 $as_echo_n "checking for freetype... " >&6; } 52665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 52666 $as_echo "yes (using pkg-config)" >&6; } 52667 fi 52668 fi 52669 fi 52670 fi 52671 fi 52672 52673 if test "x$FOUND_FREETYPE" != xyes; then 52674 # Check in well-known locations 52675 if test "x$OPENJDK_TARGET_OS" = xwindows; then 52676 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 52677 52678 windows_path="$FREETYPE_BASE_DIR" 52679 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52680 unix_path=`$CYGPATH -u "$windows_path"` 52681 FREETYPE_BASE_DIR="$unix_path" 52682 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52683 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 52684 FREETYPE_BASE_DIR="$unix_path" 52685 fi 52686 52687 52688 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 52689 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 52690 METHOD="well-known location" 52691 52692 # Let's start with an optimistic view of the world :-) 52693 FOUND_FREETYPE=yes 52694 52695 # First look for the canonical freetype main include file ft2build.h. 52696 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 52697 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 52698 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 52699 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 52700 # Fail. 52701 FOUND_FREETYPE=no 52702 fi 52703 fi 52704 52705 if test "x$FOUND_FREETYPE" = xyes; then 52706 # Include file found, let's continue the sanity check. 52707 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 52708 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 52709 52710 # Reset to default value 52711 FREETYPE_BASE_NAME=freetype 52712 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 52713 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 52714 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 52715 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 52716 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 52717 # for the .6 version explicitly. 52718 FREETYPE_BASE_NAME=freetype.6 52719 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 52720 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 52721 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 52722 else 52723 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 52724 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 52725 FOUND_FREETYPE=no 52726 fi 52727 else 52728 if test "x$OPENJDK_TARGET_OS" = xwindows; then 52729 # On Windows, we will need both .lib and .dll file. 52730 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 52731 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 52732 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 52733 FOUND_FREETYPE=no 52734 fi 52735 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 52736 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 52737 # Found lib in isa dir, use that instead. 52738 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 52739 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 52740 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 52741 fi 52742 fi 52743 fi 52744 52745 if test "x$FOUND_FREETYPE" = xyes; then 52746 52747 # Only process if variable expands to non-empty 52748 52749 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 52750 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52751 52752 # Input might be given as Windows format, start by converting to 52753 # unix format. 52754 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 52755 new_path=`$CYGPATH -u "$path"` 52756 52757 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 52758 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 52759 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 52760 # "foo.exe" is OK but "foo" is an error. 52761 # 52762 # This test is therefore slightly more accurate than "test -f" to check for file precense. 52763 # It is also a way to make sure we got the proper file name for the real test later on. 52764 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 52765 if test "x$test_shortpath" = x; then 52766 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 52767 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 52768 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 52769 fi 52770 52771 # Call helper function which possibly converts this using DOS-style short mode. 52772 # If so, the updated path is stored in $new_path. 52773 52774 input_path="$new_path" 52775 # Check if we need to convert this using DOS-style short mode. If the path 52776 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52777 # take no chances and rewrite it. 52778 # Note: m4 eats our [], so we need to use [ and ] instead. 52779 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 52780 if test "x$has_forbidden_chars" != x; then 52781 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52782 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 52783 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 52784 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 52785 # Going to short mode and back again did indeed matter. Since short mode is 52786 # case insensitive, let's make it lowercase to improve readability. 52787 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52788 # Now convert it back to Unix-style (cygpath) 52789 input_path=`$CYGPATH -u "$shortmode_path"` 52790 new_path="$input_path" 52791 fi 52792 fi 52793 52794 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 52795 if test "x$test_cygdrive_prefix" = x; then 52796 # As a simple fix, exclude /usr/bin since it's not a real path. 52797 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 52798 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 52799 # a path prefixed by /cygdrive for fixpath to work. 52800 new_path="$CYGWIN_ROOT_PATH$input_path" 52801 fi 52802 fi 52803 52804 52805 if test "x$path" != "x$new_path"; then 52806 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 52807 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 52808 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 52809 fi 52810 52811 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52812 52813 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 52814 has_colon=`$ECHO $path | $GREP ^.:` 52815 new_path="$path" 52816 if test "x$has_colon" = x; then 52817 # Not in mixed or Windows style, start by that. 52818 new_path=`cmd //c echo $path` 52819 fi 52820 52821 52822 input_path="$new_path" 52823 # Check if we need to convert this using DOS-style short mode. If the path 52824 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52825 # take no chances and rewrite it. 52826 # Note: m4 eats our [], so we need to use [ and ] instead. 52827 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 52828 if test "x$has_forbidden_chars" != x; then 52829 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52830 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52831 fi 52832 52833 52834 windows_path="$new_path" 52835 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52836 unix_path=`$CYGPATH -u "$windows_path"` 52837 new_path="$unix_path" 52838 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52839 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 52840 new_path="$unix_path" 52841 fi 52842 52843 if test "x$path" != "x$new_path"; then 52844 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 52845 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 52846 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 52847 fi 52848 52849 # Save the first 10 bytes of this path to the storage, so fixpath can work. 52850 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 52851 52852 else 52853 # We're on a unix platform. Hooray! :) 52854 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 52855 has_space=`$ECHO "$path" | $GREP " "` 52856 if test "x$has_space" != x; then 52857 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 52858 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 52859 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 52860 fi 52861 52862 # Use eval to expand a potential ~ 52863 eval path="$path" 52864 if test ! -f "$path" && test ! -d "$path"; then 52865 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 52866 fi 52867 52868 if test -d "$path"; then 52869 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 52870 else 52871 dir="`$DIRNAME "$path"`" 52872 base="`$BASENAME "$path"`" 52873 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 52874 fi 52875 fi 52876 fi 52877 52878 52879 # Only process if variable expands to non-empty 52880 52881 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 52882 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52883 52884 # Input might be given as Windows format, start by converting to 52885 # unix format. 52886 path="$POTENTIAL_FREETYPE_LIB_PATH" 52887 new_path=`$CYGPATH -u "$path"` 52888 52889 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 52890 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 52891 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 52892 # "foo.exe" is OK but "foo" is an error. 52893 # 52894 # This test is therefore slightly more accurate than "test -f" to check for file precense. 52895 # It is also a way to make sure we got the proper file name for the real test later on. 52896 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 52897 if test "x$test_shortpath" = x; then 52898 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 52899 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 52900 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 52901 fi 52902 52903 # Call helper function which possibly converts this using DOS-style short mode. 52904 # If so, the updated path is stored in $new_path. 52905 52906 input_path="$new_path" 52907 # Check if we need to convert this using DOS-style short mode. If the path 52908 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52909 # take no chances and rewrite it. 52910 # Note: m4 eats our [], so we need to use [ and ] instead. 52911 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 52912 if test "x$has_forbidden_chars" != x; then 52913 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52914 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 52915 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 52916 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 52917 # Going to short mode and back again did indeed matter. Since short mode is 52918 # case insensitive, let's make it lowercase to improve readability. 52919 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52920 # Now convert it back to Unix-style (cygpath) 52921 input_path=`$CYGPATH -u "$shortmode_path"` 52922 new_path="$input_path" 52923 fi 52924 fi 52925 52926 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 52927 if test "x$test_cygdrive_prefix" = x; then 52928 # As a simple fix, exclude /usr/bin since it's not a real path. 52929 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 52930 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 52931 # a path prefixed by /cygdrive for fixpath to work. 52932 new_path="$CYGWIN_ROOT_PATH$input_path" 52933 fi 52934 fi 52935 52936 52937 if test "x$path" != "x$new_path"; then 52938 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 52939 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 52940 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 52941 fi 52942 52943 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52944 52945 path="$POTENTIAL_FREETYPE_LIB_PATH" 52946 has_colon=`$ECHO $path | $GREP ^.:` 52947 new_path="$path" 52948 if test "x$has_colon" = x; then 52949 # Not in mixed or Windows style, start by that. 52950 new_path=`cmd //c echo $path` 52951 fi 52952 52953 52954 input_path="$new_path" 52955 # Check if we need to convert this using DOS-style short mode. If the path 52956 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52957 # take no chances and rewrite it. 52958 # Note: m4 eats our [], so we need to use [ and ] instead. 52959 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 52960 if test "x$has_forbidden_chars" != x; then 52961 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52962 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52963 fi 52964 52965 52966 windows_path="$new_path" 52967 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52968 unix_path=`$CYGPATH -u "$windows_path"` 52969 new_path="$unix_path" 52970 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52971 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 52972 new_path="$unix_path" 52973 fi 52974 52975 if test "x$path" != "x$new_path"; then 52976 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 52977 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 52978 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 52979 fi 52980 52981 # Save the first 10 bytes of this path to the storage, so fixpath can work. 52982 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 52983 52984 else 52985 # We're on a unix platform. Hooray! :) 52986 path="$POTENTIAL_FREETYPE_LIB_PATH" 52987 has_space=`$ECHO "$path" | $GREP " "` 52988 if test "x$has_space" != x; then 52989 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 52990 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 52991 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 52992 fi 52993 52994 # Use eval to expand a potential ~ 52995 eval path="$path" 52996 if test ! -f "$path" && test ! -d "$path"; then 52997 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 52998 fi 52999 53000 if test -d "$path"; then 53001 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 53002 else 53003 dir="`$DIRNAME "$path"`" 53004 base="`$BASENAME "$path"`" 53005 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 53006 fi 53007 fi 53008 fi 53009 53010 53011 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 53012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 53013 $as_echo_n "checking for freetype includes... " >&6; } 53014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 53015 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 53016 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 53017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 53018 $as_echo_n "checking for freetype libraries... " >&6; } 53019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 53020 $as_echo "$FREETYPE_LIB_PATH" >&6; } 53021 fi 53022 53023 if test "x$FOUND_FREETYPE" != xyes; then 53024 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 53025 53026 windows_path="$FREETYPE_BASE_DIR" 53027 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53028 unix_path=`$CYGPATH -u "$windows_path"` 53029 FREETYPE_BASE_DIR="$unix_path" 53030 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53031 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53032 FREETYPE_BASE_DIR="$unix_path" 53033 fi 53034 53035 53036 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 53037 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 53038 METHOD="well-known location" 53039 53040 # Let's start with an optimistic view of the world :-) 53041 FOUND_FREETYPE=yes 53042 53043 # First look for the canonical freetype main include file ft2build.h. 53044 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 53045 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 53046 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 53047 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 53048 # Fail. 53049 FOUND_FREETYPE=no 53050 fi 53051 fi 53052 53053 if test "x$FOUND_FREETYPE" = xyes; then 53054 # Include file found, let's continue the sanity check. 53055 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 53056 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 53057 53058 # Reset to default value 53059 FREETYPE_BASE_NAME=freetype 53060 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 53061 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 53062 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 53063 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 53064 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 53065 # for the .6 version explicitly. 53066 FREETYPE_BASE_NAME=freetype.6 53067 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 53068 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 53069 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 53070 else 53071 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 53072 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 53073 FOUND_FREETYPE=no 53074 fi 53075 else 53076 if test "x$OPENJDK_TARGET_OS" = xwindows; then 53077 # On Windows, we will need both .lib and .dll file. 53078 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 53079 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 53080 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 53081 FOUND_FREETYPE=no 53082 fi 53083 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 53084 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 53085 # Found lib in isa dir, use that instead. 53086 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 53087 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 53088 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 53089 fi 53090 fi 53091 fi 53092 53093 if test "x$FOUND_FREETYPE" = xyes; then 53094 53095 # Only process if variable expands to non-empty 53096 53097 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 53098 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53099 53100 # Input might be given as Windows format, start by converting to 53101 # unix format. 53102 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 53103 new_path=`$CYGPATH -u "$path"` 53104 53105 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53106 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53107 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53108 # "foo.exe" is OK but "foo" is an error. 53109 # 53110 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53111 # It is also a way to make sure we got the proper file name for the real test later on. 53112 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53113 if test "x$test_shortpath" = x; then 53114 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 53115 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 53116 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 53117 fi 53118 53119 # Call helper function which possibly converts this using DOS-style short mode. 53120 # If so, the updated path is stored in $new_path. 53121 53122 input_path="$new_path" 53123 # Check if we need to convert this using DOS-style short mode. If the path 53124 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53125 # take no chances and rewrite it. 53126 # Note: m4 eats our [], so we need to use [ and ] instead. 53127 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53128 if test "x$has_forbidden_chars" != x; then 53129 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53130 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53131 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53132 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53133 # Going to short mode and back again did indeed matter. Since short mode is 53134 # case insensitive, let's make it lowercase to improve readability. 53135 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53136 # Now convert it back to Unix-style (cygpath) 53137 input_path=`$CYGPATH -u "$shortmode_path"` 53138 new_path="$input_path" 53139 fi 53140 fi 53141 53142 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53143 if test "x$test_cygdrive_prefix" = x; then 53144 # As a simple fix, exclude /usr/bin since it's not a real path. 53145 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53146 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53147 # a path prefixed by /cygdrive for fixpath to work. 53148 new_path="$CYGWIN_ROOT_PATH$input_path" 53149 fi 53150 fi 53151 53152 53153 if test "x$path" != "x$new_path"; then 53154 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 53155 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 53156 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 53157 fi 53158 53159 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53160 53161 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 53162 has_colon=`$ECHO $path | $GREP ^.:` 53163 new_path="$path" 53164 if test "x$has_colon" = x; then 53165 # Not in mixed or Windows style, start by that. 53166 new_path=`cmd //c echo $path` 53167 fi 53168 53169 53170 input_path="$new_path" 53171 # Check if we need to convert this using DOS-style short mode. If the path 53172 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53173 # take no chances and rewrite it. 53174 # Note: m4 eats our [], so we need to use [ and ] instead. 53175 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53176 if test "x$has_forbidden_chars" != x; then 53177 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53178 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53179 fi 53180 53181 53182 windows_path="$new_path" 53183 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53184 unix_path=`$CYGPATH -u "$windows_path"` 53185 new_path="$unix_path" 53186 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53187 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53188 new_path="$unix_path" 53189 fi 53190 53191 if test "x$path" != "x$new_path"; then 53192 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 53193 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 53194 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 53195 fi 53196 53197 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53198 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53199 53200 else 53201 # We're on a unix platform. Hooray! :) 53202 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 53203 has_space=`$ECHO "$path" | $GREP " "` 53204 if test "x$has_space" != x; then 53205 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 53206 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 53207 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53208 fi 53209 53210 # Use eval to expand a potential ~ 53211 eval path="$path" 53212 if test ! -f "$path" && test ! -d "$path"; then 53213 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 53214 fi 53215 53216 if test -d "$path"; then 53217 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 53218 else 53219 dir="`$DIRNAME "$path"`" 53220 base="`$BASENAME "$path"`" 53221 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 53222 fi 53223 fi 53224 fi 53225 53226 53227 # Only process if variable expands to non-empty 53228 53229 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 53230 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53231 53232 # Input might be given as Windows format, start by converting to 53233 # unix format. 53234 path="$POTENTIAL_FREETYPE_LIB_PATH" 53235 new_path=`$CYGPATH -u "$path"` 53236 53237 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53238 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53239 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53240 # "foo.exe" is OK but "foo" is an error. 53241 # 53242 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53243 # It is also a way to make sure we got the proper file name for the real test later on. 53244 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53245 if test "x$test_shortpath" = x; then 53246 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 53247 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 53248 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 53249 fi 53250 53251 # Call helper function which possibly converts this using DOS-style short mode. 53252 # If so, the updated path is stored in $new_path. 53253 53254 input_path="$new_path" 53255 # Check if we need to convert this using DOS-style short mode. If the path 53256 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53257 # take no chances and rewrite it. 53258 # Note: m4 eats our [], so we need to use [ and ] instead. 53259 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53260 if test "x$has_forbidden_chars" != x; then 53261 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53262 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53263 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53264 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53265 # Going to short mode and back again did indeed matter. Since short mode is 53266 # case insensitive, let's make it lowercase to improve readability. 53267 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53268 # Now convert it back to Unix-style (cygpath) 53269 input_path=`$CYGPATH -u "$shortmode_path"` 53270 new_path="$input_path" 53271 fi 53272 fi 53273 53274 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53275 if test "x$test_cygdrive_prefix" = x; then 53276 # As a simple fix, exclude /usr/bin since it's not a real path. 53277 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53278 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53279 # a path prefixed by /cygdrive for fixpath to work. 53280 new_path="$CYGWIN_ROOT_PATH$input_path" 53281 fi 53282 fi 53283 53284 53285 if test "x$path" != "x$new_path"; then 53286 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 53287 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 53288 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 53289 fi 53290 53291 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53292 53293 path="$POTENTIAL_FREETYPE_LIB_PATH" 53294 has_colon=`$ECHO $path | $GREP ^.:` 53295 new_path="$path" 53296 if test "x$has_colon" = x; then 53297 # Not in mixed or Windows style, start by that. 53298 new_path=`cmd //c echo $path` 53299 fi 53300 53301 53302 input_path="$new_path" 53303 # Check if we need to convert this using DOS-style short mode. If the path 53304 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53305 # take no chances and rewrite it. 53306 # Note: m4 eats our [], so we need to use [ and ] instead. 53307 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53308 if test "x$has_forbidden_chars" != x; then 53309 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53310 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53311 fi 53312 53313 53314 windows_path="$new_path" 53315 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53316 unix_path=`$CYGPATH -u "$windows_path"` 53317 new_path="$unix_path" 53318 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53319 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53320 new_path="$unix_path" 53321 fi 53322 53323 if test "x$path" != "x$new_path"; then 53324 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 53325 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 53326 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 53327 fi 53328 53329 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53330 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53331 53332 else 53333 # We're on a unix platform. Hooray! :) 53334 path="$POTENTIAL_FREETYPE_LIB_PATH" 53335 has_space=`$ECHO "$path" | $GREP " "` 53336 if test "x$has_space" != x; then 53337 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 53338 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 53339 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53340 fi 53341 53342 # Use eval to expand a potential ~ 53343 eval path="$path" 53344 if test ! -f "$path" && test ! -d "$path"; then 53345 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 53346 fi 53347 53348 if test -d "$path"; then 53349 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 53350 else 53351 dir="`$DIRNAME "$path"`" 53352 base="`$BASENAME "$path"`" 53353 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 53354 fi 53355 fi 53356 fi 53357 53358 53359 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 53360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 53361 $as_echo_n "checking for freetype includes... " >&6; } 53362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 53363 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 53364 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 53365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 53366 $as_echo_n "checking for freetype libraries... " >&6; } 53367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 53368 $as_echo "$FREETYPE_LIB_PATH" >&6; } 53369 fi 53370 53371 fi 53372 if test "x$FOUND_FREETYPE" != xyes; then 53373 FREETYPE_BASE_DIR="$HOME/freetype" 53374 53375 windows_path="$FREETYPE_BASE_DIR" 53376 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53377 unix_path=`$CYGPATH -u "$windows_path"` 53378 FREETYPE_BASE_DIR="$unix_path" 53379 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53380 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53381 FREETYPE_BASE_DIR="$unix_path" 53382 fi 53383 53384 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 53385 53386 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 53387 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 53388 METHOD="well-known location" 53389 53390 # Let's start with an optimistic view of the world :-) 53391 FOUND_FREETYPE=yes 53392 53393 # First look for the canonical freetype main include file ft2build.h. 53394 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 53395 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 53396 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 53397 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 53398 # Fail. 53399 FOUND_FREETYPE=no 53400 fi 53401 fi 53402 53403 if test "x$FOUND_FREETYPE" = xyes; then 53404 # Include file found, let's continue the sanity check. 53405 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 53406 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 53407 53408 # Reset to default value 53409 FREETYPE_BASE_NAME=freetype 53410 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 53411 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 53412 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 53413 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 53414 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 53415 # for the .6 version explicitly. 53416 FREETYPE_BASE_NAME=freetype.6 53417 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 53418 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 53419 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 53420 else 53421 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 53422 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 53423 FOUND_FREETYPE=no 53424 fi 53425 else 53426 if test "x$OPENJDK_TARGET_OS" = xwindows; then 53427 # On Windows, we will need both .lib and .dll file. 53428 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 53429 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 53430 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 53431 FOUND_FREETYPE=no 53432 fi 53433 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 53434 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 53435 # Found lib in isa dir, use that instead. 53436 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 53437 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 53438 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 53439 fi 53440 fi 53441 fi 53442 53443 if test "x$FOUND_FREETYPE" = xyes; then 53444 53445 # Only process if variable expands to non-empty 53446 53447 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 53448 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53449 53450 # Input might be given as Windows format, start by converting to 53451 # unix format. 53452 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 53453 new_path=`$CYGPATH -u "$path"` 53454 53455 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53456 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53457 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53458 # "foo.exe" is OK but "foo" is an error. 53459 # 53460 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53461 # It is also a way to make sure we got the proper file name for the real test later on. 53462 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53463 if test "x$test_shortpath" = x; then 53464 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 53465 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 53466 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 53467 fi 53468 53469 # Call helper function which possibly converts this using DOS-style short mode. 53470 # If so, the updated path is stored in $new_path. 53471 53472 input_path="$new_path" 53473 # Check if we need to convert this using DOS-style short mode. If the path 53474 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53475 # take no chances and rewrite it. 53476 # Note: m4 eats our [], so we need to use [ and ] instead. 53477 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53478 if test "x$has_forbidden_chars" != x; then 53479 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53480 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53481 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53482 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53483 # Going to short mode and back again did indeed matter. Since short mode is 53484 # case insensitive, let's make it lowercase to improve readability. 53485 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53486 # Now convert it back to Unix-style (cygpath) 53487 input_path=`$CYGPATH -u "$shortmode_path"` 53488 new_path="$input_path" 53489 fi 53490 fi 53491 53492 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53493 if test "x$test_cygdrive_prefix" = x; then 53494 # As a simple fix, exclude /usr/bin since it's not a real path. 53495 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53496 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53497 # a path prefixed by /cygdrive for fixpath to work. 53498 new_path="$CYGWIN_ROOT_PATH$input_path" 53499 fi 53500 fi 53501 53502 53503 if test "x$path" != "x$new_path"; then 53504 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 53505 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 53506 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 53507 fi 53508 53509 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53510 53511 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 53512 has_colon=`$ECHO $path | $GREP ^.:` 53513 new_path="$path" 53514 if test "x$has_colon" = x; then 53515 # Not in mixed or Windows style, start by that. 53516 new_path=`cmd //c echo $path` 53517 fi 53518 53519 53520 input_path="$new_path" 53521 # Check if we need to convert this using DOS-style short mode. If the path 53522 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53523 # take no chances and rewrite it. 53524 # Note: m4 eats our [], so we need to use [ and ] instead. 53525 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53526 if test "x$has_forbidden_chars" != x; then 53527 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53528 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53529 fi 53530 53531 53532 windows_path="$new_path" 53533 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53534 unix_path=`$CYGPATH -u "$windows_path"` 53535 new_path="$unix_path" 53536 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53537 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53538 new_path="$unix_path" 53539 fi 53540 53541 if test "x$path" != "x$new_path"; then 53542 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 53543 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 53544 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 53545 fi 53546 53547 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53548 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53549 53550 else 53551 # We're on a unix platform. Hooray! :) 53552 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 53553 has_space=`$ECHO "$path" | $GREP " "` 53554 if test "x$has_space" != x; then 53555 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 53556 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 53557 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53558 fi 53559 53560 # Use eval to expand a potential ~ 53561 eval path="$path" 53562 if test ! -f "$path" && test ! -d "$path"; then 53563 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 53564 fi 53565 53566 if test -d "$path"; then 53567 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 53568 else 53569 dir="`$DIRNAME "$path"`" 53570 base="`$BASENAME "$path"`" 53571 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 53572 fi 53573 fi 53574 fi 53575 53576 53577 # Only process if variable expands to non-empty 53578 53579 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 53580 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53581 53582 # Input might be given as Windows format, start by converting to 53583 # unix format. 53584 path="$POTENTIAL_FREETYPE_LIB_PATH" 53585 new_path=`$CYGPATH -u "$path"` 53586 53587 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53588 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53589 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53590 # "foo.exe" is OK but "foo" is an error. 53591 # 53592 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53593 # It is also a way to make sure we got the proper file name for the real test later on. 53594 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53595 if test "x$test_shortpath" = x; then 53596 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 53597 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 53598 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 53599 fi 53600 53601 # Call helper function which possibly converts this using DOS-style short mode. 53602 # If so, the updated path is stored in $new_path. 53603 53604 input_path="$new_path" 53605 # Check if we need to convert this using DOS-style short mode. If the path 53606 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53607 # take no chances and rewrite it. 53608 # Note: m4 eats our [], so we need to use [ and ] instead. 53609 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53610 if test "x$has_forbidden_chars" != x; then 53611 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53612 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53613 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53614 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53615 # Going to short mode and back again did indeed matter. Since short mode is 53616 # case insensitive, let's make it lowercase to improve readability. 53617 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53618 # Now convert it back to Unix-style (cygpath) 53619 input_path=`$CYGPATH -u "$shortmode_path"` 53620 new_path="$input_path" 53621 fi 53622 fi 53623 53624 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53625 if test "x$test_cygdrive_prefix" = x; then 53626 # As a simple fix, exclude /usr/bin since it's not a real path. 53627 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53628 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53629 # a path prefixed by /cygdrive for fixpath to work. 53630 new_path="$CYGWIN_ROOT_PATH$input_path" 53631 fi 53632 fi 53633 53634 53635 if test "x$path" != "x$new_path"; then 53636 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 53637 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 53638 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 53639 fi 53640 53641 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53642 53643 path="$POTENTIAL_FREETYPE_LIB_PATH" 53644 has_colon=`$ECHO $path | $GREP ^.:` 53645 new_path="$path" 53646 if test "x$has_colon" = x; then 53647 # Not in mixed or Windows style, start by that. 53648 new_path=`cmd //c echo $path` 53649 fi 53650 53651 53652 input_path="$new_path" 53653 # Check if we need to convert this using DOS-style short mode. If the path 53654 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53655 # take no chances and rewrite it. 53656 # Note: m4 eats our [], so we need to use [ and ] instead. 53657 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53658 if test "x$has_forbidden_chars" != x; then 53659 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53660 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53661 fi 53662 53663 53664 windows_path="$new_path" 53665 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53666 unix_path=`$CYGPATH -u "$windows_path"` 53667 new_path="$unix_path" 53668 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53669 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53670 new_path="$unix_path" 53671 fi 53672 53673 if test "x$path" != "x$new_path"; then 53674 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 53675 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 53676 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 53677 fi 53678 53679 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53680 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53681 53682 else 53683 # We're on a unix platform. Hooray! :) 53684 path="$POTENTIAL_FREETYPE_LIB_PATH" 53685 has_space=`$ECHO "$path" | $GREP " "` 53686 if test "x$has_space" != x; then 53687 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 53688 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 53689 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53690 fi 53691 53692 # Use eval to expand a potential ~ 53693 eval path="$path" 53694 if test ! -f "$path" && test ! -d "$path"; then 53695 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 53696 fi 53697 53698 if test -d "$path"; then 53699 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 53700 else 53701 dir="`$DIRNAME "$path"`" 53702 base="`$BASENAME "$path"`" 53703 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 53704 fi 53705 fi 53706 fi 53707 53708 53709 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 53710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 53711 $as_echo_n "checking for freetype includes... " >&6; } 53712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 53713 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 53714 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 53715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 53716 $as_echo_n "checking for freetype libraries... " >&6; } 53717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 53718 $as_echo "$FREETYPE_LIB_PATH" >&6; } 53719 fi 53720 53721 else 53722 53723 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 53724 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 53725 METHOD="well-known location" 53726 53727 # Let's start with an optimistic view of the world :-) 53728 FOUND_FREETYPE=yes 53729 53730 # First look for the canonical freetype main include file ft2build.h. 53731 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 53732 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 53733 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 53734 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 53735 # Fail. 53736 FOUND_FREETYPE=no 53737 fi 53738 fi 53739 53740 if test "x$FOUND_FREETYPE" = xyes; then 53741 # Include file found, let's continue the sanity check. 53742 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 53743 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 53744 53745 # Reset to default value 53746 FREETYPE_BASE_NAME=freetype 53747 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 53748 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 53749 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 53750 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 53751 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 53752 # for the .6 version explicitly. 53753 FREETYPE_BASE_NAME=freetype.6 53754 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 53755 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 53756 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 53757 else 53758 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 53759 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 53760 FOUND_FREETYPE=no 53761 fi 53762 else 53763 if test "x$OPENJDK_TARGET_OS" = xwindows; then 53764 # On Windows, we will need both .lib and .dll file. 53765 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 53766 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 53767 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 53768 FOUND_FREETYPE=no 53769 fi 53770 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 53771 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 53772 # Found lib in isa dir, use that instead. 53773 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 53774 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 53775 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 53776 fi 53777 fi 53778 fi 53779 53780 if test "x$FOUND_FREETYPE" = xyes; then 53781 53782 # Only process if variable expands to non-empty 53783 53784 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 53785 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53786 53787 # Input might be given as Windows format, start by converting to 53788 # unix format. 53789 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 53790 new_path=`$CYGPATH -u "$path"` 53791 53792 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53793 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53794 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53795 # "foo.exe" is OK but "foo" is an error. 53796 # 53797 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53798 # It is also a way to make sure we got the proper file name for the real test later on. 53799 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53800 if test "x$test_shortpath" = x; then 53801 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 53802 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 53803 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 53804 fi 53805 53806 # Call helper function which possibly converts this using DOS-style short mode. 53807 # If so, the updated path is stored in $new_path. 53808 53809 input_path="$new_path" 53810 # Check if we need to convert this using DOS-style short mode. If the path 53811 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53812 # take no chances and rewrite it. 53813 # Note: m4 eats our [], so we need to use [ and ] instead. 53814 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53815 if test "x$has_forbidden_chars" != x; then 53816 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53817 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53818 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53819 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53820 # Going to short mode and back again did indeed matter. Since short mode is 53821 # case insensitive, let's make it lowercase to improve readability. 53822 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53823 # Now convert it back to Unix-style (cygpath) 53824 input_path=`$CYGPATH -u "$shortmode_path"` 53825 new_path="$input_path" 53826 fi 53827 fi 53828 53829 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53830 if test "x$test_cygdrive_prefix" = x; then 53831 # As a simple fix, exclude /usr/bin since it's not a real path. 53832 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53833 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53834 # a path prefixed by /cygdrive for fixpath to work. 53835 new_path="$CYGWIN_ROOT_PATH$input_path" 53836 fi 53837 fi 53838 53839 53840 if test "x$path" != "x$new_path"; then 53841 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 53842 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 53843 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 53844 fi 53845 53846 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53847 53848 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 53849 has_colon=`$ECHO $path | $GREP ^.:` 53850 new_path="$path" 53851 if test "x$has_colon" = x; then 53852 # Not in mixed or Windows style, start by that. 53853 new_path=`cmd //c echo $path` 53854 fi 53855 53856 53857 input_path="$new_path" 53858 # Check if we need to convert this using DOS-style short mode. If the path 53859 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53860 # take no chances and rewrite it. 53861 # Note: m4 eats our [], so we need to use [ and ] instead. 53862 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53863 if test "x$has_forbidden_chars" != x; then 53864 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53865 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53866 fi 53867 53868 53869 windows_path="$new_path" 53870 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53871 unix_path=`$CYGPATH -u "$windows_path"` 53872 new_path="$unix_path" 53873 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53874 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53875 new_path="$unix_path" 53876 fi 53877 53878 if test "x$path" != "x$new_path"; then 53879 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 53880 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 53881 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 53882 fi 53883 53884 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53885 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53886 53887 else 53888 # We're on a unix platform. Hooray! :) 53889 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 53890 has_space=`$ECHO "$path" | $GREP " "` 53891 if test "x$has_space" != x; then 53892 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 53893 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 53894 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53895 fi 53896 53897 # Use eval to expand a potential ~ 53898 eval path="$path" 53899 if test ! -f "$path" && test ! -d "$path"; then 53900 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 53901 fi 53902 53903 if test -d "$path"; then 53904 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 53905 else 53906 dir="`$DIRNAME "$path"`" 53907 base="`$BASENAME "$path"`" 53908 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 53909 fi 53910 fi 53911 fi 53912 53913 53914 # Only process if variable expands to non-empty 53915 53916 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 53917 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53918 53919 # Input might be given as Windows format, start by converting to 53920 # unix format. 53921 path="$POTENTIAL_FREETYPE_LIB_PATH" 53922 new_path=`$CYGPATH -u "$path"` 53923 53924 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53925 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53926 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53927 # "foo.exe" is OK but "foo" is an error. 53928 # 53929 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53930 # It is also a way to make sure we got the proper file name for the real test later on. 53931 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53932 if test "x$test_shortpath" = x; then 53933 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 53934 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 53935 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 53936 fi 53937 53938 # Call helper function which possibly converts this using DOS-style short mode. 53939 # If so, the updated path is stored in $new_path. 53940 53941 input_path="$new_path" 53942 # Check if we need to convert this using DOS-style short mode. If the path 53943 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53944 # take no chances and rewrite it. 53945 # Note: m4 eats our [], so we need to use [ and ] instead. 53946 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53947 if test "x$has_forbidden_chars" != x; then 53948 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53949 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53950 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53951 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53952 # Going to short mode and back again did indeed matter. Since short mode is 53953 # case insensitive, let's make it lowercase to improve readability. 53954 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53955 # Now convert it back to Unix-style (cygpath) 53956 input_path=`$CYGPATH -u "$shortmode_path"` 53957 new_path="$input_path" 53958 fi 53959 fi 53960 53961 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53962 if test "x$test_cygdrive_prefix" = x; then 53963 # As a simple fix, exclude /usr/bin since it's not a real path. 53964 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53965 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53966 # a path prefixed by /cygdrive for fixpath to work. 53967 new_path="$CYGWIN_ROOT_PATH$input_path" 53968 fi 53969 fi 53970 53971 53972 if test "x$path" != "x$new_path"; then 53973 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 53974 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 53975 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 53976 fi 53977 53978 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53979 53980 path="$POTENTIAL_FREETYPE_LIB_PATH" 53981 has_colon=`$ECHO $path | $GREP ^.:` 53982 new_path="$path" 53983 if test "x$has_colon" = x; then 53984 # Not in mixed or Windows style, start by that. 53985 new_path=`cmd //c echo $path` 53986 fi 53987 53988 53989 input_path="$new_path" 53990 # Check if we need to convert this using DOS-style short mode. If the path 53991 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53992 # take no chances and rewrite it. 53993 # Note: m4 eats our [], so we need to use [ and ] instead. 53994 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53995 if test "x$has_forbidden_chars" != x; then 53996 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53997 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53998 fi 53999 54000 54001 windows_path="$new_path" 54002 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54003 unix_path=`$CYGPATH -u "$windows_path"` 54004 new_path="$unix_path" 54005 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54006 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54007 new_path="$unix_path" 54008 fi 54009 54010 if test "x$path" != "x$new_path"; then 54011 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 54012 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 54013 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 54014 fi 54015 54016 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54017 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54018 54019 else 54020 # We're on a unix platform. Hooray! :) 54021 path="$POTENTIAL_FREETYPE_LIB_PATH" 54022 has_space=`$ECHO "$path" | $GREP " "` 54023 if test "x$has_space" != x; then 54024 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 54025 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 54026 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54027 fi 54028 54029 # Use eval to expand a potential ~ 54030 eval path="$path" 54031 if test ! -f "$path" && test ! -d "$path"; then 54032 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 54033 fi 54034 54035 if test -d "$path"; then 54036 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 54037 else 54038 dir="`$DIRNAME "$path"`" 54039 base="`$BASENAME "$path"`" 54040 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 54041 fi 54042 fi 54043 fi 54044 54045 54046 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 54047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 54048 $as_echo_n "checking for freetype includes... " >&6; } 54049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 54050 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 54051 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 54052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 54053 $as_echo_n "checking for freetype libraries... " >&6; } 54054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 54055 $as_echo "$FREETYPE_LIB_PATH" >&6; } 54056 fi 54057 54058 fi 54059 if test "x$FOUND_FREETYPE" != xyes && test -d $FREETYPE_BASE_DIR \ 54060 && test -s "$FREETYPE_BASE_DIR/builds/windows/vc2010/freetype.vcxproj" && test "x$MSBUILD" != x; then 54061 # Source is available, as a last resort try to build freetype in default location 54062 54063 FREETYPE_SRC_PATH="$FREETYPE_BASE_DIR" 54064 BUILD_FREETYPE=yes 54065 54066 # Check if the freetype sources are acessible.. 54067 if ! test -d $FREETYPE_SRC_PATH; then 54068 { $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 54069 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 54070 BUILD_FREETYPE=no 54071 fi 54072 # ..and contain a vc2010 project file 54073 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 54074 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 54075 { $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 54076 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 54077 BUILD_FREETYPE=no 54078 fi 54079 # Now check if configure found a version of 'msbuild.exe' 54080 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 54081 { $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 54082 $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;} 54083 BUILD_FREETYPE=no 54084 fi 54085 54086 # Ready to go.. 54087 if test "x$BUILD_FREETYPE" = xyes; then 54088 # msbuild requires trailing slashes for output directories 54089 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 54090 freetype_lib_path_unix="$freetype_lib_path" 54091 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 54092 54093 unix_path="$vcxproj_path" 54094 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54095 windows_path=`$CYGPATH -m "$unix_path"` 54096 vcxproj_path="$windows_path" 54097 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54098 windows_path=`cmd //c echo $unix_path` 54099 vcxproj_path="$windows_path" 54100 fi 54101 54102 54103 unix_path="$freetype_lib_path" 54104 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54105 windows_path=`$CYGPATH -m "$unix_path"` 54106 freetype_lib_path="$windows_path" 54107 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54108 windows_path=`cmd //c echo $unix_path` 54109 freetype_lib_path="$windows_path" 54110 fi 54111 54112 54113 unix_path="$freetype_obj_path" 54114 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54115 windows_path=`$CYGPATH -m "$unix_path"` 54116 freetype_obj_path="$windows_path" 54117 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54118 windows_path=`cmd //c echo $unix_path` 54119 freetype_obj_path="$windows_path" 54120 fi 54121 54122 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 54123 freetype_platform=x64 54124 else 54125 freetype_platform=win32 54126 fi 54127 54128 # The original freetype project file is for VS 2010 (i.e. 'v100'), 54129 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 54130 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 54131 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 54132 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 54133 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 54134 54135 # First we try to build the freetype.dll 54136 $ECHO -e "@echo off\n"\ 54137 "$MSBUILD $vcxproj_path "\ 54138 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 54139 "/p:Configuration=\"Release Multithreaded\" "\ 54140 "/p:Platform=$freetype_platform "\ 54141 "/p:ConfigurationType=DynamicLibrary "\ 54142 "/p:TargetName=freetype "\ 54143 "/p:OutDir=\"$freetype_lib_path\" "\ 54144 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 54145 cmd /c freetype.bat 54146 54147 if test -s "$freetype_lib_path_unix/freetype.dll"; then 54148 # If that succeeds we also build freetype.lib 54149 $ECHO -e "@echo off\n"\ 54150 "$MSBUILD $vcxproj_path "\ 54151 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 54152 "/p:Configuration=\"Release Multithreaded\" "\ 54153 "/p:Platform=$freetype_platform "\ 54154 "/p:ConfigurationType=StaticLibrary "\ 54155 "/p:TargetName=freetype "\ 54156 "/p:OutDir=\"$freetype_lib_path\" "\ 54157 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 54158 cmd /c freetype.bat 54159 54160 if test -s "$freetype_lib_path_unix/freetype.lib"; then 54161 # Once we build both, lib and dll, set freetype lib and include path appropriately 54162 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 54163 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 54164 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 54165 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 54166 else 54167 BUILD_FREETYPE=no 54168 fi 54169 else 54170 BUILD_FREETYPE=no 54171 fi 54172 fi 54173 54174 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 54175 54176 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 54177 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 54178 METHOD="well-known location" 54179 54180 # Let's start with an optimistic view of the world :-) 54181 FOUND_FREETYPE=yes 54182 54183 # First look for the canonical freetype main include file ft2build.h. 54184 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 54185 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 54186 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 54187 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 54188 # Fail. 54189 FOUND_FREETYPE=no 54190 fi 54191 fi 54192 54193 if test "x$FOUND_FREETYPE" = xyes; then 54194 # Include file found, let's continue the sanity check. 54195 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 54196 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 54197 54198 # Reset to default value 54199 FREETYPE_BASE_NAME=freetype 54200 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 54201 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 54202 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 54203 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 54204 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 54205 # for the .6 version explicitly. 54206 FREETYPE_BASE_NAME=freetype.6 54207 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 54208 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 54209 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 54210 else 54211 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 54212 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 54213 FOUND_FREETYPE=no 54214 fi 54215 else 54216 if test "x$OPENJDK_TARGET_OS" = xwindows; then 54217 # On Windows, we will need both .lib and .dll file. 54218 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 54219 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 54220 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 54221 FOUND_FREETYPE=no 54222 fi 54223 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 54224 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 54225 # Found lib in isa dir, use that instead. 54226 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 54227 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 54228 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 54229 fi 54230 fi 54231 fi 54232 54233 if test "x$FOUND_FREETYPE" = xyes; then 54234 54235 # Only process if variable expands to non-empty 54236 54237 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 54238 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54239 54240 # Input might be given as Windows format, start by converting to 54241 # unix format. 54242 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 54243 new_path=`$CYGPATH -u "$path"` 54244 54245 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54246 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54247 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54248 # "foo.exe" is OK but "foo" is an error. 54249 # 54250 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54251 # It is also a way to make sure we got the proper file name for the real test later on. 54252 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54253 if test "x$test_shortpath" = x; then 54254 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 54255 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 54256 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 54257 fi 54258 54259 # Call helper function which possibly converts this using DOS-style short mode. 54260 # If so, the updated path is stored in $new_path. 54261 54262 input_path="$new_path" 54263 # Check if we need to convert this using DOS-style short mode. If the path 54264 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54265 # take no chances and rewrite it. 54266 # Note: m4 eats our [], so we need to use [ and ] instead. 54267 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54268 if test "x$has_forbidden_chars" != x; then 54269 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54270 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54271 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54272 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54273 # Going to short mode and back again did indeed matter. Since short mode is 54274 # case insensitive, let's make it lowercase to improve readability. 54275 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54276 # Now convert it back to Unix-style (cygpath) 54277 input_path=`$CYGPATH -u "$shortmode_path"` 54278 new_path="$input_path" 54279 fi 54280 fi 54281 54282 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54283 if test "x$test_cygdrive_prefix" = x; then 54284 # As a simple fix, exclude /usr/bin since it's not a real path. 54285 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54286 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54287 # a path prefixed by /cygdrive for fixpath to work. 54288 new_path="$CYGWIN_ROOT_PATH$input_path" 54289 fi 54290 fi 54291 54292 54293 if test "x$path" != "x$new_path"; then 54294 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 54295 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 54296 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 54297 fi 54298 54299 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54300 54301 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 54302 has_colon=`$ECHO $path | $GREP ^.:` 54303 new_path="$path" 54304 if test "x$has_colon" = x; then 54305 # Not in mixed or Windows style, start by that. 54306 new_path=`cmd //c echo $path` 54307 fi 54308 54309 54310 input_path="$new_path" 54311 # Check if we need to convert this using DOS-style short mode. If the path 54312 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54313 # take no chances and rewrite it. 54314 # Note: m4 eats our [], so we need to use [ and ] instead. 54315 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54316 if test "x$has_forbidden_chars" != x; then 54317 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54318 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54319 fi 54320 54321 54322 windows_path="$new_path" 54323 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54324 unix_path=`$CYGPATH -u "$windows_path"` 54325 new_path="$unix_path" 54326 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54327 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54328 new_path="$unix_path" 54329 fi 54330 54331 if test "x$path" != "x$new_path"; then 54332 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 54333 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 54334 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 54335 fi 54336 54337 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54338 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54339 54340 else 54341 # We're on a unix platform. Hooray! :) 54342 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 54343 has_space=`$ECHO "$path" | $GREP " "` 54344 if test "x$has_space" != x; then 54345 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 54346 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 54347 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54348 fi 54349 54350 # Use eval to expand a potential ~ 54351 eval path="$path" 54352 if test ! -f "$path" && test ! -d "$path"; then 54353 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 54354 fi 54355 54356 if test -d "$path"; then 54357 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 54358 else 54359 dir="`$DIRNAME "$path"`" 54360 base="`$BASENAME "$path"`" 54361 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 54362 fi 54363 fi 54364 fi 54365 54366 54367 # Only process if variable expands to non-empty 54368 54369 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 54370 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54371 54372 # Input might be given as Windows format, start by converting to 54373 # unix format. 54374 path="$POTENTIAL_FREETYPE_LIB_PATH" 54375 new_path=`$CYGPATH -u "$path"` 54376 54377 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54378 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54379 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54380 # "foo.exe" is OK but "foo" is an error. 54381 # 54382 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54383 # It is also a way to make sure we got the proper file name for the real test later on. 54384 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54385 if test "x$test_shortpath" = x; then 54386 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 54387 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 54388 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 54389 fi 54390 54391 # Call helper function which possibly converts this using DOS-style short mode. 54392 # If so, the updated path is stored in $new_path. 54393 54394 input_path="$new_path" 54395 # Check if we need to convert this using DOS-style short mode. If the path 54396 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54397 # take no chances and rewrite it. 54398 # Note: m4 eats our [], so we need to use [ and ] instead. 54399 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54400 if test "x$has_forbidden_chars" != x; then 54401 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54402 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54403 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54404 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54405 # Going to short mode and back again did indeed matter. Since short mode is 54406 # case insensitive, let's make it lowercase to improve readability. 54407 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54408 # Now convert it back to Unix-style (cygpath) 54409 input_path=`$CYGPATH -u "$shortmode_path"` 54410 new_path="$input_path" 54411 fi 54412 fi 54413 54414 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54415 if test "x$test_cygdrive_prefix" = x; then 54416 # As a simple fix, exclude /usr/bin since it's not a real path. 54417 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54418 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54419 # a path prefixed by /cygdrive for fixpath to work. 54420 new_path="$CYGWIN_ROOT_PATH$input_path" 54421 fi 54422 fi 54423 54424 54425 if test "x$path" != "x$new_path"; then 54426 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 54427 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 54428 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 54429 fi 54430 54431 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54432 54433 path="$POTENTIAL_FREETYPE_LIB_PATH" 54434 has_colon=`$ECHO $path | $GREP ^.:` 54435 new_path="$path" 54436 if test "x$has_colon" = x; then 54437 # Not in mixed or Windows style, start by that. 54438 new_path=`cmd //c echo $path` 54439 fi 54440 54441 54442 input_path="$new_path" 54443 # Check if we need to convert this using DOS-style short mode. If the path 54444 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54445 # take no chances and rewrite it. 54446 # Note: m4 eats our [], so we need to use [ and ] instead. 54447 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54448 if test "x$has_forbidden_chars" != x; then 54449 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54450 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54451 fi 54452 54453 54454 windows_path="$new_path" 54455 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54456 unix_path=`$CYGPATH -u "$windows_path"` 54457 new_path="$unix_path" 54458 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54459 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54460 new_path="$unix_path" 54461 fi 54462 54463 if test "x$path" != "x$new_path"; then 54464 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 54465 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 54466 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 54467 fi 54468 54469 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54470 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54471 54472 else 54473 # We're on a unix platform. Hooray! :) 54474 path="$POTENTIAL_FREETYPE_LIB_PATH" 54475 has_space=`$ECHO "$path" | $GREP " "` 54476 if test "x$has_space" != x; then 54477 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 54478 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 54479 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54480 fi 54481 54482 # Use eval to expand a potential ~ 54483 eval path="$path" 54484 if test ! -f "$path" && test ! -d "$path"; then 54485 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 54486 fi 54487 54488 if test -d "$path"; then 54489 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 54490 else 54491 dir="`$DIRNAME "$path"`" 54492 base="`$BASENAME "$path"`" 54493 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 54494 fi 54495 fi 54496 fi 54497 54498 54499 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 54500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 54501 $as_echo_n "checking for freetype includes... " >&6; } 54502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 54503 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 54504 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 54505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 54506 $as_echo_n "checking for freetype libraries... " >&6; } 54507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 54508 $as_echo "$FREETYPE_LIB_PATH" >&6; } 54509 fi 54510 54511 else 54512 54513 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 54514 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 54515 METHOD="well-known location" 54516 54517 # Let's start with an optimistic view of the world :-) 54518 FOUND_FREETYPE=yes 54519 54520 # First look for the canonical freetype main include file ft2build.h. 54521 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 54522 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 54523 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 54524 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 54525 # Fail. 54526 FOUND_FREETYPE=no 54527 fi 54528 fi 54529 54530 if test "x$FOUND_FREETYPE" = xyes; then 54531 # Include file found, let's continue the sanity check. 54532 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 54533 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 54534 54535 # Reset to default value 54536 FREETYPE_BASE_NAME=freetype 54537 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 54538 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 54539 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 54540 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 54541 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 54542 # for the .6 version explicitly. 54543 FREETYPE_BASE_NAME=freetype.6 54544 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 54545 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 54546 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 54547 else 54548 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 54549 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 54550 FOUND_FREETYPE=no 54551 fi 54552 else 54553 if test "x$OPENJDK_TARGET_OS" = xwindows; then 54554 # On Windows, we will need both .lib and .dll file. 54555 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 54556 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 54557 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 54558 FOUND_FREETYPE=no 54559 fi 54560 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 54561 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 54562 # Found lib in isa dir, use that instead. 54563 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 54564 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 54565 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 54566 fi 54567 fi 54568 fi 54569 54570 if test "x$FOUND_FREETYPE" = xyes; then 54571 54572 # Only process if variable expands to non-empty 54573 54574 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 54575 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54576 54577 # Input might be given as Windows format, start by converting to 54578 # unix format. 54579 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 54580 new_path=`$CYGPATH -u "$path"` 54581 54582 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54583 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54584 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54585 # "foo.exe" is OK but "foo" is an error. 54586 # 54587 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54588 # It is also a way to make sure we got the proper file name for the real test later on. 54589 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54590 if test "x$test_shortpath" = x; then 54591 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 54592 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 54593 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 54594 fi 54595 54596 # Call helper function which possibly converts this using DOS-style short mode. 54597 # If so, the updated path is stored in $new_path. 54598 54599 input_path="$new_path" 54600 # Check if we need to convert this using DOS-style short mode. If the path 54601 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54602 # take no chances and rewrite it. 54603 # Note: m4 eats our [], so we need to use [ and ] instead. 54604 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54605 if test "x$has_forbidden_chars" != x; then 54606 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54607 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54608 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54609 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54610 # Going to short mode and back again did indeed matter. Since short mode is 54611 # case insensitive, let's make it lowercase to improve readability. 54612 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54613 # Now convert it back to Unix-style (cygpath) 54614 input_path=`$CYGPATH -u "$shortmode_path"` 54615 new_path="$input_path" 54616 fi 54617 fi 54618 54619 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54620 if test "x$test_cygdrive_prefix" = x; then 54621 # As a simple fix, exclude /usr/bin since it's not a real path. 54622 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54623 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54624 # a path prefixed by /cygdrive for fixpath to work. 54625 new_path="$CYGWIN_ROOT_PATH$input_path" 54626 fi 54627 fi 54628 54629 54630 if test "x$path" != "x$new_path"; then 54631 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 54632 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 54633 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 54634 fi 54635 54636 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54637 54638 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 54639 has_colon=`$ECHO $path | $GREP ^.:` 54640 new_path="$path" 54641 if test "x$has_colon" = x; then 54642 # Not in mixed or Windows style, start by that. 54643 new_path=`cmd //c echo $path` 54644 fi 54645 54646 54647 input_path="$new_path" 54648 # Check if we need to convert this using DOS-style short mode. If the path 54649 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54650 # take no chances and rewrite it. 54651 # Note: m4 eats our [], so we need to use [ and ] instead. 54652 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54653 if test "x$has_forbidden_chars" != x; then 54654 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54655 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54656 fi 54657 54658 54659 windows_path="$new_path" 54660 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54661 unix_path=`$CYGPATH -u "$windows_path"` 54662 new_path="$unix_path" 54663 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54664 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54665 new_path="$unix_path" 54666 fi 54667 54668 if test "x$path" != "x$new_path"; then 54669 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 54670 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 54671 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 54672 fi 54673 54674 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54675 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54676 54677 else 54678 # We're on a unix platform. Hooray! :) 54679 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 54680 has_space=`$ECHO "$path" | $GREP " "` 54681 if test "x$has_space" != x; then 54682 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 54683 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 54684 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54685 fi 54686 54687 # Use eval to expand a potential ~ 54688 eval path="$path" 54689 if test ! -f "$path" && test ! -d "$path"; then 54690 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 54691 fi 54692 54693 if test -d "$path"; then 54694 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 54695 else 54696 dir="`$DIRNAME "$path"`" 54697 base="`$BASENAME "$path"`" 54698 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 54699 fi 54700 fi 54701 fi 54702 54703 54704 # Only process if variable expands to non-empty 54705 54706 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != 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="$POTENTIAL_FREETYPE_LIB_PATH" 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 POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 54724 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 54725 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$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 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 54764 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 54765 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 54766 fi 54767 54768 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54769 54770 path="$POTENTIAL_FREETYPE_LIB_PATH" 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 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 54802 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 54803 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH 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="$POTENTIAL_FREETYPE_LIB_PATH" 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 POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 54815 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, 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 POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 54823 fi 54824 54825 if test -d "$path"; then 54826 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 54827 else 54828 dir="`$DIRNAME "$path"`" 54829 base="`$BASENAME "$path"`" 54830 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 54831 fi 54832 fi 54833 fi 54834 54835 54836 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 54837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 54838 $as_echo_n "checking for freetype includes... " >&6; } 54839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 54840 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 54841 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 54842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 54843 $as_echo_n "checking for freetype libraries... " >&6; } 54844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 54845 $as_echo "$FREETYPE_LIB_PATH" >&6; } 54846 fi 54847 54848 fi 54849 fi 54850 fi 54851 else 54852 FREETYPE_BASE_DIR="$SYSROOT/usr" 54853 54854 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 54855 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 54856 METHOD="well-known location" 54857 54858 # Let's start with an optimistic view of the world :-) 54859 FOUND_FREETYPE=yes 54860 54861 # First look for the canonical freetype main include file ft2build.h. 54862 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 54863 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 54864 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 54865 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 54866 # Fail. 54867 FOUND_FREETYPE=no 54868 fi 54869 fi 54870 54871 if test "x$FOUND_FREETYPE" = xyes; then 54872 # Include file found, let's continue the sanity check. 54873 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 54874 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 54875 54876 # Reset to default value 54877 FREETYPE_BASE_NAME=freetype 54878 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 54879 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 54880 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 54881 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 54882 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 54883 # for the .6 version explicitly. 54884 FREETYPE_BASE_NAME=freetype.6 54885 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 54886 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 54887 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 54888 else 54889 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 54890 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 54891 FOUND_FREETYPE=no 54892 fi 54893 else 54894 if test "x$OPENJDK_TARGET_OS" = xwindows; then 54895 # On Windows, we will need both .lib and .dll file. 54896 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 54897 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 54898 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 54899 FOUND_FREETYPE=no 54900 fi 54901 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 54902 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 54903 # Found lib in isa dir, use that instead. 54904 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 54905 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 54906 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 54907 fi 54908 fi 54909 fi 54910 54911 if test "x$FOUND_FREETYPE" = xyes; then 54912 54913 # Only process if variable expands to non-empty 54914 54915 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 54916 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54917 54918 # Input might be given as Windows format, start by converting to 54919 # unix format. 54920 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 54921 new_path=`$CYGPATH -u "$path"` 54922 54923 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54924 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54925 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54926 # "foo.exe" is OK but "foo" is an error. 54927 # 54928 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54929 # It is also a way to make sure we got the proper file name for the real test later on. 54930 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54931 if test "x$test_shortpath" = x; then 54932 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 54933 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 54934 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 54935 fi 54936 54937 # Call helper function which possibly converts this using DOS-style short mode. 54938 # If so, the updated path is stored in $new_path. 54939 54940 input_path="$new_path" 54941 # Check if we need to convert this using DOS-style short mode. If the path 54942 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54943 # take no chances and rewrite it. 54944 # Note: m4 eats our [], so we need to use [ and ] instead. 54945 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54946 if test "x$has_forbidden_chars" != x; then 54947 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54948 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54949 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54950 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54951 # Going to short mode and back again did indeed matter. Since short mode is 54952 # case insensitive, let's make it lowercase to improve readability. 54953 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54954 # Now convert it back to Unix-style (cygpath) 54955 input_path=`$CYGPATH -u "$shortmode_path"` 54956 new_path="$input_path" 54957 fi 54958 fi 54959 54960 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54961 if test "x$test_cygdrive_prefix" = x; then 54962 # As a simple fix, exclude /usr/bin since it's not a real path. 54963 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54964 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54965 # a path prefixed by /cygdrive for fixpath to work. 54966 new_path="$CYGWIN_ROOT_PATH$input_path" 54967 fi 54968 fi 54969 54970 54971 if test "x$path" != "x$new_path"; then 54972 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 54973 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 54974 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 54975 fi 54976 54977 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54978 54979 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 54980 has_colon=`$ECHO $path | $GREP ^.:` 54981 new_path="$path" 54982 if test "x$has_colon" = x; then 54983 # Not in mixed or Windows style, start by that. 54984 new_path=`cmd //c echo $path` 54985 fi 54986 54987 54988 input_path="$new_path" 54989 # Check if we need to convert this using DOS-style short mode. If the path 54990 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54991 # take no chances and rewrite it. 54992 # Note: m4 eats our [], so we need to use [ and ] instead. 54993 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54994 if test "x$has_forbidden_chars" != x; then 54995 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54996 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54997 fi 54998 54999 55000 windows_path="$new_path" 55001 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55002 unix_path=`$CYGPATH -u "$windows_path"` 55003 new_path="$unix_path" 55004 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55005 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55006 new_path="$unix_path" 55007 fi 55008 55009 if test "x$path" != "x$new_path"; then 55010 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 55011 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 55012 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 55013 fi 55014 55015 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55016 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55017 55018 else 55019 # We're on a unix platform. Hooray! :) 55020 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 55021 has_space=`$ECHO "$path" | $GREP " "` 55022 if test "x$has_space" != x; then 55023 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 55024 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 55025 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55026 fi 55027 55028 # Use eval to expand a potential ~ 55029 eval path="$path" 55030 if test ! -f "$path" && test ! -d "$path"; then 55031 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 55032 fi 55033 55034 if test -d "$path"; then 55035 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 55036 else 55037 dir="`$DIRNAME "$path"`" 55038 base="`$BASENAME "$path"`" 55039 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 55040 fi 55041 fi 55042 fi 55043 55044 55045 # Only process if variable expands to non-empty 55046 55047 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 55048 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55049 55050 # Input might be given as Windows format, start by converting to 55051 # unix format. 55052 path="$POTENTIAL_FREETYPE_LIB_PATH" 55053 new_path=`$CYGPATH -u "$path"` 55054 55055 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55056 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55057 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55058 # "foo.exe" is OK but "foo" is an error. 55059 # 55060 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55061 # It is also a way to make sure we got the proper file name for the real test later on. 55062 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55063 if test "x$test_shortpath" = x; then 55064 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 55065 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 55066 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 55067 fi 55068 55069 # Call helper function which possibly converts this using DOS-style short mode. 55070 # If so, the updated path is stored in $new_path. 55071 55072 input_path="$new_path" 55073 # Check if we need to convert this using DOS-style short mode. If the path 55074 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55075 # take no chances and rewrite it. 55076 # Note: m4 eats our [], so we need to use [ and ] instead. 55077 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55078 if test "x$has_forbidden_chars" != x; then 55079 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55080 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55081 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55082 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55083 # Going to short mode and back again did indeed matter. Since short mode is 55084 # case insensitive, let's make it lowercase to improve readability. 55085 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55086 # Now convert it back to Unix-style (cygpath) 55087 input_path=`$CYGPATH -u "$shortmode_path"` 55088 new_path="$input_path" 55089 fi 55090 fi 55091 55092 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55093 if test "x$test_cygdrive_prefix" = x; then 55094 # As a simple fix, exclude /usr/bin since it's not a real path. 55095 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55096 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55097 # a path prefixed by /cygdrive for fixpath to work. 55098 new_path="$CYGWIN_ROOT_PATH$input_path" 55099 fi 55100 fi 55101 55102 55103 if test "x$path" != "x$new_path"; then 55104 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 55105 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 55106 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 55107 fi 55108 55109 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55110 55111 path="$POTENTIAL_FREETYPE_LIB_PATH" 55112 has_colon=`$ECHO $path | $GREP ^.:` 55113 new_path="$path" 55114 if test "x$has_colon" = x; then 55115 # Not in mixed or Windows style, start by that. 55116 new_path=`cmd //c echo $path` 55117 fi 55118 55119 55120 input_path="$new_path" 55121 # Check if we need to convert this using DOS-style short mode. If the path 55122 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55123 # take no chances and rewrite it. 55124 # Note: m4 eats our [], so we need to use [ and ] instead. 55125 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55126 if test "x$has_forbidden_chars" != x; then 55127 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55128 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55129 fi 55130 55131 55132 windows_path="$new_path" 55133 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55134 unix_path=`$CYGPATH -u "$windows_path"` 55135 new_path="$unix_path" 55136 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55137 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55138 new_path="$unix_path" 55139 fi 55140 55141 if test "x$path" != "x$new_path"; then 55142 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 55143 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 55144 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 55145 fi 55146 55147 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55148 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55149 55150 else 55151 # We're on a unix platform. Hooray! :) 55152 path="$POTENTIAL_FREETYPE_LIB_PATH" 55153 has_space=`$ECHO "$path" | $GREP " "` 55154 if test "x$has_space" != x; then 55155 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 55156 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 55157 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55158 fi 55159 55160 # Use eval to expand a potential ~ 55161 eval path="$path" 55162 if test ! -f "$path" && test ! -d "$path"; then 55163 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 55164 fi 55165 55166 if test -d "$path"; then 55167 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 55168 else 55169 dir="`$DIRNAME "$path"`" 55170 base="`$BASENAME "$path"`" 55171 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 55172 fi 55173 fi 55174 fi 55175 55176 55177 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 55178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 55179 $as_echo_n "checking for freetype includes... " >&6; } 55180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 55181 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 55182 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 55183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 55184 $as_echo_n "checking for freetype libraries... " >&6; } 55185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 55186 $as_echo "$FREETYPE_LIB_PATH" >&6; } 55187 fi 55188 55189 55190 if test "x$FOUND_FREETYPE" != xyes; then 55191 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 55192 55193 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 55194 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 55195 METHOD="well-known location" 55196 55197 # Let's start with an optimistic view of the world :-) 55198 FOUND_FREETYPE=yes 55199 55200 # First look for the canonical freetype main include file ft2build.h. 55201 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 55202 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 55203 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 55204 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 55205 # Fail. 55206 FOUND_FREETYPE=no 55207 fi 55208 fi 55209 55210 if test "x$FOUND_FREETYPE" = xyes; then 55211 # Include file found, let's continue the sanity check. 55212 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 55213 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 55214 55215 # Reset to default value 55216 FREETYPE_BASE_NAME=freetype 55217 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 55218 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 55219 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 55220 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 55221 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 55222 # for the .6 version explicitly. 55223 FREETYPE_BASE_NAME=freetype.6 55224 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 55225 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 55226 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 55227 else 55228 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 55229 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 55230 FOUND_FREETYPE=no 55231 fi 55232 else 55233 if test "x$OPENJDK_TARGET_OS" = xwindows; then 55234 # On Windows, we will need both .lib and .dll file. 55235 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 55236 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 55237 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 55238 FOUND_FREETYPE=no 55239 fi 55240 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 55241 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 55242 # Found lib in isa dir, use that instead. 55243 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 55244 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 55245 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 55246 fi 55247 fi 55248 fi 55249 55250 if test "x$FOUND_FREETYPE" = xyes; then 55251 55252 # Only process if variable expands to non-empty 55253 55254 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 55255 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55256 55257 # Input might be given as Windows format, start by converting to 55258 # unix format. 55259 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 55260 new_path=`$CYGPATH -u "$path"` 55261 55262 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55263 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55264 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55265 # "foo.exe" is OK but "foo" is an error. 55266 # 55267 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55268 # It is also a way to make sure we got the proper file name for the real test later on. 55269 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55270 if test "x$test_shortpath" = x; then 55271 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 55272 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 55273 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 55274 fi 55275 55276 # Call helper function which possibly converts this using DOS-style short mode. 55277 # If so, the updated path is stored in $new_path. 55278 55279 input_path="$new_path" 55280 # Check if we need to convert this using DOS-style short mode. If the path 55281 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55282 # take no chances and rewrite it. 55283 # Note: m4 eats our [], so we need to use [ and ] instead. 55284 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55285 if test "x$has_forbidden_chars" != x; then 55286 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55287 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55288 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55289 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55290 # Going to short mode and back again did indeed matter. Since short mode is 55291 # case insensitive, let's make it lowercase to improve readability. 55292 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55293 # Now convert it back to Unix-style (cygpath) 55294 input_path=`$CYGPATH -u "$shortmode_path"` 55295 new_path="$input_path" 55296 fi 55297 fi 55298 55299 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55300 if test "x$test_cygdrive_prefix" = x; then 55301 # As a simple fix, exclude /usr/bin since it's not a real path. 55302 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55303 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55304 # a path prefixed by /cygdrive for fixpath to work. 55305 new_path="$CYGWIN_ROOT_PATH$input_path" 55306 fi 55307 fi 55308 55309 55310 if test "x$path" != "x$new_path"; then 55311 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 55312 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 55313 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 55314 fi 55315 55316 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55317 55318 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 55319 has_colon=`$ECHO $path | $GREP ^.:` 55320 new_path="$path" 55321 if test "x$has_colon" = x; then 55322 # Not in mixed or Windows style, start by that. 55323 new_path=`cmd //c echo $path` 55324 fi 55325 55326 55327 input_path="$new_path" 55328 # Check if we need to convert this using DOS-style short mode. If the path 55329 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55330 # take no chances and rewrite it. 55331 # Note: m4 eats our [], so we need to use [ and ] instead. 55332 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55333 if test "x$has_forbidden_chars" != x; then 55334 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55335 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55336 fi 55337 55338 55339 windows_path="$new_path" 55340 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55341 unix_path=`$CYGPATH -u "$windows_path"` 55342 new_path="$unix_path" 55343 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55344 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55345 new_path="$unix_path" 55346 fi 55347 55348 if test "x$path" != "x$new_path"; then 55349 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 55350 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 55351 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 55352 fi 55353 55354 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55355 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55356 55357 else 55358 # We're on a unix platform. Hooray! :) 55359 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 55360 has_space=`$ECHO "$path" | $GREP " "` 55361 if test "x$has_space" != x; then 55362 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 55363 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 55364 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55365 fi 55366 55367 # Use eval to expand a potential ~ 55368 eval path="$path" 55369 if test ! -f "$path" && test ! -d "$path"; then 55370 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 55371 fi 55372 55373 if test -d "$path"; then 55374 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 55375 else 55376 dir="`$DIRNAME "$path"`" 55377 base="`$BASENAME "$path"`" 55378 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 55379 fi 55380 fi 55381 fi 55382 55383 55384 # Only process if variable expands to non-empty 55385 55386 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 55387 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55388 55389 # Input might be given as Windows format, start by converting to 55390 # unix format. 55391 path="$POTENTIAL_FREETYPE_LIB_PATH" 55392 new_path=`$CYGPATH -u "$path"` 55393 55394 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55395 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55396 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55397 # "foo.exe" is OK but "foo" is an error. 55398 # 55399 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55400 # It is also a way to make sure we got the proper file name for the real test later on. 55401 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55402 if test "x$test_shortpath" = x; then 55403 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 55404 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 55405 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 55406 fi 55407 55408 # Call helper function which possibly converts this using DOS-style short mode. 55409 # If so, the updated path is stored in $new_path. 55410 55411 input_path="$new_path" 55412 # Check if we need to convert this using DOS-style short mode. If the path 55413 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55414 # take no chances and rewrite it. 55415 # Note: m4 eats our [], so we need to use [ and ] instead. 55416 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55417 if test "x$has_forbidden_chars" != x; then 55418 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55419 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55420 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55421 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55422 # Going to short mode and back again did indeed matter. Since short mode is 55423 # case insensitive, let's make it lowercase to improve readability. 55424 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55425 # Now convert it back to Unix-style (cygpath) 55426 input_path=`$CYGPATH -u "$shortmode_path"` 55427 new_path="$input_path" 55428 fi 55429 fi 55430 55431 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55432 if test "x$test_cygdrive_prefix" = x; then 55433 # As a simple fix, exclude /usr/bin since it's not a real path. 55434 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55435 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55436 # a path prefixed by /cygdrive for fixpath to work. 55437 new_path="$CYGWIN_ROOT_PATH$input_path" 55438 fi 55439 fi 55440 55441 55442 if test "x$path" != "x$new_path"; then 55443 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 55444 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 55445 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 55446 fi 55447 55448 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55449 55450 path="$POTENTIAL_FREETYPE_LIB_PATH" 55451 has_colon=`$ECHO $path | $GREP ^.:` 55452 new_path="$path" 55453 if test "x$has_colon" = x; then 55454 # Not in mixed or Windows style, start by that. 55455 new_path=`cmd //c echo $path` 55456 fi 55457 55458 55459 input_path="$new_path" 55460 # Check if we need to convert this using DOS-style short mode. If the path 55461 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55462 # take no chances and rewrite it. 55463 # Note: m4 eats our [], so we need to use [ and ] instead. 55464 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55465 if test "x$has_forbidden_chars" != x; then 55466 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55467 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55468 fi 55469 55470 55471 windows_path="$new_path" 55472 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55473 unix_path=`$CYGPATH -u "$windows_path"` 55474 new_path="$unix_path" 55475 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55476 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55477 new_path="$unix_path" 55478 fi 55479 55480 if test "x$path" != "x$new_path"; then 55481 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 55482 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 55483 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 55484 fi 55485 55486 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55487 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55488 55489 else 55490 # We're on a unix platform. Hooray! :) 55491 path="$POTENTIAL_FREETYPE_LIB_PATH" 55492 has_space=`$ECHO "$path" | $GREP " "` 55493 if test "x$has_space" != x; then 55494 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 55495 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 55496 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55497 fi 55498 55499 # Use eval to expand a potential ~ 55500 eval path="$path" 55501 if test ! -f "$path" && test ! -d "$path"; then 55502 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 55503 fi 55504 55505 if test -d "$path"; then 55506 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 55507 else 55508 dir="`$DIRNAME "$path"`" 55509 base="`$BASENAME "$path"`" 55510 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 55511 fi 55512 fi 55513 fi 55514 55515 55516 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 55517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 55518 $as_echo_n "checking for freetype includes... " >&6; } 55519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 55520 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 55521 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 55522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 55523 $as_echo_n "checking for freetype libraries... " >&6; } 55524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 55525 $as_echo "$FREETYPE_LIB_PATH" >&6; } 55526 fi 55527 55528 fi 55529 55530 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 55531 if test "x$FOUND_FREETYPE" != xyes; then 55532 # Due to changes in OSX 10.11 XQuartz now installs to /opt/X11 55533 FREETYPE_BASE_DIR="$SYSROOT/opt/X11" 55534 55535 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 55536 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 55537 METHOD="well-known location" 55538 55539 # Let's start with an optimistic view of the world :-) 55540 FOUND_FREETYPE=yes 55541 55542 # First look for the canonical freetype main include file ft2build.h. 55543 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 55544 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 55545 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 55546 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 55547 # Fail. 55548 FOUND_FREETYPE=no 55549 fi 55550 fi 55551 55552 if test "x$FOUND_FREETYPE" = xyes; then 55553 # Include file found, let's continue the sanity check. 55554 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 55555 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 55556 55557 # Reset to default value 55558 FREETYPE_BASE_NAME=freetype 55559 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 55560 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 55561 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 55562 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 55563 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 55564 # for the .6 version explicitly. 55565 FREETYPE_BASE_NAME=freetype.6 55566 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 55567 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 55568 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 55569 else 55570 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 55571 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 55572 FOUND_FREETYPE=no 55573 fi 55574 else 55575 if test "x$OPENJDK_TARGET_OS" = xwindows; then 55576 # On Windows, we will need both .lib and .dll file. 55577 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 55578 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 55579 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 55580 FOUND_FREETYPE=no 55581 fi 55582 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 55583 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 55584 # Found lib in isa dir, use that instead. 55585 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 55586 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 55587 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 55588 fi 55589 fi 55590 fi 55591 55592 if test "x$FOUND_FREETYPE" = xyes; then 55593 55594 # Only process if variable expands to non-empty 55595 55596 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 55597 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55598 55599 # Input might be given as Windows format, start by converting to 55600 # unix format. 55601 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 55602 new_path=`$CYGPATH -u "$path"` 55603 55604 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55605 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55606 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55607 # "foo.exe" is OK but "foo" is an error. 55608 # 55609 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55610 # It is also a way to make sure we got the proper file name for the real test later on. 55611 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55612 if test "x$test_shortpath" = x; then 55613 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 55614 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 55615 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 55616 fi 55617 55618 # Call helper function which possibly converts this using DOS-style short mode. 55619 # If so, the updated path is stored in $new_path. 55620 55621 input_path="$new_path" 55622 # Check if we need to convert this using DOS-style short mode. If the path 55623 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55624 # take no chances and rewrite it. 55625 # Note: m4 eats our [], so we need to use [ and ] instead. 55626 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55627 if test "x$has_forbidden_chars" != x; then 55628 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55629 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55630 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55631 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55632 # Going to short mode and back again did indeed matter. Since short mode is 55633 # case insensitive, let's make it lowercase to improve readability. 55634 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55635 # Now convert it back to Unix-style (cygpath) 55636 input_path=`$CYGPATH -u "$shortmode_path"` 55637 new_path="$input_path" 55638 fi 55639 fi 55640 55641 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55642 if test "x$test_cygdrive_prefix" = x; then 55643 # As a simple fix, exclude /usr/bin since it's not a real path. 55644 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55645 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55646 # a path prefixed by /cygdrive for fixpath to work. 55647 new_path="$CYGWIN_ROOT_PATH$input_path" 55648 fi 55649 fi 55650 55651 55652 if test "x$path" != "x$new_path"; then 55653 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 55654 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 55655 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 55656 fi 55657 55658 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55659 55660 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 55661 has_colon=`$ECHO $path | $GREP ^.:` 55662 new_path="$path" 55663 if test "x$has_colon" = x; then 55664 # Not in mixed or Windows style, start by that. 55665 new_path=`cmd //c echo $path` 55666 fi 55667 55668 55669 input_path="$new_path" 55670 # Check if we need to convert this using DOS-style short mode. If the path 55671 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55672 # take no chances and rewrite it. 55673 # Note: m4 eats our [], so we need to use [ and ] instead. 55674 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55675 if test "x$has_forbidden_chars" != x; then 55676 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55677 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55678 fi 55679 55680 55681 windows_path="$new_path" 55682 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55683 unix_path=`$CYGPATH -u "$windows_path"` 55684 new_path="$unix_path" 55685 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55686 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55687 new_path="$unix_path" 55688 fi 55689 55690 if test "x$path" != "x$new_path"; then 55691 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 55692 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 55693 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 55694 fi 55695 55696 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55697 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55698 55699 else 55700 # We're on a unix platform. Hooray! :) 55701 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 55702 has_space=`$ECHO "$path" | $GREP " "` 55703 if test "x$has_space" != x; then 55704 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 55705 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 55706 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55707 fi 55708 55709 # Use eval to expand a potential ~ 55710 eval path="$path" 55711 if test ! -f "$path" && test ! -d "$path"; then 55712 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 55713 fi 55714 55715 if test -d "$path"; then 55716 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 55717 else 55718 dir="`$DIRNAME "$path"`" 55719 base="`$BASENAME "$path"`" 55720 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 55721 fi 55722 fi 55723 fi 55724 55725 55726 # Only process if variable expands to non-empty 55727 55728 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 55729 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55730 55731 # Input might be given as Windows format, start by converting to 55732 # unix format. 55733 path="$POTENTIAL_FREETYPE_LIB_PATH" 55734 new_path=`$CYGPATH -u "$path"` 55735 55736 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55737 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55738 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55739 # "foo.exe" is OK but "foo" is an error. 55740 # 55741 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55742 # It is also a way to make sure we got the proper file name for the real test later on. 55743 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55744 if test "x$test_shortpath" = x; then 55745 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 55746 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 55747 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 55748 fi 55749 55750 # Call helper function which possibly converts this using DOS-style short mode. 55751 # If so, the updated path is stored in $new_path. 55752 55753 input_path="$new_path" 55754 # Check if we need to convert this using DOS-style short mode. If the path 55755 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55756 # take no chances and rewrite it. 55757 # Note: m4 eats our [], so we need to use [ and ] instead. 55758 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55759 if test "x$has_forbidden_chars" != x; then 55760 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55761 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55762 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55763 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55764 # Going to short mode and back again did indeed matter. Since short mode is 55765 # case insensitive, let's make it lowercase to improve readability. 55766 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55767 # Now convert it back to Unix-style (cygpath) 55768 input_path=`$CYGPATH -u "$shortmode_path"` 55769 new_path="$input_path" 55770 fi 55771 fi 55772 55773 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55774 if test "x$test_cygdrive_prefix" = x; then 55775 # As a simple fix, exclude /usr/bin since it's not a real path. 55776 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55777 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55778 # a path prefixed by /cygdrive for fixpath to work. 55779 new_path="$CYGWIN_ROOT_PATH$input_path" 55780 fi 55781 fi 55782 55783 55784 if test "x$path" != "x$new_path"; then 55785 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 55786 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 55787 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 55788 fi 55789 55790 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55791 55792 path="$POTENTIAL_FREETYPE_LIB_PATH" 55793 has_colon=`$ECHO $path | $GREP ^.:` 55794 new_path="$path" 55795 if test "x$has_colon" = x; then 55796 # Not in mixed or Windows style, start by that. 55797 new_path=`cmd //c echo $path` 55798 fi 55799 55800 55801 input_path="$new_path" 55802 # Check if we need to convert this using DOS-style short mode. If the path 55803 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55804 # take no chances and rewrite it. 55805 # Note: m4 eats our [], so we need to use [ and ] instead. 55806 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55807 if test "x$has_forbidden_chars" != x; then 55808 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55809 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55810 fi 55811 55812 55813 windows_path="$new_path" 55814 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55815 unix_path=`$CYGPATH -u "$windows_path"` 55816 new_path="$unix_path" 55817 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55818 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55819 new_path="$unix_path" 55820 fi 55821 55822 if test "x$path" != "x$new_path"; then 55823 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 55824 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 55825 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 55826 fi 55827 55828 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55829 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55830 55831 else 55832 # We're on a unix platform. Hooray! :) 55833 path="$POTENTIAL_FREETYPE_LIB_PATH" 55834 has_space=`$ECHO "$path" | $GREP " "` 55835 if test "x$has_space" != x; then 55836 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 55837 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 55838 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55839 fi 55840 55841 # Use eval to expand a potential ~ 55842 eval path="$path" 55843 if test ! -f "$path" && test ! -d "$path"; then 55844 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 55845 fi 55846 55847 if test -d "$path"; then 55848 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 55849 else 55850 dir="`$DIRNAME "$path"`" 55851 base="`$BASENAME "$path"`" 55852 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 55853 fi 55854 fi 55855 fi 55856 55857 55858 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 55859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 55860 $as_echo_n "checking for freetype includes... " >&6; } 55861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 55862 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 55863 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 55864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 55865 $as_echo_n "checking for freetype libraries... " >&6; } 55866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 55867 $as_echo "$FREETYPE_LIB_PATH" >&6; } 55868 fi 55869 55870 fi 55871 fi 55872 55873 if test "x$FOUND_FREETYPE" != xyes; then 55874 FREETYPE_BASE_DIR="$SYSROOT/usr/sfw" 55875 55876 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 55877 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 55878 METHOD="well-known location" 55879 55880 # Let's start with an optimistic view of the world :-) 55881 FOUND_FREETYPE=yes 55882 55883 # First look for the canonical freetype main include file ft2build.h. 55884 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 55885 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 55886 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 55887 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 55888 # Fail. 55889 FOUND_FREETYPE=no 55890 fi 55891 fi 55892 55893 if test "x$FOUND_FREETYPE" = xyes; then 55894 # Include file found, let's continue the sanity check. 55895 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 55896 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 55897 55898 # Reset to default value 55899 FREETYPE_BASE_NAME=freetype 55900 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 55901 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 55902 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 55903 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 55904 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 55905 # for the .6 version explicitly. 55906 FREETYPE_BASE_NAME=freetype.6 55907 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 55908 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 55909 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 55910 else 55911 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 55912 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 55913 FOUND_FREETYPE=no 55914 fi 55915 else 55916 if test "x$OPENJDK_TARGET_OS" = xwindows; then 55917 # On Windows, we will need both .lib and .dll file. 55918 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 55919 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 55920 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 55921 FOUND_FREETYPE=no 55922 fi 55923 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 55924 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 55925 # Found lib in isa dir, use that instead. 55926 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 55927 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 55928 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 55929 fi 55930 fi 55931 fi 55932 55933 if test "x$FOUND_FREETYPE" = xyes; then 55934 55935 # Only process if variable expands to non-empty 55936 55937 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 55938 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55939 55940 # Input might be given as Windows format, start by converting to 55941 # unix format. 55942 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 55943 new_path=`$CYGPATH -u "$path"` 55944 55945 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55946 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55947 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55948 # "foo.exe" is OK but "foo" is an error. 55949 # 55950 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55951 # It is also a way to make sure we got the proper file name for the real test later on. 55952 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55953 if test "x$test_shortpath" = x; then 55954 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 55955 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 55956 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 55957 fi 55958 55959 # Call helper function which possibly converts this using DOS-style short mode. 55960 # If so, the updated path is stored in $new_path. 55961 55962 input_path="$new_path" 55963 # Check if we need to convert this using DOS-style short mode. If the path 55964 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55965 # take no chances and rewrite it. 55966 # Note: m4 eats our [], so we need to use [ and ] instead. 55967 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55968 if test "x$has_forbidden_chars" != x; then 55969 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55970 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55971 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55972 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55973 # Going to short mode and back again did indeed matter. Since short mode is 55974 # case insensitive, let's make it lowercase to improve readability. 55975 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55976 # Now convert it back to Unix-style (cygpath) 55977 input_path=`$CYGPATH -u "$shortmode_path"` 55978 new_path="$input_path" 55979 fi 55980 fi 55981 55982 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55983 if test "x$test_cygdrive_prefix" = x; then 55984 # As a simple fix, exclude /usr/bin since it's not a real path. 55985 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55986 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55987 # a path prefixed by /cygdrive for fixpath to work. 55988 new_path="$CYGWIN_ROOT_PATH$input_path" 55989 fi 55990 fi 55991 55992 55993 if test "x$path" != "x$new_path"; then 55994 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 55995 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 55996 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 55997 fi 55998 55999 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56000 56001 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 56002 has_colon=`$ECHO $path | $GREP ^.:` 56003 new_path="$path" 56004 if test "x$has_colon" = x; then 56005 # Not in mixed or Windows style, start by that. 56006 new_path=`cmd //c echo $path` 56007 fi 56008 56009 56010 input_path="$new_path" 56011 # Check if we need to convert this using DOS-style short mode. If the path 56012 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56013 # take no chances and rewrite it. 56014 # Note: m4 eats our [], so we need to use [ and ] instead. 56015 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56016 if test "x$has_forbidden_chars" != x; then 56017 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56018 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56019 fi 56020 56021 56022 windows_path="$new_path" 56023 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56024 unix_path=`$CYGPATH -u "$windows_path"` 56025 new_path="$unix_path" 56026 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56027 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56028 new_path="$unix_path" 56029 fi 56030 56031 if test "x$path" != "x$new_path"; then 56032 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 56033 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 56034 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 56035 fi 56036 56037 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56038 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56039 56040 else 56041 # We're on a unix platform. Hooray! :) 56042 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 56043 has_space=`$ECHO "$path" | $GREP " "` 56044 if test "x$has_space" != x; then 56045 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 56046 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 56047 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56048 fi 56049 56050 # Use eval to expand a potential ~ 56051 eval path="$path" 56052 if test ! -f "$path" && test ! -d "$path"; then 56053 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 56054 fi 56055 56056 if test -d "$path"; then 56057 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 56058 else 56059 dir="`$DIRNAME "$path"`" 56060 base="`$BASENAME "$path"`" 56061 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 56062 fi 56063 fi 56064 fi 56065 56066 56067 # Only process if variable expands to non-empty 56068 56069 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 56070 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56071 56072 # Input might be given as Windows format, start by converting to 56073 # unix format. 56074 path="$POTENTIAL_FREETYPE_LIB_PATH" 56075 new_path=`$CYGPATH -u "$path"` 56076 56077 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56078 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56079 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56080 # "foo.exe" is OK but "foo" is an error. 56081 # 56082 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56083 # It is also a way to make sure we got the proper file name for the real test later on. 56084 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56085 if test "x$test_shortpath" = x; then 56086 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 56087 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 56088 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 56089 fi 56090 56091 # Call helper function which possibly converts this using DOS-style short mode. 56092 # If so, the updated path is stored in $new_path. 56093 56094 input_path="$new_path" 56095 # Check if we need to convert this using DOS-style short mode. If the path 56096 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56097 # take no chances and rewrite it. 56098 # Note: m4 eats our [], so we need to use [ and ] instead. 56099 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56100 if test "x$has_forbidden_chars" != x; then 56101 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56102 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56103 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56104 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56105 # Going to short mode and back again did indeed matter. Since short mode is 56106 # case insensitive, let's make it lowercase to improve readability. 56107 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56108 # Now convert it back to Unix-style (cygpath) 56109 input_path=`$CYGPATH -u "$shortmode_path"` 56110 new_path="$input_path" 56111 fi 56112 fi 56113 56114 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56115 if test "x$test_cygdrive_prefix" = x; then 56116 # As a simple fix, exclude /usr/bin since it's not a real path. 56117 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56118 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56119 # a path prefixed by /cygdrive for fixpath to work. 56120 new_path="$CYGWIN_ROOT_PATH$input_path" 56121 fi 56122 fi 56123 56124 56125 if test "x$path" != "x$new_path"; then 56126 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 56127 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 56128 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 56129 fi 56130 56131 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56132 56133 path="$POTENTIAL_FREETYPE_LIB_PATH" 56134 has_colon=`$ECHO $path | $GREP ^.:` 56135 new_path="$path" 56136 if test "x$has_colon" = x; then 56137 # Not in mixed or Windows style, start by that. 56138 new_path=`cmd //c echo $path` 56139 fi 56140 56141 56142 input_path="$new_path" 56143 # Check if we need to convert this using DOS-style short mode. If the path 56144 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56145 # take no chances and rewrite it. 56146 # Note: m4 eats our [], so we need to use [ and ] instead. 56147 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56148 if test "x$has_forbidden_chars" != x; then 56149 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56150 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56151 fi 56152 56153 56154 windows_path="$new_path" 56155 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56156 unix_path=`$CYGPATH -u "$windows_path"` 56157 new_path="$unix_path" 56158 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56159 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56160 new_path="$unix_path" 56161 fi 56162 56163 if test "x$path" != "x$new_path"; then 56164 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 56165 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 56166 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 56167 fi 56168 56169 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56170 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56171 56172 else 56173 # We're on a unix platform. Hooray! :) 56174 path="$POTENTIAL_FREETYPE_LIB_PATH" 56175 has_space=`$ECHO "$path" | $GREP " "` 56176 if test "x$has_space" != x; then 56177 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 56178 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 56179 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56180 fi 56181 56182 # Use eval to expand a potential ~ 56183 eval path="$path" 56184 if test ! -f "$path" && test ! -d "$path"; then 56185 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 56186 fi 56187 56188 if test -d "$path"; then 56189 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 56190 else 56191 dir="`$DIRNAME "$path"`" 56192 base="`$BASENAME "$path"`" 56193 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 56194 fi 56195 fi 56196 fi 56197 56198 56199 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 56200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 56201 $as_echo_n "checking for freetype includes... " >&6; } 56202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 56203 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 56204 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 56205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 56206 $as_echo_n "checking for freetype libraries... " >&6; } 56207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 56208 $as_echo "$FREETYPE_LIB_PATH" >&6; } 56209 fi 56210 56211 fi 56212 56213 if test "x$FOUND_FREETYPE" != xyes; then 56214 FREETYPE_BASE_DIR="$SYSROOT/usr" 56215 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 56216 56217 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 56218 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 56219 METHOD="well-known location" 56220 56221 # Let's start with an optimistic view of the world :-) 56222 FOUND_FREETYPE=yes 56223 56224 # First look for the canonical freetype main include file ft2build.h. 56225 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 56226 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 56227 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 56228 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 56229 # Fail. 56230 FOUND_FREETYPE=no 56231 fi 56232 fi 56233 56234 if test "x$FOUND_FREETYPE" = xyes; then 56235 # Include file found, let's continue the sanity check. 56236 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 56237 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 56238 56239 # Reset to default value 56240 FREETYPE_BASE_NAME=freetype 56241 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 56242 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 56243 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 56244 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 56245 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 56246 # for the .6 version explicitly. 56247 FREETYPE_BASE_NAME=freetype.6 56248 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 56249 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 56250 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 56251 else 56252 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 56253 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 56254 FOUND_FREETYPE=no 56255 fi 56256 else 56257 if test "x$OPENJDK_TARGET_OS" = xwindows; then 56258 # On Windows, we will need both .lib and .dll file. 56259 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 56260 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 56261 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 56262 FOUND_FREETYPE=no 56263 fi 56264 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 56265 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 56266 # Found lib in isa dir, use that instead. 56267 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 56268 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 56269 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 56270 fi 56271 fi 56272 fi 56273 56274 if test "x$FOUND_FREETYPE" = xyes; then 56275 56276 # Only process if variable expands to non-empty 56277 56278 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 56279 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56280 56281 # Input might be given as Windows format, start by converting to 56282 # unix format. 56283 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 56284 new_path=`$CYGPATH -u "$path"` 56285 56286 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56287 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56288 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56289 # "foo.exe" is OK but "foo" is an error. 56290 # 56291 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56292 # It is also a way to make sure we got the proper file name for the real test later on. 56293 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56294 if test "x$test_shortpath" = x; then 56295 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 56296 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 56297 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 56298 fi 56299 56300 # Call helper function which possibly converts this using DOS-style short mode. 56301 # If so, the updated path is stored in $new_path. 56302 56303 input_path="$new_path" 56304 # Check if we need to convert this using DOS-style short mode. If the path 56305 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56306 # take no chances and rewrite it. 56307 # Note: m4 eats our [], so we need to use [ and ] instead. 56308 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56309 if test "x$has_forbidden_chars" != x; then 56310 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56311 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56312 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56313 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56314 # Going to short mode and back again did indeed matter. Since short mode is 56315 # case insensitive, let's make it lowercase to improve readability. 56316 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56317 # Now convert it back to Unix-style (cygpath) 56318 input_path=`$CYGPATH -u "$shortmode_path"` 56319 new_path="$input_path" 56320 fi 56321 fi 56322 56323 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56324 if test "x$test_cygdrive_prefix" = x; then 56325 # As a simple fix, exclude /usr/bin since it's not a real path. 56326 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56327 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56328 # a path prefixed by /cygdrive for fixpath to work. 56329 new_path="$CYGWIN_ROOT_PATH$input_path" 56330 fi 56331 fi 56332 56333 56334 if test "x$path" != "x$new_path"; then 56335 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 56336 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 56337 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 56338 fi 56339 56340 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56341 56342 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 56343 has_colon=`$ECHO $path | $GREP ^.:` 56344 new_path="$path" 56345 if test "x$has_colon" = x; then 56346 # Not in mixed or Windows style, start by that. 56347 new_path=`cmd //c echo $path` 56348 fi 56349 56350 56351 input_path="$new_path" 56352 # Check if we need to convert this using DOS-style short mode. If the path 56353 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56354 # take no chances and rewrite it. 56355 # Note: m4 eats our [], so we need to use [ and ] instead. 56356 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56357 if test "x$has_forbidden_chars" != x; then 56358 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56359 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56360 fi 56361 56362 56363 windows_path="$new_path" 56364 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56365 unix_path=`$CYGPATH -u "$windows_path"` 56366 new_path="$unix_path" 56367 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56368 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56369 new_path="$unix_path" 56370 fi 56371 56372 if test "x$path" != "x$new_path"; then 56373 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 56374 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 56375 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 56376 fi 56377 56378 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56379 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56380 56381 else 56382 # We're on a unix platform. Hooray! :) 56383 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 56384 has_space=`$ECHO "$path" | $GREP " "` 56385 if test "x$has_space" != x; then 56386 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 56387 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 56388 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56389 fi 56390 56391 # Use eval to expand a potential ~ 56392 eval path="$path" 56393 if test ! -f "$path" && test ! -d "$path"; then 56394 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 56395 fi 56396 56397 if test -d "$path"; then 56398 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 56399 else 56400 dir="`$DIRNAME "$path"`" 56401 base="`$BASENAME "$path"`" 56402 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 56403 fi 56404 fi 56405 fi 56406 56407 56408 # Only process if variable expands to non-empty 56409 56410 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 56411 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56412 56413 # Input might be given as Windows format, start by converting to 56414 # unix format. 56415 path="$POTENTIAL_FREETYPE_LIB_PATH" 56416 new_path=`$CYGPATH -u "$path"` 56417 56418 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56419 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56420 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56421 # "foo.exe" is OK but "foo" is an error. 56422 # 56423 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56424 # It is also a way to make sure we got the proper file name for the real test later on. 56425 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56426 if test "x$test_shortpath" = x; then 56427 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 56428 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 56429 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 56430 fi 56431 56432 # Call helper function which possibly converts this using DOS-style short mode. 56433 # If so, the updated path is stored in $new_path. 56434 56435 input_path="$new_path" 56436 # Check if we need to convert this using DOS-style short mode. If the path 56437 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56438 # take no chances and rewrite it. 56439 # Note: m4 eats our [], so we need to use [ and ] instead. 56440 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56441 if test "x$has_forbidden_chars" != x; then 56442 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56443 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56444 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56445 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56446 # Going to short mode and back again did indeed matter. Since short mode is 56447 # case insensitive, let's make it lowercase to improve readability. 56448 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56449 # Now convert it back to Unix-style (cygpath) 56450 input_path=`$CYGPATH -u "$shortmode_path"` 56451 new_path="$input_path" 56452 fi 56453 fi 56454 56455 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56456 if test "x$test_cygdrive_prefix" = x; then 56457 # As a simple fix, exclude /usr/bin since it's not a real path. 56458 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56459 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56460 # a path prefixed by /cygdrive for fixpath to work. 56461 new_path="$CYGWIN_ROOT_PATH$input_path" 56462 fi 56463 fi 56464 56465 56466 if test "x$path" != "x$new_path"; then 56467 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 56468 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 56469 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 56470 fi 56471 56472 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56473 56474 path="$POTENTIAL_FREETYPE_LIB_PATH" 56475 has_colon=`$ECHO $path | $GREP ^.:` 56476 new_path="$path" 56477 if test "x$has_colon" = x; then 56478 # Not in mixed or Windows style, start by that. 56479 new_path=`cmd //c echo $path` 56480 fi 56481 56482 56483 input_path="$new_path" 56484 # Check if we need to convert this using DOS-style short mode. If the path 56485 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56486 # take no chances and rewrite it. 56487 # Note: m4 eats our [], so we need to use [ and ] instead. 56488 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56489 if test "x$has_forbidden_chars" != x; then 56490 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56491 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56492 fi 56493 56494 56495 windows_path="$new_path" 56496 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56497 unix_path=`$CYGPATH -u "$windows_path"` 56498 new_path="$unix_path" 56499 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56500 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56501 new_path="$unix_path" 56502 fi 56503 56504 if test "x$path" != "x$new_path"; then 56505 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 56506 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 56507 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 56508 fi 56509 56510 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56511 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56512 56513 else 56514 # We're on a unix platform. Hooray! :) 56515 path="$POTENTIAL_FREETYPE_LIB_PATH" 56516 has_space=`$ECHO "$path" | $GREP " "` 56517 if test "x$has_space" != x; then 56518 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 56519 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 56520 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56521 fi 56522 56523 # Use eval to expand a potential ~ 56524 eval path="$path" 56525 if test ! -f "$path" && test ! -d "$path"; then 56526 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 56527 fi 56528 56529 if test -d "$path"; then 56530 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 56531 else 56532 dir="`$DIRNAME "$path"`" 56533 base="`$BASENAME "$path"`" 56534 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 56535 fi 56536 fi 56537 fi 56538 56539 56540 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 56541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 56542 $as_echo_n "checking for freetype includes... " >&6; } 56543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 56544 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 56545 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 56546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 56547 $as_echo_n "checking for freetype libraries... " >&6; } 56548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 56549 $as_echo "$FREETYPE_LIB_PATH" >&6; } 56550 fi 56551 56552 else 56553 56554 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 56555 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 56556 METHOD="well-known location" 56557 56558 # Let's start with an optimistic view of the world :-) 56559 FOUND_FREETYPE=yes 56560 56561 # First look for the canonical freetype main include file ft2build.h. 56562 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 56563 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 56564 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 56565 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 56566 # Fail. 56567 FOUND_FREETYPE=no 56568 fi 56569 fi 56570 56571 if test "x$FOUND_FREETYPE" = xyes; then 56572 # Include file found, let's continue the sanity check. 56573 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 56574 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 56575 56576 # Reset to default value 56577 FREETYPE_BASE_NAME=freetype 56578 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 56579 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 56580 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 56581 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 56582 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 56583 # for the .6 version explicitly. 56584 FREETYPE_BASE_NAME=freetype.6 56585 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 56586 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 56587 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 56588 else 56589 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 56590 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 56591 FOUND_FREETYPE=no 56592 fi 56593 else 56594 if test "x$OPENJDK_TARGET_OS" = xwindows; then 56595 # On Windows, we will need both .lib and .dll file. 56596 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 56597 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 56598 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 56599 FOUND_FREETYPE=no 56600 fi 56601 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 56602 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 56603 # Found lib in isa dir, use that instead. 56604 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 56605 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 56606 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 56607 fi 56608 fi 56609 fi 56610 56611 if test "x$FOUND_FREETYPE" = xyes; then 56612 56613 # Only process if variable expands to non-empty 56614 56615 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 56616 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56617 56618 # Input might be given as Windows format, start by converting to 56619 # unix format. 56620 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 56621 new_path=`$CYGPATH -u "$path"` 56622 56623 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56624 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56625 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56626 # "foo.exe" is OK but "foo" is an error. 56627 # 56628 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56629 # It is also a way to make sure we got the proper file name for the real test later on. 56630 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56631 if test "x$test_shortpath" = x; then 56632 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 56633 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 56634 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 56635 fi 56636 56637 # Call helper function which possibly converts this using DOS-style short mode. 56638 # If so, the updated path is stored in $new_path. 56639 56640 input_path="$new_path" 56641 # Check if we need to convert this using DOS-style short mode. If the path 56642 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56643 # take no chances and rewrite it. 56644 # Note: m4 eats our [], so we need to use [ and ] instead. 56645 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56646 if test "x$has_forbidden_chars" != x; then 56647 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56648 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56649 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56650 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56651 # Going to short mode and back again did indeed matter. Since short mode is 56652 # case insensitive, let's make it lowercase to improve readability. 56653 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56654 # Now convert it back to Unix-style (cygpath) 56655 input_path=`$CYGPATH -u "$shortmode_path"` 56656 new_path="$input_path" 56657 fi 56658 fi 56659 56660 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56661 if test "x$test_cygdrive_prefix" = x; then 56662 # As a simple fix, exclude /usr/bin since it's not a real path. 56663 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56664 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56665 # a path prefixed by /cygdrive for fixpath to work. 56666 new_path="$CYGWIN_ROOT_PATH$input_path" 56667 fi 56668 fi 56669 56670 56671 if test "x$path" != "x$new_path"; then 56672 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 56673 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 56674 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 56675 fi 56676 56677 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56678 56679 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 56680 has_colon=`$ECHO $path | $GREP ^.:` 56681 new_path="$path" 56682 if test "x$has_colon" = x; then 56683 # Not in mixed or Windows style, start by that. 56684 new_path=`cmd //c echo $path` 56685 fi 56686 56687 56688 input_path="$new_path" 56689 # Check if we need to convert this using DOS-style short mode. If the path 56690 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56691 # take no chances and rewrite it. 56692 # Note: m4 eats our [], so we need to use [ and ] instead. 56693 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56694 if test "x$has_forbidden_chars" != x; then 56695 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56696 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56697 fi 56698 56699 56700 windows_path="$new_path" 56701 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56702 unix_path=`$CYGPATH -u "$windows_path"` 56703 new_path="$unix_path" 56704 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56705 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56706 new_path="$unix_path" 56707 fi 56708 56709 if test "x$path" != "x$new_path"; then 56710 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 56711 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 56712 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 56713 fi 56714 56715 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56716 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56717 56718 else 56719 # We're on a unix platform. Hooray! :) 56720 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 56721 has_space=`$ECHO "$path" | $GREP " "` 56722 if test "x$has_space" != x; then 56723 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 56724 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 56725 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56726 fi 56727 56728 # Use eval to expand a potential ~ 56729 eval path="$path" 56730 if test ! -f "$path" && test ! -d "$path"; then 56731 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 56732 fi 56733 56734 if test -d "$path"; then 56735 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 56736 else 56737 dir="`$DIRNAME "$path"`" 56738 base="`$BASENAME "$path"`" 56739 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 56740 fi 56741 fi 56742 fi 56743 56744 56745 # Only process if variable expands to non-empty 56746 56747 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 56748 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56749 56750 # Input might be given as Windows format, start by converting to 56751 # unix format. 56752 path="$POTENTIAL_FREETYPE_LIB_PATH" 56753 new_path=`$CYGPATH -u "$path"` 56754 56755 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56756 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56757 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56758 # "foo.exe" is OK but "foo" is an error. 56759 # 56760 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56761 # It is also a way to make sure we got the proper file name for the real test later on. 56762 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56763 if test "x$test_shortpath" = x; then 56764 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 56765 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 56766 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 56767 fi 56768 56769 # Call helper function which possibly converts this using DOS-style short mode. 56770 # If so, the updated path is stored in $new_path. 56771 56772 input_path="$new_path" 56773 # Check if we need to convert this using DOS-style short mode. If the path 56774 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56775 # take no chances and rewrite it. 56776 # Note: m4 eats our [], so we need to use [ and ] instead. 56777 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56778 if test "x$has_forbidden_chars" != x; then 56779 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56780 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56781 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56782 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56783 # Going to short mode and back again did indeed matter. Since short mode is 56784 # case insensitive, let's make it lowercase to improve readability. 56785 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56786 # Now convert it back to Unix-style (cygpath) 56787 input_path=`$CYGPATH -u "$shortmode_path"` 56788 new_path="$input_path" 56789 fi 56790 fi 56791 56792 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56793 if test "x$test_cygdrive_prefix" = x; then 56794 # As a simple fix, exclude /usr/bin since it's not a real path. 56795 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56796 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56797 # a path prefixed by /cygdrive for fixpath to work. 56798 new_path="$CYGWIN_ROOT_PATH$input_path" 56799 fi 56800 fi 56801 56802 56803 if test "x$path" != "x$new_path"; then 56804 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 56805 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 56806 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 56807 fi 56808 56809 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56810 56811 path="$POTENTIAL_FREETYPE_LIB_PATH" 56812 has_colon=`$ECHO $path | $GREP ^.:` 56813 new_path="$path" 56814 if test "x$has_colon" = x; then 56815 # Not in mixed or Windows style, start by that. 56816 new_path=`cmd //c echo $path` 56817 fi 56818 56819 56820 input_path="$new_path" 56821 # Check if we need to convert this using DOS-style short mode. If the path 56822 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56823 # take no chances and rewrite it. 56824 # Note: m4 eats our [], so we need to use [ and ] instead. 56825 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56826 if test "x$has_forbidden_chars" != x; then 56827 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56828 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56829 fi 56830 56831 56832 windows_path="$new_path" 56833 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56834 unix_path=`$CYGPATH -u "$windows_path"` 56835 new_path="$unix_path" 56836 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56837 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56838 new_path="$unix_path" 56839 fi 56840 56841 if test "x$path" != "x$new_path"; then 56842 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 56843 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 56844 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 56845 fi 56846 56847 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56848 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56849 56850 else 56851 # We're on a unix platform. Hooray! :) 56852 path="$POTENTIAL_FREETYPE_LIB_PATH" 56853 has_space=`$ECHO "$path" | $GREP " "` 56854 if test "x$has_space" != x; then 56855 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 56856 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 56857 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56858 fi 56859 56860 # Use eval to expand a potential ~ 56861 eval path="$path" 56862 if test ! -f "$path" && test ! -d "$path"; then 56863 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 56864 fi 56865 56866 if test -d "$path"; then 56867 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 56868 else 56869 dir="`$DIRNAME "$path"`" 56870 base="`$BASENAME "$path"`" 56871 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 56872 fi 56873 fi 56874 fi 56875 56876 56877 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 56878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 56879 $as_echo_n "checking for freetype includes... " >&6; } 56880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 56881 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 56882 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 56883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 56884 $as_echo_n "checking for freetype libraries... " >&6; } 56885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 56886 $as_echo "$FREETYPE_LIB_PATH" >&6; } 56887 fi 56888 56889 if test "x$FOUND_FREETYPE" != xyes; then 56890 56891 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 56892 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 56893 METHOD="well-known location" 56894 56895 # Let's start with an optimistic view of the world :-) 56896 FOUND_FREETYPE=yes 56897 56898 # First look for the canonical freetype main include file ft2build.h. 56899 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 56900 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 56901 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 56902 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 56903 # Fail. 56904 FOUND_FREETYPE=no 56905 fi 56906 fi 56907 56908 if test "x$FOUND_FREETYPE" = xyes; then 56909 # Include file found, let's continue the sanity check. 56910 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 56911 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 56912 56913 # Reset to default value 56914 FREETYPE_BASE_NAME=freetype 56915 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 56916 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 56917 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 56918 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 56919 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 56920 # for the .6 version explicitly. 56921 FREETYPE_BASE_NAME=freetype.6 56922 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 56923 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 56924 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 56925 else 56926 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 56927 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 56928 FOUND_FREETYPE=no 56929 fi 56930 else 56931 if test "x$OPENJDK_TARGET_OS" = xwindows; then 56932 # On Windows, we will need both .lib and .dll file. 56933 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 56934 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 56935 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 56936 FOUND_FREETYPE=no 56937 fi 56938 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 56939 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 56940 # Found lib in isa dir, use that instead. 56941 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 56942 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 56943 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 56944 fi 56945 fi 56946 fi 56947 56948 if test "x$FOUND_FREETYPE" = xyes; then 56949 56950 # Only process if variable expands to non-empty 56951 56952 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 56953 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56954 56955 # Input might be given as Windows format, start by converting to 56956 # unix format. 56957 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 56958 new_path=`$CYGPATH -u "$path"` 56959 56960 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56961 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56962 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56963 # "foo.exe" is OK but "foo" is an error. 56964 # 56965 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56966 # It is also a way to make sure we got the proper file name for the real test later on. 56967 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56968 if test "x$test_shortpath" = x; then 56969 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 56970 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 56971 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 56972 fi 56973 56974 # Call helper function which possibly converts this using DOS-style short mode. 56975 # If so, the updated path is stored in $new_path. 56976 56977 input_path="$new_path" 56978 # Check if we need to convert this using DOS-style short mode. If the path 56979 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56980 # take no chances and rewrite it. 56981 # Note: m4 eats our [], so we need to use [ and ] instead. 56982 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56983 if test "x$has_forbidden_chars" != x; then 56984 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56985 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56986 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56987 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56988 # Going to short mode and back again did indeed matter. Since short mode is 56989 # case insensitive, let's make it lowercase to improve readability. 56990 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56991 # Now convert it back to Unix-style (cygpath) 56992 input_path=`$CYGPATH -u "$shortmode_path"` 56993 new_path="$input_path" 56994 fi 56995 fi 56996 56997 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56998 if test "x$test_cygdrive_prefix" = x; then 56999 # As a simple fix, exclude /usr/bin since it's not a real path. 57000 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57001 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57002 # a path prefixed by /cygdrive for fixpath to work. 57003 new_path="$CYGWIN_ROOT_PATH$input_path" 57004 fi 57005 fi 57006 57007 57008 if test "x$path" != "x$new_path"; then 57009 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57010 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57011 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57012 fi 57013 57014 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57015 57016 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57017 has_colon=`$ECHO $path | $GREP ^.:` 57018 new_path="$path" 57019 if test "x$has_colon" = x; then 57020 # Not in mixed or Windows style, start by that. 57021 new_path=`cmd //c echo $path` 57022 fi 57023 57024 57025 input_path="$new_path" 57026 # Check if we need to convert this using DOS-style short mode. If the path 57027 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57028 # take no chances and rewrite it. 57029 # Note: m4 eats our [], so we need to use [ and ] instead. 57030 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57031 if test "x$has_forbidden_chars" != x; then 57032 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57033 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57034 fi 57035 57036 57037 windows_path="$new_path" 57038 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57039 unix_path=`$CYGPATH -u "$windows_path"` 57040 new_path="$unix_path" 57041 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57042 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57043 new_path="$unix_path" 57044 fi 57045 57046 if test "x$path" != "x$new_path"; then 57047 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57048 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57049 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57050 fi 57051 57052 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57053 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57054 57055 else 57056 # We're on a unix platform. Hooray! :) 57057 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57058 has_space=`$ECHO "$path" | $GREP " "` 57059 if test "x$has_space" != x; then 57060 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57061 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57062 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57063 fi 57064 57065 # Use eval to expand a potential ~ 57066 eval path="$path" 57067 if test ! -f "$path" && test ! -d "$path"; then 57068 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57069 fi 57070 57071 if test -d "$path"; then 57072 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 57073 else 57074 dir="`$DIRNAME "$path"`" 57075 base="`$BASENAME "$path"`" 57076 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57077 fi 57078 fi 57079 fi 57080 57081 57082 # Only process if variable expands to non-empty 57083 57084 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 57085 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57086 57087 # Input might be given as Windows format, start by converting to 57088 # unix format. 57089 path="$POTENTIAL_FREETYPE_LIB_PATH" 57090 new_path=`$CYGPATH -u "$path"` 57091 57092 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57093 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57094 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57095 # "foo.exe" is OK but "foo" is an error. 57096 # 57097 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57098 # It is also a way to make sure we got the proper file name for the real test later on. 57099 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57100 if test "x$test_shortpath" = x; then 57101 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57102 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57103 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 57104 fi 57105 57106 # Call helper function which possibly converts this using DOS-style short mode. 57107 # If so, the updated path is stored in $new_path. 57108 57109 input_path="$new_path" 57110 # Check if we need to convert this using DOS-style short mode. If the path 57111 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57112 # take no chances and rewrite it. 57113 # Note: m4 eats our [], so we need to use [ and ] instead. 57114 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57115 if test "x$has_forbidden_chars" != x; then 57116 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57117 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57118 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57119 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57120 # Going to short mode and back again did indeed matter. Since short mode is 57121 # case insensitive, let's make it lowercase to improve readability. 57122 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57123 # Now convert it back to Unix-style (cygpath) 57124 input_path=`$CYGPATH -u "$shortmode_path"` 57125 new_path="$input_path" 57126 fi 57127 fi 57128 57129 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57130 if test "x$test_cygdrive_prefix" = x; then 57131 # As a simple fix, exclude /usr/bin since it's not a real path. 57132 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57133 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57134 # a path prefixed by /cygdrive for fixpath to work. 57135 new_path="$CYGWIN_ROOT_PATH$input_path" 57136 fi 57137 fi 57138 57139 57140 if test "x$path" != "x$new_path"; then 57141 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57142 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57143 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57144 fi 57145 57146 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57147 57148 path="$POTENTIAL_FREETYPE_LIB_PATH" 57149 has_colon=`$ECHO $path | $GREP ^.:` 57150 new_path="$path" 57151 if test "x$has_colon" = x; then 57152 # Not in mixed or Windows style, start by that. 57153 new_path=`cmd //c echo $path` 57154 fi 57155 57156 57157 input_path="$new_path" 57158 # Check if we need to convert this using DOS-style short mode. If the path 57159 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57160 # take no chances and rewrite it. 57161 # Note: m4 eats our [], so we need to use [ and ] instead. 57162 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57163 if test "x$has_forbidden_chars" != x; then 57164 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57165 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57166 fi 57167 57168 57169 windows_path="$new_path" 57170 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57171 unix_path=`$CYGPATH -u "$windows_path"` 57172 new_path="$unix_path" 57173 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57174 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57175 new_path="$unix_path" 57176 fi 57177 57178 if test "x$path" != "x$new_path"; then 57179 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57180 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57181 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57182 fi 57183 57184 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57185 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57186 57187 else 57188 # We're on a unix platform. Hooray! :) 57189 path="$POTENTIAL_FREETYPE_LIB_PATH" 57190 has_space=`$ECHO "$path" | $GREP " "` 57191 if test "x$has_space" != x; then 57192 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57193 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57194 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57195 fi 57196 57197 # Use eval to expand a potential ~ 57198 eval path="$path" 57199 if test ! -f "$path" && test ! -d "$path"; then 57200 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57201 fi 57202 57203 if test -d "$path"; then 57204 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 57205 else 57206 dir="`$DIRNAME "$path"`" 57207 base="`$BASENAME "$path"`" 57208 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57209 fi 57210 fi 57211 fi 57212 57213 57214 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 57216 $as_echo_n "checking for freetype includes... " >&6; } 57217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 57218 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 57219 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 57220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 57221 $as_echo_n "checking for freetype libraries... " >&6; } 57222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 57223 $as_echo "$FREETYPE_LIB_PATH" >&6; } 57224 fi 57225 57226 fi 57227 fi 57228 fi 57229 fi 57230 fi # end check in well-known locations 57231 57232 if test "x$FOUND_FREETYPE" != xyes; then 57233 57234 # Print a helpful message on how to acquire the necessary build dependency. 57235 # freetype is the help tag: freetype, cups, alsa etc 57236 MISSING_DEPENDENCY=freetype 57237 57238 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57239 cygwin_help $MISSING_DEPENDENCY 57240 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57241 msys_help $MISSING_DEPENDENCY 57242 else 57243 PKGHANDLER_COMMAND= 57244 57245 case $PKGHANDLER in 57246 apt-get) 57247 apt_help $MISSING_DEPENDENCY ;; 57248 yum) 57249 yum_help $MISSING_DEPENDENCY ;; 57250 port) 57251 port_help $MISSING_DEPENDENCY ;; 57252 pkgutil) 57253 pkgutil_help $MISSING_DEPENDENCY ;; 57254 pkgadd) 57255 pkgadd_help $MISSING_DEPENDENCY ;; 57256 esac 57257 57258 if test "x$PKGHANDLER_COMMAND" != x; then 57259 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 57260 fi 57261 fi 57262 57263 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 57264 fi 57265 fi # end user specified settings 57266 57267 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 57268 if test "x$FREETYPE_CFLAGS" = x; then 57269 57270 # Only process if variable expands to non-empty 57271 57272 if test "x$FREETYPE_INCLUDE_PATH" != x; then 57273 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57274 57275 # Input might be given as Windows format, start by converting to 57276 # unix format. 57277 path="$FREETYPE_INCLUDE_PATH" 57278 new_path=`$CYGPATH -u "$path"` 57279 57280 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57281 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57282 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57283 # "foo.exe" is OK but "foo" is an error. 57284 # 57285 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57286 # It is also a way to make sure we got the proper file name for the real test later on. 57287 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57288 if test "x$test_shortpath" = x; then 57289 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57290 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57291 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 57292 fi 57293 57294 # Call helper function which possibly converts this using DOS-style short mode. 57295 # If so, the updated path is stored in $new_path. 57296 57297 input_path="$new_path" 57298 # Check if we need to convert this using DOS-style short mode. If the path 57299 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57300 # take no chances and rewrite it. 57301 # Note: m4 eats our [], so we need to use [ and ] instead. 57302 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57303 if test "x$has_forbidden_chars" != x; then 57304 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57305 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57306 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57307 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57308 # Going to short mode and back again did indeed matter. Since short mode is 57309 # case insensitive, let's make it lowercase to improve readability. 57310 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57311 # Now convert it back to Unix-style (cygpath) 57312 input_path=`$CYGPATH -u "$shortmode_path"` 57313 new_path="$input_path" 57314 fi 57315 fi 57316 57317 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57318 if test "x$test_cygdrive_prefix" = x; then 57319 # As a simple fix, exclude /usr/bin since it's not a real path. 57320 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57321 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57322 # a path prefixed by /cygdrive for fixpath to work. 57323 new_path="$CYGWIN_ROOT_PATH$input_path" 57324 fi 57325 fi 57326 57327 57328 if test "x$path" != "x$new_path"; then 57329 FREETYPE_INCLUDE_PATH="$new_path" 57330 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57331 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57332 fi 57333 57334 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57335 57336 path="$FREETYPE_INCLUDE_PATH" 57337 has_colon=`$ECHO $path | $GREP ^.:` 57338 new_path="$path" 57339 if test "x$has_colon" = x; then 57340 # Not in mixed or Windows style, start by that. 57341 new_path=`cmd //c echo $path` 57342 fi 57343 57344 57345 input_path="$new_path" 57346 # Check if we need to convert this using DOS-style short mode. If the path 57347 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57348 # take no chances and rewrite it. 57349 # Note: m4 eats our [], so we need to use [ and ] instead. 57350 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57351 if test "x$has_forbidden_chars" != x; then 57352 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57353 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57354 fi 57355 57356 57357 windows_path="$new_path" 57358 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57359 unix_path=`$CYGPATH -u "$windows_path"` 57360 new_path="$unix_path" 57361 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57362 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57363 new_path="$unix_path" 57364 fi 57365 57366 if test "x$path" != "x$new_path"; then 57367 FREETYPE_INCLUDE_PATH="$new_path" 57368 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57369 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57370 fi 57371 57372 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57373 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57374 57375 else 57376 # We're on a unix platform. Hooray! :) 57377 path="$FREETYPE_INCLUDE_PATH" 57378 has_space=`$ECHO "$path" | $GREP " "` 57379 if test "x$has_space" != x; then 57380 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57381 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57382 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57383 fi 57384 57385 # Use eval to expand a potential ~ 57386 eval path="$path" 57387 if test ! -f "$path" && test ! -d "$path"; then 57388 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57389 fi 57390 57391 if test -d "$path"; then 57392 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 57393 else 57394 dir="`$DIRNAME "$path"`" 57395 base="`$BASENAME "$path"`" 57396 FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57397 fi 57398 fi 57399 fi 57400 57401 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 57402 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 57403 else 57404 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 57405 fi 57406 fi 57407 57408 if test "x$FREETYPE_LIBS" = x; then 57409 57410 # Only process if variable expands to non-empty 57411 57412 if test "x$FREETYPE_LIB_PATH" != x; then 57413 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57414 57415 # Input might be given as Windows format, start by converting to 57416 # unix format. 57417 path="$FREETYPE_LIB_PATH" 57418 new_path=`$CYGPATH -u "$path"` 57419 57420 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57421 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57422 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57423 # "foo.exe" is OK but "foo" is an error. 57424 # 57425 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57426 # It is also a way to make sure we got the proper file name for the real test later on. 57427 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57428 if test "x$test_shortpath" = x; then 57429 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57430 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57431 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 57432 fi 57433 57434 # Call helper function which possibly converts this using DOS-style short mode. 57435 # If so, the updated path is stored in $new_path. 57436 57437 input_path="$new_path" 57438 # Check if we need to convert this using DOS-style short mode. If the path 57439 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57440 # take no chances and rewrite it. 57441 # Note: m4 eats our [], so we need to use [ and ] instead. 57442 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57443 if test "x$has_forbidden_chars" != x; then 57444 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57445 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57446 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57447 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57448 # Going to short mode and back again did indeed matter. Since short mode is 57449 # case insensitive, let's make it lowercase to improve readability. 57450 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57451 # Now convert it back to Unix-style (cygpath) 57452 input_path=`$CYGPATH -u "$shortmode_path"` 57453 new_path="$input_path" 57454 fi 57455 fi 57456 57457 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57458 if test "x$test_cygdrive_prefix" = x; then 57459 # As a simple fix, exclude /usr/bin since it's not a real path. 57460 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57461 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57462 # a path prefixed by /cygdrive for fixpath to work. 57463 new_path="$CYGWIN_ROOT_PATH$input_path" 57464 fi 57465 fi 57466 57467 57468 if test "x$path" != "x$new_path"; then 57469 FREETYPE_LIB_PATH="$new_path" 57470 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 57471 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57472 fi 57473 57474 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57475 57476 path="$FREETYPE_LIB_PATH" 57477 has_colon=`$ECHO $path | $GREP ^.:` 57478 new_path="$path" 57479 if test "x$has_colon" = x; then 57480 # Not in mixed or Windows style, start by that. 57481 new_path=`cmd //c echo $path` 57482 fi 57483 57484 57485 input_path="$new_path" 57486 # Check if we need to convert this using DOS-style short mode. If the path 57487 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57488 # take no chances and rewrite it. 57489 # Note: m4 eats our [], so we need to use [ and ] instead. 57490 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57491 if test "x$has_forbidden_chars" != x; then 57492 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57493 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57494 fi 57495 57496 57497 windows_path="$new_path" 57498 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57499 unix_path=`$CYGPATH -u "$windows_path"` 57500 new_path="$unix_path" 57501 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57502 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57503 new_path="$unix_path" 57504 fi 57505 57506 if test "x$path" != "x$new_path"; then 57507 FREETYPE_LIB_PATH="$new_path" 57508 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 57509 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57510 fi 57511 57512 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57513 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57514 57515 else 57516 # We're on a unix platform. Hooray! :) 57517 path="$FREETYPE_LIB_PATH" 57518 has_space=`$ECHO "$path" | $GREP " "` 57519 if test "x$has_space" != x; then 57520 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57521 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57522 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57523 fi 57524 57525 # Use eval to expand a potential ~ 57526 eval path="$path" 57527 if test ! -f "$path" && test ! -d "$path"; then 57528 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57529 fi 57530 57531 if test -d "$path"; then 57532 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 57533 else 57534 dir="`$DIRNAME "$path"`" 57535 base="`$BASENAME "$path"`" 57536 FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57537 fi 57538 fi 57539 fi 57540 57541 if test "x$OPENJDK_TARGET_OS" = xwindows; then 57542 FREETYPE_LIBS="$FREETYPE_LIB_PATH/$FREETYPE_BASE_NAME.lib" 57543 else 57544 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -l$FREETYPE_BASE_NAME" 57545 fi 57546 fi 57547 57548 # Try to compile it 57549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 57550 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 57551 ac_ext=cpp 57552 ac_cpp='$CXXCPP $CPPFLAGS' 57553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 57554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 57555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 57556 57557 PREV_CXXCFLAGS="$CXXFLAGS" 57558 PREV_LIBS="$LIBS" 57559 PREV_CXX="$CXX" 57560 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 57561 LIBS="$LIBS $FREETYPE_LIBS" 57562 CXX="$FIXPATH $CXX" 57563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57564 /* end confdefs.h. */ 57565 57566 #include<ft2build.h> 57567 #include FT_FREETYPE_H 57568 int main () { 57569 FT_Init_FreeType(NULL); 57570 return 0; 57571 } 57572 57573 _ACEOF 57574 if ac_fn_cxx_try_link "$LINENO"; then : 57575 57576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 57577 $as_echo "yes" >&6; } 57578 57579 else 57580 57581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 57582 $as_echo "no" >&6; } 57583 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 57584 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 57585 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 57586 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 57587 57588 57589 # Print a helpful message on how to acquire the necessary build dependency. 57590 # freetype is the help tag: freetype, cups, alsa etc 57591 MISSING_DEPENDENCY=freetype 57592 57593 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57594 cygwin_help $MISSING_DEPENDENCY 57595 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57596 msys_help $MISSING_DEPENDENCY 57597 else 57598 PKGHANDLER_COMMAND= 57599 57600 case $PKGHANDLER in 57601 apt-get) 57602 apt_help $MISSING_DEPENDENCY ;; 57603 yum) 57604 yum_help $MISSING_DEPENDENCY ;; 57605 port) 57606 port_help $MISSING_DEPENDENCY ;; 57607 pkgutil) 57608 pkgutil_help $MISSING_DEPENDENCY ;; 57609 pkgadd) 57610 pkgadd_help $MISSING_DEPENDENCY ;; 57611 esac 57612 57613 if test "x$PKGHANDLER_COMMAND" != x; then 57614 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 57615 fi 57616 fi 57617 57618 57619 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 57620 57621 57622 fi 57623 rm -f core conftest.err conftest.$ac_objext \ 57624 conftest$ac_exeext conftest.$ac_ext 57625 CXXCFLAGS="$PREV_CXXFLAGS" 57626 LIBS="$PREV_LIBS" 57627 CXX="$PREV_CXX" 57628 ac_ext=cpp 57629 ac_cpp='$CXXCPP $CPPFLAGS' 57630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 57631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 57632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 57633 57634 57635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 57636 $as_echo_n "checking if we should bundle freetype... " >&6; } 57637 if test "x$BUNDLE_FREETYPE" = xyes; then 57638 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 57639 fi 57640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 57641 $as_echo "$BUNDLE_FREETYPE" >&6; } 57642 57643 fi # end freetype needed 57644 57645 57646 57647 57648 57649 57650 57651 # Check whether --with-alsa was given. 57652 if test "${with_alsa+set}" = set; then : 57653 withval=$with_alsa; 57654 fi 57655 57656 57657 # Check whether --with-alsa-include was given. 57658 if test "${with_alsa_include+set}" = set; then : 57659 withval=$with_alsa_include; 57660 fi 57661 57662 57663 # Check whether --with-alsa-lib was given. 57664 if test "${with_alsa_lib+set}" = set; then : 57665 withval=$with_alsa_lib; 57666 fi 57667 57668 57669 if test "x$NEEDS_LIB_ALSA" = xfalse; then 57670 if (test "x${with_alsa}" != x && test "x${with_alsa}" != xno) || \ 57671 (test "x${with_alsa_include}" != x && test "x${with_alsa_include}" != xno) || \ 57672 (test "x${with_alsa_lib}" != x && test "x${with_alsa_lib}" != xno); then 57673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&5 57674 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&2;} 57675 fi 57676 ALSA_CFLAGS= 57677 ALSA_LIBS= 57678 else 57679 ALSA_FOUND=no 57680 57681 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 57682 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 57683 fi 57684 57685 if test "x${with_alsa}" != x; then 57686 ALSA_LIBS="-L${with_alsa}/lib -lasound" 57687 ALSA_CFLAGS="-I${with_alsa}/include" 57688 ALSA_FOUND=yes 57689 fi 57690 if test "x${with_alsa_include}" != x; then 57691 ALSA_CFLAGS="-I${with_alsa_include}" 57692 ALSA_FOUND=yes 57693 fi 57694 if test "x${with_alsa_lib}" != x; then 57695 ALSA_LIBS="-L${with_alsa_lib} -lasound" 57696 ALSA_FOUND=yes 57697 fi 57698 # Do not try pkg-config if we have a sysroot set. 57699 if test "x$SYSROOT" = x; then 57700 if test "x$ALSA_FOUND" = xno; then 57701 57702 pkg_failed=no 57703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 57704 $as_echo_n "checking for ALSA... " >&6; } 57705 57706 if test -n "$ALSA_CFLAGS"; then 57707 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 57708 elif test -n "$PKG_CONFIG"; then 57709 if test -n "$PKG_CONFIG" && \ 57710 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 57711 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 57712 ac_status=$? 57713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 57714 test $ac_status = 0; }; then 57715 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 57716 else 57717 pkg_failed=yes 57718 fi 57719 else 57720 pkg_failed=untried 57721 fi 57722 if test -n "$ALSA_LIBS"; then 57723 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 57724 elif test -n "$PKG_CONFIG"; then 57725 if test -n "$PKG_CONFIG" && \ 57726 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 57727 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 57728 ac_status=$? 57729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 57730 test $ac_status = 0; }; then 57731 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 57732 else 57733 pkg_failed=yes 57734 fi 57735 else 57736 pkg_failed=untried 57737 fi 57738 57739 57740 57741 if test $pkg_failed = yes; then 57742 57743 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 57744 _pkg_short_errors_supported=yes 57745 else 57746 _pkg_short_errors_supported=no 57747 fi 57748 if test $_pkg_short_errors_supported = yes; then 57749 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 57750 else 57751 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 57752 fi 57753 # Put the nasty error message in config.log where it belongs 57754 echo "$ALSA_PKG_ERRORS" >&5 57755 57756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 57757 $as_echo "no" >&6; } 57758 ALSA_FOUND=no 57759 elif test $pkg_failed = untried; then 57760 ALSA_FOUND=no 57761 else 57762 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 57763 ALSA_LIBS=$pkg_cv_ALSA_LIBS 57764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 57765 $as_echo "yes" >&6; } 57766 ALSA_FOUND=yes 57767 fi 57768 fi 57769 fi 57770 if test "x$ALSA_FOUND" = xno; then 57771 for ac_header in alsa/asoundlib.h 57772 do : 57773 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 57774 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 57775 cat >>confdefs.h <<_ACEOF 57776 #define HAVE_ALSA_ASOUNDLIB_H 1 57777 _ACEOF 57778 57779 ALSA_FOUND=yes 57780 ALSA_CFLAGS=-Iignoreme 57781 ALSA_LIBS=-lasound 57782 DEFAULT_ALSA=yes 57783 57784 else 57785 ALSA_FOUND=no 57786 57787 fi 57788 57789 done 57790 57791 fi 57792 if test "x$ALSA_FOUND" = xno; then 57793 57794 # Print a helpful message on how to acquire the necessary build dependency. 57795 # alsa is the help tag: freetype, cups, alsa etc 57796 MISSING_DEPENDENCY=alsa 57797 57798 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57799 cygwin_help $MISSING_DEPENDENCY 57800 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57801 msys_help $MISSING_DEPENDENCY 57802 else 57803 PKGHANDLER_COMMAND= 57804 57805 case $PKGHANDLER in 57806 apt-get) 57807 apt_help $MISSING_DEPENDENCY ;; 57808 yum) 57809 yum_help $MISSING_DEPENDENCY ;; 57810 port) 57811 port_help $MISSING_DEPENDENCY ;; 57812 pkgutil) 57813 pkgutil_help $MISSING_DEPENDENCY ;; 57814 pkgadd) 57815 pkgadd_help $MISSING_DEPENDENCY ;; 57816 esac 57817 57818 if test "x$PKGHANDLER_COMMAND" != x; then 57819 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 57820 fi 57821 fi 57822 57823 as_fn_error $? "Could not find alsa! $HELP_MSG" "$LINENO" 5 57824 fi 57825 fi 57826 57827 57828 57829 57830 57831 57832 # Check whether --with-libffi was given. 57833 if test "${with_libffi+set}" = set; then : 57834 withval=$with_libffi; 57835 fi 57836 57837 57838 # Check whether --with-libffi-include was given. 57839 if test "${with_libffi_include+set}" = set; then : 57840 withval=$with_libffi_include; 57841 fi 57842 57843 57844 # Check whether --with-libffi-lib was given. 57845 if test "${with_libffi_lib+set}" = set; then : 57846 withval=$with_libffi_lib; 57847 fi 57848 57849 57850 if test "x$NEEDS_LIB_FFI" = xfalse; then 57851 if (test "x${with_libffi}" != x && test "x${with_libffi}" != xno) || \ 57852 (test "x${with_libffi_include}" != x && test "x${with_libffi_include}" != xno) || \ 57853 (test "x${with_libffi_lib}" != x && test "x${with_libffi_lib}" != xno); then 57854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&5 57855 $as_echo "$as_me: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&2;} 57856 fi 57857 LIBFFI_CFLAGS= 57858 LIBFFI_LIBS= 57859 else 57860 LIBFFI_FOUND=no 57861 57862 if test "x${with_libffi}" = xno || test "x${with_libffi_include}" = xno || test "x${with_libffi_lib}" = xno; then 57863 as_fn_error $? "It is not possible to disable the use of libffi. Remove the --without-libffi option." "$LINENO" 5 57864 fi 57865 57866 if test "x${with_libffi}" != x; then 57867 LIBFFI_LIBS="-L${with_libffi}/lib -lffi" 57868 LIBFFI_CFLAGS="-I${with_libffi}/include" 57869 LIBFFI_FOUND=yes 57870 fi 57871 if test "x${with_libffi_include}" != x; then 57872 LIBFFI_CFLAGS="-I${with_libffi_include}" 57873 LIBFFI_FOUND=yes 57874 fi 57875 if test "x${with_libffi_lib}" != x; then 57876 LIBFFI_LIBS="-L${with_libffi_lib} -lffi" 57877 LIBFFI_FOUND=yes 57878 fi 57879 # Do not try pkg-config if we have a sysroot set. 57880 if test "x$SYSROOT" = x; then 57881 if test "x$LIBFFI_FOUND" = xno; then 57882 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 57883 57884 pkg_failed=no 57885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 57886 $as_echo_n "checking for LIBFFI... " >&6; } 57887 57888 if test -n "$LIBFFI_CFLAGS"; then 57889 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 57890 elif test -n "$PKG_CONFIG"; then 57891 if test -n "$PKG_CONFIG" && \ 57892 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 57893 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 57894 ac_status=$? 57895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 57896 test $ac_status = 0; }; then 57897 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 57898 else 57899 pkg_failed=yes 57900 fi 57901 else 57902 pkg_failed=untried 57903 fi 57904 if test -n "$LIBFFI_LIBS"; then 57905 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 57906 elif test -n "$PKG_CONFIG"; then 57907 if test -n "$PKG_CONFIG" && \ 57908 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 57909 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 57910 ac_status=$? 57911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 57912 test $ac_status = 0; }; then 57913 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 57914 else 57915 pkg_failed=yes 57916 fi 57917 else 57918 pkg_failed=untried 57919 fi 57920 57921 57922 57923 if test $pkg_failed = yes; then 57924 57925 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 57926 _pkg_short_errors_supported=yes 57927 else 57928 _pkg_short_errors_supported=no 57929 fi 57930 if test $_pkg_short_errors_supported = yes; then 57931 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 57932 else 57933 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 57934 fi 57935 # Put the nasty error message in config.log where it belongs 57936 echo "$LIBFFI_PKG_ERRORS" >&5 57937 57938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 57939 $as_echo "no" >&6; } 57940 LIBFFI_FOUND=no 57941 elif test $pkg_failed = untried; then 57942 LIBFFI_FOUND=no 57943 else 57944 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 57945 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 57946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 57947 $as_echo "yes" >&6; } 57948 LIBFFI_FOUND=yes 57949 fi 57950 fi 57951 fi 57952 if test "x$LIBFFI_FOUND" = xno; then 57953 for ac_header in ffi.h 57954 do : 57955 ac_fn_cxx_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default" 57956 if test "x$ac_cv_header_ffi_h" = xyes; then : 57957 cat >>confdefs.h <<_ACEOF 57958 #define HAVE_FFI_H 1 57959 _ACEOF 57960 57961 LIBFFI_FOUND=yes 57962 LIBFFI_CFLAGS= 57963 LIBFFI_LIBS=-lffi 57964 57965 else 57966 LIBFFI_FOUND=no 57967 57968 fi 57969 57970 done 57971 57972 fi 57973 if test "x$LIBFFI_FOUND" = xno; then 57974 57975 # Print a helpful message on how to acquire the necessary build dependency. 57976 # ffi is the help tag: freetype, cups, alsa etc 57977 MISSING_DEPENDENCY=ffi 57978 57979 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57980 cygwin_help $MISSING_DEPENDENCY 57981 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57982 msys_help $MISSING_DEPENDENCY 57983 else 57984 PKGHANDLER_COMMAND= 57985 57986 case $PKGHANDLER in 57987 apt-get) 57988 apt_help $MISSING_DEPENDENCY ;; 57989 yum) 57990 yum_help $MISSING_DEPENDENCY ;; 57991 port) 57992 port_help $MISSING_DEPENDENCY ;; 57993 pkgutil) 57994 pkgutil_help $MISSING_DEPENDENCY ;; 57995 pkgadd) 57996 pkgadd_help $MISSING_DEPENDENCY ;; 57997 esac 57998 57999 if test "x$PKGHANDLER_COMMAND" != x; then 58000 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 58001 fi 58002 fi 58003 58004 as_fn_error $? "Could not find libffi! $HELP_MSG" "$LINENO" 5 58005 fi 58006 58007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi works" >&5 58008 $as_echo_n "checking if libffi works... " >&6; } 58009 ac_ext=c 58010 ac_cpp='$CPP $CPPFLAGS' 58011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 58012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 58013 ac_compiler_gnu=$ac_cv_c_compiler_gnu 58014 58015 OLD_CFLAGS="$CFLAGS" 58016 CFLAGS="$CFLAGS $LIBFFI_CFLAGS" 58017 OLD_LIBS="$LIBS" 58018 LIBS="$LIBS $LIBFFI_LIBS" 58019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58020 /* end confdefs.h. */ 58021 #include <ffi.h> 58022 int 58023 main () 58024 { 58025 58026 ffi_call(NULL, NULL, NULL, NULL); 58027 return 0; 58028 58029 ; 58030 return 0; 58031 } 58032 _ACEOF 58033 if ac_fn_c_try_link "$LINENO"; then : 58034 LIBFFI_WORKS=yes 58035 else 58036 LIBFFI_WORKS=no 58037 58038 fi 58039 rm -f core conftest.err conftest.$ac_objext \ 58040 conftest$ac_exeext conftest.$ac_ext 58041 CFLAGS="$OLD_CFLAGS" 58042 LIBS="$OLD_LIBS" 58043 ac_ext=cpp 58044 ac_cpp='$CXXCPP $CPPFLAGS' 58045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 58046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 58047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 58048 58049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBFFI_WORKS" >&5 58050 $as_echo "$LIBFFI_WORKS" >&6; } 58051 58052 if test "x$LIBFFI_WORKS" = xno; then 58053 58054 # Print a helpful message on how to acquire the necessary build dependency. 58055 # ffi is the help tag: freetype, cups, alsa etc 58056 MISSING_DEPENDENCY=ffi 58057 58058 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58059 cygwin_help $MISSING_DEPENDENCY 58060 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58061 msys_help $MISSING_DEPENDENCY 58062 else 58063 PKGHANDLER_COMMAND= 58064 58065 case $PKGHANDLER in 58066 apt-get) 58067 apt_help $MISSING_DEPENDENCY ;; 58068 yum) 58069 yum_help $MISSING_DEPENDENCY ;; 58070 port) 58071 port_help $MISSING_DEPENDENCY ;; 58072 pkgutil) 58073 pkgutil_help $MISSING_DEPENDENCY ;; 58074 pkgadd) 58075 pkgadd_help $MISSING_DEPENDENCY ;; 58076 esac 58077 58078 if test "x$PKGHANDLER_COMMAND" != x; then 58079 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 58080 fi 58081 fi 58082 58083 as_fn_error $? "Found libffi but could not link and compile with it. $HELP_MSG" "$LINENO" 5 58084 fi 58085 fi 58086 58087 58088 58089 58090 58091 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 58092 # Extract the first word of "llvm-config", so it can be a program name with args. 58093 set dummy llvm-config; ac_word=$2 58094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 58095 $as_echo_n "checking for $ac_word... " >&6; } 58096 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 58097 $as_echo_n "(cached) " >&6 58098 else 58099 if test -n "$LLVM_CONFIG"; then 58100 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 58101 else 58102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 58103 for as_dir in $PATH 58104 do 58105 IFS=$as_save_IFS 58106 test -z "$as_dir" && as_dir=. 58107 for ac_exec_ext in '' $ac_executable_extensions; do 58108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 58109 ac_cv_prog_LLVM_CONFIG="llvm-config" 58110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 58111 break 2 58112 fi 58113 done 58114 done 58115 IFS=$as_save_IFS 58116 58117 fi 58118 fi 58119 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 58120 if test -n "$LLVM_CONFIG"; then 58121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 58122 $as_echo "$LLVM_CONFIG" >&6; } 58123 else 58124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58125 $as_echo "no" >&6; } 58126 fi 58127 58128 58129 58130 if test "x$LLVM_CONFIG" != xllvm-config; then 58131 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 58132 fi 58133 58134 llvm_components="jit mcjit engine nativecodegen native" 58135 unset LLVM_CFLAGS 58136 for flag in $("$LLVM_CONFIG" --cxxflags); do 58137 if echo "${flag}" | grep -q '^-[ID]'; then 58138 if test "${flag}" != "-D_DEBUG" ; then 58139 if test "${LLVM_CFLAGS}" != "" ; then 58140 LLVM_CFLAGS="${LLVM_CFLAGS} " 58141 fi 58142 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 58143 fi 58144 fi 58145 done 58146 llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//') 58147 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 58148 58149 unset LLVM_LDFLAGS 58150 for flag in $("${LLVM_CONFIG}" --ldflags); do 58151 if echo "${flag}" | grep -q '^-L'; then 58152 if test "${LLVM_LDFLAGS}" != ""; then 58153 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 58154 fi 58155 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 58156 fi 58157 done 58158 58159 unset LLVM_LIBS 58160 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 58161 if echo "${flag}" | grep -q '^-l'; then 58162 if test "${LLVM_LIBS}" != ""; then 58163 LLVM_LIBS="${LLVM_LIBS} " 58164 fi 58165 LLVM_LIBS="${LLVM_LIBS}${flag}" 58166 fi 58167 done 58168 58169 # Due to https://llvm.org/bugs/show_bug.cgi?id=16902, llvm does not 58170 # always properly detect -ltinfo 58171 LLVM_LIBS="${LLVM_LIBS} -ltinfo" 58172 58173 58174 58175 58176 fi 58177 58178 58179 58180 # Check whether --with-libjpeg was given. 58181 if test "${with_libjpeg+set}" = set; then : 58182 withval=$with_libjpeg; 58183 fi 58184 58185 58186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 58187 $as_echo_n "checking for which libjpeg to use... " >&6; } 58188 # default is bundled 58189 DEFAULT_LIBJPEG=bundled 58190 # if user didn't specify, use DEFAULT_LIBJPEG 58191 if test "x${with_libjpeg}" = "x"; then 58192 with_libjpeg=${DEFAULT_LIBJPEG} 58193 fi 58194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 58195 $as_echo "${with_libjpeg}" >&6; } 58196 58197 if test "x${with_libjpeg}" = "xbundled"; then 58198 USE_EXTERNAL_LIBJPEG=false 58199 elif test "x${with_libjpeg}" = "xsystem"; then 58200 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 58201 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 58202 58203 else 58204 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 58205 fi 58206 58207 58208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 58209 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 58210 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 58211 $as_echo_n "(cached) " >&6 58212 else 58213 ac_check_lib_save_LIBS=$LIBS 58214 LIBS="-ljpeg $LIBS" 58215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58216 /* end confdefs.h. */ 58217 58218 /* Override any GCC internal prototype to avoid an error. 58219 Use char because int might match the return type of a GCC 58220 builtin and then its argument prototype would still apply. */ 58221 #ifdef __cplusplus 58222 extern "C" 58223 #endif 58224 char jpeg_CreateDecompress (); 58225 int 58226 main () 58227 { 58228 return jpeg_CreateDecompress (); 58229 ; 58230 return 0; 58231 } 58232 _ACEOF 58233 if ac_fn_cxx_try_link "$LINENO"; then : 58234 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 58235 else 58236 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 58237 fi 58238 rm -f core conftest.err conftest.$ac_objext \ 58239 conftest$ac_exeext conftest.$ac_ext 58240 LIBS=$ac_check_lib_save_LIBS 58241 fi 58242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 58243 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 58244 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 58245 cat >>confdefs.h <<_ACEOF 58246 #define HAVE_LIBJPEG 1 58247 _ACEOF 58248 58249 LIBS="-ljpeg $LIBS" 58250 58251 else 58252 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 58253 fi 58254 58255 58256 USE_EXTERNAL_LIBJPEG=true 58257 else 58258 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 58259 fi 58260 58261 58262 58263 58264 58265 # Check whether --with-giflib was given. 58266 if test "${with_giflib+set}" = set; then : 58267 withval=$with_giflib; 58268 fi 58269 58270 58271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 58272 $as_echo_n "checking for which giflib to use... " >&6; } 58273 # default is bundled 58274 DEFAULT_GIFLIB=bundled 58275 # if user didn't specify, use DEFAULT_GIFLIB 58276 if test "x${with_giflib}" = "x"; then 58277 with_giflib=${DEFAULT_GIFLIB} 58278 fi 58279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 58280 $as_echo "${with_giflib}" >&6; } 58281 58282 if test "x${with_giflib}" = "xbundled"; then 58283 USE_EXTERNAL_LIBGIF=false 58284 elif test "x${with_giflib}" = "xsystem"; then 58285 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 58286 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 58287 58288 else 58289 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 58290 fi 58291 58292 58293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 58294 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 58295 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 58296 $as_echo_n "(cached) " >&6 58297 else 58298 ac_check_lib_save_LIBS=$LIBS 58299 LIBS="-lgif $LIBS" 58300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58301 /* end confdefs.h. */ 58302 58303 /* Override any GCC internal prototype to avoid an error. 58304 Use char because int might match the return type of a GCC 58305 builtin and then its argument prototype would still apply. */ 58306 #ifdef __cplusplus 58307 extern "C" 58308 #endif 58309 char DGifGetCode (); 58310 int 58311 main () 58312 { 58313 return DGifGetCode (); 58314 ; 58315 return 0; 58316 } 58317 _ACEOF 58318 if ac_fn_cxx_try_link "$LINENO"; then : 58319 ac_cv_lib_gif_DGifGetCode=yes 58320 else 58321 ac_cv_lib_gif_DGifGetCode=no 58322 fi 58323 rm -f core conftest.err conftest.$ac_objext \ 58324 conftest$ac_exeext conftest.$ac_ext 58325 LIBS=$ac_check_lib_save_LIBS 58326 fi 58327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 58328 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 58329 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 58330 cat >>confdefs.h <<_ACEOF 58331 #define HAVE_LIBGIF 1 58332 _ACEOF 58333 58334 LIBS="-lgif $LIBS" 58335 58336 else 58337 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 58338 fi 58339 58340 58341 USE_EXTERNAL_LIBGIF=true 58342 else 58343 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 58344 fi 58345 58346 58347 58348 58349 58350 # Check whether --with-libpng was given. 58351 if test "${with_libpng+set}" = set; then : 58352 withval=$with_libpng; 58353 fi 58354 58355 58356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 58357 $as_echo_n "checking for which libpng to use... " >&6; } 58358 58359 # default is bundled 58360 DEFAULT_LIBPNG=bundled 58361 # if user didn't specify, use DEFAULT_LIBPNG 58362 if test "x${with_libpng}" = "x"; then 58363 with_libpng=${DEFAULT_LIBPNG} 58364 fi 58365 58366 if test "x${with_libpng}" = "xbundled"; then 58367 USE_EXTERNAL_LIBPNG=false 58368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 58369 $as_echo "bundled" >&6; } 58370 elif test "x${with_libpng}" = "xsystem"; then 58371 58372 pkg_failed=no 58373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 58374 $as_echo_n "checking for PNG... " >&6; } 58375 58376 if test -n "$PNG_CFLAGS"; then 58377 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 58378 elif test -n "$PKG_CONFIG"; then 58379 if test -n "$PKG_CONFIG" && \ 58380 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 58381 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 58382 ac_status=$? 58383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 58384 test $ac_status = 0; }; then 58385 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 58386 else 58387 pkg_failed=yes 58388 fi 58389 else 58390 pkg_failed=untried 58391 fi 58392 if test -n "$PNG_LIBS"; then 58393 pkg_cv_PNG_LIBS="$PNG_LIBS" 58394 elif test -n "$PKG_CONFIG"; then 58395 if test -n "$PKG_CONFIG" && \ 58396 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 58397 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 58398 ac_status=$? 58399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 58400 test $ac_status = 0; }; then 58401 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 58402 else 58403 pkg_failed=yes 58404 fi 58405 else 58406 pkg_failed=untried 58407 fi 58408 58409 58410 58411 if test $pkg_failed = yes; then 58412 58413 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 58414 _pkg_short_errors_supported=yes 58415 else 58416 _pkg_short_errors_supported=no 58417 fi 58418 if test $_pkg_short_errors_supported = yes; then 58419 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 58420 else 58421 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 58422 fi 58423 # Put the nasty error message in config.log where it belongs 58424 echo "$PNG_PKG_ERRORS" >&5 58425 58426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58427 $as_echo "no" >&6; } 58428 LIBPNG_FOUND=no 58429 elif test $pkg_failed = untried; then 58430 LIBPNG_FOUND=no 58431 else 58432 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 58433 PNG_LIBS=$pkg_cv_PNG_LIBS 58434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 58435 $as_echo "yes" >&6; } 58436 LIBPNG_FOUND=yes 58437 fi 58438 if test "x${LIBPNG_FOUND}" = "xyes"; then 58439 USE_EXTERNAL_LIBPNG=true 58440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 58441 $as_echo "system" >&6; } 58442 else 58443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 58444 $as_echo "system not found" >&6; } 58445 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 58446 fi 58447 else 58448 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 58449 fi 58450 58451 58452 58453 58454 58455 # Check whether --with-zlib was given. 58456 if test "${with_zlib+set}" = set; then : 58457 withval=$with_zlib; 58458 fi 58459 58460 58461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 58462 $as_echo_n "checking for compress in -lz... " >&6; } 58463 if ${ac_cv_lib_z_compress+:} false; then : 58464 $as_echo_n "(cached) " >&6 58465 else 58466 ac_check_lib_save_LIBS=$LIBS 58467 LIBS="-lz $LIBS" 58468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58469 /* end confdefs.h. */ 58470 58471 /* Override any GCC internal prototype to avoid an error. 58472 Use char because int might match the return type of a GCC 58473 builtin and then its argument prototype would still apply. */ 58474 #ifdef __cplusplus 58475 extern "C" 58476 #endif 58477 char compress (); 58478 int 58479 main () 58480 { 58481 return compress (); 58482 ; 58483 return 0; 58484 } 58485 _ACEOF 58486 if ac_fn_cxx_try_link "$LINENO"; then : 58487 ac_cv_lib_z_compress=yes 58488 else 58489 ac_cv_lib_z_compress=no 58490 fi 58491 rm -f core conftest.err conftest.$ac_objext \ 58492 conftest$ac_exeext conftest.$ac_ext 58493 LIBS=$ac_check_lib_save_LIBS 58494 fi 58495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 58496 $as_echo "$ac_cv_lib_z_compress" >&6; } 58497 if test "x$ac_cv_lib_z_compress" = xyes; then : 58498 ZLIB_FOUND=yes 58499 else 58500 ZLIB_FOUND=no 58501 fi 58502 58503 58504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 58505 $as_echo_n "checking for which zlib to use... " >&6; } 58506 58507 DEFAULT_ZLIB=bundled 58508 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 58509 # On macosx default is system...on others default is bundled 58510 DEFAULT_ZLIB=system 58511 fi 58512 58513 if test "x${ZLIB_FOUND}" != "xyes"; then 58514 # If we don't find any system...set default to bundled 58515 DEFAULT_ZLIB=bundled 58516 fi 58517 58518 # If user didn't specify, use DEFAULT_ZLIB 58519 if test "x${with_zlib}" = "x"; then 58520 with_zlib=${DEFAULT_ZLIB} 58521 fi 58522 58523 if test "x${with_zlib}" = "xbundled"; then 58524 USE_EXTERNAL_LIBZ=false 58525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 58526 $as_echo "bundled" >&6; } 58527 elif test "x${with_zlib}" = "xsystem"; then 58528 if test "x${ZLIB_FOUND}" = "xyes"; then 58529 USE_EXTERNAL_LIBZ=true 58530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 58531 $as_echo "system" >&6; } 58532 else 58533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 58534 $as_echo "system not found" >&6; } 58535 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 58536 fi 58537 else 58538 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 58539 fi 58540 58541 58542 58543 58544 58545 # Check whether --with-lcms was given. 58546 if test "${with_lcms+set}" = set; then : 58547 withval=$with_lcms; 58548 fi 58549 58550 58551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 58552 $as_echo_n "checking for which lcms to use... " >&6; } 58553 58554 DEFAULT_LCMS=bundled 58555 # If user didn't specify, use DEFAULT_LCMS 58556 if test "x${with_lcms}" = "x"; then 58557 with_lcms=${DEFAULT_LCMS} 58558 fi 58559 58560 if test "x${with_lcms}" = "xbundled"; then 58561 USE_EXTERNAL_LCMS=false 58562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 58563 $as_echo "bundled" >&6; } 58564 elif test "x${with_lcms}" = "xsystem"; then 58565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 58566 $as_echo "system" >&6; } 58567 58568 pkg_failed=no 58569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 58570 $as_echo_n "checking for LCMS... " >&6; } 58571 58572 if test -n "$LCMS_CFLAGS"; then 58573 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 58574 elif test -n "$PKG_CONFIG"; then 58575 if test -n "$PKG_CONFIG" && \ 58576 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 58577 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 58578 ac_status=$? 58579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 58580 test $ac_status = 0; }; then 58581 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 58582 else 58583 pkg_failed=yes 58584 fi 58585 else 58586 pkg_failed=untried 58587 fi 58588 if test -n "$LCMS_LIBS"; then 58589 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 58590 elif test -n "$PKG_CONFIG"; then 58591 if test -n "$PKG_CONFIG" && \ 58592 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 58593 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 58594 ac_status=$? 58595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 58596 test $ac_status = 0; }; then 58597 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 58598 else 58599 pkg_failed=yes 58600 fi 58601 else 58602 pkg_failed=untried 58603 fi 58604 58605 58606 58607 if test $pkg_failed = yes; then 58608 58609 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 58610 _pkg_short_errors_supported=yes 58611 else 58612 _pkg_short_errors_supported=no 58613 fi 58614 if test $_pkg_short_errors_supported = yes; then 58615 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 58616 else 58617 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 58618 fi 58619 # Put the nasty error message in config.log where it belongs 58620 echo "$LCMS_PKG_ERRORS" >&5 58621 58622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58623 $as_echo "no" >&6; } 58624 LCMS_FOUND=no 58625 elif test $pkg_failed = untried; then 58626 LCMS_FOUND=no 58627 else 58628 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 58629 LCMS_LIBS=$pkg_cv_LCMS_LIBS 58630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 58631 $as_echo "yes" >&6; } 58632 LCMS_FOUND=yes 58633 fi 58634 if test "x${LCMS_FOUND}" = "xyes"; then 58635 USE_EXTERNAL_LCMS=true 58636 else 58637 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 58638 fi 58639 else 58640 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 58641 fi 58642 58643 58644 58645 58646 58647 58648 58649 58650 58651 58652 58653 # Setup libm (the maths library) 58654 if test "x$OPENJDK_TARGET_OS" != "xwindows"; then 58655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 58656 $as_echo_n "checking for cos in -lm... " >&6; } 58657 if ${ac_cv_lib_m_cos+:} false; then : 58658 $as_echo_n "(cached) " >&6 58659 else 58660 ac_check_lib_save_LIBS=$LIBS 58661 LIBS="-lm $LIBS" 58662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58663 /* end confdefs.h. */ 58664 58665 /* Override any GCC internal prototype to avoid an error. 58666 Use char because int might match the return type of a GCC 58667 builtin and then its argument prototype would still apply. */ 58668 #ifdef __cplusplus 58669 extern "C" 58670 #endif 58671 char cos (); 58672 int 58673 main () 58674 { 58675 return cos (); 58676 ; 58677 return 0; 58678 } 58679 _ACEOF 58680 if ac_fn_cxx_try_link "$LINENO"; then : 58681 ac_cv_lib_m_cos=yes 58682 else 58683 ac_cv_lib_m_cos=no 58684 fi 58685 rm -f core conftest.err conftest.$ac_objext \ 58686 conftest$ac_exeext conftest.$ac_ext 58687 LIBS=$ac_check_lib_save_LIBS 58688 fi 58689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 58690 $as_echo "$ac_cv_lib_m_cos" >&6; } 58691 if test "x$ac_cv_lib_m_cos" = xyes; then : 58692 cat >>confdefs.h <<_ACEOF 58693 #define HAVE_LIBM 1 58694 _ACEOF 58695 58696 LIBS="-lm $LIBS" 58697 58698 else 58699 58700 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 58701 $as_echo "$as_me: Maths library was not found" >&6;} 58702 58703 fi 58704 58705 LIBM="-lm" 58706 else 58707 LIBM="" 58708 fi 58709 58710 58711 # Setup libdl (for dynamic library loading) 58712 save_LIBS="$LIBS" 58713 LIBS="" 58714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 58715 $as_echo_n "checking for dlopen in -ldl... " >&6; } 58716 if ${ac_cv_lib_dl_dlopen+:} false; then : 58717 $as_echo_n "(cached) " >&6 58718 else 58719 ac_check_lib_save_LIBS=$LIBS 58720 LIBS="-ldl $LIBS" 58721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58722 /* end confdefs.h. */ 58723 58724 /* Override any GCC internal prototype to avoid an error. 58725 Use char because int might match the return type of a GCC 58726 builtin and then its argument prototype would still apply. */ 58727 #ifdef __cplusplus 58728 extern "C" 58729 #endif 58730 char dlopen (); 58731 int 58732 main () 58733 { 58734 return dlopen (); 58735 ; 58736 return 0; 58737 } 58738 _ACEOF 58739 if ac_fn_cxx_try_link "$LINENO"; then : 58740 ac_cv_lib_dl_dlopen=yes 58741 else 58742 ac_cv_lib_dl_dlopen=no 58743 fi 58744 rm -f core conftest.err conftest.$ac_objext \ 58745 conftest$ac_exeext conftest.$ac_ext 58746 LIBS=$ac_check_lib_save_LIBS 58747 fi 58748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 58749 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 58750 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 58751 cat >>confdefs.h <<_ACEOF 58752 #define HAVE_LIBDL 1 58753 _ACEOF 58754 58755 LIBS="-ldl $LIBS" 58756 58757 fi 58758 58759 LIBDL="$LIBS" 58760 58761 LIBS="$save_LIBS" 58762 58763 # Deprecated libraries, keep the flags for backwards compatibility 58764 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 58765 58766 58767 # Check whether --with-dxsdk was given. 58768 if test "${with_dxsdk+set}" = set; then : 58769 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 58770 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 58771 fi 58772 58773 58774 58775 58776 # Check whether --with-dxsdk-lib was given. 58777 if test "${with_dxsdk_lib+set}" = set; then : 58778 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 58779 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 58780 fi 58781 58782 58783 58784 58785 # Check whether --with-dxsdk-include was given. 58786 if test "${with_dxsdk_include+set}" = set; then : 58787 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 58788 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 58789 fi 58790 58791 58792 fi 58793 58794 # Control if libzip can use mmap. Available for purposes of overriding. 58795 LIBZIP_CAN_USE_MMAP=true 58796 58797 58798 58799 58800 58801 58802 58803 58804 58805 58806 58807 58808 58809 58810 ############################################################################### 58811 # 58812 # We need to do some final tweaking, when everything else is done. 58813 # 58814 ############################################################################### 58815 58816 58817 HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET" 58818 58819 58820 58821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 58822 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 58823 58824 if test -d "${SRC_ROOT}/jdk/src/jdk.crypto.ec/share/native/libsunec/impl"; then 58825 ENABLE_INTREE_EC=yes 58826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 58827 $as_echo "yes" >&6; } 58828 else 58829 ENABLE_INTREE_EC=no 58830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58831 $as_echo "no" >&6; } 58832 fi 58833 58834 58835 58836 58837 ############################################################################### 58838 # 58839 # Configure parts of the build that only affect the build performance, 58840 # not the result. 58841 # 58842 ############################################################################### 58843 58844 58845 # How many cores do we have on this build system? 58846 58847 # Check whether --with-num-cores was given. 58848 if test "${with_num_cores+set}" = set; then : 58849 withval=$with_num_cores; 58850 fi 58851 58852 if test "x$with_num_cores" = x; then 58853 # The number of cores were not specified, try to probe them. 58854 58855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 58856 $as_echo_n "checking for number of cores... " >&6; } 58857 NUM_CORES=1 58858 FOUND_CORES=no 58859 58860 if test -f /proc/cpuinfo; then 58861 # Looks like a Linux (or cygwin) system 58862 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 58863 FOUND_CORES=yes 58864 elif test -x /usr/sbin/psrinfo; then 58865 # Looks like a Solaris system 58866 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 58867 FOUND_CORES=yes 58868 elif test -x /usr/sbin/sysctl; then 58869 # Looks like a MacOSX system 58870 NUM_CORES=`/usr/sbin/sysctl -n hw.ncpu` 58871 FOUND_CORES=yes 58872 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 58873 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 58874 FOUND_CORES=yes 58875 elif test -n "$NUMBER_OF_PROCESSORS"; then 58876 # On windows, look in the env 58877 NUM_CORES=$NUMBER_OF_PROCESSORS 58878 FOUND_CORES=yes 58879 fi 58880 58881 if test "x$FOUND_CORES" = xyes; then 58882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 58883 $as_echo "$NUM_CORES" >&6; } 58884 else 58885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 58886 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 58887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 58888 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 58889 fi 58890 58891 else 58892 NUM_CORES=$with_num_cores 58893 fi 58894 58895 58896 58897 # How much memory do we have on this build system? 58898 58899 # Check whether --with-memory-size was given. 58900 if test "${with_memory_size+set}" = set; then : 58901 withval=$with_memory_size; 58902 fi 58903 58904 if test "x$with_memory_size" = x; then 58905 # The memory size was not specified, try to probe it. 58906 58907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 58908 $as_echo_n "checking for memory size... " >&6; } 58909 # Default to 1024 MB 58910 MEMORY_SIZE=1024 58911 FOUND_MEM=no 58912 58913 if test -f /proc/meminfo; then 58914 # Looks like a Linux (or cygwin) system 58915 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 58916 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 58917 FOUND_MEM=yes 58918 elif test -x /usr/sbin/prtconf; then 58919 # Looks like a Solaris or AIX system 58920 MEMORY_SIZE=`/usr/sbin/prtconf 2> /dev/null | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 58921 FOUND_MEM=yes 58922 elif test -x /usr/sbin/sysctl; then 58923 # Looks like a MacOSX system 58924 MEMORY_SIZE=`/usr/sbin/sysctl -n hw.memsize` 58925 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 58926 FOUND_MEM=yes 58927 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 58928 # Windows, but without cygwin 58929 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 58930 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 58931 FOUND_MEM=yes 58932 fi 58933 58934 if test "x$FOUND_MEM" = xyes; then 58935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 58936 $as_echo "$MEMORY_SIZE MB" >&6; } 58937 else 58938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 58939 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 58940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 58941 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 58942 fi 58943 58944 else 58945 MEMORY_SIZE=$with_memory_size 58946 fi 58947 58948 58949 58950 # Provide a decent default number of parallel jobs for make depending on 58951 # number of cores, amount of memory and machine architecture. 58952 58953 # Check whether --with-jobs was given. 58954 if test "${with_jobs+set}" = set; then : 58955 withval=$with_jobs; 58956 fi 58957 58958 if test "x$with_jobs" = x; then 58959 # Number of jobs was not specified, calculate. 58960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 58961 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 58962 # Approximate memory in GB. 58963 memory_gb=`expr $MEMORY_SIZE / 1024` 58964 # Pick the lowest of memory in gb and number of cores. 58965 if test "$memory_gb" -lt "$NUM_CORES"; then 58966 JOBS="$memory_gb" 58967 else 58968 JOBS="$NUM_CORES" 58969 fi 58970 if test "$JOBS" -eq "0"; then 58971 JOBS=1 58972 fi 58973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 58974 $as_echo "$JOBS" >&6; } 58975 else 58976 JOBS=$with_jobs 58977 fi 58978 58979 58980 58981 # The number of test jobs will be chosen automatically if TEST_JOBS is 0 58982 58983 # Check whether --with-test-jobs was given. 58984 if test "${with_test_jobs+set}" = set; then : 58985 withval=$with_test_jobs; 58986 fi 58987 58988 if test "x$with_test_jobs" = x; then 58989 TEST_JOBS=0 58990 else 58991 TEST_JOBS=$with_test_jobs 58992 fi 58993 58994 58995 58996 # Setup arguments for the boot jdk (after cores and memory have been setup) 58997 58998 ############################################################################## 58999 # 59000 # Specify jvm options for anything that is run with the Boot JDK. 59001 # Not all JVM:s accept the same arguments on the command line. 59002 # 59003 59004 # Check whether --with-boot-jdk-jvmargs was given. 59005 if test "${with_boot_jdk_jvmargs+set}" = set; then : 59006 withval=$with_boot_jdk_jvmargs; 59007 fi 59008 59009 59010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 59011 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 59012 59013 # Disable special log output when a debug build is used as Boot JDK... 59014 59015 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 59016 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 59017 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 59018 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 59019 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 59020 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 59021 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 59022 JVM_ARG_OK=true 59023 else 59024 $ECHO "Arg failed:" >&5 59025 $ECHO "$OUTPUT" >&5 59026 JVM_ARG_OK=false 59027 fi 59028 59029 59030 # Apply user provided options. 59031 59032 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 59033 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 59034 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 59035 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 59036 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 59037 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 59038 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 59039 JVM_ARG_OK=true 59040 else 59041 $ECHO "Arg failed:" >&5 59042 $ECHO "$OUTPUT" >&5 59043 JVM_ARG_OK=false 59044 fi 59045 59046 59047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 59048 $as_echo "$boot_jdk_jvmargs" >&6; } 59049 59050 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 59051 JAVA_FLAGS=$boot_jdk_jvmargs 59052 59053 59054 59055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 59056 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 59057 59058 # Starting amount of heap memory. 59059 59060 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 59061 $ECHO "Command: $JAVA -Xms64M -version" >&5 59062 OUTPUT=`$JAVA -Xms64M -version 2>&1` 59063 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 59064 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 59065 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 59066 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 59067 JVM_ARG_OK=true 59068 else 59069 $ECHO "Arg failed:" >&5 59070 $ECHO "$OUTPUT" >&5 59071 JVM_ARG_OK=false 59072 fi 59073 59074 59075 # Maximum amount of heap memory. 59076 # Maximum stack size. 59077 JVM_MAX_HEAP=`expr $MEMORY_SIZE / 2` 59078 if test "x$BOOT_JDK_BITS" = "x32"; then 59079 if test "$JVM_MAX_HEAP" -gt "1100"; then 59080 JVM_MAX_HEAP=1100 59081 elif test "$JVM_MAX_HEAP" -lt "512"; then 59082 JVM_MAX_HEAP=512 59083 fi 59084 STACK_SIZE=768 59085 else 59086 # Running a 64 bit JVM allows for and requires a bigger heap 59087 if test "$JVM_MAX_HEAP" -gt "1600"; then 59088 JVM_MAX_HEAP=1600 59089 elif test "$JVM_MAX_HEAP" -lt "512"; then 59090 JVM_MAX_HEAP=512 59091 fi 59092 STACK_SIZE=1536 59093 fi 59094 59095 $ECHO "Check if jvm arg is ok: -Xmx${JVM_MAX_HEAP}M" >&5 59096 $ECHO "Command: $JAVA -Xmx${JVM_MAX_HEAP}M -version" >&5 59097 OUTPUT=`$JAVA -Xmx${JVM_MAX_HEAP}M -version 2>&1` 59098 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 59099 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 59100 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 59101 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx${JVM_MAX_HEAP}M" 59102 JVM_ARG_OK=true 59103 else 59104 $ECHO "Arg failed:" >&5 59105 $ECHO "$OUTPUT" >&5 59106 JVM_ARG_OK=false 59107 fi 59108 59109 59110 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 59111 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 59112 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 59113 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 59114 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 59115 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 59116 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 59117 JVM_ARG_OK=true 59118 else 59119 $ECHO "Arg failed:" >&5 59120 $ECHO "$OUTPUT" >&5 59121 JVM_ARG_OK=false 59122 fi 59123 59124 59125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 59126 $as_echo "$boot_jdk_jvmargs_big" >&6; } 59127 59128 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 59129 59130 59131 # By default, the main javac compilations use big 59132 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_BIG" 59133 59134 59135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 59136 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 59137 59138 # Use serial gc for small short lived tools if possible 59139 59140 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 59141 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 59142 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 59143 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 59144 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 59145 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 59146 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 59147 JVM_ARG_OK=true 59148 else 59149 $ECHO "Arg failed:" >&5 59150 $ECHO "$OUTPUT" >&5 59151 JVM_ARG_OK=false 59152 fi 59153 59154 59155 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 59156 $ECHO "Command: $JAVA -Xms32M -version" >&5 59157 OUTPUT=`$JAVA -Xms32M -version 2>&1` 59158 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 59159 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 59160 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 59161 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 59162 JVM_ARG_OK=true 59163 else 59164 $ECHO "Arg failed:" >&5 59165 $ECHO "$OUTPUT" >&5 59166 JVM_ARG_OK=false 59167 fi 59168 59169 59170 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 59171 $ECHO "Command: $JAVA -Xmx512M -version" >&5 59172 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 59173 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 59174 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 59175 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 59176 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 59177 JVM_ARG_OK=true 59178 else 59179 $ECHO "Arg failed:" >&5 59180 $ECHO "$OUTPUT" >&5 59181 JVM_ARG_OK=false 59182 fi 59183 59184 59185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 59186 $as_echo "$boot_jdk_jvmargs_small" >&6; } 59187 59188 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 59189 59190 59191 JAVA_TOOL_FLAGS_SMALL="" 59192 for f in $JAVA_FLAGS_SMALL; do 59193 JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f" 59194 done 59195 59196 59197 59198 # Setup smart javac (after cores and memory have been setup) 59199 59200 59201 # Check whether --with-sjavac-server-java was given. 59202 if test "${with_sjavac_server_java+set}" = set; then : 59203 withval=$with_sjavac_server_java; 59204 fi 59205 59206 59207 if test "x$with_sjavac_server_java" != x; then 59208 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 59209 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 59210 if test "x$FOUND_VERSION" = x; then 59211 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 59212 fi 59213 else 59214 SJAVAC_SERVER_JAVA="$JAVA" 59215 fi 59216 59217 59218 if test "$MEMORY_SIZE" -gt "3000"; then 59219 59220 $ECHO "Check if jvm arg is ok: -d64" >&5 59221 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 59222 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 59223 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 59224 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 59225 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 59226 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -d64" 59227 JVM_ARG_OK=true 59228 else 59229 $ECHO "Arg failed:" >&5 59230 $ECHO "$OUTPUT" >&5 59231 JVM_ARG_OK=false 59232 fi 59233 59234 if test "$JVM_ARG_OK" = true; then 59235 JVM_64BIT=true 59236 JVM_ARG_OK=false 59237 fi 59238 fi 59239 59240 MX_VALUE=`expr $MEMORY_SIZE / 2` 59241 if test "$JVM_64BIT" = true; then 59242 # Set ms lower than mx since more than one instance of the server might 59243 # get launched at the same time before they figure out which instance won. 59244 MS_VALUE=512 59245 if test "$MX_VALUE" -gt "2048"; then 59246 MX_VALUE=2048 59247 fi 59248 else 59249 MS_VALUE=256 59250 if test "$MX_VALUE" -gt "1500"; then 59251 MX_VALUE=1500 59252 fi 59253 fi 59254 if test "$MX_VALUE" -lt "512"; then 59255 MX_VALUE=512 59256 fi 59257 59258 $ECHO "Check if jvm arg is ok: -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" >&5 59259 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version" >&5 59260 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version 2>&1` 59261 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 59262 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 59263 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 59264 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" 59265 JVM_ARG_OK=true 59266 else 59267 $ECHO "Arg failed:" >&5 59268 $ECHO "$OUTPUT" >&5 59269 JVM_ARG_OK=false 59270 fi 59271 59272 59273 59274 # Check whether --enable-sjavac was given. 59275 if test "${enable_sjavac+set}" = set; then : 59276 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 59277 else 59278 ENABLE_SJAVAC="no" 59279 fi 59280 59281 if test "x$JVM_ARG_OK" = "xfalse"; then 59282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5 59283 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;} 59284 ENABLE_SJAVAC="no" 59285 fi 59286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 59287 $as_echo_n "checking whether to use sjavac... " >&6; } 59288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 59289 $as_echo "$ENABLE_SJAVAC" >&6; } 59290 59291 59292 # Check whether --enable-javac-server was given. 59293 if test "${enable_javac_server+set}" = set; then : 59294 enableval=$enable_javac_server; ENABLE_JAVAC_SERVER="${enableval}" 59295 else 59296 ENABLE_JAVAC_SERVER="yes" 59297 fi 59298 59299 if test "x$JVM_ARG_OK" = "xfalse"; then 59300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&5 59301 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&2;} 59302 ENABLE_JAVAC_SERVER="no" 59303 fi 59304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use javac server" >&5 59305 $as_echo_n "checking whether to use javac server... " >&6; } 59306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_SERVER" >&5 59307 $as_echo "$ENABLE_JAVAC_SERVER" >&6; } 59308 59309 59310 if test "x$ENABLE_JAVAC_SERVER" = "xyes" || "x$ENABLE_SJAVAC" = "xyes"; then 59311 # When using a server javac, the small client instances do not need much 59312 # resources. 59313 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_SMALL" 59314 fi 59315 59316 59317 # Setup use of icecc if requested 59318 59319 # Check whether --enable-icecc was given. 59320 if test "${enable_icecc+set}" = set; then : 59321 enableval=$enable_icecc; 59322 fi 59323 59324 59325 if test "x${enable_icecc}" = "xyes"; then 59326 59327 59328 59329 # Publish this variable in the help. 59330 59331 59332 if [ -z "${ICECC_CMD+x}" ]; then 59333 # The variable is not set by user, try to locate tool using the code snippet 59334 for ac_prog in icecc 59335 do 59336 # Extract the first word of "$ac_prog", so it can be a program name with args. 59337 set dummy $ac_prog; ac_word=$2 59338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 59339 $as_echo_n "checking for $ac_word... " >&6; } 59340 if ${ac_cv_path_ICECC_CMD+:} false; then : 59341 $as_echo_n "(cached) " >&6 59342 else 59343 case $ICECC_CMD in 59344 [\\/]* | ?:[\\/]*) 59345 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 59346 ;; 59347 *) 59348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 59349 for as_dir in $PATH 59350 do 59351 IFS=$as_save_IFS 59352 test -z "$as_dir" && as_dir=. 59353 for ac_exec_ext in '' $ac_executable_extensions; do 59354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 59355 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 59356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 59357 break 2 59358 fi 59359 done 59360 done 59361 IFS=$as_save_IFS 59362 59363 ;; 59364 esac 59365 fi 59366 ICECC_CMD=$ac_cv_path_ICECC_CMD 59367 if test -n "$ICECC_CMD"; then 59368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 59369 $as_echo "$ICECC_CMD" >&6; } 59370 else 59371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 59372 $as_echo "no" >&6; } 59373 fi 59374 59375 59376 test -n "$ICECC_CMD" && break 59377 done 59378 59379 else 59380 # The variable is set, but is it from the command line or the environment? 59381 59382 # Try to remove the string !ICECC_CMD! from our list. 59383 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CMD!/} 59384 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 59385 # If it failed, the variable was not from the command line. Ignore it, 59386 # but warn the user (except for BASH, which is always set by the calling BASH). 59387 if test "xICECC_CMD" != xBASH; then 59388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&5 59389 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&2;} 59390 fi 59391 # Try to locate tool using the code snippet 59392 for ac_prog in icecc 59393 do 59394 # Extract the first word of "$ac_prog", so it can be a program name with args. 59395 set dummy $ac_prog; ac_word=$2 59396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 59397 $as_echo_n "checking for $ac_word... " >&6; } 59398 if ${ac_cv_path_ICECC_CMD+:} false; then : 59399 $as_echo_n "(cached) " >&6 59400 else 59401 case $ICECC_CMD in 59402 [\\/]* | ?:[\\/]*) 59403 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 59404 ;; 59405 *) 59406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 59407 for as_dir in $PATH 59408 do 59409 IFS=$as_save_IFS 59410 test -z "$as_dir" && as_dir=. 59411 for ac_exec_ext in '' $ac_executable_extensions; do 59412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 59413 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 59414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 59415 break 2 59416 fi 59417 done 59418 done 59419 IFS=$as_save_IFS 59420 59421 ;; 59422 esac 59423 fi 59424 ICECC_CMD=$ac_cv_path_ICECC_CMD 59425 if test -n "$ICECC_CMD"; then 59426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 59427 $as_echo "$ICECC_CMD" >&6; } 59428 else 59429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 59430 $as_echo "no" >&6; } 59431 fi 59432 59433 59434 test -n "$ICECC_CMD" && break 59435 done 59436 59437 else 59438 # If it succeeded, then it was overridden by the user. We will use it 59439 # for the tool. 59440 59441 # First remove it from the list of overridden variables, so we can test 59442 # for unknown variables in the end. 59443 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 59444 59445 # Check if we try to supply an empty value 59446 if test "x$ICECC_CMD" = x; then 59447 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CMD= (no value)" >&5 59448 $as_echo "$as_me: Setting user supplied tool ICECC_CMD= (no value)" >&6;} 59449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 59450 $as_echo_n "checking for ICECC_CMD... " >&6; } 59451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 59452 $as_echo "disabled" >&6; } 59453 else 59454 # Check if the provided tool contains a complete path. 59455 tool_specified="$ICECC_CMD" 59456 tool_basename="${tool_specified##*/}" 59457 if test "x$tool_basename" = "x$tool_specified"; then 59458 # A command without a complete path is provided, search $PATH. 59459 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CMD=$tool_basename" >&5 59460 $as_echo "$as_me: Will search for user supplied tool ICECC_CMD=$tool_basename" >&6;} 59461 # Extract the first word of "$tool_basename", so it can be a program name with args. 59462 set dummy $tool_basename; ac_word=$2 59463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 59464 $as_echo_n "checking for $ac_word... " >&6; } 59465 if ${ac_cv_path_ICECC_CMD+:} false; then : 59466 $as_echo_n "(cached) " >&6 59467 else 59468 case $ICECC_CMD in 59469 [\\/]* | ?:[\\/]*) 59470 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 59471 ;; 59472 *) 59473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 59474 for as_dir in $PATH 59475 do 59476 IFS=$as_save_IFS 59477 test -z "$as_dir" && as_dir=. 59478 for ac_exec_ext in '' $ac_executable_extensions; do 59479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 59480 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 59481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 59482 break 2 59483 fi 59484 done 59485 done 59486 IFS=$as_save_IFS 59487 59488 ;; 59489 esac 59490 fi 59491 ICECC_CMD=$ac_cv_path_ICECC_CMD 59492 if test -n "$ICECC_CMD"; then 59493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 59494 $as_echo "$ICECC_CMD" >&6; } 59495 else 59496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 59497 $as_echo "no" >&6; } 59498 fi 59499 59500 59501 if test "x$ICECC_CMD" = x; then 59502 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 59503 fi 59504 else 59505 # Otherwise we believe it is a complete path. Use it as it is. 59506 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CMD=$tool_specified" >&5 59507 $as_echo "$as_me: Will use user supplied tool ICECC_CMD=$tool_specified" >&6;} 59508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 59509 $as_echo_n "checking for ICECC_CMD... " >&6; } 59510 if test ! -x "$tool_specified"; then 59511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 59512 $as_echo "not found" >&6; } 59513 as_fn_error $? "User supplied tool ICECC_CMD=$tool_specified does not exist or is not executable" "$LINENO" 5 59514 fi 59515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 59516 $as_echo "$tool_specified" >&6; } 59517 fi 59518 fi 59519 fi 59520 59521 fi 59522 59523 59524 59525 if test "x$ICECC_CMD" = x; then 59526 as_fn_error $? "Could not find required tool for ICECC_CMD" "$LINENO" 5 59527 fi 59528 59529 59530 old_path="$PATH" 59531 59532 # Look for icecc-create-env in some known places 59533 PATH="$PATH:/usr/lib/icecc:/usr/lib64/icecc" 59534 59535 59536 59537 # Publish this variable in the help. 59538 59539 59540 if [ -z "${ICECC_CREATE_ENV+x}" ]; then 59541 # The variable is not set by user, try to locate tool using the code snippet 59542 for ac_prog in icecc-create-env 59543 do 59544 # Extract the first word of "$ac_prog", so it can be a program name with args. 59545 set dummy $ac_prog; ac_word=$2 59546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 59547 $as_echo_n "checking for $ac_word... " >&6; } 59548 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 59549 $as_echo_n "(cached) " >&6 59550 else 59551 case $ICECC_CREATE_ENV in 59552 [\\/]* | ?:[\\/]*) 59553 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 59554 ;; 59555 *) 59556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 59557 for as_dir in $PATH 59558 do 59559 IFS=$as_save_IFS 59560 test -z "$as_dir" && as_dir=. 59561 for ac_exec_ext in '' $ac_executable_extensions; do 59562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 59563 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 59564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 59565 break 2 59566 fi 59567 done 59568 done 59569 IFS=$as_save_IFS 59570 59571 ;; 59572 esac 59573 fi 59574 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 59575 if test -n "$ICECC_CREATE_ENV"; then 59576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 59577 $as_echo "$ICECC_CREATE_ENV" >&6; } 59578 else 59579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 59580 $as_echo "no" >&6; } 59581 fi 59582 59583 59584 test -n "$ICECC_CREATE_ENV" && break 59585 done 59586 59587 else 59588 # The variable is set, but is it from the command line or the environment? 59589 59590 # Try to remove the string !ICECC_CREATE_ENV! from our list. 59591 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CREATE_ENV!/} 59592 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 59593 # If it failed, the variable was not from the command line. Ignore it, 59594 # but warn the user (except for BASH, which is always set by the calling BASH). 59595 if test "xICECC_CREATE_ENV" != xBASH; then 59596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&5 59597 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&2;} 59598 fi 59599 # Try to locate tool using the code snippet 59600 for ac_prog in icecc-create-env 59601 do 59602 # Extract the first word of "$ac_prog", so it can be a program name with args. 59603 set dummy $ac_prog; ac_word=$2 59604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 59605 $as_echo_n "checking for $ac_word... " >&6; } 59606 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 59607 $as_echo_n "(cached) " >&6 59608 else 59609 case $ICECC_CREATE_ENV in 59610 [\\/]* | ?:[\\/]*) 59611 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 59612 ;; 59613 *) 59614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 59615 for as_dir in $PATH 59616 do 59617 IFS=$as_save_IFS 59618 test -z "$as_dir" && as_dir=. 59619 for ac_exec_ext in '' $ac_executable_extensions; do 59620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 59621 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 59622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 59623 break 2 59624 fi 59625 done 59626 done 59627 IFS=$as_save_IFS 59628 59629 ;; 59630 esac 59631 fi 59632 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 59633 if test -n "$ICECC_CREATE_ENV"; then 59634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 59635 $as_echo "$ICECC_CREATE_ENV" >&6; } 59636 else 59637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 59638 $as_echo "no" >&6; } 59639 fi 59640 59641 59642 test -n "$ICECC_CREATE_ENV" && break 59643 done 59644 59645 else 59646 # If it succeeded, then it was overridden by the user. We will use it 59647 # for the tool. 59648 59649 # First remove it from the list of overridden variables, so we can test 59650 # for unknown variables in the end. 59651 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 59652 59653 # Check if we try to supply an empty value 59654 if test "x$ICECC_CREATE_ENV" = x; then 59655 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&5 59656 $as_echo "$as_me: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&6;} 59657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 59658 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 59659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 59660 $as_echo "disabled" >&6; } 59661 else 59662 # Check if the provided tool contains a complete path. 59663 tool_specified="$ICECC_CREATE_ENV" 59664 tool_basename="${tool_specified##*/}" 59665 if test "x$tool_basename" = "x$tool_specified"; then 59666 # A command without a complete path is provided, search $PATH. 59667 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&5 59668 $as_echo "$as_me: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&6;} 59669 # Extract the first word of "$tool_basename", so it can be a program name with args. 59670 set dummy $tool_basename; ac_word=$2 59671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 59672 $as_echo_n "checking for $ac_word... " >&6; } 59673 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 59674 $as_echo_n "(cached) " >&6 59675 else 59676 case $ICECC_CREATE_ENV in 59677 [\\/]* | ?:[\\/]*) 59678 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 59679 ;; 59680 *) 59681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 59682 for as_dir in $PATH 59683 do 59684 IFS=$as_save_IFS 59685 test -z "$as_dir" && as_dir=. 59686 for ac_exec_ext in '' $ac_executable_extensions; do 59687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 59688 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 59689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 59690 break 2 59691 fi 59692 done 59693 done 59694 IFS=$as_save_IFS 59695 59696 ;; 59697 esac 59698 fi 59699 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 59700 if test -n "$ICECC_CREATE_ENV"; then 59701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 59702 $as_echo "$ICECC_CREATE_ENV" >&6; } 59703 else 59704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 59705 $as_echo "no" >&6; } 59706 fi 59707 59708 59709 if test "x$ICECC_CREATE_ENV" = x; then 59710 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 59711 fi 59712 else 59713 # Otherwise we believe it is a complete path. Use it as it is. 59714 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&5 59715 $as_echo "$as_me: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&6;} 59716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 59717 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 59718 if test ! -x "$tool_specified"; then 59719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 59720 $as_echo "not found" >&6; } 59721 as_fn_error $? "User supplied tool ICECC_CREATE_ENV=$tool_specified does not exist or is not executable" "$LINENO" 5 59722 fi 59723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 59724 $as_echo "$tool_specified" >&6; } 59725 fi 59726 fi 59727 fi 59728 59729 fi 59730 59731 59732 59733 if test "x$ICECC_CREATE_ENV" = x; then 59734 as_fn_error $? "Could not find required tool for ICECC_CREATE_ENV" "$LINENO" 5 59735 fi 59736 59737 59738 # Use icecc-create-env to create a minimal compilation environment that can 59739 # be sent to the other hosts in the icecream cluster. 59740 icecc_create_env_log="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env.log" 59741 ${MKDIR} -p ${CONFIGURESUPPORT_OUTPUTDIR}/icecc 59742 # Older versions of icecc does not have the --gcc parameter 59743 if ${ICECC_CREATE_ENV} | $GREP -q -e --gcc; then 59744 icecc_gcc_arg="--gcc" 59745 fi 59746 if test "x${TOOLCHAIN_TYPE}" = "xgcc"; then 59747 59748 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 59749 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${CC} ${CXX} > \ 59750 ${icecc_create_env_log} 2>&1 ) 59751 if test "$?" != "0"; then 59752 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 59753 $as_echo "$as_me: icecc-create-env output:" >&6;} 59754 cat \ 59755 ${icecc_create_env_log} 59756 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 59757 fi 59758 59759 elif test "x$TOOLCHAIN_TYPE" = "xclang"; then 59760 # For clang, the icecc compilerwrapper is needed. It usually resides next 59761 # to icecc-create-env. 59762 59763 59764 59765 # Publish this variable in the help. 59766 59767 59768 if [ -z "${ICECC_WRAPPER+x}" ]; then 59769 # The variable is not set by user, try to locate tool using the code snippet 59770 for ac_prog in compilerwrapper 59771 do 59772 # Extract the first word of "$ac_prog", so it can be a program name with args. 59773 set dummy $ac_prog; ac_word=$2 59774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 59775 $as_echo_n "checking for $ac_word... " >&6; } 59776 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 59777 $as_echo_n "(cached) " >&6 59778 else 59779 case $ICECC_WRAPPER in 59780 [\\/]* | ?:[\\/]*) 59781 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 59782 ;; 59783 *) 59784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 59785 for as_dir in $PATH 59786 do 59787 IFS=$as_save_IFS 59788 test -z "$as_dir" && as_dir=. 59789 for ac_exec_ext in '' $ac_executable_extensions; do 59790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 59791 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 59792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 59793 break 2 59794 fi 59795 done 59796 done 59797 IFS=$as_save_IFS 59798 59799 ;; 59800 esac 59801 fi 59802 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 59803 if test -n "$ICECC_WRAPPER"; then 59804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 59805 $as_echo "$ICECC_WRAPPER" >&6; } 59806 else 59807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 59808 $as_echo "no" >&6; } 59809 fi 59810 59811 59812 test -n "$ICECC_WRAPPER" && break 59813 done 59814 59815 else 59816 # The variable is set, but is it from the command line or the environment? 59817 59818 # Try to remove the string !ICECC_WRAPPER! from our list. 59819 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_WRAPPER!/} 59820 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 59821 # If it failed, the variable was not from the command line. Ignore it, 59822 # but warn the user (except for BASH, which is always set by the calling BASH). 59823 if test "xICECC_WRAPPER" != xBASH; then 59824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&5 59825 $as_echo "$as_me: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&2;} 59826 fi 59827 # Try to locate tool using the code snippet 59828 for ac_prog in compilerwrapper 59829 do 59830 # Extract the first word of "$ac_prog", so it can be a program name with args. 59831 set dummy $ac_prog; ac_word=$2 59832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 59833 $as_echo_n "checking for $ac_word... " >&6; } 59834 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 59835 $as_echo_n "(cached) " >&6 59836 else 59837 case $ICECC_WRAPPER in 59838 [\\/]* | ?:[\\/]*) 59839 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 59840 ;; 59841 *) 59842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 59843 for as_dir in $PATH 59844 do 59845 IFS=$as_save_IFS 59846 test -z "$as_dir" && as_dir=. 59847 for ac_exec_ext in '' $ac_executable_extensions; do 59848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 59849 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 59850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 59851 break 2 59852 fi 59853 done 59854 done 59855 IFS=$as_save_IFS 59856 59857 ;; 59858 esac 59859 fi 59860 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 59861 if test -n "$ICECC_WRAPPER"; then 59862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 59863 $as_echo "$ICECC_WRAPPER" >&6; } 59864 else 59865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 59866 $as_echo "no" >&6; } 59867 fi 59868 59869 59870 test -n "$ICECC_WRAPPER" && break 59871 done 59872 59873 else 59874 # If it succeeded, then it was overridden by the user. We will use it 59875 # for the tool. 59876 59877 # First remove it from the list of overridden variables, so we can test 59878 # for unknown variables in the end. 59879 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 59880 59881 # Check if we try to supply an empty value 59882 if test "x$ICECC_WRAPPER" = x; then 59883 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_WRAPPER= (no value)" >&5 59884 $as_echo "$as_me: Setting user supplied tool ICECC_WRAPPER= (no value)" >&6;} 59885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 59886 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 59887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 59888 $as_echo "disabled" >&6; } 59889 else 59890 # Check if the provided tool contains a complete path. 59891 tool_specified="$ICECC_WRAPPER" 59892 tool_basename="${tool_specified##*/}" 59893 if test "x$tool_basename" = "x$tool_specified"; then 59894 # A command without a complete path is provided, search $PATH. 59895 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&5 59896 $as_echo "$as_me: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&6;} 59897 # Extract the first word of "$tool_basename", so it can be a program name with args. 59898 set dummy $tool_basename; ac_word=$2 59899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 59900 $as_echo_n "checking for $ac_word... " >&6; } 59901 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 59902 $as_echo_n "(cached) " >&6 59903 else 59904 case $ICECC_WRAPPER in 59905 [\\/]* | ?:[\\/]*) 59906 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 59907 ;; 59908 *) 59909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 59910 for as_dir in $PATH 59911 do 59912 IFS=$as_save_IFS 59913 test -z "$as_dir" && as_dir=. 59914 for ac_exec_ext in '' $ac_executable_extensions; do 59915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 59916 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 59917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 59918 break 2 59919 fi 59920 done 59921 done 59922 IFS=$as_save_IFS 59923 59924 ;; 59925 esac 59926 fi 59927 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 59928 if test -n "$ICECC_WRAPPER"; then 59929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 59930 $as_echo "$ICECC_WRAPPER" >&6; } 59931 else 59932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 59933 $as_echo "no" >&6; } 59934 fi 59935 59936 59937 if test "x$ICECC_WRAPPER" = x; then 59938 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 59939 fi 59940 else 59941 # Otherwise we believe it is a complete path. Use it as it is. 59942 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&5 59943 $as_echo "$as_me: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&6;} 59944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 59945 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 59946 if test ! -x "$tool_specified"; then 59947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 59948 $as_echo "not found" >&6; } 59949 as_fn_error $? "User supplied tool ICECC_WRAPPER=$tool_specified does not exist or is not executable" "$LINENO" 5 59950 fi 59951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 59952 $as_echo "$tool_specified" >&6; } 59953 fi 59954 fi 59955 fi 59956 59957 fi 59958 59959 59960 59961 if test "x$ICECC_WRAPPER" = x; then 59962 as_fn_error $? "Could not find required tool for ICECC_WRAPPER" "$LINENO" 5 59963 fi 59964 59965 59966 59967 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 59968 && ${ICECC_CREATE_ENV} --clang ${CC} ${ICECC_WRAPPER} > ${icecc_create_env_log} 2>&1 ) 59969 if test "$?" != "0"; then 59970 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 59971 $as_echo "$as_me: icecc-create-env output:" >&6;} 59972 cat ${icecc_create_env_log} 59973 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 59974 fi 59975 59976 else 59977 as_fn_error $? "Can only create icecc compiler packages for toolchain types gcc and clang" "$LINENO" 5 59978 fi 59979 PATH="$old_path" 59980 # The bundle with the compiler gets a name based on checksums. Parse log file 59981 # to find it. 59982 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log}`" 59983 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 59984 if test ! -f ${ICECC_ENV_BUNDLE}; then 59985 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 59986 fi 59987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for target compiler" >&5 59988 $as_echo_n "checking for icecc build environment for target compiler... " >&6; } 59989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 59990 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 59991 ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${CC} ICECC_CXX=${CXX} ${ICECC_CMD}" 59992 59993 if test "x${COMPILE_TYPE}" = "xcross"; then 59994 # If cross compiling, create a separate env package for the build compiler 59995 # Assume "gcc" or "cc" is gcc and "clang" is clang. Otherwise bail. 59996 icecc_create_env_log_build="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env_build.log" 59997 if test "x${BUILD_CC##*/}" = "xgcc" || test "x${BUILD_CC##*/}" = "xcc"; then 59998 59999 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 60000 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${BUILD_CC} ${BUILD_CXX} > \ 60001 ${icecc_create_env_log_build} 2>&1 ) 60002 if test "$?" != "0"; then 60003 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 60004 $as_echo "$as_me: icecc-create-env output:" >&6;} 60005 cat \ 60006 ${icecc_create_env_log_build} 60007 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 60008 fi 60009 60010 elif test "x${BUILD_CC##*/}" = "xclang"; then 60011 60012 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 60013 && ${ICECC_CREATE_ENV} --clang ${BUILD_CC} ${ICECC_WRAPPER} > ${icecc_create_env_log_build} 2>&1 ) 60014 if test "$?" != "0"; then 60015 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 60016 $as_echo "$as_me: icecc-create-env output:" >&6;} 60017 cat ${icecc_create_env_log_build} 60018 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 60019 fi 60020 60021 else 60022 as_fn_error $? "Cannot create icecc compiler package for ${BUILD_CC}" "$LINENO" 5 60023 fi 60024 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log_build}`" 60025 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 60026 if test ! -f ${ICECC_ENV_BUNDLE}; then 60027 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 60028 fi 60029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for build compiler" >&5 60030 $as_echo_n "checking for icecc build environment for build compiler... " >&6; } 60031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 60032 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 60033 BUILD_ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${BUILD_CC} \ 60034 ICECC_CXX=${BUILD_CXX} ${ICECC_CMD}" 60035 else 60036 BUILD_ICECC="${ICECC}" 60037 fi 60038 60039 60040 fi 60041 60042 60043 # Can the C/C++ compiler use precompiled headers? 60044 60045 60046 ############################################################################### 60047 # 60048 # Can the C/C++ compiler use precompiled headers? 60049 # 60050 # Check whether --enable-precompiled-headers was given. 60051 if test "${enable_precompiled_headers+set}" = set; then : 60052 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 60053 else 60054 ENABLE_PRECOMPH=yes 60055 fi 60056 60057 60058 USE_PRECOMPILED_HEADER=1 60059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If precompiled header is enabled" >&5 60060 $as_echo_n "checking If precompiled header is enabled... " >&6; } 60061 if test "x$ENABLE_PRECOMPH" = xno; then 60062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 60063 $as_echo "no, forced" >&6; } 60064 USE_PRECOMPILED_HEADER=0 60065 elif test "x$ICECC" != "x"; then 60066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work effectively with icecc" >&5 60067 $as_echo "no, does not work effectively with icecc" >&6; } 60068 USE_PRECOMPILED_HEADER=0 60069 else 60070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 60071 $as_echo "yes" >&6; } 60072 fi 60073 60074 if test "x$ENABLE_PRECOMPH" = xyes; then 60075 # Check that the compiler actually supports precomp headers. 60076 if test "x$TOOLCHAIN_TYPE" = xgcc; then 60077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 60078 $as_echo_n "checking that precompiled headers work... " >&6; } 60079 echo "int alfa();" > conftest.h 60080 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 60081 if test ! -f conftest.hpp.gch; then 60082 USE_PRECOMPILED_HEADER=0 60083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 60084 $as_echo "no" >&6; } 60085 else 60086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 60087 $as_echo "yes" >&6; } 60088 fi 60089 rm -f conftest.h conftest.hpp.gch 60090 fi 60091 fi 60092 60093 60094 60095 60096 # Setup use of ccache, if available 60097 60098 # Check whether --enable-ccache was given. 60099 if test "${enable_ccache+set}" = set; then : 60100 enableval=$enable_ccache; 60101 fi 60102 60103 60104 CCACHE= 60105 CCACHE_STATUS= 60106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 60107 $as_echo_n "checking is ccache enabled... " >&6; } 60108 if test "x$enable_ccache" = xyes; then 60109 if test "x$TOOLCHAIN_TYPE" = "xgcc" -o "x$TOOLCHAIN_TYPE" = "xclang"; then 60110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 60111 $as_echo "yes" >&6; } 60112 OLD_PATH="$PATH" 60113 if test "x$TOOLCHAIN_PATH" != x; then 60114 PATH=$TOOLCHAIN_PATH:$PATH 60115 fi 60116 60117 60118 60119 # Publish this variable in the help. 60120 60121 60122 if [ -z "${CCACHE+x}" ]; then 60123 # The variable is not set by user, try to locate tool using the code snippet 60124 for ac_prog in ccache 60125 do 60126 # Extract the first word of "$ac_prog", so it can be a program name with args. 60127 set dummy $ac_prog; ac_word=$2 60128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 60129 $as_echo_n "checking for $ac_word... " >&6; } 60130 if ${ac_cv_path_CCACHE+:} false; then : 60131 $as_echo_n "(cached) " >&6 60132 else 60133 case $CCACHE in 60134 [\\/]* | ?:[\\/]*) 60135 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 60136 ;; 60137 *) 60138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 60139 for as_dir in $PATH 60140 do 60141 IFS=$as_save_IFS 60142 test -z "$as_dir" && as_dir=. 60143 for ac_exec_ext in '' $ac_executable_extensions; do 60144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 60145 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 60146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 60147 break 2 60148 fi 60149 done 60150 done 60151 IFS=$as_save_IFS 60152 60153 ;; 60154 esac 60155 fi 60156 CCACHE=$ac_cv_path_CCACHE 60157 if test -n "$CCACHE"; then 60158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 60159 $as_echo "$CCACHE" >&6; } 60160 else 60161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 60162 $as_echo "no" >&6; } 60163 fi 60164 60165 60166 test -n "$CCACHE" && break 60167 done 60168 60169 else 60170 # The variable is set, but is it from the command line or the environment? 60171 60172 # Try to remove the string !CCACHE! from our list. 60173 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 60174 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 60175 # If it failed, the variable was not from the command line. Ignore it, 60176 # but warn the user (except for BASH, which is always set by the calling BASH). 60177 if test "xCCACHE" != xBASH; then 60178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 60179 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 60180 fi 60181 # Try to locate tool using the code snippet 60182 for ac_prog in ccache 60183 do 60184 # Extract the first word of "$ac_prog", so it can be a program name with args. 60185 set dummy $ac_prog; ac_word=$2 60186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 60187 $as_echo_n "checking for $ac_word... " >&6; } 60188 if ${ac_cv_path_CCACHE+:} false; then : 60189 $as_echo_n "(cached) " >&6 60190 else 60191 case $CCACHE in 60192 [\\/]* | ?:[\\/]*) 60193 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 60194 ;; 60195 *) 60196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 60197 for as_dir in $PATH 60198 do 60199 IFS=$as_save_IFS 60200 test -z "$as_dir" && as_dir=. 60201 for ac_exec_ext in '' $ac_executable_extensions; do 60202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 60203 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 60204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 60205 break 2 60206 fi 60207 done 60208 done 60209 IFS=$as_save_IFS 60210 60211 ;; 60212 esac 60213 fi 60214 CCACHE=$ac_cv_path_CCACHE 60215 if test -n "$CCACHE"; then 60216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 60217 $as_echo "$CCACHE" >&6; } 60218 else 60219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 60220 $as_echo "no" >&6; } 60221 fi 60222 60223 60224 test -n "$CCACHE" && break 60225 done 60226 60227 else 60228 # If it succeeded, then it was overridden by the user. We will use it 60229 # for the tool. 60230 60231 # First remove it from the list of overridden variables, so we can test 60232 # for unknown variables in the end. 60233 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 60234 60235 # Check if we try to supply an empty value 60236 if test "x$CCACHE" = x; then 60237 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CCACHE= (no value)" >&5 60238 $as_echo "$as_me: Setting user supplied tool CCACHE= (no value)" >&6;} 60239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 60240 $as_echo_n "checking for CCACHE... " >&6; } 60241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 60242 $as_echo "disabled" >&6; } 60243 else 60244 # Check if the provided tool contains a complete path. 60245 tool_specified="$CCACHE" 60246 tool_basename="${tool_specified##*/}" 60247 if test "x$tool_basename" = "x$tool_specified"; then 60248 # A command without a complete path is provided, search $PATH. 60249 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 60250 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 60251 # Extract the first word of "$tool_basename", so it can be a program name with args. 60252 set dummy $tool_basename; ac_word=$2 60253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 60254 $as_echo_n "checking for $ac_word... " >&6; } 60255 if ${ac_cv_path_CCACHE+:} false; then : 60256 $as_echo_n "(cached) " >&6 60257 else 60258 case $CCACHE in 60259 [\\/]* | ?:[\\/]*) 60260 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 60261 ;; 60262 *) 60263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 60264 for as_dir in $PATH 60265 do 60266 IFS=$as_save_IFS 60267 test -z "$as_dir" && as_dir=. 60268 for ac_exec_ext in '' $ac_executable_extensions; do 60269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 60270 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 60271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 60272 break 2 60273 fi 60274 done 60275 done 60276 IFS=$as_save_IFS 60277 60278 ;; 60279 esac 60280 fi 60281 CCACHE=$ac_cv_path_CCACHE 60282 if test -n "$CCACHE"; then 60283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 60284 $as_echo "$CCACHE" >&6; } 60285 else 60286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 60287 $as_echo "no" >&6; } 60288 fi 60289 60290 60291 if test "x$CCACHE" = x; then 60292 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 60293 fi 60294 else 60295 # Otherwise we believe it is a complete path. Use it as it is. 60296 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 60297 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 60298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 60299 $as_echo_n "checking for CCACHE... " >&6; } 60300 if test ! -x "$tool_specified"; then 60301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 60302 $as_echo "not found" >&6; } 60303 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 60304 fi 60305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 60306 $as_echo "$tool_specified" >&6; } 60307 fi 60308 fi 60309 fi 60310 60311 fi 60312 60313 60314 60315 if test "x$CCACHE" = x; then 60316 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 60317 fi 60318 60319 60320 PATH="$OLD_PATH" 60321 CCACHE_VERSION=`$CCACHE --version | head -n1 | $SED 's/[A-Za-z ]*//'` 60322 CCACHE_STATUS="Active ($CCACHE_VERSION)" 60323 else 60324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 60325 $as_echo "no" >&6; } 60326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&5 60327 $as_echo "$as_me: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&2;} 60328 fi 60329 elif test "x$enable_ccache" = xno; then 60330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 60331 $as_echo "no, explicitly disabled" >&6; } 60332 CCACHE_STATUS="Disabled" 60333 elif test "x$enable_ccache" = x; then 60334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 60335 $as_echo "no" >&6; } 60336 else 60337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 60338 $as_echo "unknown" >&6; } 60339 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 60340 fi 60341 60342 60343 60344 # Check whether --with-ccache-dir was given. 60345 if test "${with_ccache_dir+set}" = set; then : 60346 withval=$with_ccache_dir; 60347 fi 60348 60349 60350 if test "x$with_ccache_dir" != x; then 60351 # When using a non home ccache directory, assume the use is to share ccache files 60352 # with other users. Thus change the umask. 60353 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 60354 if test "x$CCACHE" = x; then 60355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 60356 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 60357 fi 60358 fi 60359 60360 if test "x$CCACHE" != x; then 60361 60362 if test "x$CCACHE" != x; then 60363 if test "x$USE_PRECOMPILED_HEADER" = "x1"; then 60364 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 60365 $GREP -e '^1.*' -e '^2.*' -e '^3\.0.*' -e '^3\.1\.[0123]$'` 60366 if test "x$HAS_BAD_CCACHE" != "x"; then 60367 as_fn_error $? "Precompiled headers requires ccache 3.1.4 or later, found $CCACHE_VERSION" "$LINENO" 5 60368 fi 60369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 60370 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 60371 CCACHE_PRECOMP_FLAG="-fpch-preprocess" 60372 PUSHED_FLAGS="$CXXFLAGS" 60373 CXXFLAGS="$CCACHE_PRECOMP_FLAG $CXXFLAGS" 60374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 60375 /* end confdefs.h. */ 60376 60377 int 60378 main () 60379 { 60380 60381 ; 60382 return 0; 60383 } 60384 _ACEOF 60385 if ac_fn_cxx_try_compile "$LINENO"; then : 60386 CC_KNOWS_CCACHE_TRICK=yes 60387 else 60388 CC_KNOWS_CCACHE_TRICK=no 60389 fi 60390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 60391 CXXFLAGS="$PUSHED_FLAGS" 60392 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 60393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 60394 $as_echo "yes" >&6; } 60395 CFLAGS_CCACHE="$CCACHE_PRECOMP_FLAG" 60396 60397 CCACHE_SLOPPINESS=pch_defines,time_macros 60398 else 60399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 60400 $as_echo "no" >&6; } 60401 as_fn_error $? "Cannot use ccache with precompiled headers without compiler support for $CCACHE_PRECOMP_FLAG" "$LINENO" 5 60402 fi 60403 fi 60404 60405 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR \ 60406 CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS CCACHE_BASEDIR=$TOPDIR $CCACHE" 60407 60408 if test "x$SET_CCACHE_DIR" != x; then 60409 mkdir -p $CCACHE_DIR > /dev/null 2>&1 60410 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 60411 fi 60412 fi 60413 60414 fi 60415 60416 60417 ############################################################################### 60418 # 60419 # And now the finish... 60420 # 60421 ############################################################################### 60422 60423 # Check for some common pitfalls 60424 60425 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60426 file_to_test="$SRC_ROOT/LICENSE" 60427 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 60428 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 60429 fi 60430 fi 60431 60432 60433 # Did user specify any unknown variables? 60434 60435 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 60436 # Replace the separating ! with spaces before presenting for end user. 60437 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 60438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 60439 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 60440 fi 60441 60442 60443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 60444 $as_echo_n "checking if build directory is on local disk... " >&6; } 60445 60446 # df -l lists only local disks; if the given directory is not found then 60447 # a non-zero exit code is given 60448 if test "x$DF" = x; then 60449 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60450 # msys does not have df; use Windows "net use" instead. 60451 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 60452 if test "x$IS_NETWORK_DISK" = x; then 60453 OUTPUT_DIR_IS_LOCAL="yes" 60454 else 60455 OUTPUT_DIR_IS_LOCAL="no" 60456 fi 60457 else 60458 # No df here, say it's local 60459 OUTPUT_DIR_IS_LOCAL="yes" 60460 fi 60461 else 60462 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 60463 OUTPUT_DIR_IS_LOCAL="yes" 60464 else 60465 OUTPUT_DIR_IS_LOCAL="no" 60466 fi 60467 fi 60468 60469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 60470 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 60471 60472 60473 60474 # Check if the user has any old-style ALT_ variables set. 60475 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 60476 60477 # Before generating output files, test if they exist. If they do, this is a reconfigure. 60478 # Since we can't properly handle the dependencies for this, warn the user about the situation 60479 if test -e $OUTPUT_ROOT/spec.gmk; then 60480 IS_RECONFIGURE=yes 60481 else 60482 IS_RECONFIGURE=no 60483 fi 60484 60485 60486 # At the end, call the custom hook. (Dummy macro if no custom sources available) 60487 60488 60489 # We're messing a bit with internal autoconf variables to put the config.status 60490 # in the output directory instead of the current directory. 60491 CONFIG_STATUS="$CONFIGURESUPPORT_OUTPUTDIR/config.status" 60492 60493 # Create the actual output files. Now the main work of configure is done. 60494 cat >confcache <<\_ACEOF 60495 # This file is a shell script that caches the results of configure 60496 # tests run on this system so they can be shared between configure 60497 # scripts and configure runs, see configure's option --config-cache. 60498 # It is not useful on other systems. If it contains results you don't 60499 # want to keep, you may remove or edit it. 60500 # 60501 # config.status only pays attention to the cache file if you give it 60502 # the --recheck option to rerun configure. 60503 # 60504 # `ac_cv_env_foo' variables (set or unset) will be overridden when 60505 # loading this file, other *unset* `ac_cv_foo' will be assigned the 60506 # following values. 60507 60508 _ACEOF 60509 60510 # The following way of writing the cache mishandles newlines in values, 60511 # but we know of no workaround that is simple, portable, and efficient. 60512 # So, we kill variables containing newlines. 60513 # Ultrix sh set writes to stderr and can't be redirected directly, 60514 # and sets the high bit in the cache file unless we assign to the vars. 60515 ( 60516 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 60517 eval ac_val=\$$ac_var 60518 case $ac_val in #( 60519 *${as_nl}*) 60520 case $ac_var in #( 60521 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 60522 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 60523 esac 60524 case $ac_var in #( 60525 _ | IFS | as_nl) ;; #( 60526 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 60527 *) { eval $ac_var=; unset $ac_var;} ;; 60528 esac ;; 60529 esac 60530 done 60531 60532 (set) 2>&1 | 60533 case $as_nl`(ac_space=' '; set) 2>&1` in #( 60534 *${as_nl}ac_space=\ *) 60535 # `set' does not quote correctly, so add quotes: double-quote 60536 # substitution turns \\\\ into \\, and sed turns \\ into \. 60537 sed -n \ 60538 "s/'/'\\\\''/g; 60539 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 60540 ;; #( 60541 *) 60542 # `set' quotes correctly as required by POSIX, so do not add quotes. 60543 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 60544 ;; 60545 esac | 60546 sort 60547 ) | 60548 sed ' 60549 /^ac_cv_env_/b end 60550 t clear 60551 :clear 60552 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 60553 t end 60554 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 60555 :end' >>confcache 60556 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 60557 if test -w "$cache_file"; then 60558 if test "x$cache_file" != "x/dev/null"; then 60559 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 60560 $as_echo "$as_me: updating cache $cache_file" >&6;} 60561 if test ! -f "$cache_file" || test -h "$cache_file"; then 60562 cat confcache >"$cache_file" 60563 else 60564 case $cache_file in #( 60565 */* | ?:*) 60566 mv -f confcache "$cache_file"$$ && 60567 mv -f "$cache_file"$$ "$cache_file" ;; #( 60568 *) 60569 mv -f confcache "$cache_file" ;; 60570 esac 60571 fi 60572 fi 60573 else 60574 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 60575 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 60576 fi 60577 fi 60578 rm -f confcache 60579 60580 test "x$prefix" = xNONE && prefix=$ac_default_prefix 60581 # Let make expand exec_prefix. 60582 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 60583 60584 # Transform confdefs.h into DEFS. 60585 # Protect against shell expansion while executing Makefile rules. 60586 # Protect against Makefile macro expansion. 60587 # 60588 # If the first sed substitution is executed (which looks for macros that 60589 # take arguments), then branch to the quote section. Otherwise, 60590 # look for a macro that doesn't take arguments. 60591 ac_script=' 60592 :mline 60593 /\\$/{ 60594 N 60595 s,\\\n,, 60596 b mline 60597 } 60598 t clear 60599 :clear 60600 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 60601 t quote 60602 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 60603 t quote 60604 b any 60605 :quote 60606 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 60607 s/\[/\\&/g 60608 s/\]/\\&/g 60609 s/\$/$$/g 60610 H 60611 :any 60612 ${ 60613 g 60614 s/^\n// 60615 s/\n/ /g 60616 p 60617 } 60618 ' 60619 DEFS=`sed -n "$ac_script" confdefs.h` 60620 60621 60622 ac_libobjs= 60623 ac_ltlibobjs= 60624 U= 60625 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 60626 # 1. Remove the extension, and $U if already installed. 60627 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 60628 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 60629 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 60630 # will be set to the directory where LIBOBJS objects are built. 60631 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 60632 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 60633 done 60634 LIBOBJS=$ac_libobjs 60635 60636 LTLIBOBJS=$ac_ltlibobjs 60637 60638 60639 60640 : "${CONFIG_STATUS=./config.status}" 60641 ac_write_fail=0 60642 ac_clean_files_save=$ac_clean_files 60643 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 60644 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 60645 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 60646 as_write_fail=0 60647 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 60648 #! $SHELL 60649 # Generated by $as_me. 60650 # Run this file to recreate the current configuration. 60651 # Compiler output produced by configure, useful for debugging 60652 # configure, is in config.log if it exists. 60653 60654 debug=false 60655 ac_cs_recheck=false 60656 ac_cs_silent=false 60657 60658 SHELL=\${CONFIG_SHELL-$SHELL} 60659 export SHELL 60660 _ASEOF 60661 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 60662 ## -------------------- ## 60663 ## M4sh Initialization. ## 60664 ## -------------------- ## 60665 60666 # Be more Bourne compatible 60667 DUALCASE=1; export DUALCASE # for MKS sh 60668 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 60669 emulate sh 60670 NULLCMD=: 60671 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 60672 # is contrary to our usage. Disable this feature. 60673 alias -g '${1+"$@"}'='"$@"' 60674 setopt NO_GLOB_SUBST 60675 else 60676 case `(set -o) 2>/dev/null` in #( 60677 *posix*) : 60678 set -o posix ;; #( 60679 *) : 60680 ;; 60681 esac 60682 fi 60683 60684 60685 as_nl=' 60686 ' 60687 export as_nl 60688 # Printing a long string crashes Solaris 7 /usr/bin/printf. 60689 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 60690 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 60691 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 60692 # Prefer a ksh shell builtin over an external printf program on Solaris, 60693 # but without wasting forks for bash or zsh. 60694 if test -z "$BASH_VERSION$ZSH_VERSION" \ 60695 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 60696 as_echo='print -r --' 60697 as_echo_n='print -rn --' 60698 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 60699 as_echo='printf %s\n' 60700 as_echo_n='printf %s' 60701 else 60702 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 60703 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 60704 as_echo_n='/usr/ucb/echo -n' 60705 else 60706 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60707 as_echo_n_body='eval 60708 arg=$1; 60709 case $arg in #( 60710 *"$as_nl"*) 60711 expr "X$arg" : "X\\(.*\\)$as_nl"; 60712 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 60713 esac; 60714 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 60715 ' 60716 export as_echo_n_body 60717 as_echo_n='sh -c $as_echo_n_body as_echo' 60718 fi 60719 export as_echo_body 60720 as_echo='sh -c $as_echo_body as_echo' 60721 fi 60722 60723 # The user is always right. 60724 if test "${PATH_SEPARATOR+set}" != set; then 60725 PATH_SEPARATOR=: 60726 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 60727 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 60728 PATH_SEPARATOR=';' 60729 } 60730 fi 60731 60732 60733 # IFS 60734 # We need space, tab and new line, in precisely that order. Quoting is 60735 # there to prevent editors from complaining about space-tab. 60736 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 60737 # splitting by setting IFS to empty value.) 60738 IFS=" "" $as_nl" 60739 60740 # Find who we are. Look in the path if we contain no directory separator. 60741 as_myself= 60742 case $0 in #(( 60743 *[\\/]* ) as_myself=$0 ;; 60744 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 60745 for as_dir in $PATH 60746 do 60747 IFS=$as_save_IFS 60748 test -z "$as_dir" && as_dir=. 60749 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 60750 done 60751 IFS=$as_save_IFS 60752 60753 ;; 60754 esac 60755 # We did not find ourselves, most probably we were run as `sh COMMAND' 60756 # in which case we are not to be found in the path. 60757 if test "x$as_myself" = x; then 60758 as_myself=$0 60759 fi 60760 if test ! -f "$as_myself"; then 60761 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 60762 exit 1 60763 fi 60764 60765 # Unset variables that we do not need and which cause bugs (e.g. in 60766 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 60767 # suppresses any "Segmentation fault" message there. '((' could 60768 # trigger a bug in pdksh 5.2.14. 60769 for as_var in BASH_ENV ENV MAIL MAILPATH 60770 do eval test x\${$as_var+set} = xset \ 60771 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 60772 done 60773 PS1='$ ' 60774 PS2='> ' 60775 PS4='+ ' 60776 60777 # NLS nuisances. 60778 LC_ALL=C 60779 export LC_ALL 60780 LANGUAGE=C 60781 export LANGUAGE 60782 60783 # CDPATH. 60784 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 60785 60786 60787 # as_fn_error STATUS ERROR [LINENO LOG_FD] 60788 # ---------------------------------------- 60789 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 60790 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 60791 # script with STATUS, using 1 if that was 0. 60792 as_fn_error () 60793 { 60794 as_status=$1; test $as_status -eq 0 && as_status=1 60795 if test "$4"; then 60796 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 60797 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 60798 fi 60799 $as_echo "$as_me: error: $2" >&2 60800 as_fn_exit $as_status 60801 } # as_fn_error 60802 60803 60804 # as_fn_set_status STATUS 60805 # ----------------------- 60806 # Set $? to STATUS, without forking. 60807 as_fn_set_status () 60808 { 60809 return $1 60810 } # as_fn_set_status 60811 60812 # as_fn_exit STATUS 60813 # ----------------- 60814 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 60815 as_fn_exit () 60816 { 60817 set +e 60818 as_fn_set_status $1 60819 exit $1 60820 } # as_fn_exit 60821 60822 # as_fn_unset VAR 60823 # --------------- 60824 # Portably unset VAR. 60825 as_fn_unset () 60826 { 60827 { eval $1=; unset $1;} 60828 } 60829 as_unset=as_fn_unset 60830 # as_fn_append VAR VALUE 60831 # ---------------------- 60832 # Append the text in VALUE to the end of the definition contained in VAR. Take 60833 # advantage of any shell optimizations that allow amortized linear growth over 60834 # repeated appends, instead of the typical quadratic growth present in naive 60835 # implementations. 60836 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 60837 eval 'as_fn_append () 60838 { 60839 eval $1+=\$2 60840 }' 60841 else 60842 as_fn_append () 60843 { 60844 eval $1=\$$1\$2 60845 } 60846 fi # as_fn_append 60847 60848 # as_fn_arith ARG... 60849 # ------------------ 60850 # Perform arithmetic evaluation on the ARGs, and store the result in the 60851 # global $as_val. Take advantage of shells that can avoid forks. The arguments 60852 # must be portable across $(()) and expr. 60853 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 60854 eval 'as_fn_arith () 60855 { 60856 as_val=$(( $* )) 60857 }' 60858 else 60859 as_fn_arith () 60860 { 60861 as_val=`expr "$@" || test $? -eq 1` 60862 } 60863 fi # as_fn_arith 60864 60865 60866 if expr a : '\(a\)' >/dev/null 2>&1 && 60867 test "X`expr 00001 : '.*\(...\)'`" = X001; then 60868 as_expr=expr 60869 else 60870 as_expr=false 60871 fi 60872 60873 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 60874 as_basename=basename 60875 else 60876 as_basename=false 60877 fi 60878 60879 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 60880 as_dirname=dirname 60881 else 60882 as_dirname=false 60883 fi 60884 60885 as_me=`$as_basename -- "$0" || 60886 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 60887 X"$0" : 'X\(//\)$' \| \ 60888 X"$0" : 'X\(/\)' \| . 2>/dev/null || 60889 $as_echo X/"$0" | 60890 sed '/^.*\/\([^/][^/]*\)\/*$/{ 60891 s//\1/ 60892 q 60893 } 60894 /^X\/\(\/\/\)$/{ 60895 s//\1/ 60896 q 60897 } 60898 /^X\/\(\/\).*/{ 60899 s//\1/ 60900 q 60901 } 60902 s/.*/./; q'` 60903 60904 # Avoid depending upon Character Ranges. 60905 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 60906 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 60907 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 60908 as_cr_digits='0123456789' 60909 as_cr_alnum=$as_cr_Letters$as_cr_digits 60910 60911 ECHO_C= ECHO_N= ECHO_T= 60912 case `echo -n x` in #((((( 60913 -n*) 60914 case `echo 'xy\c'` in 60915 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 60916 xy) ECHO_C='\c';; 60917 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 60918 ECHO_T=' ';; 60919 esac;; 60920 *) 60921 ECHO_N='-n';; 60922 esac 60923 60924 rm -f conf$$ conf$$.exe conf$$.file 60925 if test -d conf$$.dir; then 60926 rm -f conf$$.dir/conf$$.file 60927 else 60928 rm -f conf$$.dir 60929 mkdir conf$$.dir 2>/dev/null 60930 fi 60931 if (echo >conf$$.file) 2>/dev/null; then 60932 if ln -s conf$$.file conf$$ 2>/dev/null; then 60933 as_ln_s='ln -s' 60934 # ... but there are two gotchas: 60935 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 60936 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 60937 # In both cases, we have to default to `cp -pR'. 60938 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 60939 as_ln_s='cp -pR' 60940 elif ln conf$$.file conf$$ 2>/dev/null; then 60941 as_ln_s=ln 60942 else 60943 as_ln_s='cp -pR' 60944 fi 60945 else 60946 as_ln_s='cp -pR' 60947 fi 60948 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 60949 rmdir conf$$.dir 2>/dev/null 60950 60951 60952 # as_fn_mkdir_p 60953 # ------------- 60954 # Create "$as_dir" as a directory, including parents if necessary. 60955 as_fn_mkdir_p () 60956 { 60957 60958 case $as_dir in #( 60959 -*) as_dir=./$as_dir;; 60960 esac 60961 test -d "$as_dir" || eval $as_mkdir_p || { 60962 as_dirs= 60963 while :; do 60964 case $as_dir in #( 60965 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 60966 *) as_qdir=$as_dir;; 60967 esac 60968 as_dirs="'$as_qdir' $as_dirs" 60969 as_dir=`$as_dirname -- "$as_dir" || 60970 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 60971 X"$as_dir" : 'X\(//\)[^/]' \| \ 60972 X"$as_dir" : 'X\(//\)$' \| \ 60973 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 60974 $as_echo X"$as_dir" | 60975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 60976 s//\1/ 60977 q 60978 } 60979 /^X\(\/\/\)[^/].*/{ 60980 s//\1/ 60981 q 60982 } 60983 /^X\(\/\/\)$/{ 60984 s//\1/ 60985 q 60986 } 60987 /^X\(\/\).*/{ 60988 s//\1/ 60989 q 60990 } 60991 s/.*/./; q'` 60992 test -d "$as_dir" && break 60993 done 60994 test -z "$as_dirs" || eval "mkdir $as_dirs" 60995 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 60996 60997 60998 } # as_fn_mkdir_p 60999 if mkdir -p . 2>/dev/null; then 61000 as_mkdir_p='mkdir -p "$as_dir"' 61001 else 61002 test -d ./-p && rmdir ./-p 61003 as_mkdir_p=false 61004 fi 61005 61006 61007 # as_fn_executable_p FILE 61008 # ----------------------- 61009 # Test if FILE is an executable regular file. 61010 as_fn_executable_p () 61011 { 61012 test -f "$1" && test -x "$1" 61013 } # as_fn_executable_p 61014 as_test_x='test -x' 61015 as_executable_p=as_fn_executable_p 61016 61017 # Sed expression to map a string onto a valid CPP name. 61018 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 61019 61020 # Sed expression to map a string onto a valid variable name. 61021 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 61022 61023 61024 exec 6>&1 61025 ## ----------------------------------- ## 61026 ## Main body of $CONFIG_STATUS script. ## 61027 ## ----------------------------------- ## 61028 _ASEOF 61029 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 61030 61031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 61032 # Save the log message, to keep $0 and so on meaningful, and to 61033 # report actual input values of CONFIG_FILES etc. instead of their 61034 # values after options handling. 61035 ac_log=" 61036 This file was extended by OpenJDK $as_me jdk9, which was 61037 generated by GNU Autoconf 2.69. Invocation command line was 61038 61039 CONFIG_FILES = $CONFIG_FILES 61040 CONFIG_HEADERS = $CONFIG_HEADERS 61041 CONFIG_LINKS = $CONFIG_LINKS 61042 CONFIG_COMMANDS = $CONFIG_COMMANDS 61043 $ $0 $@ 61044 61045 on `(hostname || uname -n) 2>/dev/null | sed 1q` 61046 " 61047 61048 _ACEOF 61049 61050 case $ac_config_files in *" 61051 "*) set x $ac_config_files; shift; ac_config_files=$*;; 61052 esac 61053 61054 61055 61056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 61057 # Files that config.status was made for. 61058 config_files="$ac_config_files" 61059 61060 _ACEOF 61061 61062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 61063 ac_cs_usage="\ 61064 \`$as_me' instantiates files and other configuration actions 61065 from templates according to the current configuration. Unless the files 61066 and actions are specified as TAGs, all are instantiated by default. 61067 61068 Usage: $0 [OPTION]... [TAG]... 61069 61070 -h, --help print this help, then exit 61071 -V, --version print version number and configuration settings, then exit 61072 --config print configuration, then exit 61073 -q, --quiet, --silent 61074 do not print progress messages 61075 -d, --debug don't remove temporary files 61076 --recheck update $as_me by reconfiguring in the same conditions 61077 --file=FILE[:TEMPLATE] 61078 instantiate the configuration file FILE 61079 61080 Configuration files: 61081 $config_files 61082 61083 Report bugs to <build-dev@openjdk.java.net>. 61084 OpenJDK home page: <http://openjdk.java.net>." 61085 61086 _ACEOF 61087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 61088 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 61089 ac_cs_version="\\ 61090 OpenJDK config.status jdk9 61091 configured by $0, generated by GNU Autoconf 2.69, 61092 with options \\"\$ac_cs_config\\" 61093 61094 Copyright (C) 2012 Free Software Foundation, Inc. 61095 This config.status script is free software; the Free Software Foundation 61096 gives unlimited permission to copy, distribute and modify it." 61097 61098 ac_pwd='$ac_pwd' 61099 srcdir='$srcdir' 61100 AWK='$AWK' 61101 test -n "\$AWK" || AWK=awk 61102 _ACEOF 61103 61104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 61105 # The default lists apply if the user does not specify any file. 61106 ac_need_defaults=: 61107 while test $# != 0 61108 do 61109 case $1 in 61110 --*=?*) 61111 ac_option=`expr "X$1" : 'X\([^=]*\)='` 61112 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 61113 ac_shift=: 61114 ;; 61115 --*=) 61116 ac_option=`expr "X$1" : 'X\([^=]*\)='` 61117 ac_optarg= 61118 ac_shift=: 61119 ;; 61120 *) 61121 ac_option=$1 61122 ac_optarg=$2 61123 ac_shift=shift 61124 ;; 61125 esac 61126 61127 case $ac_option in 61128 # Handling of the options. 61129 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 61130 ac_cs_recheck=: ;; 61131 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 61132 $as_echo "$ac_cs_version"; exit ;; 61133 --config | --confi | --conf | --con | --co | --c ) 61134 $as_echo "$ac_cs_config"; exit ;; 61135 --debug | --debu | --deb | --de | --d | -d ) 61136 debug=: ;; 61137 --file | --fil | --fi | --f ) 61138 $ac_shift 61139 case $ac_optarg in 61140 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 61141 '') as_fn_error $? "missing file argument" ;; 61142 esac 61143 as_fn_append CONFIG_FILES " '$ac_optarg'" 61144 ac_need_defaults=false;; 61145 --he | --h | --help | --hel | -h ) 61146 $as_echo "$ac_cs_usage"; exit ;; 61147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 61148 | -silent | --silent | --silen | --sile | --sil | --si | --s) 61149 ac_cs_silent=: ;; 61150 61151 # This is an error. 61152 -*) as_fn_error $? "unrecognized option: \`$1' 61153 Try \`$0 --help' for more information." ;; 61154 61155 *) as_fn_append ac_config_targets " $1" 61156 ac_need_defaults=false ;; 61157 61158 esac 61159 shift 61160 done 61161 61162 ac_configure_extra_args= 61163 61164 if $ac_cs_silent; then 61165 exec 6>/dev/null 61166 ac_configure_extra_args="$ac_configure_extra_args --silent" 61167 fi 61168 61169 _ACEOF 61170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 61171 if \$ac_cs_recheck; then 61172 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 61173 shift 61174 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 61175 CONFIG_SHELL='$SHELL' 61176 export CONFIG_SHELL 61177 exec "\$@" 61178 fi 61179 61180 _ACEOF 61181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 61182 exec 5>>config.log 61183 { 61184 echo 61185 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 61186 ## Running $as_me. ## 61187 _ASBOX 61188 $as_echo "$ac_log" 61189 } >&5 61190 61191 _ACEOF 61192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 61193 _ACEOF 61194 61195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 61196 61197 # Handling of arguments. 61198 for ac_config_target in $ac_config_targets 61199 do 61200 case $ac_config_target in 61201 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 61202 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;; 61203 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 61204 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 61205 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 61206 61207 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 61208 esac 61209 done 61210 61211 61212 # If the user did not use the arguments to specify the items to instantiate, 61213 # then the envvar interface is used. Set only those that are not. 61214 # We use the long form for the default assignment because of an extremely 61215 # bizarre bug on SunOS 4.1.3. 61216 if $ac_need_defaults; then 61217 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 61218 fi 61219 61220 # Have a temporary directory for convenience. Make it in the build tree 61221 # simply because there is no reason against having it here, and in addition, 61222 # creating and moving files from /tmp can sometimes cause problems. 61223 # Hook for its removal unless debugging. 61224 # Note that there is a small window in which the directory will not be cleaned: 61225 # after its creation but before its name has been assigned to `$tmp'. 61226 $debug || 61227 { 61228 tmp= ac_tmp= 61229 trap 'exit_status=$? 61230 : "${ac_tmp:=$tmp}" 61231 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 61232 ' 0 61233 trap 'as_fn_exit 1' 1 2 13 15 61234 } 61235 # Create a (secure) tmp directory for tmp files. 61236 61237 { 61238 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 61239 test -d "$tmp" 61240 } || 61241 { 61242 tmp=./conf$$-$RANDOM 61243 (umask 077 && mkdir "$tmp") 61244 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 61245 ac_tmp=$tmp 61246 61247 # Set up the scripts for CONFIG_FILES section. 61248 # No need to generate them if there are no CONFIG_FILES. 61249 # This happens for instance with `./config.status config.h'. 61250 if test -n "$CONFIG_FILES"; then 61251 61252 61253 ac_cr=`echo X | tr X '\015'` 61254 # On cygwin, bash can eat \r inside `` if the user requested igncr. 61255 # But we know of no other shell where ac_cr would be empty at this 61256 # point, so we can use a bashism as a fallback. 61257 if test "x$ac_cr" = x; then 61258 eval ac_cr=\$\'\\r\' 61259 fi 61260 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 61261 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 61262 ac_cs_awk_cr='\\r' 61263 else 61264 ac_cs_awk_cr=$ac_cr 61265 fi 61266 61267 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 61268 _ACEOF 61269 61270 61271 { 61272 echo "cat >conf$$subs.awk <<_ACEOF" && 61273 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 61274 echo "_ACEOF" 61275 } >conf$$subs.sh || 61276 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 61277 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 61278 ac_delim='%!_!# ' 61279 for ac_last_try in false false false false false :; do 61280 . ./conf$$subs.sh || 61281 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 61282 61283 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 61284 if test $ac_delim_n = $ac_delim_num; then 61285 break 61286 elif $ac_last_try; then 61287 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 61288 else 61289 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 61290 fi 61291 done 61292 rm -f conf$$subs.sh 61293 61294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 61295 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 61296 _ACEOF 61297 sed -n ' 61298 h 61299 s/^/S["/; s/!.*/"]=/ 61300 p 61301 g 61302 s/^[^!]*!// 61303 :repl 61304 t repl 61305 s/'"$ac_delim"'$// 61306 t delim 61307 :nl 61308 h 61309 s/\(.\{148\}\)..*/\1/ 61310 t more1 61311 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 61312 p 61313 n 61314 b repl 61315 :more1 61316 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 61317 p 61318 g 61319 s/.\{148\}// 61320 t nl 61321 :delim 61322 h 61323 s/\(.\{148\}\)..*/\1/ 61324 t more2 61325 s/["\\]/\\&/g; s/^/"/; s/$/"/ 61326 p 61327 b 61328 :more2 61329 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 61330 p 61331 g 61332 s/.\{148\}// 61333 t delim 61334 ' <conf$$subs.awk | sed ' 61335 /^[^""]/{ 61336 N 61337 s/\n// 61338 } 61339 ' >>$CONFIG_STATUS || ac_write_fail=1 61340 rm -f conf$$subs.awk 61341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 61342 _ACAWK 61343 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 61344 for (key in S) S_is_set[key] = 1 61345 FS = "" 61346 61347 } 61348 { 61349 line = $ 0 61350 nfields = split(line, field, "@") 61351 substed = 0 61352 len = length(field[1]) 61353 for (i = 2; i < nfields; i++) { 61354 key = field[i] 61355 keylen = length(key) 61356 if (S_is_set[key]) { 61357 value = S[key] 61358 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 61359 len += length(value) + length(field[++i]) 61360 substed = 1 61361 } else 61362 len += 1 + keylen 61363 } 61364 61365 print line 61366 } 61367 61368 _ACAWK 61369 _ACEOF 61370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 61371 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 61372 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 61373 else 61374 cat 61375 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 61376 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 61377 _ACEOF 61378 61379 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 61380 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 61381 # trailing colons and then remove the whole line if VPATH becomes empty 61382 # (actually we leave an empty line to preserve line numbers). 61383 if test "x$srcdir" = x.; then 61384 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 61385 h 61386 s/// 61387 s/^/:/ 61388 s/[ ]*$/:/ 61389 s/:\$(srcdir):/:/g 61390 s/:\${srcdir}:/:/g 61391 s/:@srcdir@:/:/g 61392 s/^:*// 61393 s/:*$// 61394 x 61395 s/\(=[ ]*\).*/\1/ 61396 G 61397 s/\n// 61398 s/^[^=]*=[ ]*$// 61399 }' 61400 fi 61401 61402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 61403 fi # test -n "$CONFIG_FILES" 61404 61405 61406 eval set X " :F $CONFIG_FILES " 61407 shift 61408 for ac_tag 61409 do 61410 case $ac_tag in 61411 :[FHLC]) ac_mode=$ac_tag; continue;; 61412 esac 61413 case $ac_mode$ac_tag in 61414 :[FHL]*:*);; 61415 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 61416 :[FH]-) ac_tag=-:-;; 61417 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 61418 esac 61419 ac_save_IFS=$IFS 61420 IFS=: 61421 set x $ac_tag 61422 IFS=$ac_save_IFS 61423 shift 61424 ac_file=$1 61425 shift 61426 61427 case $ac_mode in 61428 :L) ac_source=$1;; 61429 :[FH]) 61430 ac_file_inputs= 61431 for ac_f 61432 do 61433 case $ac_f in 61434 -) ac_f="$ac_tmp/stdin";; 61435 *) # Look for the file first in the build tree, then in the source tree 61436 # (if the path is not absolute). The absolute path cannot be DOS-style, 61437 # because $ac_f cannot contain `:'. 61438 test -f "$ac_f" || 61439 case $ac_f in 61440 [\\/$]*) false;; 61441 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 61442 esac || 61443 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 61444 esac 61445 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 61446 as_fn_append ac_file_inputs " '$ac_f'" 61447 done 61448 61449 # Let's still pretend it is `configure' which instantiates (i.e., don't 61450 # use $as_me), people would be surprised to read: 61451 # /* config.h. Generated by config.status. */ 61452 configure_input='Generated from '` 61453 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 61454 `' by configure.' 61455 if test x"$ac_file" != x-; then 61456 configure_input="$ac_file. $configure_input" 61457 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 61458 $as_echo "$as_me: creating $ac_file" >&6;} 61459 fi 61460 # Neutralize special characters interpreted by sed in replacement strings. 61461 case $configure_input in #( 61462 *\&* | *\|* | *\\* ) 61463 ac_sed_conf_input=`$as_echo "$configure_input" | 61464 sed 's/[\\\\&|]/\\\\&/g'`;; #( 61465 *) ac_sed_conf_input=$configure_input;; 61466 esac 61467 61468 case $ac_tag in 61469 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 61470 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 61471 esac 61472 ;; 61473 esac 61474 61475 ac_dir=`$as_dirname -- "$ac_file" || 61476 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 61477 X"$ac_file" : 'X\(//\)[^/]' \| \ 61478 X"$ac_file" : 'X\(//\)$' \| \ 61479 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 61480 $as_echo X"$ac_file" | 61481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 61482 s//\1/ 61483 q 61484 } 61485 /^X\(\/\/\)[^/].*/{ 61486 s//\1/ 61487 q 61488 } 61489 /^X\(\/\/\)$/{ 61490 s//\1/ 61491 q 61492 } 61493 /^X\(\/\).*/{ 61494 s//\1/ 61495 q 61496 } 61497 s/.*/./; q'` 61498 as_dir="$ac_dir"; as_fn_mkdir_p 61499 ac_builddir=. 61500 61501 case "$ac_dir" in 61502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 61503 *) 61504 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 61505 # A ".." for each directory in $ac_dir_suffix. 61506 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 61507 case $ac_top_builddir_sub in 61508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 61509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 61510 esac ;; 61511 esac 61512 ac_abs_top_builddir=$ac_pwd 61513 ac_abs_builddir=$ac_pwd$ac_dir_suffix 61514 # for backward compatibility: 61515 ac_top_builddir=$ac_top_build_prefix 61516 61517 case $srcdir in 61518 .) # We are building in place. 61519 ac_srcdir=. 61520 ac_top_srcdir=$ac_top_builddir_sub 61521 ac_abs_top_srcdir=$ac_pwd ;; 61522 [\\/]* | ?:[\\/]* ) # Absolute name. 61523 ac_srcdir=$srcdir$ac_dir_suffix; 61524 ac_top_srcdir=$srcdir 61525 ac_abs_top_srcdir=$srcdir ;; 61526 *) # Relative name. 61527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 61528 ac_top_srcdir=$ac_top_build_prefix$srcdir 61529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 61530 esac 61531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 61532 61533 61534 case $ac_mode in 61535 :F) 61536 # 61537 # CONFIG_FILE 61538 # 61539 61540 _ACEOF 61541 61542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 61543 # If the template does not know about datarootdir, expand it. 61544 # FIXME: This hack should be removed a few years after 2.60. 61545 ac_datarootdir_hack=; ac_datarootdir_seen= 61546 ac_sed_dataroot=' 61547 /datarootdir/ { 61548 p 61549 q 61550 } 61551 /@datadir@/p 61552 /@docdir@/p 61553 /@infodir@/p 61554 /@localedir@/p 61555 /@mandir@/p' 61556 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 61557 *datarootdir*) ac_datarootdir_seen=yes;; 61558 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 61559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 61560 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 61561 _ACEOF 61562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 61563 ac_datarootdir_hack=' 61564 s&@datadir@&$datadir&g 61565 s&@docdir@&$docdir&g 61566 s&@infodir@&$infodir&g 61567 s&@localedir@&$localedir&g 61568 s&@mandir@&$mandir&g 61569 s&\\\${datarootdir}&$datarootdir&g' ;; 61570 esac 61571 _ACEOF 61572 61573 # Neutralize VPATH when `$srcdir' = `.'. 61574 # Shell code in configure.ac might set extrasub. 61575 # FIXME: do we really want to maintain this feature? 61576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 61577 ac_sed_extra="$ac_vpsub 61578 $extrasub 61579 _ACEOF 61580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 61581 :t 61582 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 61583 s|@configure_input@|$ac_sed_conf_input|;t t 61584 s&@top_builddir@&$ac_top_builddir_sub&;t t 61585 s&@top_build_prefix@&$ac_top_build_prefix&;t t 61586 s&@srcdir@&$ac_srcdir&;t t 61587 s&@abs_srcdir@&$ac_abs_srcdir&;t t 61588 s&@top_srcdir@&$ac_top_srcdir&;t t 61589 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 61590 s&@builddir@&$ac_builddir&;t t 61591 s&@abs_builddir@&$ac_abs_builddir&;t t 61592 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 61593 $ac_datarootdir_hack 61594 " 61595 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 61596 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 61597 61598 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 61599 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 61600 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 61601 "$ac_tmp/out"`; test -z "$ac_out"; } && 61602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 61603 which seems to be undefined. Please make sure it is defined" >&5 61604 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 61605 which seems to be undefined. Please make sure it is defined" >&2;} 61606 61607 rm -f "$ac_tmp/stdin" 61608 case $ac_file in 61609 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 61610 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 61611 esac \ 61612 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 61613 ;; 61614 61615 61616 61617 esac 61618 61619 done # for ac_tag 61620 61621 61622 as_fn_exit 0 61623 _ACEOF 61624 ac_clean_files=$ac_clean_files_save 61625 61626 test $ac_write_fail = 0 || 61627 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 61628 61629 61630 # configure is writing to config.log, and then calls config.status. 61631 # config.status does its own redirection, appending to config.log. 61632 # Unfortunately, on DOS this fails, as config.log is still kept open 61633 # by configure, so config.status won't be able to write to it; its 61634 # output is simply discarded. So we exec the FD to /dev/null, 61635 # effectively closing config.log, so it can be properly (re)opened and 61636 # appended to by config.status. When coming back to configure, we 61637 # need to make the FD available again. 61638 if test "$no_create" != yes; then 61639 ac_cs_success=: 61640 ac_config_status_args= 61641 test "$silent" = yes && 61642 ac_config_status_args="$ac_config_status_args --quiet" 61643 exec 5>/dev/null 61644 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 61645 exec 5>>config.log 61646 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 61647 # would make configure fail if this is the last instruction. 61648 $ac_cs_success || as_fn_exit 1 61649 fi 61650 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 61651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 61652 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 61653 fi 61654 61655 61656 # After AC_OUTPUT, we need to do final work 61657 61658 61659 # Try to move config.log (generated by autoconf) to the configure-support directory. 61660 if test -e ./config.log; then 61661 $MV -f ./config.log "$CONFIGURESUPPORT_OUTPUTDIR/config.log" 2> /dev/null 61662 fi 61663 61664 # Rotate our log file (configure.log) 61665 if test -e "$OUTPUT_ROOT/configure.log.old"; then 61666 $RM -f "$OUTPUT_ROOT/configure.log.old" 61667 fi 61668 if test -e "$OUTPUT_ROOT/configure.log"; then 61669 $MV -f "$OUTPUT_ROOT/configure.log" "$OUTPUT_ROOT/configure.log.old" 2> /dev/null 61670 fi 61671 61672 # Move configure.log from current directory to the build output root 61673 if test -e ./configure.log; then 61674 $MV -f ./configure.log "$OUTPUT_ROOT/configure.log" 2> /dev/null 61675 fi 61676 61677 # Make the compare script executable 61678 $CHMOD +x $OUTPUT_ROOT/compare.sh 61679 61680 61681 # Finally output some useful information to the user 61682 61683 # Finally output some useful information to the user 61684 61685 printf "\n" 61686 printf "====================================================\n" 61687 if test "x$no_create" != "xyes"; then 61688 if test "x$IS_RECONFIGURE" != "xyes"; then 61689 printf "A new configuration has been successfully created in\n%s\n" "$OUTPUT_ROOT" 61690 else 61691 printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUT_ROOT" 61692 fi 61693 else 61694 if test "x$IS_RECONFIGURE" != "xyes"; then 61695 printf "A configuration has been successfully checked but not created\n" 61696 else 61697 printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUT_ROOT" 61698 fi 61699 fi 61700 if test "x$CONFIGURE_COMMAND_LINE" != x; then 61701 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 61702 else 61703 printf "using default settings.\n" 61704 fi 61705 61706 printf "\n" 61707 printf "Configuration summary:\n" 61708 printf "* Debug level: $DEBUG_LEVEL\n" 61709 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 61710 printf "* JDK variant: $JDK_VARIANT\n" 61711 printf "* JVM variants: $with_jvm_variants\n" 61712 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 61713 printf "* Version string: $VERSION_STRING ($VERSION_SHORT)\n" 61714 61715 printf "\n" 61716 printf "Tools summary:\n" 61717 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 61718 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 61719 fi 61720 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 61721 if test "x$TOOLCHAIN_VERSION" != "x"; then 61722 print_version=" $TOOLCHAIN_VERSION" 61723 fi 61724 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION$print_version)\n" 61725 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 61726 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 61727 61728 printf "\n" 61729 printf "Build performance summary:\n" 61730 printf "* Cores to use: $JOBS\n" 61731 printf "* Memory limit: $MEMORY_SIZE MB\n" 61732 if test "x$CCACHE_STATUS" != "x"; then 61733 printf "* ccache status: $CCACHE_STATUS\n" 61734 fi 61735 printf "\n" 61736 61737 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then 61738 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 61739 printf "will result in longer build times.\n" 61740 printf "\n" 61741 fi 61742 61743 if test "x$FOUND_ALT_VARIABLES" != "x"; then 61744 printf "WARNING: You have old-style ALT_ environment variables set.\n" 61745 printf "These are not respected, and will be ignored. It is recommended\n" 61746 printf "that you clean your environment. The following variables are set:\n" 61747 printf "$FOUND_ALT_VARIABLES\n" 61748 printf "\n" 61749 fi 61750 61751 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 61752 printf "WARNING: Your build output directory is not on a local disk.\n" 61753 printf "This will severely degrade build performance!\n" 61754 printf "It is recommended that you create an output directory on a local disk,\n" 61755 printf "and run the configure script again from that directory.\n" 61756 printf "\n" 61757 fi 61758 61759 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 61760 printf "WARNING: The result of this configuration has overridden an older\n" 61761 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 61762 printf "proper build. Failure to do so might result in strange build problems.\n" 61763 printf "\n" 61764 fi 61765 61766 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 61767 printf "WARNING: The result of this configuration was not saved.\n" 61768 printf "You should run without '--no-create | -n' to create the configuration.\n" 61769 printf "\n" 61770 fi 61771 61772 61773 61774 # Locate config.log. 61775 if test -e "$CONFIGURESUPPORT_OUTPUTDIR/config.log"; then 61776 CONFIG_LOG_PATH="$CONFIGURESUPPORT_OUTPUTDIR" 61777 elif test -e "./config.log"; then 61778 CONFIG_LOG_PATH="." 61779 fi 61780 61781 if test -e "$CONFIG_LOG_PATH/config.log"; then 61782 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" > /dev/null 2>&1 61783 if test $? -eq 0; then 61784 printf "The following warnings were produced. Repeated here for convenience:\n" 61785 # We must quote sed expression (using []) to stop m4 from eating the []. 61786 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" | $SED -e 's/^configure:[0-9]*: //' 61787 printf "\n" 61788 fi 61789 fi 61790