1 #!/bin/bash 2 # 3 # ########################################################## 4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ### 5 # ########################################################## 6 # 7 #! /bin/sh 8 # Guess values for system-dependent variables and create Makefiles. 9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk9. 10 # 11 # Report bugs to <build-dev@openjdk.java.net>. 12 # 13 # 14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 15 # 16 # 17 # This configure script is free software; the Free Software Foundation 18 # gives unlimited permission to copy, distribute and modify it. 19 ## -------------------- ## 20 ## M4sh Initialization. ## 21 ## -------------------- ## 22 23 # Be more Bourne compatible 24 DUALCASE=1; export DUALCASE # for MKS sh 25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 26 emulate sh 27 NULLCMD=: 28 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 29 # is contrary to our usage. Disable this feature. 30 alias -g '${1+"$@"}'='"$@"' 31 setopt NO_GLOB_SUBST 32 else 33 case `(set -o) 2>/dev/null` in #( 34 *posix*) : 35 set -o posix ;; #( 36 *) : 37 ;; 38 esac 39 fi 40 41 42 as_nl=' 43 ' 44 export as_nl 45 # Printing a long string crashes Solaris 7 /usr/bin/printf. 46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49 # Prefer a ksh shell builtin over an external printf program on Solaris, 50 # but without wasting forks for bash or zsh. 51 if test -z "$BASH_VERSION$ZSH_VERSION" \ 52 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 53 as_echo='print -r --' 54 as_echo_n='print -rn --' 55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 56 as_echo='printf %s\n' 57 as_echo_n='printf %s' 58 else 59 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 60 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 61 as_echo_n='/usr/ucb/echo -n' 62 else 63 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 64 as_echo_n_body='eval 65 arg=$1; 66 case $arg in #( 67 *"$as_nl"*) 68 expr "X$arg" : "X\\(.*\\)$as_nl"; 69 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 70 esac; 71 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 72 ' 73 export as_echo_n_body 74 as_echo_n='sh -c $as_echo_n_body as_echo' 75 fi 76 export as_echo_body 77 as_echo='sh -c $as_echo_body as_echo' 78 fi 79 80 # The user is always right. 81 if test "${PATH_SEPARATOR+set}" != set; then 82 PATH_SEPARATOR=: 83 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 84 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 85 PATH_SEPARATOR=';' 86 } 87 fi 88 89 90 # IFS 91 # We need space, tab and new line, in precisely that order. Quoting is 92 # there to prevent editors from complaining about space-tab. 93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 94 # splitting by setting IFS to empty value.) 95 IFS=" "" $as_nl" 96 97 # Find who we are. Look in the path if we contain no directory separator. 98 as_myself= 99 case $0 in #(( 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102 for as_dir in $PATH 103 do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107 done 108 IFS=$as_save_IFS 109 110 ;; 111 esac 112 # We did not find ourselves, most probably we were run as `sh COMMAND' 113 # in which case we are not to be found in the path. 114 if test "x$as_myself" = x; then 115 as_myself=$0 116 fi 117 if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 exit 1 120 fi 121 122 # Unset variables that we do not need and which cause bugs (e.g. in 123 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 124 # suppresses any "Segmentation fault" message there. '((' could 125 # trigger a bug in pdksh 5.2.14. 126 for as_var in BASH_ENV ENV MAIL MAILPATH 127 do eval test x\${$as_var+set} = xset \ 128 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 129 done 130 PS1='$ ' 131 PS2='> ' 132 PS4='+ ' 133 134 # NLS nuisances. 135 LC_ALL=C 136 export LC_ALL 137 LANGUAGE=C 138 export LANGUAGE 139 140 # CDPATH. 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 142 143 # Use a proper internal environment variable to ensure we don't fall 144 # into an infinite loop, continuously re-executing ourselves. 145 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 146 _as_can_reexec=no; export _as_can_reexec; 147 # We cannot yet assume a decent shell, so we have to provide a 148 # neutralization value for shells without unset; and this also 149 # works around shells that cannot unset nonexistent variables. 150 # Preserve -v and -x to the replacement shell. 151 BASH_ENV=/dev/null 152 ENV=/dev/null 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 154 case $- in # (((( 155 *v*x* | *x*v* ) as_opts=-vx ;; 156 *v* ) as_opts=-v ;; 157 *x* ) as_opts=-x ;; 158 * ) as_opts= ;; 159 esac 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 161 # Admittedly, this is quite paranoid, since all the known shells bail 162 # out after a failed `exec'. 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 164 as_fn_exit 255 165 fi 166 # We don't want this to propagate to other subprocesses. 167 { _as_can_reexec=; unset _as_can_reexec;} 168 if test "x$CONFIG_SHELL" = x; then 169 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 170 emulate sh 171 NULLCMD=: 172 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 173 # is contrary to our usage. Disable this feature. 174 alias -g '\${1+\"\$@\"}'='\"\$@\"' 175 setopt NO_GLOB_SUBST 176 else 177 case \`(set -o) 2>/dev/null\` in #( 178 *posix*) : 179 set -o posix ;; #( 180 *) : 181 ;; 182 esac 183 fi 184 " 185 as_required="as_fn_return () { (exit \$1); } 186 as_fn_success () { as_fn_return 0; } 187 as_fn_failure () { as_fn_return 1; } 188 as_fn_ret_success () { return 0; } 189 as_fn_ret_failure () { return 1; } 190 191 exitcode=0 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 197 198 else 199 exitcode=1; echo positional parameters were not saved. 200 fi 201 test x\$exitcode = x0 || exit 1 202 test -x / || exit 1" 203 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 204 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 205 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 206 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 207 test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210 else 211 as_have_required=no 212 fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215 else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217 as_found=false 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219 do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233 fi 234 fi 235 done;; 236 esac 237 as_found=false 238 done 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242 fi; } 243 IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249 # neutralization value for shells without unset; and this also 250 # works around shells that cannot unset nonexistent variables. 251 # Preserve -v and -x to the replacement shell. 252 BASH_ENV=/dev/null 253 ENV=/dev/null 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255 case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260 esac 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262 # Admittedly, this is quite paranoid, since all the known shells bail 263 # out after a failed `exec'. 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265 exit 255 266 fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org and 276 $0: build-dev@openjdk.java.net about your system, including 277 $0: any error possibly output before this message. Then 278 $0: install a modern shell, or manually run the script 279 $0: under such a shell if you do have one." 280 fi 281 exit 1 282 fi 283 fi 284 fi 285 SHELL=${CONFIG_SHELL-/bin/sh} 286 export SHELL 287 # Unset more variables known to interfere with behavior of common tools. 288 CLICOLOR_FORCE= GREP_OPTIONS= 289 unset CLICOLOR_FORCE GREP_OPTIONS 290 291 ## --------------------- ## 292 ## M4sh Shell Functions. ## 293 ## --------------------- ## 294 # as_fn_unset VAR 295 # --------------- 296 # Portably unset VAR. 297 as_fn_unset () 298 { 299 { eval $1=; unset $1;} 300 } 301 as_unset=as_fn_unset 302 303 # as_fn_set_status STATUS 304 # ----------------------- 305 # Set $? to STATUS, without forking. 306 as_fn_set_status () 307 { 308 return $1 309 } # as_fn_set_status 310 311 # as_fn_exit STATUS 312 # ----------------- 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 314 as_fn_exit () 315 { 316 set +e 317 as_fn_set_status $1 318 exit $1 319 } # as_fn_exit 320 321 # as_fn_mkdir_p 322 # ------------- 323 # Create "$as_dir" as a directory, including parents if necessary. 324 as_fn_mkdir_p () 325 { 326 327 case $as_dir in #( 328 -*) as_dir=./$as_dir;; 329 esac 330 test -d "$as_dir" || eval $as_mkdir_p || { 331 as_dirs= 332 while :; do 333 case $as_dir in #( 334 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 335 *) as_qdir=$as_dir;; 336 esac 337 as_dirs="'$as_qdir' $as_dirs" 338 as_dir=`$as_dirname -- "$as_dir" || 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 340 X"$as_dir" : 'X\(//\)[^/]' \| \ 341 X"$as_dir" : 'X\(//\)$' \| \ 342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 343 $as_echo X"$as_dir" | 344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 345 s//\1/ 346 q 347 } 348 /^X\(\/\/\)[^/].*/{ 349 s//\1/ 350 q 351 } 352 /^X\(\/\/\)$/{ 353 s//\1/ 354 q 355 } 356 /^X\(\/\).*/{ 357 s//\1/ 358 q 359 } 360 s/.*/./; q'` 361 test -d "$as_dir" && break 362 done 363 test -z "$as_dirs" || eval "mkdir $as_dirs" 364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 365 366 367 } # as_fn_mkdir_p 368 369 # as_fn_executable_p FILE 370 # ----------------------- 371 # Test if FILE is an executable regular file. 372 as_fn_executable_p () 373 { 374 test -f "$1" && test -x "$1" 375 } # as_fn_executable_p 376 # as_fn_append VAR VALUE 377 # ---------------------- 378 # Append the text in VALUE to the end of the definition contained in VAR. Take 379 # advantage of any shell optimizations that allow amortized linear growth over 380 # repeated appends, instead of the typical quadratic growth present in naive 381 # implementations. 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 383 eval 'as_fn_append () 384 { 385 eval $1+=\$2 386 }' 387 else 388 as_fn_append () 389 { 390 eval $1=\$$1\$2 391 } 392 fi # as_fn_append 393 394 # as_fn_arith ARG... 395 # ------------------ 396 # Perform arithmetic evaluation on the ARGs, and store the result in the 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments 398 # must be portable across $(()) and expr. 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 400 eval 'as_fn_arith () 401 { 402 as_val=$(( $* )) 403 }' 404 else 405 as_fn_arith () 406 { 407 as_val=`expr "$@" || test $? -eq 1` 408 } 409 fi # as_fn_arith 410 411 412 # as_fn_error STATUS ERROR [LINENO LOG_FD] 413 # ---------------------------------------- 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 416 # script with STATUS, using 1 if that was 0. 417 as_fn_error () 418 { 419 as_status=$1; test $as_status -eq 0 && as_status=1 420 if test "$4"; then 421 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 422 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 423 fi 424 $as_echo "$as_me: error: $2" >&2 425 as_fn_exit $as_status 426 } # as_fn_error 427 428 if expr a : '\(a\)' >/dev/null 2>&1 && 429 test "X`expr 00001 : '.*\(...\)'`" = X001; then 430 as_expr=expr 431 else 432 as_expr=false 433 fi 434 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 436 as_basename=basename 437 else 438 as_basename=false 439 fi 440 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 442 as_dirname=dirname 443 else 444 as_dirname=false 445 fi 446 447 as_me=`$as_basename -- "$0" || 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 449 X"$0" : 'X\(//\)$' \| \ 450 X"$0" : 'X\(/\)' \| . 2>/dev/null || 451 $as_echo X/"$0" | 452 sed '/^.*\/\([^/][^/]*\)\/*$/{ 453 s//\1/ 454 q 455 } 456 /^X\/\(\/\/\)$/{ 457 s//\1/ 458 q 459 } 460 /^X\/\(\/\).*/{ 461 s//\1/ 462 q 463 } 464 s/.*/./; q'` 465 466 # Avoid depending upon Character Ranges. 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 470 as_cr_digits='0123456789' 471 as_cr_alnum=$as_cr_Letters$as_cr_digits 472 473 474 as_lineno_1=$LINENO as_lineno_1a=$LINENO 475 as_lineno_2=$LINENO as_lineno_2a=$LINENO 476 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 477 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 478 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 479 sed -n ' 480 p 481 /[$]LINENO/= 482 ' <$as_myself | 483 sed ' 484 s/[$]LINENO.*/&-/ 485 t lineno 486 b 487 :lineno 488 N 489 :loop 490 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 491 t loop 492 s/-\n.*// 493 ' >$as_me.lineno && 494 chmod +x "$as_me.lineno" || 495 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 496 497 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 498 # already done that, so ensure we don't try to do so again and fall 499 # in an infinite loop. This has already happened in practice. 500 _as_can_reexec=no; export _as_can_reexec 501 # Don't try to exec as it changes $[0], causing all sort of problems 502 # (the dirname of $[0] is not the place where we might find the 503 # original and so on. Autoconf is especially sensitive to this). 504 . "./$as_me.lineno" 505 # Exit status is that of the last command. 506 exit 507 } 508 509 ECHO_C= ECHO_N= ECHO_T= 510 case `echo -n x` in #((((( 511 -n*) 512 case `echo 'xy\c'` in 513 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 514 xy) ECHO_C='\c';; 515 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 516 ECHO_T=' ';; 517 esac;; 518 *) 519 ECHO_N='-n';; 520 esac 521 522 rm -f conf$$ conf$$.exe conf$$.file 523 if test -d conf$$.dir; then 524 rm -f conf$$.dir/conf$$.file 525 else 526 rm -f conf$$.dir 527 mkdir conf$$.dir 2>/dev/null 528 fi 529 if (echo >conf$$.file) 2>/dev/null; then 530 if ln -s conf$$.file conf$$ 2>/dev/null; then 531 as_ln_s='ln -s' 532 # ... but there are two gotchas: 533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 535 # In both cases, we have to default to `cp -pR'. 536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 537 as_ln_s='cp -pR' 538 elif ln conf$$.file conf$$ 2>/dev/null; then 539 as_ln_s=ln 540 else 541 as_ln_s='cp -pR' 542 fi 543 else 544 as_ln_s='cp -pR' 545 fi 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 547 rmdir conf$$.dir 2>/dev/null 548 549 if mkdir -p . 2>/dev/null; then 550 as_mkdir_p='mkdir -p "$as_dir"' 551 else 552 test -d ./-p && rmdir ./-p 553 as_mkdir_p=false 554 fi 555 556 as_test_x='test -x' 557 as_executable_p=as_fn_executable_p 558 559 # Sed expression to map a string onto a valid CPP name. 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 561 562 # Sed expression to map a string onto a valid variable name. 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 564 565 566 test -n "$DJDIR" || exec 7<&0 </dev/null 567 exec 6>&1 568 569 # Name of the host. 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 571 # so uname gets run too. 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 573 574 # 575 # Initializations. 576 # 577 ac_default_prefix=/usr/local 578 ac_clean_files= 579 ac_config_libobj_dir=. 580 LIBOBJS= 581 cross_compiling=no 582 subdirs= 583 MFLAGS= 584 MAKEFLAGS= 585 586 # Identity of this package. 587 PACKAGE_NAME='OpenJDK' 588 PACKAGE_TARNAME='openjdk' 589 PACKAGE_VERSION='jdk9' 590 PACKAGE_STRING='OpenJDK jdk9' 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net' 592 PACKAGE_URL='http://openjdk.java.net' 593 594 # Factoring default headers for most tests. 595 ac_includes_default="\ 596 #include <stdio.h> 597 #ifdef HAVE_SYS_TYPES_H 598 # include <sys/types.h> 599 #endif 600 #ifdef HAVE_SYS_STAT_H 601 # include <sys/stat.h> 602 #endif 603 #ifdef STDC_HEADERS 604 # include <stdlib.h> 605 # include <stddef.h> 606 #else 607 # ifdef HAVE_STDLIB_H 608 # include <stdlib.h> 609 # endif 610 #endif 611 #ifdef HAVE_STRING_H 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 613 # include <memory.h> 614 # endif 615 # include <string.h> 616 #endif 617 #ifdef HAVE_STRINGS_H 618 # include <strings.h> 619 #endif 620 #ifdef HAVE_INTTYPES_H 621 # include <inttypes.h> 622 #endif 623 #ifdef HAVE_STDINT_H 624 # include <stdint.h> 625 #endif 626 #ifdef HAVE_UNISTD_H 627 # include <unistd.h> 628 #endif" 629 630 ac_subst_vars='LTLIBOBJS 631 LIBOBJS 632 CFLAGS_CCACHE 633 CCACHE 634 USE_PRECOMPILED_HEADER 635 BUILD_ICECC 636 ICECC 637 ICECC_WRAPPER 638 ICECC_CREATE_ENV 639 ICECC_CMD 640 ENABLE_JAVAC_SERVER 641 ENABLE_SJAVAC 642 SJAVAC_SERVER_JAVA_FLAGS 643 SJAVAC_SERVER_JAVA 644 JAVA_TOOL_FLAGS_SMALL 645 JAVA_FLAGS_SMALL 646 JAVA_FLAGS_JAVAC 647 BOOTCYCLE_JVM_ARGS_BIG 648 JAVA_FLAGS_BIG 649 JAVA_FLAGS 650 TEST_JOBS 651 JOBS 652 MEMORY_SIZE 653 NUM_CORES 654 ENABLE_GENERATE_CLASSLIST 655 BUILD_FAILURE_HANDLER 656 ENABLE_INTREE_EC 657 VALID_JVM_FEATURES 658 JVM_FEATURES_custom 659 JVM_FEATURES_zeroshark 660 JVM_FEATURES_zero 661 JVM_FEATURES_minimal 662 JVM_FEATURES_core 663 JVM_FEATURES_client 664 JVM_FEATURES_server 665 INCLUDE_GRAAL 666 STLPORT_LIB 667 LIBZIP_CAN_USE_MMAP 668 LIBDL 669 LIBM 670 USE_EXTERNAL_LCMS 671 LCMS_LIBS 672 LCMS_CFLAGS 673 USE_EXTERNAL_LIBZ 674 USE_EXTERNAL_LIBPNG 675 PNG_LIBS 676 PNG_CFLAGS 677 USE_EXTERNAL_LIBGIF 678 USE_EXTERNAL_LIBJPEG 679 LLVM_LIBS 680 LLVM_LDFLAGS 681 LLVM_CFLAGS 682 LLVM_CONFIG 683 LIBFFI_LIB_FILE 684 ENABLE_LIBFFI_BUNDLING 685 LIBFFI_LIBS 686 LIBFFI_CFLAGS 687 ALSA_LIBS 688 ALSA_CFLAGS 689 FREETYPE_LICENSE 690 FREETYPE_BUNDLE_LIB_PATH 691 FREETYPE_LIBS 692 FREETYPE_CFLAGS 693 CUPS_CFLAGS 694 X_EXTRA_LIBS 695 X_LIBS 696 X_PRE_LIBS 697 X_CFLAGS 698 XMKMF 699 MSVCP_DLL 700 MSVCR_DLL 701 LIBCXX 702 FIXPATH_DETACH_FLAG 703 FIXPATH 704 BUILD_GTEST 705 ENABLE_CDS 706 ENABLE_AOT 707 GCOV_ENABLED 708 ZIP_EXTERNAL_DEBUG_SYMBOLS 709 COPY_DEBUG_SYMBOLS 710 COMPILE_WITH_DEBUG_SYMBOLS 711 CFLAGS_WARNINGS_ARE_ERRORS 712 BUILD_CC_DISABLE_WARNING_PREFIX 713 DISABLE_WARNING_PREFIX 714 WARNINGS_AS_ERRORS 715 COMPILER_SUPPORTS_TARGET_BITS_FLAG 716 LDFLAGS_TESTEXE 717 LDFLAGS_TESTLIB 718 CXXFLAGS_TESTEXE 719 CXXFLAGS_TESTLIB 720 CFLAGS_TESTEXE 721 CFLAGS_TESTLIB 722 OPENJDK_BUILD_JVM_LIBS 723 OPENJDK_BUILD_JVM_ASFLAGS 724 OPENJDK_BUILD_JVM_LDFLAGS 725 OPENJDK_BUILD_JVM_CFLAGS 726 OPENJDK_BUILD_LDFLAGS_NO_EXEC_STACK 727 OPENJDK_BUILD_LDFLAGS_HASH_STYLE 728 OPENJDK_BUILD_LDFLAGS_CXX_JDK 729 OPENJDK_BUILD_JDKEXE_LIBS 730 OPENJDK_BUILD_JDKLIB_LIBS 731 OPENJDK_BUILD_LDFLAGS_JDKEXE 732 OPENJDK_BUILD_LDFLAGS_JDKLIB 733 OPENJDK_BUILD_CXXFLAGS_JDKEXE 734 OPENJDK_BUILD_CXXFLAGS_JDKLIB 735 OPENJDK_BUILD_CFLAGS_JDKEXE 736 OPENJDK_BUILD_CFLAGS_JDKLIB 737 OPENJDK_BUILD_CXXSTD_CXXFLAG 738 JVM_LIBS 739 JVM_ASFLAGS 740 JVM_LDFLAGS 741 JVM_CFLAGS 742 LDFLAGS_NO_EXEC_STACK 743 LDFLAGS_HASH_STYLE 744 LDFLAGS_CXX_JDK 745 JDKEXE_LIBS 746 JDKLIB_LIBS 747 LDFLAGS_JDKEXE 748 LDFLAGS_JDKLIB 749 CXXFLAGS_JDKEXE 750 CXXFLAGS_JDKLIB 751 CFLAGS_JDKEXE 752 CFLAGS_JDKLIB 753 MACOSX_VERSION_MAX 754 MACOSX_VERSION_MIN 755 CXXSTD_CXXFLAG 756 JDK_ARCH_ABI_PROP_NAME 757 CXX_O_FLAG_SIZE 758 CXX_O_FLAG_NONE 759 CXX_O_FLAG_DEBUG 760 CXX_O_FLAG_NORM 761 CXX_O_FLAG_HI 762 CXX_O_FLAG_HIGHEST 763 CXX_O_FLAG_HIGHEST_JVM 764 C_O_FLAG_SIZE 765 C_O_FLAG_NONE 766 C_O_FLAG_DEBUG 767 C_O_FLAG_NORM 768 C_O_FLAG_HI 769 C_O_FLAG_HIGHEST 770 C_O_FLAG_HIGHEST_JVM 771 JVM_CFLAGS_SYMBOLS 772 CXXFLAGS_DEBUG_SYMBOLS 773 CFLAGS_DEBUG_SYMBOLS 774 CXX_FLAG_DEPS 775 C_FLAG_DEPS 776 SHARED_LIBRARY_FLAGS 777 SET_SHARED_LIBRARY_MAPFILE 778 SET_SHARED_LIBRARY_NAME 779 SET_SHARED_LIBRARY_ORIGIN 780 SET_EXECUTABLE_ORIGIN 781 CXX_FLAG_REORDER 782 C_FLAG_REORDER 783 JVM_RCFLAGS 784 RC_FLAGS 785 AR_OUT_OPTION 786 LD_OUT_OPTION 787 EXE_OUT_OPTION 788 CC_OUT_OPTION 789 STRIPFLAGS 790 ARFLAGS 791 COMPILER_BINDCMD_FILE_FLAG 792 COMPILER_COMMAND_FILE_FLAG 793 COMPILER_TARGET_BITS_FLAG 794 JIB_JAR 795 JT_HOME 796 JTREGEXE 797 HOTSPOT_TOOLCHAIN_TYPE 798 USING_BROKEN_SUSE_LD 799 PACKAGE_PATH 800 BUILD_AS 801 BUILD_LDCXX 802 BUILD_LD 803 BUILD_STRIP 804 BUILD_OBJCOPY 805 BUILD_AR 806 BUILD_NM 807 BUILD_CXX 808 BUILD_CC 809 BUILD_SYSROOT_LDFLAGS 810 BUILD_SYSROOT_CFLAGS 811 ac_ct_OBJDUMP 812 OBJDUMP 813 ac_ct_OBJCOPY 814 OBJCOPY 815 ac_ct_NM 816 ac_ct_STRIP 817 GNM 818 NM 819 STRIP 820 MSBUILD 821 DUMPBIN 822 RC 823 MT 824 LIPO 825 ac_ct_AR 826 AR 827 AS 828 LDCXX 829 LD 830 CXXCPP 831 CPP 832 CXX_VERSION_NUMBER 833 CC_VERSION_NUMBER 834 ac_ct_CXX 835 CXXFLAGS 836 CXX 837 TOOLCHAIN_PATH_CXX 838 POTENTIAL_CXX 839 OBJEXT 840 EXEEXT 841 ac_ct_CC 842 CPPFLAGS 843 LDFLAGS 844 CFLAGS 845 CC 846 TOOLCHAIN_PATH_CC 847 POTENTIAL_CC 848 TOOLCHAIN_VERSION 849 VS_LIB 850 VS_INCLUDE 851 VS_PATH 852 CYGWIN_LINK 853 SYSROOT_LDFLAGS 854 SYSROOT_CFLAGS 855 EXTRA_LDFLAGS 856 EXTRA_CXXFLAGS 857 EXTRA_CFLAGS 858 EXE_SUFFIX 859 OBJ_SUFFIX 860 STATIC_LIBRARY 861 SHARED_LIBRARY 862 STATIC_LIBRARY_SUFFIX 863 SHARED_LIBRARY_SUFFIX 864 LIBRARY_PREFIX 865 TOOLCHAIN_TYPE 866 STATIC_BUILD 867 IMPORT_MODULES_MAKE 868 IMPORT_MODULES_SRC 869 IMPORT_MODULES_MAN 870 IMPORT_MODULES_LEGAL 871 IMPORT_MODULES_CONF 872 IMPORT_MODULES_LIBS 873 IMPORT_MODULES_CMDS 874 IMPORT_MODULES_CLASSES 875 BUILD_OUTPUT 876 JDK_TOPDIR 877 NASHORN_TOPDIR 878 HOTSPOT_TOPDIR 879 JAXWS_TOPDIR 880 JAXP_TOPDIR 881 CORBA_TOPDIR 882 LANGTOOLS_TOPDIR 883 EXTERNAL_BUILDJDK 884 BUILD_JDK 885 CREATE_BUILDJDK 886 JLINK 887 JMOD 888 JAVAC_FLAGS 889 BOOT_JDK_MODULAR 890 BOOT_JDK_SOURCETARGET 891 JARSIGNER 892 JAR 893 JAVAH 894 JAVAC 895 JAVA 896 BOOT_JDK 897 JAVA_CHECK 898 JAVAC_CHECK 899 VERSION_IS_GA 900 VERSION_SHORT 901 VERSION_STRING 902 VERSION_NUMBER_FOUR_POSITIONS 903 VERSION_NUMBER 904 VERSION_OPT 905 VERSION_BUILD 906 VERSION_PRE 907 VERSION_PATCH 908 VERSION_SECURITY 909 VERSION_MINOR 910 VERSION_MAJOR 911 MACOSX_BUNDLE_ID_BASE 912 MACOSX_BUNDLE_NAME_BASE 913 HOTSPOT_VM_DISTRO 914 COMPANY_NAME 915 JDK_RC_PLATFORM_NAME 916 PRODUCT_SUFFIX 917 PRODUCT_NAME 918 LAUNCHER_NAME 919 JLINK_KEEP_PACKAGED_MODULES 920 COPYRIGHT_YEAR 921 COMPRESS_JARS 922 INCLUDE_SA 923 UNLIMITED_CRYPTO 924 CACERTS_FILE 925 ENABLE_FULL_DOCS 926 ENABLE_HEADLESS_ONLY 927 DEFAULT_MAKE_TARGET 928 OS_VERSION_MICRO 929 OS_VERSION_MINOR 930 OS_VERSION_MAJOR 931 PKG_CONFIG 932 BASH_ARGS 933 SETFILE 934 CODESIGN 935 XATTR 936 DSYMUTIL 937 IS_GNU_TIME 938 PATCH 939 DTRACE 940 FLOCK 941 TIME 942 STAT 943 HG 944 DOT 945 READELF 946 OTOOL 947 LDD 948 ZIPEXE 949 UNZIP 950 TAR_SUPPORTS_TRANSFORM 951 TAR_INCLUDE_PARAM 952 TAR_CREATE_EXTRA_PARAM 953 TAR_TYPE 954 FIND_DELETE 955 OUTPUT_SYNC 956 OUTPUT_SYNC_SUPPORTED 957 CHECK_TOOLSDIR_MAKE 958 CHECK_TOOLSDIR_GMAKE 959 CHECK_MAKE 960 CHECK_GMAKE 961 MAKE 962 PKGHANDLER 963 CONFIGURESUPPORT_OUTPUTDIR 964 OUTPUT_ROOT 965 CONF_NAME 966 SPEC 967 SDKROOT 968 XCODEBUILD 969 JVM_VARIANT_MAIN 970 VALID_JVM_VARIANTS 971 JVM_VARIANTS 972 DEBUG_LEVEL 973 HOTSPOT_DEBUG_LEVEL 974 JDK_VARIANT 975 USERNAME 976 CANONICAL_TOPDIR 977 ORIGINAL_TOPDIR 978 TOPDIR 979 PATH_SEP 980 HOTSPOT_BUILD_CPU_DEFINE 981 HOTSPOT_BUILD_CPU_ARCH 982 HOTSPOT_BUILD_CPU 983 HOTSPOT_BUILD_OS_TYPE 984 HOTSPOT_BUILD_OS 985 OPENJDK_BUILD_BUNDLE_PLATFORM 986 OPENJDK_BUILD_OS_EXPORT_DIR 987 OPENJDK_BUILD_CPU_OSARCH 988 OPENJDK_BUILD_CPU_ISADIR 989 OPENJDK_BUILD_CPU_LEGACY_LIB 990 OPENJDK_BUILD_CPU_LEGACY 991 HOTSPOT_TARGET_CPU_DEFINE 992 HOTSPOT_TARGET_CPU_ARCH 993 HOTSPOT_TARGET_CPU 994 HOTSPOT_TARGET_OS_TYPE 995 HOTSPOT_TARGET_OS 996 DEFINE_CROSS_COMPILE_ARCH 997 OPENJDK_TARGET_BUNDLE_PLATFORM 998 OPENJDK_TARGET_OS_EXPORT_DIR 999 OPENJDK_TARGET_CPU_OSARCH 1000 OPENJDK_TARGET_CPU_ISADIR 1001 OPENJDK_TARGET_CPU_LEGACY_LIB 1002 OPENJDK_TARGET_CPU_LEGACY 1003 RELEASE_FILE_OS_ARCH 1004 RELEASE_FILE_OS_NAME 1005 OPENJDK_MODULE_TARGET_PLATFORM 1006 COMPILE_TYPE 1007 OPENJDK_TARGET_CPU_ENDIAN 1008 OPENJDK_TARGET_CPU_BITS 1009 OPENJDK_TARGET_CPU_ARCH 1010 OPENJDK_TARGET_CPU 1011 OPENJDK_TARGET_OS_ENV 1012 OPENJDK_TARGET_OS_TYPE 1013 OPENJDK_TARGET_OS 1014 OPENJDK_BUILD_CPU_ENDIAN 1015 OPENJDK_BUILD_CPU_BITS 1016 OPENJDK_BUILD_CPU_ARCH 1017 OPENJDK_BUILD_CPU 1018 OPENJDK_BUILD_OS_ENV 1019 OPENJDK_BUILD_OS_TYPE 1020 OPENJDK_BUILD_OS 1021 OPENJDK_BUILD_AUTOCONF_NAME 1022 OPENJDK_TARGET_AUTOCONF_NAME 1023 target_os 1024 target_vendor 1025 target_cpu 1026 target 1027 host_os 1028 host_vendor 1029 host_cpu 1030 host 1031 build_os 1032 build_vendor 1033 build_cpu 1034 build 1035 PANDOC 1036 NICE 1037 CPIO 1038 DF 1039 READLINK 1040 CYGPATH 1041 SED 1042 FGREP 1043 EGREP 1044 GREP 1045 AWK 1046 XARGS 1047 WHICH 1048 WC 1049 UNIQ 1050 UNAME 1051 TR 1052 TOUCH 1053 TEE 1054 TAR 1055 TAIL 1056 SORT 1057 SH 1058 RMDIR 1059 RM 1060 PRINTF 1061 NAWK 1062 MV 1063 MKTEMP 1064 MKDIR 1065 LS 1066 LN 1067 GZIP 1068 GUNZIP 1069 HEAD 1070 FIND 1071 FILE 1072 EXPR 1073 ECHO 1074 DIRNAME 1075 DIFF 1076 DATE 1077 CUT 1078 CP 1079 COMM 1080 CMP 1081 CHMOD 1082 CAT 1083 BASH 1084 BASENAME 1085 DATE_WHEN_CONFIGURED 1086 ORIGINAL_PATH 1087 CONFIGURE_COMMAND_LINE 1088 target_alias 1089 host_alias 1090 build_alias 1091 LIBS 1092 ECHO_T 1093 ECHO_N 1094 ECHO_C 1095 DEFS 1096 mandir 1097 localedir 1098 libdir 1099 psdir 1100 pdfdir 1101 dvidir 1102 htmldir 1103 infodir 1104 docdir 1105 oldincludedir 1106 includedir 1107 runstatedir 1108 localstatedir 1109 sharedstatedir 1110 sysconfdir 1111 datadir 1112 datarootdir 1113 libexecdir 1114 sbindir 1115 bindir 1116 program_transform_name 1117 prefix 1118 exec_prefix 1119 PACKAGE_URL 1120 PACKAGE_BUGREPORT 1121 PACKAGE_STRING 1122 PACKAGE_VERSION 1123 PACKAGE_TARNAME 1124 PACKAGE_NAME 1125 PATH_SEPARATOR 1126 SHELL' 1127 ac_subst_files='' 1128 ac_user_opts=' 1129 enable_option_checking 1130 with_target_bits 1131 enable_openjdk_only 1132 with_custom_make_dir 1133 with_jdk_variant 1134 enable_debug 1135 with_debug_level 1136 with_jvm_variants 1137 with_cpu_port 1138 with_devkit 1139 with_sys_root 1140 with_sysroot 1141 with_tools_dir 1142 with_toolchain_path 1143 with_extra_path 1144 with_sdk_name 1145 with_conf_name 1146 with_output_sync 1147 with_default_make_target 1148 enable_headless_only 1149 enable_full_docs 1150 with_cacerts_file 1151 enable_unlimited_crypto 1152 with_copyright_year 1153 enable_keep_packaged_modules 1154 with_milestone 1155 with_update_version 1156 with_user_release_suffix 1157 with_build_number 1158 with_version_string 1159 with_version_pre 1160 with_version_opt 1161 with_version_build 1162 with_version_major 1163 with_version_minor 1164 with_version_security 1165 with_version_patch 1166 with_boot_jdk 1167 with_build_jdk 1168 with_add_source_root 1169 with_override_source_root 1170 with_adds_and_overrides 1171 with_override_langtools 1172 with_override_corba 1173 with_override_jaxp 1174 with_override_jaxws 1175 with_override_hotspot 1176 with_override_nashorn 1177 with_override_jdk 1178 with_import_hotspot 1179 with_import_modules 1180 enable_static_build 1181 with_toolchain_type 1182 with_extra_cflags 1183 with_extra_cxxflags 1184 with_extra_ldflags 1185 with_toolchain_version 1186 with_build_devkit 1187 with_jtreg 1188 with_jib 1189 with_abi_profile 1190 with_macosx_version_max 1191 enable_warnings_as_errors 1192 with_native_debug_symbols 1193 enable_debug_symbols 1194 enable_zip_debug_info 1195 enable_native_coverage 1196 enable_dtrace 1197 enable_aot 1198 enable_cds 1199 enable_hotspot_gtest 1200 with_stdc__lib 1201 with_msvcr_dll 1202 with_msvcp_dll 1203 with_x 1204 with_cups 1205 with_cups_include 1206 with_freetype 1207 with_freetype_include 1208 with_freetype_lib 1209 with_freetype_src 1210 enable_freetype_bundling 1211 with_freetype_license 1212 with_alsa 1213 with_alsa_include 1214 with_alsa_lib 1215 with_libffi 1216 with_libffi_include 1217 with_libffi_lib 1218 enable_libffi_bundling 1219 with_libjpeg 1220 with_giflib 1221 with_libpng 1222 with_zlib 1223 with_lcms 1224 with_dxsdk 1225 with_dxsdk_lib 1226 with_dxsdk_include 1227 with_jvm_features 1228 with_jvm_interpreter 1229 enable_jtreg_failure_handler 1230 enable_generate_classlist 1231 with_num_cores 1232 with_memory_size 1233 with_jobs 1234 with_test_jobs 1235 with_boot_jdk_jvmargs 1236 with_sjavac_server_java 1237 enable_sjavac 1238 enable_javac_server 1239 enable_icecc 1240 enable_precompiled_headers 1241 enable_ccache 1242 with_ccache_dir 1243 ' 1244 ac_precious_vars='build_alias 1245 host_alias 1246 target_alias 1247 BASENAME 1248 BASH 1249 CAT 1250 CHMOD 1251 CMP 1252 COMM 1253 CP 1254 CUT 1255 DATE 1256 DIFF 1257 DIRNAME 1258 ECHO 1259 EXPR 1260 FILE 1261 FIND 1262 HEAD 1263 GUNZIP 1264 GZIP 1265 LN 1266 LS 1267 MKDIR 1268 MKTEMP 1269 MV 1270 NAWK 1271 PRINTF 1272 RM 1273 RMDIR 1274 SH 1275 SORT 1276 TAIL 1277 TAR 1278 TEE 1279 TOUCH 1280 TR 1281 UNAME 1282 UNIQ 1283 WC 1284 WHICH 1285 XARGS 1286 AWK 1287 GREP 1288 EGREP 1289 FGREP 1290 SED 1291 CYGPATH 1292 READLINK 1293 DF 1294 CPIO 1295 NICE 1296 PANDOC 1297 MAKE 1298 UNZIP 1299 ZIPEXE 1300 LDD 1301 OTOOL 1302 READELF 1303 DOT 1304 HG 1305 STAT 1306 TIME 1307 FLOCK 1308 DTRACE 1309 PATCH 1310 DSYMUTIL 1311 XATTR 1312 CODESIGN 1313 SETFILE 1314 PKG_CONFIG 1315 JAVA 1316 JAVAC 1317 JAVAH 1318 JAR 1319 JARSIGNER 1320 CC 1321 CFLAGS 1322 LDFLAGS 1323 LIBS 1324 CPPFLAGS 1325 CXX 1326 CXXFLAGS 1327 CCC 1328 CPP 1329 CXXCPP 1330 AS 1331 AR 1332 LIPO 1333 STRIP 1334 NM 1335 GNM 1336 OBJCOPY 1337 OBJDUMP 1338 BUILD_CC 1339 BUILD_CXX 1340 BUILD_NM 1341 BUILD_AR 1342 BUILD_OBJCOPY 1343 BUILD_STRIP 1344 JTREGEXE 1345 XMKMF 1346 FREETYPE_CFLAGS 1347 FREETYPE_LIBS 1348 ALSA_CFLAGS 1349 ALSA_LIBS 1350 LIBFFI_CFLAGS 1351 LIBFFI_LIBS 1352 PNG_CFLAGS 1353 PNG_LIBS 1354 LCMS_CFLAGS 1355 LCMS_LIBS 1356 ICECC_CMD 1357 ICECC_CREATE_ENV 1358 ICECC_WRAPPER 1359 CCACHE' 1360 1361 1362 # Initialize some variables set by options. 1363 ac_init_help= 1364 ac_init_version=false 1365 ac_unrecognized_opts= 1366 ac_unrecognized_sep= 1367 # The variables have the same names as the options, with 1368 # dashes changed to underlines. 1369 cache_file=/dev/null 1370 exec_prefix=NONE 1371 no_create= 1372 no_recursion= 1373 prefix=NONE 1374 program_prefix=NONE 1375 program_suffix=NONE 1376 program_transform_name=s,x,x, 1377 silent= 1378 site= 1379 srcdir= 1380 verbose= 1381 x_includes=NONE 1382 x_libraries=NONE 1383 1384 # Installation directory options. 1385 # These are left unexpanded so users can "make install exec_prefix=/foo" 1386 # and all the variables that are supposed to be based on exec_prefix 1387 # by default will actually change. 1388 # Use braces instead of parens because sh, perl, etc. also accept them. 1389 # (The list follows the same order as the GNU Coding Standards.) 1390 bindir='${exec_prefix}/bin' 1391 sbindir='${exec_prefix}/sbin' 1392 libexecdir='${exec_prefix}/libexec' 1393 datarootdir='${prefix}/share' 1394 datadir='${datarootdir}' 1395 sysconfdir='${prefix}/etc' 1396 sharedstatedir='${prefix}/com' 1397 localstatedir='${prefix}/var' 1398 runstatedir='${localstatedir}/run' 1399 includedir='${prefix}/include' 1400 oldincludedir='/usr/include' 1401 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1402 infodir='${datarootdir}/info' 1403 htmldir='${docdir}' 1404 dvidir='${docdir}' 1405 pdfdir='${docdir}' 1406 psdir='${docdir}' 1407 libdir='${exec_prefix}/lib' 1408 localedir='${datarootdir}/locale' 1409 mandir='${datarootdir}/man' 1410 1411 ac_prev= 1412 ac_dashdash= 1413 for ac_option 1414 do 1415 # If the previous option needs an argument, assign it. 1416 if test -n "$ac_prev"; then 1417 eval $ac_prev=\$ac_option 1418 ac_prev= 1419 continue 1420 fi 1421 1422 case $ac_option in 1423 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1424 *=) ac_optarg= ;; 1425 *) ac_optarg=yes ;; 1426 esac 1427 1428 # Accept the important Cygnus configure options, so we can diagnose typos. 1429 1430 case $ac_dashdash$ac_option in 1431 --) 1432 ac_dashdash=yes ;; 1433 1434 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1435 ac_prev=bindir ;; 1436 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1437 bindir=$ac_optarg ;; 1438 1439 -build | --build | --buil | --bui | --bu) 1440 ac_prev=build_alias ;; 1441 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1442 build_alias=$ac_optarg ;; 1443 1444 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1445 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1446 ac_prev=cache_file ;; 1447 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1448 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1449 cache_file=$ac_optarg ;; 1450 1451 --config-cache | -C) 1452 cache_file=config.cache ;; 1453 1454 -datadir | --datadir | --datadi | --datad) 1455 ac_prev=datadir ;; 1456 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1457 datadir=$ac_optarg ;; 1458 1459 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1460 | --dataroo | --dataro | --datar) 1461 ac_prev=datarootdir ;; 1462 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1463 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1464 datarootdir=$ac_optarg ;; 1465 1466 -disable-* | --disable-*) 1467 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1468 # Reject names that are not valid shell variable names. 1469 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1470 as_fn_error $? "invalid feature name: $ac_useropt" 1471 ac_useropt_orig=$ac_useropt 1472 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1473 case $ac_user_opts in 1474 *" 1475 "enable_$ac_useropt" 1476 "*) ;; 1477 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1478 ac_unrecognized_sep=', ';; 1479 esac 1480 eval enable_$ac_useropt=no ;; 1481 1482 -docdir | --docdir | --docdi | --doc | --do) 1483 ac_prev=docdir ;; 1484 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1485 docdir=$ac_optarg ;; 1486 1487 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1488 ac_prev=dvidir ;; 1489 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1490 dvidir=$ac_optarg ;; 1491 1492 -enable-* | --enable-*) 1493 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1494 # Reject names that are not valid shell variable names. 1495 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1496 as_fn_error $? "invalid feature name: $ac_useropt" 1497 ac_useropt_orig=$ac_useropt 1498 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1499 case $ac_user_opts in 1500 *" 1501 "enable_$ac_useropt" 1502 "*) ;; 1503 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1504 ac_unrecognized_sep=', ';; 1505 esac 1506 eval enable_$ac_useropt=\$ac_optarg ;; 1507 1508 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1509 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1510 | --exec | --exe | --ex) 1511 ac_prev=exec_prefix ;; 1512 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1513 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1514 | --exec=* | --exe=* | --ex=*) 1515 exec_prefix=$ac_optarg ;; 1516 1517 -gas | --gas | --ga | --g) 1518 # Obsolete; use --with-gas. 1519 with_gas=yes ;; 1520 1521 -help | --help | --hel | --he | -h) 1522 ac_init_help=long ;; 1523 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1524 ac_init_help=recursive ;; 1525 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1526 ac_init_help=short ;; 1527 1528 -host | --host | --hos | --ho) 1529 ac_prev=host_alias ;; 1530 -host=* | --host=* | --hos=* | --ho=*) 1531 host_alias=$ac_optarg ;; 1532 1533 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1534 ac_prev=htmldir ;; 1535 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1536 | --ht=*) 1537 htmldir=$ac_optarg ;; 1538 1539 -includedir | --includedir | --includedi | --included | --include \ 1540 | --includ | --inclu | --incl | --inc) 1541 ac_prev=includedir ;; 1542 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1543 | --includ=* | --inclu=* | --incl=* | --inc=*) 1544 includedir=$ac_optarg ;; 1545 1546 -infodir | --infodir | --infodi | --infod | --info | --inf) 1547 ac_prev=infodir ;; 1548 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1549 infodir=$ac_optarg ;; 1550 1551 -libdir | --libdir | --libdi | --libd) 1552 ac_prev=libdir ;; 1553 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1554 libdir=$ac_optarg ;; 1555 1556 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1557 | --libexe | --libex | --libe) 1558 ac_prev=libexecdir ;; 1559 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1560 | --libexe=* | --libex=* | --libe=*) 1561 libexecdir=$ac_optarg ;; 1562 1563 -localedir | --localedir | --localedi | --localed | --locale) 1564 ac_prev=localedir ;; 1565 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1566 localedir=$ac_optarg ;; 1567 1568 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1569 | --localstate | --localstat | --localsta | --localst | --locals) 1570 ac_prev=localstatedir ;; 1571 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1572 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1573 localstatedir=$ac_optarg ;; 1574 1575 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1576 ac_prev=mandir ;; 1577 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1578 mandir=$ac_optarg ;; 1579 1580 -nfp | --nfp | --nf) 1581 # Obsolete; use --without-fp. 1582 with_fp=no ;; 1583 1584 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1585 | --no-cr | --no-c | -n) 1586 no_create=yes ;; 1587 1588 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1589 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1590 no_recursion=yes ;; 1591 1592 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1593 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1594 | --oldin | --oldi | --old | --ol | --o) 1595 ac_prev=oldincludedir ;; 1596 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1597 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1598 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1599 oldincludedir=$ac_optarg ;; 1600 1601 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1602 ac_prev=prefix ;; 1603 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1604 prefix=$ac_optarg ;; 1605 1606 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1607 | --program-pre | --program-pr | --program-p) 1608 ac_prev=program_prefix ;; 1609 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1610 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1611 program_prefix=$ac_optarg ;; 1612 1613 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1614 | --program-suf | --program-su | --program-s) 1615 ac_prev=program_suffix ;; 1616 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1617 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1618 program_suffix=$ac_optarg ;; 1619 1620 -program-transform-name | --program-transform-name \ 1621 | --program-transform-nam | --program-transform-na \ 1622 | --program-transform-n | --program-transform- \ 1623 | --program-transform | --program-transfor \ 1624 | --program-transfo | --program-transf \ 1625 | --program-trans | --program-tran \ 1626 | --progr-tra | --program-tr | --program-t) 1627 ac_prev=program_transform_name ;; 1628 -program-transform-name=* | --program-transform-name=* \ 1629 | --program-transform-nam=* | --program-transform-na=* \ 1630 | --program-transform-n=* | --program-transform-=* \ 1631 | --program-transform=* | --program-transfor=* \ 1632 | --program-transfo=* | --program-transf=* \ 1633 | --program-trans=* | --program-tran=* \ 1634 | --progr-tra=* | --program-tr=* | --program-t=*) 1635 program_transform_name=$ac_optarg ;; 1636 1637 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1638 ac_prev=pdfdir ;; 1639 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1640 pdfdir=$ac_optarg ;; 1641 1642 -psdir | --psdir | --psdi | --psd | --ps) 1643 ac_prev=psdir ;; 1644 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1645 psdir=$ac_optarg ;; 1646 1647 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1648 | -silent | --silent | --silen | --sile | --sil) 1649 silent=yes ;; 1650 1651 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1652 | --runstate | --runstat | --runsta | --runst | --runs \ 1653 | --run | --ru | --r) 1654 ac_prev=runstatedir ;; 1655 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1656 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1657 | --run=* | --ru=* | --r=*) 1658 runstatedir=$ac_optarg ;; 1659 1660 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1661 ac_prev=sbindir ;; 1662 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1663 | --sbi=* | --sb=*) 1664 sbindir=$ac_optarg ;; 1665 1666 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1667 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1668 | --sharedst | --shareds | --shared | --share | --shar \ 1669 | --sha | --sh) 1670 ac_prev=sharedstatedir ;; 1671 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1672 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1673 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1674 | --sha=* | --sh=*) 1675 sharedstatedir=$ac_optarg ;; 1676 1677 -site | --site | --sit) 1678 ac_prev=site ;; 1679 -site=* | --site=* | --sit=*) 1680 site=$ac_optarg ;; 1681 1682 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1683 ac_prev=srcdir ;; 1684 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1685 srcdir=$ac_optarg ;; 1686 1687 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1688 | --syscon | --sysco | --sysc | --sys | --sy) 1689 ac_prev=sysconfdir ;; 1690 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1691 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1692 sysconfdir=$ac_optarg ;; 1693 1694 -target | --target | --targe | --targ | --tar | --ta | --t) 1695 ac_prev=target_alias ;; 1696 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1697 target_alias=$ac_optarg ;; 1698 1699 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1700 verbose=yes ;; 1701 1702 -version | --version | --versio | --versi | --vers | -V) 1703 ac_init_version=: ;; 1704 1705 -with-* | --with-*) 1706 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1707 # Reject names that are not valid shell variable names. 1708 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1709 as_fn_error $? "invalid package name: $ac_useropt" 1710 ac_useropt_orig=$ac_useropt 1711 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1712 case $ac_user_opts in 1713 *" 1714 "with_$ac_useropt" 1715 "*) ;; 1716 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1717 ac_unrecognized_sep=', ';; 1718 esac 1719 eval with_$ac_useropt=\$ac_optarg ;; 1720 1721 -without-* | --without-*) 1722 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1723 # Reject names that are not valid shell variable names. 1724 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1725 as_fn_error $? "invalid package name: $ac_useropt" 1726 ac_useropt_orig=$ac_useropt 1727 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1728 case $ac_user_opts in 1729 *" 1730 "with_$ac_useropt" 1731 "*) ;; 1732 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1733 ac_unrecognized_sep=', ';; 1734 esac 1735 eval with_$ac_useropt=no ;; 1736 1737 --x) 1738 # Obsolete; use --with-x. 1739 with_x=yes ;; 1740 1741 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1742 | --x-incl | --x-inc | --x-in | --x-i) 1743 ac_prev=x_includes ;; 1744 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1745 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1746 x_includes=$ac_optarg ;; 1747 1748 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1749 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1750 ac_prev=x_libraries ;; 1751 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1752 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1753 x_libraries=$ac_optarg ;; 1754 1755 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1756 Try \`$0 --help' for more information" 1757 ;; 1758 1759 *=*) 1760 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1761 # Reject names that are not valid shell variable names. 1762 case $ac_envvar in #( 1763 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1764 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1765 esac 1766 eval $ac_envvar=\$ac_optarg 1767 export $ac_envvar ;; 1768 1769 *) 1770 # FIXME: should be removed in autoconf 3.0. 1771 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1772 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1773 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1774 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1775 ;; 1776 1777 esac 1778 done 1779 1780 if test -n "$ac_prev"; then 1781 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1782 as_fn_error $? "missing argument to $ac_option" 1783 fi 1784 1785 if test -n "$ac_unrecognized_opts"; then 1786 case $enable_option_checking in 1787 no) ;; 1788 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1789 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1790 esac 1791 fi 1792 1793 # Check all directory arguments for consistency. 1794 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1795 datadir sysconfdir sharedstatedir localstatedir includedir \ 1796 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1797 libdir localedir mandir runstatedir 1798 do 1799 eval ac_val=\$$ac_var 1800 # Remove trailing slashes. 1801 case $ac_val in 1802 */ ) 1803 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1804 eval $ac_var=\$ac_val;; 1805 esac 1806 # Be sure to have absolute directory names. 1807 case $ac_val in 1808 [\\/$]* | ?:[\\/]* ) continue;; 1809 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1810 esac 1811 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1812 done 1813 1814 # There might be people who depend on the old broken behavior: `$host' 1815 # used to hold the argument of --host etc. 1816 # FIXME: To remove some day. 1817 build=$build_alias 1818 host=$host_alias 1819 target=$target_alias 1820 1821 # FIXME: To remove some day. 1822 if test "x$host_alias" != x; then 1823 if test "x$build_alias" = x; then 1824 cross_compiling=maybe 1825 elif test "x$build_alias" != "x$host_alias"; then 1826 cross_compiling=yes 1827 fi 1828 fi 1829 1830 ac_tool_prefix= 1831 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1832 1833 test "$silent" = yes && exec 6>/dev/null 1834 1835 1836 ac_pwd=`pwd` && test -n "$ac_pwd" && 1837 ac_ls_di=`ls -di .` && 1838 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1839 as_fn_error $? "working directory cannot be determined" 1840 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1841 as_fn_error $? "pwd does not report name of working directory" 1842 1843 1844 # Find the source files, if location was not specified. 1845 if test -z "$srcdir"; then 1846 ac_srcdir_defaulted=yes 1847 # Try the directory containing this script, then the parent directory. 1848 ac_confdir=`$as_dirname -- "$as_myself" || 1849 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1850 X"$as_myself" : 'X\(//\)[^/]' \| \ 1851 X"$as_myself" : 'X\(//\)$' \| \ 1852 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1853 $as_echo X"$as_myself" | 1854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1855 s//\1/ 1856 q 1857 } 1858 /^X\(\/\/\)[^/].*/{ 1859 s//\1/ 1860 q 1861 } 1862 /^X\(\/\/\)$/{ 1863 s//\1/ 1864 q 1865 } 1866 /^X\(\/\).*/{ 1867 s//\1/ 1868 q 1869 } 1870 s/.*/./; q'` 1871 srcdir=$ac_confdir 1872 if test ! -r "$srcdir/$ac_unique_file"; then 1873 srcdir=.. 1874 fi 1875 else 1876 ac_srcdir_defaulted=no 1877 fi 1878 if test ! -r "$srcdir/$ac_unique_file"; then 1879 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1880 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1881 fi 1882 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1883 ac_abs_confdir=`( 1884 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1885 pwd)` 1886 # When building in place, set srcdir=. 1887 if test "$ac_abs_confdir" = "$ac_pwd"; then 1888 srcdir=. 1889 fi 1890 # Remove unnecessary trailing slashes from srcdir. 1891 # Double slashes in file names in object file debugging info 1892 # mess up M-x gdb in Emacs. 1893 case $srcdir in 1894 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1895 esac 1896 for ac_var in $ac_precious_vars; do 1897 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1898 eval ac_env_${ac_var}_value=\$${ac_var} 1899 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1900 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1901 done 1902 1903 # 1904 # Report the --help message. 1905 # 1906 if test "$ac_init_help" = "long"; then 1907 # Omit some internal or obsolete options to make the list less imposing. 1908 # This message is too long to be a string in the A/UX 3.1 sh. 1909 cat <<_ACEOF 1910 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1911 1912 Usage: $0 [OPTION]... [VAR=VALUE]... 1913 1914 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1915 VAR=VALUE. See below for descriptions of some of the useful variables. 1916 1917 Defaults for the options are specified in brackets. 1918 1919 Configuration: 1920 -h, --help display this help and exit 1921 --help=short display options specific to this package 1922 --help=recursive display the short help of all the included packages 1923 -V, --version display version information and exit 1924 -q, --quiet, --silent do not print \`checking ...' messages 1925 --cache-file=FILE cache test results in FILE [disabled] 1926 -C, --config-cache alias for \`--cache-file=config.cache' 1927 -n, --no-create do not create output files 1928 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1929 1930 Installation directories: 1931 --prefix=PREFIX install architecture-independent files in PREFIX 1932 [$ac_default_prefix] 1933 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1934 [PREFIX] 1935 1936 By default, \`make install' will install all the files in 1937 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1938 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1939 for instance \`--prefix=\$HOME'. 1940 1941 For better control, use the options below. 1942 1943 Fine tuning of the installation directories: 1944 --bindir=DIR user executables [EPREFIX/bin] 1945 --sbindir=DIR system admin executables [EPREFIX/sbin] 1946 --libexecdir=DIR program executables [EPREFIX/libexec] 1947 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1948 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1949 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1950 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1951 --libdir=DIR object code libraries [EPREFIX/lib] 1952 --includedir=DIR C header files [PREFIX/include] 1953 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1954 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1955 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1956 --infodir=DIR info documentation [DATAROOTDIR/info] 1957 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1958 --mandir=DIR man documentation [DATAROOTDIR/man] 1959 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1960 --htmldir=DIR html documentation [DOCDIR] 1961 --dvidir=DIR dvi documentation [DOCDIR] 1962 --pdfdir=DIR pdf documentation [DOCDIR] 1963 --psdir=DIR ps documentation [DOCDIR] 1964 _ACEOF 1965 1966 cat <<\_ACEOF 1967 1968 X features: 1969 --x-includes=DIR X include files are in DIR 1970 --x-libraries=DIR X library files are in DIR 1971 1972 System types: 1973 --build=BUILD configure for building on BUILD [guessed] 1974 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1975 --target=TARGET configure for building compilers for TARGET [HOST] 1976 _ACEOF 1977 fi 1978 1979 if test -n "$ac_init_help"; then 1980 case $ac_init_help in 1981 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1982 esac 1983 cat <<\_ACEOF 1984 1985 Optional Features: 1986 --disable-option-checking ignore unrecognized --enable/--with options 1987 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1988 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1989 --enable-openjdk-only suppress building custom source even if present 1990 [disabled] 1991 --enable-debug set the debug level to fastdebug (shorthand for 1992 --with-debug-level=fastdebug) [disabled] 1993 --enable-headless-only only build headless (no GUI) support [disabled] 1994 --enable-full-docs build complete documentation [enabled if all tools 1995 found] 1996 --disable-unlimited-crypto 1997 Disable unlimited crypto policy [enabled] 1998 --disable-keep-packaged-modules 1999 Do not keep packaged modules in jdk image [enable] 2000 --enable-static-build enable static library build [disabled] 2001 --disable-warnings-as-errors 2002 do not consider native warnings to be an error 2003 [enabled] 2004 --enable-debug-symbols Deprecated. Option is kept for backwards 2005 compatibility and is ignored 2006 --enable-zip-debug-info Deprecated. Option is kept for backwards 2007 compatibility and is ignored 2008 --enable-native-coverage 2009 enable native compilation with code coverage 2010 data[disabled] 2011 --enable-dtrace[=yes/no/auto] 2012 enable dtrace. Default is auto, where dtrace is 2013 enabled if all dependencies are present. 2014 --enable-aot[=yes/no/auto] 2015 enable ahead of time compilation feature. Default is 2016 auto, where aot is enabled if all dependencies are 2017 present. 2018 --enable-cds[=yes/no] enable class data sharing feature in non-minimal VM. 2019 Default is yes. 2020 --disable-hotspot-gtest Disables building of the Hotspot unit tests 2021 --disable-freetype-bundling 2022 disable bundling of the freetype library with the 2023 build result [enabled on Windows or when using 2024 --with-freetype, disabled otherwise] 2025 --enable-libffi-bundling 2026 enable bundling of libffi.so to make the built JDK 2027 runnable on more systems 2028 --enable-jtreg-failure-handler 2029 forces build of the jtreg failure handler to be 2030 enabled, missing dependencies become fatal errors. 2031 Default is auto, where the failure handler is built 2032 if all dependencies are present and otherwise just 2033 disabled. 2034 --disable-generate-classlist 2035 forces enabling or disabling of the generation of a 2036 CDS classlist at build time. Default is to generate 2037 it when either the server or client JVMs are built 2038 and enable-cds is true. 2039 --enable-sjavac use sjavac to do fast incremental compiles 2040 [disabled] 2041 --disable-javac-server disable javac server [enabled] 2042 --enable-icecc enable distribted compilation of native code using 2043 icecc/icecream [disabled] 2044 --disable-precompiled-headers 2045 disable using precompiled headers when compiling C++ 2046 [enabled] 2047 --enable-ccache enable using ccache to speed up recompilations 2048 [disabled] 2049 2050 Optional Packages: 2051 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2052 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2053 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 2054 support it), e.g. --with-target-bits=32 [guessed] 2055 --with-custom-make-dir Deprecated. Option is kept for backwards 2056 compatibility and is ignored 2057 --with-jdk-variant JDK variant to build (normal) [normal] 2058 --with-debug-level set the debug level (release, fastdebug, slowdebug, 2059 optimized) [release] 2060 --with-jvm-variants JVM variants (separated by commas) to build 2061 (server,client,minimal,core,zero,zeroshark,custom) 2062 [server] 2063 --with-cpu-port specify sources to use for Hotspot 64-bit ARM port 2064 (arm64,aarch64) [aarch64] 2065 --with-devkit use this devkit for compilers, tools and resources 2066 --with-sys-root alias for --with-sysroot for backwards compatability 2067 --with-sysroot use this directory as sysroot 2068 --with-tools-dir alias for --with-toolchain-path for backwards 2069 compatibility 2070 --with-toolchain-path prepend these directories when searching for 2071 toolchain binaries (compilers etc) 2072 --with-extra-path prepend these directories to the default path 2073 --with-sdk-name use the platform SDK of the given name. [macosx] 2074 --with-conf-name use this as the name of the configuration [generated 2075 from important configuration options] 2076 --with-output-sync set make output sync type if supported by make. 2077 [recurse] 2078 --with-default-make-target 2079 set the default make target [exploded-image] 2080 --with-cacerts-file specify alternative cacerts file 2081 --with-copyright-year Set copyright year value for build [current year] 2082 --with-milestone Deprecated. Option is kept for backwards 2083 compatibility and is ignored 2084 --with-update-version Deprecated. Option is kept for backwards 2085 compatibility and is ignored 2086 --with-user-release-suffix 2087 Deprecated. Option is kept for backwards 2088 compatibility and is ignored 2089 --with-build-number Deprecated. Option is kept for backwards 2090 compatibility and is ignored 2091 --with-version-string Set version string [calculated] 2092 --with-version-pre Set the base part of the version 'PRE' field 2093 (pre-release identifier) ['internal'] 2094 --with-version-opt Set version 'OPT' field (build metadata) 2095 [<timestamp>.<user>.<dirname>] 2096 --with-version-build Set version 'BUILD' field (build number) [not 2097 specified] 2098 --with-version-major Set version 'MAJOR' field (first number) [current 2099 source value] 2100 --with-version-minor Set version 'MINOR' field (second number) [current 2101 source value] 2102 --with-version-security Set version 'SECURITY' field (third number) [current 2103 source value] 2104 --with-version-patch Set version 'PATCH' field (fourth number) [not 2105 specified] 2106 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 2107 --with-build-jdk path to JDK of same version as is being built[the 2108 newly built JDK] 2109 --with-add-source-root Deprecated. Option is kept for backwards 2110 compatibility and is ignored 2111 --with-override-source-root 2112 Deprecated. Option is kept for backwards 2113 compatibility and is ignored 2114 --with-adds-and-overrides 2115 Deprecated. Option is kept for backwards 2116 compatibility and is ignored 2117 --with-override-langtools 2118 Deprecated. Option is kept for backwards 2119 compatibility and is ignored 2120 --with-override-corba Deprecated. Option is kept for backwards 2121 compatibility and is ignored 2122 --with-override-jaxp Deprecated. Option is kept for backwards 2123 compatibility and is ignored 2124 --with-override-jaxws Deprecated. Option is kept for backwards 2125 compatibility and is ignored 2126 --with-override-hotspot Deprecated. Option is kept for backwards 2127 compatibility and is ignored 2128 --with-override-nashorn Deprecated. Option is kept for backwards 2129 compatibility and is ignored 2130 --with-override-jdk Deprecated. Option is kept for backwards 2131 compatibility and is ignored 2132 --with-import_hotspot Deprecated. Option is kept for backwards 2133 compatibility and is ignored 2134 --with-import-modules import a set of prebuilt modules either as a zip 2135 file or an exploded directory 2136 --with-toolchain-type the toolchain type (or family) to use, use '--help' 2137 to show possible values [platform dependent] 2138 --with-extra-cflags extra flags to be used when compiling jdk c-files 2139 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 2140 --with-extra-ldflags extra flags to be used when linking jdk 2141 --with-toolchain-version 2142 the version of the toolchain to look for, use 2143 '--help' to show possible values [platform 2144 dependent] 2145 --with-build-devkit Devkit to use for the build platform toolchain 2146 --with-jtreg Regression Test Harness [probed] 2147 --with-jib Jib dependency management tool [not used] 2148 --with-abi-profile specify ABI profile for ARM builds 2149 (arm-vfp-sflt,arm-vfp-hflt,arm-sflt, 2150 armv5-vfp-sflt,armv6-vfp-hflt,arm64,aarch64) 2151 [toolchain dependent] 2152 --with-macosx-version-max 2153 error on use of newer functionality. [macosx] 2154 --with-native-debug-symbols 2155 set the native debug symbol configuration (none, 2156 internal, external, zipped) [varying] 2157 --with-stdc++lib=<static>,<dynamic>,<default> 2158 force linking of the C++ runtime on Linux to either 2159 static or dynamic, default is static with dynamic as 2160 fallback 2161 --with-msvcr-dll path to microsoft C runtime dll (msvcr*.dll) 2162 (Windows only) [probed] 2163 --with-msvcp-dll path to microsoft C++ runtime dll (msvcp*.dll) 2164 (Windows only) [probed] 2165 --with-x use the X Window System 2166 --with-cups specify prefix directory for the cups package 2167 (expecting the headers under PATH/include) 2168 --with-cups-include specify directory for the cups include files 2169 --with-freetype specify prefix directory for the freetype package 2170 (expecting the libraries under PATH/lib and the 2171 headers under PATH/include) 2172 --with-freetype-include specify directory for the freetype include files 2173 --with-freetype-lib specify directory for the freetype library 2174 --with-freetype-src specify directory with freetype sources to 2175 automatically build the library (experimental, 2176 Windows-only) 2177 --with-freetype-license if bundling freetype, also bundle this license file 2178 --with-alsa specify prefix directory for the alsa package 2179 (expecting the libraries under PATH/lib and the 2180 headers under PATH/include) 2181 --with-alsa-include specify directory for the alsa include files 2182 --with-alsa-lib specify directory for the alsa library 2183 --with-libffi specify prefix directory for the libffi package 2184 (expecting the libraries under PATH/lib and the 2185 headers under PATH/include) 2186 --with-libffi-include specify directory for the libffi include files 2187 --with-libffi-lib specify directory for the libffi library 2188 --with-libjpeg use libjpeg from build system or OpenJDK source 2189 (system, bundled) [bundled] 2190 --with-giflib use giflib from build system or OpenJDK source 2191 (system, bundled) [bundled] 2192 --with-libpng use libpng from build system or OpenJDK source 2193 (system, bundled) [bundled] 2194 --with-zlib use zlib from build system or OpenJDK source 2195 (system, bundled) [bundled] 2196 --with-lcms use lcms2 from build system or OpenJDK source 2197 (system, bundled) [bundled] 2198 --with-dxsdk Deprecated. Option is kept for backwards 2199 compatibility and is ignored 2200 --with-dxsdk-lib Deprecated. Option is kept for backwards 2201 compatibility and is ignored 2202 --with-dxsdk-include Deprecated. Option is kept for backwards 2203 compatibility and is ignored 2204 --with-jvm-features additional JVM features to enable (separated by 2205 comma), use '--help' to show possible values [none] 2206 --with-jvm-interpreter Deprecated. Option is kept for backwards 2207 compatibility and is ignored 2208 --with-num-cores number of cores in the build system, e.g. 2209 --with-num-cores=8 [probed] 2210 --with-memory-size memory (in MB) available in the build system, e.g. 2211 --with-memory-size=1024 [probed] 2212 --with-jobs number of parallel jobs to let make run [calculated 2213 based on cores and memory] 2214 --with-test-jobs number of parallel tests jobs to run [based on build 2215 jobs] 2216 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 2217 invocations of boot JDK, overriding the default 2218 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 2219 -enableassertions" 2220 --with-sjavac-server-java 2221 use this java binary for running the sjavac 2222 background server [Boot JDK java] 2223 --with-ccache-dir where to store ccache files [~/.ccache] 2224 2225 Some influential environment variables: 2226 BASENAME Override default value for BASENAME 2227 BASH Override default value for BASH 2228 CAT Override default value for CAT 2229 CHMOD Override default value for CHMOD 2230 CMP Override default value for CMP 2231 COMM Override default value for COMM 2232 CP Override default value for CP 2233 CUT Override default value for CUT 2234 DATE Override default value for DATE 2235 DIFF Override default value for DIFF 2236 DIRNAME Override default value for DIRNAME 2237 ECHO Override default value for ECHO 2238 EXPR Override default value for EXPR 2239 FILE Override default value for FILE 2240 FIND Override default value for FIND 2241 HEAD Override default value for HEAD 2242 GUNZIP Override default value for GUNZIP 2243 GZIP Override default value for GZIP 2244 LN Override default value for LN 2245 LS Override default value for LS 2246 MKDIR Override default value for MKDIR 2247 MKTEMP Override default value for MKTEMP 2248 MV Override default value for MV 2249 NAWK Override default value for NAWK 2250 PRINTF Override default value for PRINTF 2251 RM Override default value for RM 2252 RMDIR Override default value for RMDIR 2253 SH Override default value for SH 2254 SORT Override default value for SORT 2255 TAIL Override default value for TAIL 2256 TAR Override default value for TAR 2257 TEE Override default value for TEE 2258 TOUCH Override default value for TOUCH 2259 TR Override default value for TR 2260 UNAME Override default value for UNAME 2261 UNIQ Override default value for UNIQ 2262 WC Override default value for WC 2263 WHICH Override default value for WHICH 2264 XARGS Override default value for XARGS 2265 AWK Override default value for AWK 2266 GREP Override default value for GREP 2267 EGREP Override default value for EGREP 2268 FGREP Override default value for FGREP 2269 SED Override default value for SED 2270 CYGPATH Override default value for CYGPATH 2271 READLINK Override default value for READLINK 2272 DF Override default value for DF 2273 CPIO Override default value for CPIO 2274 NICE Override default value for NICE 2275 PANDOC Override default value for PANDOC 2276 MAKE Override default value for MAKE 2277 UNZIP Override default value for UNZIP 2278 ZIPEXE Override default value for ZIPEXE 2279 LDD Override default value for LDD 2280 OTOOL Override default value for OTOOL 2281 READELF Override default value for READELF 2282 DOT Override default value for DOT 2283 HG Override default value for HG 2284 STAT Override default value for STAT 2285 TIME Override default value for TIME 2286 FLOCK Override default value for FLOCK 2287 DTRACE Override default value for DTRACE 2288 PATCH Override default value for PATCH 2289 DSYMUTIL Override default value for DSYMUTIL 2290 XATTR Override default value for XATTR 2291 CODESIGN Override default value for CODESIGN 2292 SETFILE Override default value for SETFILE 2293 PKG_CONFIG path to pkg-config utility 2294 JAVA Override default value for JAVA 2295 JAVAC Override default value for JAVAC 2296 JAVAH Override default value for JAVAH 2297 JAR Override default value for JAR 2298 JARSIGNER Override default value for JARSIGNER 2299 CC C compiler command 2300 CFLAGS C compiler flags 2301 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2302 nonstandard directory <lib dir> 2303 LIBS libraries to pass to the linker, e.g. -l<library> 2304 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2305 you have headers in a nonstandard directory <include dir> 2306 CXX C++ compiler command 2307 CXXFLAGS C++ compiler flags 2308 CPP C preprocessor 2309 CXXCPP C++ preprocessor 2310 AS Override default value for AS 2311 AR Override default value for AR 2312 LIPO Override default value for LIPO 2313 STRIP Override default value for STRIP 2314 NM Override default value for NM 2315 GNM Override default value for GNM 2316 OBJCOPY Override default value for OBJCOPY 2317 OBJDUMP Override default value for OBJDUMP 2318 BUILD_CC Override default value for BUILD_CC 2319 BUILD_CXX Override default value for BUILD_CXX 2320 BUILD_NM Override default value for BUILD_NM 2321 BUILD_AR Override default value for BUILD_AR 2322 BUILD_OBJCOPY 2323 Override default value for BUILD_OBJCOPY 2324 BUILD_STRIP Override default value for BUILD_STRIP 2325 JTREGEXE Override default value for JTREGEXE 2326 XMKMF Path to xmkmf, Makefile generator for X Window System 2327 FREETYPE_CFLAGS 2328 C compiler flags for FREETYPE, overriding pkg-config 2329 FREETYPE_LIBS 2330 linker flags for FREETYPE, overriding pkg-config 2331 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2332 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2333 LIBFFI_CFLAGS 2334 C compiler flags for LIBFFI, overriding pkg-config 2335 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2336 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2337 PNG_LIBS linker flags for PNG, overriding pkg-config 2338 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 2339 LCMS_LIBS linker flags for LCMS, overriding pkg-config 2340 ICECC_CMD Override default value for ICECC_CMD 2341 ICECC_CREATE_ENV 2342 Override default value for ICECC_CREATE_ENV 2343 ICECC_WRAPPER 2344 Override default value for ICECC_WRAPPER 2345 CCACHE Override default value for CCACHE 2346 2347 Use these variables to override the choices made by `configure' or to help 2348 it to find libraries and programs with nonstandard names/locations. 2349 2350 Report bugs to <build-dev@openjdk.java.net>. 2351 OpenJDK home page: <http://openjdk.java.net>. 2352 _ACEOF 2353 ac_status=$? 2354 fi 2355 2356 if test "$ac_init_help" = "recursive"; then 2357 # If there are subdirs, report their specific --help. 2358 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2359 test -d "$ac_dir" || 2360 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2361 continue 2362 ac_builddir=. 2363 2364 case "$ac_dir" in 2365 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2366 *) 2367 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2368 # A ".." for each directory in $ac_dir_suffix. 2369 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2370 case $ac_top_builddir_sub in 2371 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2372 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2373 esac ;; 2374 esac 2375 ac_abs_top_builddir=$ac_pwd 2376 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2377 # for backward compatibility: 2378 ac_top_builddir=$ac_top_build_prefix 2379 2380 case $srcdir in 2381 .) # We are building in place. 2382 ac_srcdir=. 2383 ac_top_srcdir=$ac_top_builddir_sub 2384 ac_abs_top_srcdir=$ac_pwd ;; 2385 [\\/]* | ?:[\\/]* ) # Absolute name. 2386 ac_srcdir=$srcdir$ac_dir_suffix; 2387 ac_top_srcdir=$srcdir 2388 ac_abs_top_srcdir=$srcdir ;; 2389 *) # Relative name. 2390 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2391 ac_top_srcdir=$ac_top_build_prefix$srcdir 2392 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2393 esac 2394 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2395 2396 cd "$ac_dir" || { ac_status=$?; continue; } 2397 # Check for guested configure. 2398 if test -f "$ac_srcdir/configure.gnu"; then 2399 echo && 2400 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2401 elif test -f "$ac_srcdir/configure"; then 2402 echo && 2403 $SHELL "$ac_srcdir/configure" --help=recursive 2404 else 2405 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2406 fi || ac_status=$? 2407 cd "$ac_pwd" || { ac_status=$?; break; } 2408 done 2409 fi 2410 2411 test -n "$ac_init_help" && exit $ac_status 2412 if $ac_init_version; then 2413 cat <<\_ACEOF 2414 OpenJDK configure jdk9 2415 generated by GNU Autoconf 2.69 2416 2417 Copyright (C) 2012 Free Software Foundation, Inc. 2418 This configure script is free software; the Free Software Foundation 2419 gives unlimited permission to copy, distribute and modify it. 2420 _ACEOF 2421 exit 2422 fi 2423 2424 ## ------------------------ ## 2425 ## Autoconf initialization. ## 2426 ## ------------------------ ## 2427 2428 # ac_fn_c_try_compile LINENO 2429 # -------------------------- 2430 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2431 ac_fn_c_try_compile () 2432 { 2433 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2434 rm -f conftest.$ac_objext 2435 if { { ac_try="$ac_compile" 2436 case "(($ac_try" in 2437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2438 *) ac_try_echo=$ac_try;; 2439 esac 2440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2441 $as_echo "$ac_try_echo"; } >&5 2442 (eval "$ac_compile") 2>conftest.err 2443 ac_status=$? 2444 if test -s conftest.err; then 2445 grep -v '^ *+' conftest.err >conftest.er1 2446 cat conftest.er1 >&5 2447 mv -f conftest.er1 conftest.err 2448 fi 2449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2450 test $ac_status = 0; } && { 2451 test -z "$ac_c_werror_flag" || 2452 test ! -s conftest.err 2453 } && test -s conftest.$ac_objext; then : 2454 ac_retval=0 2455 else 2456 $as_echo "$as_me: failed program was:" >&5 2457 sed 's/^/| /' conftest.$ac_ext >&5 2458 2459 ac_retval=1 2460 fi 2461 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2462 as_fn_set_status $ac_retval 2463 2464 } # ac_fn_c_try_compile 2465 2466 # ac_fn_cxx_try_compile LINENO 2467 # ---------------------------- 2468 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2469 ac_fn_cxx_try_compile () 2470 { 2471 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2472 rm -f conftest.$ac_objext 2473 if { { ac_try="$ac_compile" 2474 case "(($ac_try" in 2475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2476 *) ac_try_echo=$ac_try;; 2477 esac 2478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2479 $as_echo "$ac_try_echo"; } >&5 2480 (eval "$ac_compile") 2>conftest.err 2481 ac_status=$? 2482 if test -s conftest.err; then 2483 grep -v '^ *+' conftest.err >conftest.er1 2484 cat conftest.er1 >&5 2485 mv -f conftest.er1 conftest.err 2486 fi 2487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2488 test $ac_status = 0; } && { 2489 test -z "$ac_cxx_werror_flag" || 2490 test ! -s conftest.err 2491 } && test -s conftest.$ac_objext; then : 2492 ac_retval=0 2493 else 2494 $as_echo "$as_me: failed program was:" >&5 2495 sed 's/^/| /' conftest.$ac_ext >&5 2496 2497 ac_retval=1 2498 fi 2499 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2500 as_fn_set_status $ac_retval 2501 2502 } # ac_fn_cxx_try_compile 2503 2504 # ac_fn_c_try_cpp LINENO 2505 # ---------------------- 2506 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2507 ac_fn_c_try_cpp () 2508 { 2509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2510 if { { ac_try="$ac_cpp conftest.$ac_ext" 2511 case "(($ac_try" in 2512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2513 *) ac_try_echo=$ac_try;; 2514 esac 2515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2516 $as_echo "$ac_try_echo"; } >&5 2517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2518 ac_status=$? 2519 if test -s conftest.err; then 2520 grep -v '^ *+' conftest.err >conftest.er1 2521 cat conftest.er1 >&5 2522 mv -f conftest.er1 conftest.err 2523 fi 2524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2525 test $ac_status = 0; } > conftest.i && { 2526 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2527 test ! -s conftest.err 2528 }; then : 2529 ac_retval=0 2530 else 2531 $as_echo "$as_me: failed program was:" >&5 2532 sed 's/^/| /' conftest.$ac_ext >&5 2533 2534 ac_retval=1 2535 fi 2536 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2537 as_fn_set_status $ac_retval 2538 2539 } # ac_fn_c_try_cpp 2540 2541 # ac_fn_cxx_try_cpp LINENO 2542 # ------------------------ 2543 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2544 ac_fn_cxx_try_cpp () 2545 { 2546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2547 if { { ac_try="$ac_cpp conftest.$ac_ext" 2548 case "(($ac_try" in 2549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2550 *) ac_try_echo=$ac_try;; 2551 esac 2552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2553 $as_echo "$ac_try_echo"; } >&5 2554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2555 ac_status=$? 2556 if test -s conftest.err; then 2557 grep -v '^ *+' conftest.err >conftest.er1 2558 cat conftest.er1 >&5 2559 mv -f conftest.er1 conftest.err 2560 fi 2561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2562 test $ac_status = 0; } > conftest.i && { 2563 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2564 test ! -s conftest.err 2565 }; then : 2566 ac_retval=0 2567 else 2568 $as_echo "$as_me: failed program was:" >&5 2569 sed 's/^/| /' conftest.$ac_ext >&5 2570 2571 ac_retval=1 2572 fi 2573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2574 as_fn_set_status $ac_retval 2575 2576 } # ac_fn_cxx_try_cpp 2577 2578 # ac_fn_c_try_link LINENO 2579 # ----------------------- 2580 # Try to link conftest.$ac_ext, and return whether this succeeded. 2581 ac_fn_c_try_link () 2582 { 2583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2584 rm -f conftest.$ac_objext conftest$ac_exeext 2585 if { { ac_try="$ac_link" 2586 case "(($ac_try" in 2587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2588 *) ac_try_echo=$ac_try;; 2589 esac 2590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2591 $as_echo "$ac_try_echo"; } >&5 2592 (eval "$ac_link") 2>conftest.err 2593 ac_status=$? 2594 if test -s conftest.err; then 2595 grep -v '^ *+' conftest.err >conftest.er1 2596 cat conftest.er1 >&5 2597 mv -f conftest.er1 conftest.err 2598 fi 2599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2600 test $ac_status = 0; } && { 2601 test -z "$ac_c_werror_flag" || 2602 test ! -s conftest.err 2603 } && test -s conftest$ac_exeext && { 2604 test "$cross_compiling" = yes || 2605 test -x conftest$ac_exeext 2606 }; then : 2607 ac_retval=0 2608 else 2609 $as_echo "$as_me: failed program was:" >&5 2610 sed 's/^/| /' conftest.$ac_ext >&5 2611 2612 ac_retval=1 2613 fi 2614 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2615 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2616 # interfere with the next link command; also delete a directory that is 2617 # left behind by Apple's compiler. We do this before executing the actions. 2618 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2620 as_fn_set_status $ac_retval 2621 2622 } # ac_fn_c_try_link 2623 2624 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2625 # --------------------------------------------------------- 2626 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2627 # the include files in INCLUDES and setting the cache variable VAR 2628 # accordingly. 2629 ac_fn_cxx_check_header_mongrel () 2630 { 2631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2632 if eval \${$3+:} false; then : 2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2634 $as_echo_n "checking for $2... " >&6; } 2635 if eval \${$3+:} false; then : 2636 $as_echo_n "(cached) " >&6 2637 fi 2638 eval ac_res=\$$3 2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2640 $as_echo "$ac_res" >&6; } 2641 else 2642 # Is the header compilable? 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2644 $as_echo_n "checking $2 usability... " >&6; } 2645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2646 /* end confdefs.h. */ 2647 $4 2648 #include <$2> 2649 _ACEOF 2650 if ac_fn_cxx_try_compile "$LINENO"; then : 2651 ac_header_compiler=yes 2652 else 2653 ac_header_compiler=no 2654 fi 2655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2657 $as_echo "$ac_header_compiler" >&6; } 2658 2659 # Is the header present? 2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2661 $as_echo_n "checking $2 presence... " >&6; } 2662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2663 /* end confdefs.h. */ 2664 #include <$2> 2665 _ACEOF 2666 if ac_fn_cxx_try_cpp "$LINENO"; then : 2667 ac_header_preproc=yes 2668 else 2669 ac_header_preproc=no 2670 fi 2671 rm -f conftest.err conftest.i conftest.$ac_ext 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2673 $as_echo "$ac_header_preproc" >&6; } 2674 2675 # So? What about this header? 2676 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2677 yes:no: ) 2678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2679 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2681 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2682 ;; 2683 no:yes:* ) 2684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2685 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2687 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2689 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2691 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2693 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2694 ( $as_echo "## ----------------------------------------- ## 2695 ## Report this to build-dev@openjdk.java.net ## 2696 ## ----------------------------------------- ##" 2697 ) | sed "s/^/$as_me: WARNING: /" >&2 2698 ;; 2699 esac 2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2701 $as_echo_n "checking for $2... " >&6; } 2702 if eval \${$3+:} false; then : 2703 $as_echo_n "(cached) " >&6 2704 else 2705 eval "$3=\$ac_header_compiler" 2706 fi 2707 eval ac_res=\$$3 2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2709 $as_echo "$ac_res" >&6; } 2710 fi 2711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2712 2713 } # ac_fn_cxx_check_header_mongrel 2714 2715 # ac_fn_cxx_try_run LINENO 2716 # ------------------------ 2717 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2718 # that executables *can* be run. 2719 ac_fn_cxx_try_run () 2720 { 2721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2722 if { { ac_try="$ac_link" 2723 case "(($ac_try" in 2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2725 *) ac_try_echo=$ac_try;; 2726 esac 2727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2728 $as_echo "$ac_try_echo"; } >&5 2729 (eval "$ac_link") 2>&5 2730 ac_status=$? 2731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2732 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2733 { { case "(($ac_try" in 2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2735 *) ac_try_echo=$ac_try;; 2736 esac 2737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2738 $as_echo "$ac_try_echo"; } >&5 2739 (eval "$ac_try") 2>&5 2740 ac_status=$? 2741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2742 test $ac_status = 0; }; }; then : 2743 ac_retval=0 2744 else 2745 $as_echo "$as_me: program exited with status $ac_status" >&5 2746 $as_echo "$as_me: failed program was:" >&5 2747 sed 's/^/| /' conftest.$ac_ext >&5 2748 2749 ac_retval=$ac_status 2750 fi 2751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2753 as_fn_set_status $ac_retval 2754 2755 } # ac_fn_cxx_try_run 2756 2757 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2758 # --------------------------------------------------------- 2759 # Tests whether HEADER exists and can be compiled using the include files in 2760 # INCLUDES, setting the cache variable VAR accordingly. 2761 ac_fn_cxx_check_header_compile () 2762 { 2763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2765 $as_echo_n "checking for $2... " >&6; } 2766 if eval \${$3+:} false; then : 2767 $as_echo_n "(cached) " >&6 2768 else 2769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2770 /* end confdefs.h. */ 2771 $4 2772 #include <$2> 2773 _ACEOF 2774 if ac_fn_cxx_try_compile "$LINENO"; then : 2775 eval "$3=yes" 2776 else 2777 eval "$3=no" 2778 fi 2779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2780 fi 2781 eval ac_res=\$$3 2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2783 $as_echo "$ac_res" >&6; } 2784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2785 2786 } # ac_fn_cxx_check_header_compile 2787 2788 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2789 # ---------------------------------------------- 2790 # Tries to find the compile-time value of EXPR in a program that includes 2791 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2792 # computed 2793 ac_fn_cxx_compute_int () 2794 { 2795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2796 if test "$cross_compiling" = yes; then 2797 # Depending upon the size, compute the lo and hi bounds. 2798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2799 /* end confdefs.h. */ 2800 $4 2801 int 2802 main () 2803 { 2804 static int test_array [1 - 2 * !(($2) >= 0)]; 2805 test_array [0] = 0; 2806 return test_array [0]; 2807 2808 ; 2809 return 0; 2810 } 2811 _ACEOF 2812 if ac_fn_cxx_try_compile "$LINENO"; then : 2813 ac_lo=0 ac_mid=0 2814 while :; do 2815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2816 /* end confdefs.h. */ 2817 $4 2818 int 2819 main () 2820 { 2821 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2822 test_array [0] = 0; 2823 return test_array [0]; 2824 2825 ; 2826 return 0; 2827 } 2828 _ACEOF 2829 if ac_fn_cxx_try_compile "$LINENO"; then : 2830 ac_hi=$ac_mid; break 2831 else 2832 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2833 if test $ac_lo -le $ac_mid; then 2834 ac_lo= ac_hi= 2835 break 2836 fi 2837 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2838 fi 2839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2840 done 2841 else 2842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2843 /* end confdefs.h. */ 2844 $4 2845 int 2846 main () 2847 { 2848 static int test_array [1 - 2 * !(($2) < 0)]; 2849 test_array [0] = 0; 2850 return test_array [0]; 2851 2852 ; 2853 return 0; 2854 } 2855 _ACEOF 2856 if ac_fn_cxx_try_compile "$LINENO"; then : 2857 ac_hi=-1 ac_mid=-1 2858 while :; do 2859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2860 /* end confdefs.h. */ 2861 $4 2862 int 2863 main () 2864 { 2865 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2866 test_array [0] = 0; 2867 return test_array [0]; 2868 2869 ; 2870 return 0; 2871 } 2872 _ACEOF 2873 if ac_fn_cxx_try_compile "$LINENO"; then : 2874 ac_lo=$ac_mid; break 2875 else 2876 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2877 if test $ac_mid -le $ac_hi; then 2878 ac_lo= ac_hi= 2879 break 2880 fi 2881 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2882 fi 2883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2884 done 2885 else 2886 ac_lo= ac_hi= 2887 fi 2888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2889 fi 2890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2891 # Binary search between lo and hi bounds. 2892 while test "x$ac_lo" != "x$ac_hi"; do 2893 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2895 /* end confdefs.h. */ 2896 $4 2897 int 2898 main () 2899 { 2900 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2901 test_array [0] = 0; 2902 return test_array [0]; 2903 2904 ; 2905 return 0; 2906 } 2907 _ACEOF 2908 if ac_fn_cxx_try_compile "$LINENO"; then : 2909 ac_hi=$ac_mid 2910 else 2911 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2912 fi 2913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2914 done 2915 case $ac_lo in #(( 2916 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2917 '') ac_retval=1 ;; 2918 esac 2919 else 2920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2921 /* end confdefs.h. */ 2922 $4 2923 static long int longval () { return $2; } 2924 static unsigned long int ulongval () { return $2; } 2925 #include <stdio.h> 2926 #include <stdlib.h> 2927 int 2928 main () 2929 { 2930 2931 FILE *f = fopen ("conftest.val", "w"); 2932 if (! f) 2933 return 1; 2934 if (($2) < 0) 2935 { 2936 long int i = longval (); 2937 if (i != ($2)) 2938 return 1; 2939 fprintf (f, "%ld", i); 2940 } 2941 else 2942 { 2943 unsigned long int i = ulongval (); 2944 if (i != ($2)) 2945 return 1; 2946 fprintf (f, "%lu", i); 2947 } 2948 /* Do not output a trailing newline, as this causes \r\n confusion 2949 on some platforms. */ 2950 return ferror (f) || fclose (f) != 0; 2951 2952 ; 2953 return 0; 2954 } 2955 _ACEOF 2956 if ac_fn_cxx_try_run "$LINENO"; then : 2957 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2958 else 2959 ac_retval=1 2960 fi 2961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2962 conftest.$ac_objext conftest.beam conftest.$ac_ext 2963 rm -f conftest.val 2964 2965 fi 2966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2967 as_fn_set_status $ac_retval 2968 2969 } # ac_fn_cxx_compute_int 2970 2971 # ac_fn_cxx_try_link LINENO 2972 # ------------------------- 2973 # Try to link conftest.$ac_ext, and return whether this succeeded. 2974 ac_fn_cxx_try_link () 2975 { 2976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2977 rm -f conftest.$ac_objext conftest$ac_exeext 2978 if { { ac_try="$ac_link" 2979 case "(($ac_try" in 2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2981 *) ac_try_echo=$ac_try;; 2982 esac 2983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2984 $as_echo "$ac_try_echo"; } >&5 2985 (eval "$ac_link") 2>conftest.err 2986 ac_status=$? 2987 if test -s conftest.err; then 2988 grep -v '^ *+' conftest.err >conftest.er1 2989 cat conftest.er1 >&5 2990 mv -f conftest.er1 conftest.err 2991 fi 2992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2993 test $ac_status = 0; } && { 2994 test -z "$ac_cxx_werror_flag" || 2995 test ! -s conftest.err 2996 } && test -s conftest$ac_exeext && { 2997 test "$cross_compiling" = yes || 2998 test -x conftest$ac_exeext 2999 }; then : 3000 ac_retval=0 3001 else 3002 $as_echo "$as_me: failed program was:" >&5 3003 sed 's/^/| /' conftest.$ac_ext >&5 3004 3005 ac_retval=1 3006 fi 3007 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 3008 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 3009 # interfere with the next link command; also delete a directory that is 3010 # left behind by Apple's compiler. We do this before executing the actions. 3011 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 3012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3013 as_fn_set_status $ac_retval 3014 3015 } # ac_fn_cxx_try_link 3016 3017 # ac_fn_cxx_check_func LINENO FUNC VAR 3018 # ------------------------------------ 3019 # Tests whether FUNC exists, setting the cache variable VAR accordingly 3020 ac_fn_cxx_check_func () 3021 { 3022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3024 $as_echo_n "checking for $2... " >&6; } 3025 if eval \${$3+:} false; then : 3026 $as_echo_n "(cached) " >&6 3027 else 3028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3029 /* end confdefs.h. */ 3030 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 3031 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3032 #define $2 innocuous_$2 3033 3034 /* System header to define __stub macros and hopefully few prototypes, 3035 which can conflict with char $2 (); below. 3036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3037 <limits.h> exists even on freestanding compilers. */ 3038 3039 #ifdef __STDC__ 3040 # include <limits.h> 3041 #else 3042 # include <assert.h> 3043 #endif 3044 3045 #undef $2 3046 3047 /* Override any GCC internal prototype to avoid an error. 3048 Use char because int might match the return type of a GCC 3049 builtin and then its argument prototype would still apply. */ 3050 #ifdef __cplusplus 3051 extern "C" 3052 #endif 3053 char $2 (); 3054 /* The GNU C library defines this for functions which it implements 3055 to always fail with ENOSYS. Some functions are actually named 3056 something starting with __ and the normal name is an alias. */ 3057 #if defined __stub_$2 || defined __stub___$2 3058 choke me 3059 #endif 3060 3061 int 3062 main () 3063 { 3064 return $2 (); 3065 ; 3066 return 0; 3067 } 3068 _ACEOF 3069 if ac_fn_cxx_try_link "$LINENO"; then : 3070 eval "$3=yes" 3071 else 3072 eval "$3=no" 3073 fi 3074 rm -f core conftest.err conftest.$ac_objext \ 3075 conftest$ac_exeext conftest.$ac_ext 3076 fi 3077 eval ac_res=\$$3 3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3079 $as_echo "$ac_res" >&6; } 3080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3081 3082 } # ac_fn_cxx_check_func 3083 3084 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 3085 # ------------------------------------------------------- 3086 # Tests whether HEADER exists and can be compiled using the include files in 3087 # INCLUDES, setting the cache variable VAR accordingly. 3088 ac_fn_c_check_header_compile () 3089 { 3090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3092 $as_echo_n "checking for $2... " >&6; } 3093 if eval \${$3+:} false; then : 3094 $as_echo_n "(cached) " >&6 3095 else 3096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3097 /* end confdefs.h. */ 3098 $4 3099 #include <$2> 3100 _ACEOF 3101 if ac_fn_c_try_compile "$LINENO"; then : 3102 eval "$3=yes" 3103 else 3104 eval "$3=no" 3105 fi 3106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3107 fi 3108 eval ac_res=\$$3 3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3110 $as_echo "$ac_res" >&6; } 3111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3112 3113 } # ac_fn_c_check_header_compile 3114 cat >config.log <<_ACEOF 3115 This file contains any messages produced by compilers while 3116 running configure, to aid debugging if configure makes a mistake. 3117 3118 It was created by OpenJDK $as_me jdk9, which was 3119 generated by GNU Autoconf 2.69. Invocation command line was 3120 3121 $ $0 $@ 3122 3123 _ACEOF 3124 exec 5>>config.log 3125 { 3126 cat <<_ASUNAME 3127 ## --------- ## 3128 ## Platform. ## 3129 ## --------- ## 3130 3131 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3132 uname -m = `(uname -m) 2>/dev/null || echo unknown` 3133 uname -r = `(uname -r) 2>/dev/null || echo unknown` 3134 uname -s = `(uname -s) 2>/dev/null || echo unknown` 3135 uname -v = `(uname -v) 2>/dev/null || echo unknown` 3136 3137 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3138 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3139 3140 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3141 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3142 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3143 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3144 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3145 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3146 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3147 3148 _ASUNAME 3149 3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3151 for as_dir in $PATH 3152 do 3153 IFS=$as_save_IFS 3154 test -z "$as_dir" && as_dir=. 3155 $as_echo "PATH: $as_dir" 3156 done 3157 IFS=$as_save_IFS 3158 3159 } >&5 3160 3161 cat >&5 <<_ACEOF 3162 3163 3164 ## ----------- ## 3165 ## Core tests. ## 3166 ## ----------- ## 3167 3168 _ACEOF 3169 3170 3171 # Keep a trace of the command line. 3172 # Strip out --no-create and --no-recursion so they do not pile up. 3173 # Strip out --silent because we don't want to record it for future runs. 3174 # Also quote any args containing shell meta-characters. 3175 # Make two passes to allow for proper duplicate-argument suppression. 3176 ac_configure_args= 3177 ac_configure_args0= 3178 ac_configure_args1= 3179 ac_must_keep_next=false 3180 for ac_pass in 1 2 3181 do 3182 for ac_arg 3183 do 3184 case $ac_arg in 3185 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3187 | -silent | --silent | --silen | --sile | --sil) 3188 continue ;; 3189 *\'*) 3190 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3191 esac 3192 case $ac_pass in 3193 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3194 2) 3195 as_fn_append ac_configure_args1 " '$ac_arg'" 3196 if test $ac_must_keep_next = true; then 3197 ac_must_keep_next=false # Got value, back to normal. 3198 else 3199 case $ac_arg in 3200 *=* | --config-cache | -C | -disable-* | --disable-* \ 3201 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3202 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3203 | -with-* | --with-* | -without-* | --without-* | --x) 3204 case "$ac_configure_args0 " in 3205 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3206 esac 3207 ;; 3208 -* ) ac_must_keep_next=true ;; 3209 esac 3210 fi 3211 as_fn_append ac_configure_args " '$ac_arg'" 3212 ;; 3213 esac 3214 done 3215 done 3216 { ac_configure_args0=; unset ac_configure_args0;} 3217 { ac_configure_args1=; unset ac_configure_args1;} 3218 3219 # When interrupted or exit'd, cleanup temporary files, and complete 3220 # config.log. We remove comments because anyway the quotes in there 3221 # would cause problems or look ugly. 3222 # WARNING: Use '\'' to represent an apostrophe within the trap. 3223 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3224 trap 'exit_status=$? 3225 # Save into config.log some information that might help in debugging. 3226 { 3227 echo 3228 3229 $as_echo "## ---------------- ## 3230 ## Cache variables. ## 3231 ## ---------------- ##" 3232 echo 3233 # The following way of writing the cache mishandles newlines in values, 3234 ( 3235 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3236 eval ac_val=\$$ac_var 3237 case $ac_val in #( 3238 *${as_nl}*) 3239 case $ac_var in #( 3240 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3241 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3242 esac 3243 case $ac_var in #( 3244 _ | IFS | as_nl) ;; #( 3245 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3246 *) { eval $ac_var=; unset $ac_var;} ;; 3247 esac ;; 3248 esac 3249 done 3250 (set) 2>&1 | 3251 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3252 *${as_nl}ac_space=\ *) 3253 sed -n \ 3254 "s/'\''/'\''\\\\'\'''\''/g; 3255 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3256 ;; #( 3257 *) 3258 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3259 ;; 3260 esac | 3261 sort 3262 ) 3263 echo 3264 3265 $as_echo "## ----------------- ## 3266 ## Output variables. ## 3267 ## ----------------- ##" 3268 echo 3269 for ac_var in $ac_subst_vars 3270 do 3271 eval ac_val=\$$ac_var 3272 case $ac_val in 3273 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3274 esac 3275 $as_echo "$ac_var='\''$ac_val'\''" 3276 done | sort 3277 echo 3278 3279 if test -n "$ac_subst_files"; then 3280 $as_echo "## ------------------- ## 3281 ## File substitutions. ## 3282 ## ------------------- ##" 3283 echo 3284 for ac_var in $ac_subst_files 3285 do 3286 eval ac_val=\$$ac_var 3287 case $ac_val in 3288 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3289 esac 3290 $as_echo "$ac_var='\''$ac_val'\''" 3291 done | sort 3292 echo 3293 fi 3294 3295 if test -s confdefs.h; then 3296 $as_echo "## ----------- ## 3297 ## confdefs.h. ## 3298 ## ----------- ##" 3299 echo 3300 cat confdefs.h 3301 echo 3302 fi 3303 test "$ac_signal" != 0 && 3304 $as_echo "$as_me: caught signal $ac_signal" 3305 $as_echo "$as_me: exit $exit_status" 3306 } >&5 3307 rm -f core *.core core.conftest.* && 3308 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3309 exit $exit_status 3310 ' 0 3311 for ac_signal in 1 2 13 15; do 3312 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3313 done 3314 ac_signal=0 3315 3316 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3317 rm -f -r conftest* confdefs.h 3318 3319 $as_echo "/* confdefs.h */" > confdefs.h 3320 3321 # Predefined preprocessor variables. 3322 3323 cat >>confdefs.h <<_ACEOF 3324 #define PACKAGE_NAME "$PACKAGE_NAME" 3325 _ACEOF 3326 3327 cat >>confdefs.h <<_ACEOF 3328 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3329 _ACEOF 3330 3331 cat >>confdefs.h <<_ACEOF 3332 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3333 _ACEOF 3334 3335 cat >>confdefs.h <<_ACEOF 3336 #define PACKAGE_STRING "$PACKAGE_STRING" 3337 _ACEOF 3338 3339 cat >>confdefs.h <<_ACEOF 3340 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3341 _ACEOF 3342 3343 cat >>confdefs.h <<_ACEOF 3344 #define PACKAGE_URL "$PACKAGE_URL" 3345 _ACEOF 3346 3347 3348 # Let the site file select an alternate cache file if it wants to. 3349 # Prefer an explicitly selected file to automatically selected ones. 3350 ac_site_file1=NONE 3351 ac_site_file2=NONE 3352 if test -n "$CONFIG_SITE"; then 3353 # We do not want a PATH search for config.site. 3354 case $CONFIG_SITE in #(( 3355 -*) ac_site_file1=./$CONFIG_SITE;; 3356 */*) ac_site_file1=$CONFIG_SITE;; 3357 *) ac_site_file1=./$CONFIG_SITE;; 3358 esac 3359 elif test "x$prefix" != xNONE; then 3360 ac_site_file1=$prefix/share/config.site 3361 ac_site_file2=$prefix/etc/config.site 3362 else 3363 ac_site_file1=$ac_default_prefix/share/config.site 3364 ac_site_file2=$ac_default_prefix/etc/config.site 3365 fi 3366 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3367 do 3368 test "x$ac_site_file" = xNONE && continue 3369 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3370 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3371 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3372 sed 's/^/| /' "$ac_site_file" >&5 3373 . "$ac_site_file" \ 3374 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3376 as_fn_error $? "failed to load site script $ac_site_file 3377 See \`config.log' for more details" "$LINENO" 5; } 3378 fi 3379 done 3380 3381 if test -r "$cache_file"; then 3382 # Some versions of bash will fail to source /dev/null (special files 3383 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3384 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3385 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3386 $as_echo "$as_me: loading cache $cache_file" >&6;} 3387 case $cache_file in 3388 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3389 *) . "./$cache_file";; 3390 esac 3391 fi 3392 else 3393 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3394 $as_echo "$as_me: creating cache $cache_file" >&6;} 3395 >$cache_file 3396 fi 3397 3398 # Check that the precious variables saved in the cache have kept the same 3399 # value. 3400 ac_cache_corrupted=false 3401 for ac_var in $ac_precious_vars; do 3402 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3403 eval ac_new_set=\$ac_env_${ac_var}_set 3404 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3405 eval ac_new_val=\$ac_env_${ac_var}_value 3406 case $ac_old_set,$ac_new_set in 3407 set,) 3408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3409 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3410 ac_cache_corrupted=: ;; 3411 ,set) 3412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3413 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3414 ac_cache_corrupted=: ;; 3415 ,);; 3416 *) 3417 if test "x$ac_old_val" != "x$ac_new_val"; then 3418 # differences in whitespace do not lead to failure. 3419 ac_old_val_w=`echo x $ac_old_val` 3420 ac_new_val_w=`echo x $ac_new_val` 3421 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3422 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3423 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3424 ac_cache_corrupted=: 3425 else 3426 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3427 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3428 eval $ac_var=\$ac_old_val 3429 fi 3430 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3431 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3432 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3433 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3434 fi;; 3435 esac 3436 # Pass precious variables to config.status. 3437 if test "$ac_new_set" = set; then 3438 case $ac_new_val in 3439 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3440 *) ac_arg=$ac_var=$ac_new_val ;; 3441 esac 3442 case " $ac_configure_args " in 3443 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3444 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3445 esac 3446 fi 3447 done 3448 if $ac_cache_corrupted; then 3449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3452 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3453 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3454 fi 3455 ## -------------------- ## 3456 ## Main body of script. ## 3457 ## -------------------- ## 3458 3459 ac_ext=c 3460 ac_cpp='$CPP $CPPFLAGS' 3461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3463 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3464 3465 3466 3467 ac_aux_dir= 3468 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3469 if test -f "$ac_dir/install-sh"; then 3470 ac_aux_dir=$ac_dir 3471 ac_install_sh="$ac_aux_dir/install-sh -c" 3472 break 3473 elif test -f "$ac_dir/install.sh"; then 3474 ac_aux_dir=$ac_dir 3475 ac_install_sh="$ac_aux_dir/install.sh -c" 3476 break 3477 elif test -f "$ac_dir/shtool"; then 3478 ac_aux_dir=$ac_dir 3479 ac_install_sh="$ac_aux_dir/shtool install -c" 3480 break 3481 fi 3482 done 3483 if test -z "$ac_aux_dir"; then 3484 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 3485 fi 3486 3487 # These three variables are undocumented and unsupported, 3488 # and are intended to be withdrawn in a future Autoconf release. 3489 # They can cause serious problems if a builder's source tree is in a directory 3490 # whose full name contains unusual characters. 3491 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3492 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3493 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3494 3495 3496 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3497 3498 # 3499 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3500 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3501 # 3502 # This code is free software; you can redistribute it and/or modify it 3503 # under the terms of the GNU General Public License version 2 only, as 3504 # published by the Free Software Foundation. Oracle designates this 3505 # particular file as subject to the "Classpath" exception as provided 3506 # by Oracle in the LICENSE file that accompanied this code. 3507 # 3508 # This code is distributed in the hope that it will be useful, but WITHOUT 3509 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3510 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3511 # version 2 for more details (a copy is included in the LICENSE file that 3512 # accompanied this code). 3513 # 3514 # You should have received a copy of the GNU General Public License version 3515 # 2 along with this work; if not, write to the Free Software Foundation, 3516 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3517 # 3518 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3519 # or visit www.oracle.com if you need additional information or have any 3520 # questions. 3521 # 3522 3523 # 3524 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3525 # 3526 # This program is free software; you can redistribute it and/or modify 3527 # it under the terms of the GNU General Public License as published by 3528 # the Free Software Foundation; either version 2 of the License, or 3529 # (at your option) any later version. 3530 # 3531 # This program is distributed in the hope that it will be useful, but 3532 # WITHOUT ANY WARRANTY; without even the implied warranty of 3533 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3534 # General Public License for more details. 3535 # 3536 # You should have received a copy of the GNU General Public License 3537 # along with this program; if not, write to the Free Software 3538 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3539 # 3540 # As a special exception to the GNU General Public License, if you 3541 # distribute this file as part of a program that contains a 3542 # configuration script generated by Autoconf, you may include it under 3543 # the same distribution terms that you use for the rest of that program. 3544 3545 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3546 # ---------------------------------- 3547 # PKG_PROG_PKG_CONFIG 3548 3549 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3550 # 3551 # Check to see whether a particular set of modules exists. Similar 3552 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3553 # 3554 # 3555 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3556 # this or PKG_CHECK_MODULES is called, or make sure to call 3557 # PKG_CHECK_EXISTS manually 3558 # -------------------------------------------------------------- 3559 3560 3561 3562 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3563 # --------------------------------------------- 3564 # _PKG_CONFIG 3565 3566 # _PKG_SHORT_ERRORS_SUPPORTED 3567 # ----------------------------- 3568 # _PKG_SHORT_ERRORS_SUPPORTED 3569 3570 3571 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3572 # [ACTION-IF-NOT-FOUND]) 3573 # 3574 # 3575 # Note that if there is a possibility the first call to 3576 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3577 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3578 # 3579 # 3580 # -------------------------------------------------------------- 3581 # PKG_CHECK_MODULES 3582 3583 3584 # Include these first... 3585 # 3586 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 3587 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3588 # 3589 # This code is free software; you can redistribute it and/or modify it 3590 # under the terms of the GNU General Public License version 2 only, as 3591 # published by the Free Software Foundation. Oracle designates this 3592 # particular file as subject to the "Classpath" exception as provided 3593 # by Oracle in the LICENSE file that accompanied this code. 3594 # 3595 # This code is distributed in the hope that it will be useful, but WITHOUT 3596 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3597 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3598 # version 2 for more details (a copy is included in the LICENSE file that 3599 # accompanied this code). 3600 # 3601 # You should have received a copy of the GNU General Public License version 3602 # 2 along with this work; if not, write to the Free Software Foundation, 3603 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3604 # 3605 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3606 # or visit www.oracle.com if you need additional information or have any 3607 # questions. 3608 # 3609 3610 # Create a function/macro that takes a series of named arguments. The call is 3611 # similar to AC_DEFUN, but the setup of the function looks like this: 3612 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [ 3613 # ... do something 3614 # AC_MSG_NOTICE([Value of BAR is ARG_BAR]) 3615 # ]) 3616 # A star (*) in front of a named argument means that it is required and it's 3617 # presence will be verified. To pass e.g. the first value as a normal indexed 3618 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These 3619 # arguments are referenced in the function by their name prefixed by ARG_, e.g. 3620 # "ARG_FOO". 3621 # 3622 # The generated function can be called like this: 3623 # MYFUNC(FOO: [foo-val], 3624 # BAR: [ 3625 # $ECHO hello world 3626 # ]) 3627 # Note that the argument value must start on the same line as the argument name. 3628 # 3629 # Argument 1: Name of the function to define 3630 # Argument 2: List of legal named arguments, with a * prefix for required arguments 3631 # Argument 3: Argument array to treat as named, typically $@ 3632 # Argument 4: The main function body 3633 3634 3635 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3636 # If so, then append $1 to $2 \ 3637 # Also set JVM_ARG_OK to true/false depending on outcome. 3638 3639 3640 # Appends a string to a path variable, only adding the : when needed. 3641 3642 3643 # Prepends a string to a path variable, only adding the : when needed. 3644 3645 3646 # This will make sure the given variable points to a full and proper 3647 # path. This means: 3648 # 1) There will be no spaces in the path. On unix platforms, 3649 # spaces in the path will result in an error. On Windows, 3650 # the path will be rewritten using short-style to be space-free. 3651 # 2) The path will be absolute, and it will be in unix-style (on 3652 # cygwin). 3653 # $1: The name of the variable to fix 3654 3655 3656 # This will make sure the given variable points to a executable 3657 # with a full and proper path. This means: 3658 # 1) There will be no spaces in the path. On unix platforms, 3659 # spaces in the path will result in an error. On Windows, 3660 # the path will be rewritten using short-style to be space-free. 3661 # 2) The path will be absolute, and it will be in unix-style (on 3662 # cygwin). 3663 # Any arguments given to the executable is preserved. 3664 # If the input variable does not have a directory specification, then 3665 # it need to be in the PATH. 3666 # $1: The name of the variable to fix 3667 3668 3669 3670 3671 # Register a --with argument but mark it as deprecated 3672 # $1: The name of the with argument to deprecate, not including --with- 3673 3674 3675 # Register a --enable argument but mark it as deprecated 3676 # $1: The name of the with argument to deprecate, not including --enable- 3677 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3678 # $3: Messages to user. 3679 3680 3681 3682 3683 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3684 # $1: variable to check 3685 3686 3687 # Check that there are no unprocessed overridden variables left. 3688 # If so, they are an incorrect argument and we will exit with an error. 3689 3690 3691 # Setup a tool for the given variable. If correctly specified by the user, 3692 # use that value, otherwise search for the tool using the supplied code snippet. 3693 # $1: variable to set 3694 # $2: code snippet to call to look for the tool 3695 # $3: code snippet to call if variable was used to find tool 3696 3697 3698 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3699 # $1: variable to set 3700 # $2: executable name (or list of names) to look for 3701 # $3: [path] 3702 3703 3704 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3705 # $1: variable to set 3706 # $2: executable name (or list of names) to look for 3707 3708 3709 # Like BASIC_PATH_PROGS but fails if no tool was found. 3710 # $1: variable to set 3711 # $2: executable name (or list of names) to look for 3712 # $3: [path] 3713 3714 3715 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3716 # $1: variable to set 3717 # $2: autoconf macro to call to look for the special tool 3718 3719 3720 # Setup the most fundamental tools that relies on not much else to set up, 3721 # but is used by much of the early bootstrap code. 3722 3723 3724 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3725 3726 3727 # Evaluates platform specific overrides for devkit variables. 3728 # $1: Name of variable 3729 3730 3731 3732 3733 3734 3735 #%%% Simple tools %%% 3736 3737 # Check if we have found a usable version of make 3738 # $1: the path to a potential make binary (or empty) 3739 # $2: the description on how we found this 3740 3741 3742 3743 3744 # Goes looking for a usable version of GNU make. 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 # Check if build directory is on local disk. If not possible to determine, 3756 # we prefer to claim it's local. 3757 # Argument 1: directory to test 3758 # Argument 2: what to do if it is on local disk 3759 # Argument 3: what to do otherwise (remote disk or failure) 3760 3761 3762 # Check that source files have basic read permissions set. This might 3763 # not be the case in cygwin in certain conditions. 3764 3765 3766 3767 3768 # Check for support for specific options in bash 3769 3770 3771 ################################################################################ 3772 # 3773 # Default make target 3774 # 3775 3776 3777 # Code to run after AC_OUTPUT 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 # Helper function which possibly converts a path using DOS-style short mode. 3810 # If so, the updated path is stored in $new_path. 3811 # $1: The path to check 3812 3813 3814 # Helper function which possibly converts a path using DOS-style short mode. 3815 # If so, the updated path is stored in $new_path. 3816 # $1: The path to check 3817 3818 3819 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3820 # and could probably be heavily simplified. However, all changes in this 3821 # area tend to need lot of testing in different scenarios, and in lack of 3822 # proper unit testing, cleaning this up has not been deemed worth the effort 3823 # at the moment. 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3834 3835 3836 3837 3838 # ... then the rest 3839 # 3840 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 3841 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3842 # 3843 # This code is free software; you can redistribute it and/or modify it 3844 # under the terms of the GNU General Public License version 2 only, as 3845 # published by the Free Software Foundation. Oracle designates this 3846 # particular file as subject to the "Classpath" exception as provided 3847 # by Oracle in the LICENSE file that accompanied this code. 3848 # 3849 # This code is distributed in the hope that it will be useful, but WITHOUT 3850 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3851 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3852 # version 2 for more details (a copy is included in the LICENSE file that 3853 # accompanied this code). 3854 # 3855 # You should have received a copy of the GNU General Public License version 3856 # 2 along with this work; if not, write to the Free Software Foundation, 3857 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3858 # 3859 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3860 # or visit www.oracle.com if you need additional information or have any 3861 # questions. 3862 # 3863 3864 ######################################################################## 3865 # This file handles detection of the Boot JDK. The Boot JDK detection 3866 # process has been developed as a response to solve a complex real-world 3867 # problem. Initially, it was simple, but it has grown as platform after 3868 # platform, idiosyncracy after idiosyncracy has been supported. 3869 # 3870 # The basic idea is this: 3871 # 1) You need an acceptable *) JDK to use as a Boot JDK 3872 # 2) There are several ways to locate a JDK, that are mostly platform 3873 # dependent **) 3874 # 3) You can have multiple JDKs installed 3875 # 4) If possible, configure should try to dig out an acceptable JDK 3876 # automatically, without having to resort to command-line options 3877 # 3878 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3879 # javac) and not a JRE, etc. 3880 # 3881 # **) On Windows we typically use a well-known path. 3882 # On MacOSX we typically use the tool java_home. 3883 # On Linux we typically find javac in the $PATH, and then follow a 3884 # chain of symlinks that often ends up in a real JDK. 3885 # 3886 # This leads to the code where we check in different ways to locate a 3887 # JDK, and if one is found, check if it is acceptable. If not, we print 3888 # our reasons for rejecting it (useful when debugging non-working 3889 # configure situations) and continue checking the next one. 3890 ######################################################################## 3891 3892 # Execute the check given as argument, and verify the result 3893 # If the Boot JDK was previously found, do nothing 3894 # $1 A command line (typically autoconf macro) to execute 3895 3896 3897 # Test: Is bootjdk explicitly set by command line arguments? 3898 3899 3900 # Test: Is $JAVA_HOME set? 3901 3902 3903 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3904 3905 3906 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3907 # $1: Argument to the java_home binary (optional) 3908 3909 3910 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3911 3912 3913 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3914 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3915 # $1 = Path to directory containing jdk installations. 3916 # $2 = String to append to the found JDK directory to get the proper JDK home 3917 3918 3919 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3920 # environmental variable as base for where to look. 3921 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3922 3923 3924 # Test: Is there a JDK installed in default, well-known locations? 3925 3926 3927 # Check that a command-line tool in the Boot JDK is correct 3928 # $1 = name of variable to assign 3929 # $2 = name of binary 3930 3931 3932 ############################################################################### 3933 # 3934 # We need a Boot JDK to bootstrap the build. 3935 # 3936 3937 3938 3939 3940 3941 # BUILD_JDK: the location of the latest JDK that can run 3942 # on the host system and supports the target class file version 3943 # generated in this JDK build. This variable should only be 3944 # used after the launchers are built. 3945 # 3946 3947 # Execute the check given as argument, and verify the result. 3948 # If the JDK was previously found, do nothing. 3949 # $1 A command line (typically autoconf macro) to execute 3950 3951 3952 # By default the BUILD_JDK is the JDK_OUTPUTDIR. If the target architecture 3953 # is different than the host system doing the build (e.g. cross-compilation), 3954 # a special BUILD_JDK is built as part of the build process. An external 3955 # prebuilt BUILD_JDK can also be supplied. 3956 3957 3958 # 3959 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3960 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3961 # 3962 # This code is free software; you can redistribute it and/or modify it 3963 # under the terms of the GNU General Public License version 2 only, as 3964 # published by the Free Software Foundation. Oracle designates this 3965 # particular file as subject to the "Classpath" exception as provided 3966 # by Oracle in the LICENSE file that accompanied this code. 3967 # 3968 # This code is distributed in the hope that it will be useful, but WITHOUT 3969 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3970 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3971 # version 2 for more details (a copy is included in the LICENSE file that 3972 # accompanied this code). 3973 # 3974 # You should have received a copy of the GNU General Public License version 3975 # 2 along with this work; if not, write to the Free Software Foundation, 3976 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3977 # 3978 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3979 # or visit www.oracle.com if you need additional information or have any 3980 # questions. 3981 # 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 ################################################################################ 4000 # 4001 # Runs icecc-create-env once and prints the error if it fails 4002 # 4003 # $1: arguments to icecc-create-env 4004 # $2: log file 4005 # 4006 4007 4008 ################################################################################ 4009 # 4010 # Optionally enable distributed compilation of native code using icecc/icecream 4011 # 4012 4013 4014 4015 4016 4017 4018 4019 # 4020 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4021 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4022 # 4023 # This code is free software; you can redistribute it and/or modify it 4024 # under the terms of the GNU General Public License version 2 only, as 4025 # published by the Free Software Foundation. Oracle designates this 4026 # particular file as subject to the "Classpath" exception as provided 4027 # by Oracle in the LICENSE file that accompanied this code. 4028 # 4029 # This code is distributed in the hope that it will be useful, but WITHOUT 4030 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4031 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4032 # version 2 for more details (a copy is included in the LICENSE file that 4033 # accompanied this code). 4034 # 4035 # You should have received a copy of the GNU General Public License version 4036 # 2 along with this work; if not, write to the Free Software Foundation, 4037 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4038 # 4039 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4040 # or visit www.oracle.com if you need additional information or have any 4041 # questions. 4042 # 4043 4044 ################################################################################ 4045 # 4046 # Setup ABI profile (for arm) 4047 # 4048 4049 4050 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the 4051 # corresponding configure arguments instead 4052 4053 4054 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so 4055 # that configure can use them while detecting compilers. 4056 # TOOLCHAIN_TYPE is available here. 4057 # Param 1 - Optional prefix to all variables. (e.g BUILD_) 4058 4059 4060 4061 4062 4063 4064 # Documentation on common flags used for solstudio in HIGHEST. 4065 # 4066 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 4067 # done with care, there are some assumptions below that need to 4068 # be understood about the use of pointers, and IEEE behavior. 4069 # 4070 # -fns: Use non-standard floating point mode (not IEEE 754) 4071 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 4072 # -fsingle: Use single precision floating point with 'float' 4073 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 4074 # (Source with excessing pointer casting and data access with mixed 4075 # pointer types are not recommended) 4076 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 4077 # (If you expect perfect errno behavior, do not use this) 4078 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 4079 # -xrestrict: Pointer parameters to functions do not overlap 4080 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 4081 # If you pass in multiple pointers to the same data, do not use this) 4082 # -xlibmil: Inline some library routines 4083 # (If you expect perfect errno behavior, do not use this) 4084 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 4085 # (If you expect perfect errno behavior, do not use this) 4086 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 4087 4088 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 4089 # Bug? 4090 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 4091 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 4092 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 4093 #fi 4094 4095 4096 4097 4098 4099 4100 ################################################################################ 4101 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check 4102 # conditionals against. 4103 # $2 - Optional prefix for each variable defined. 4104 4105 4106 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4107 # IF_FALSE: [RUN-IF-FALSE]) 4108 # ------------------------------------------------------------ 4109 # Check that the C compiler supports an argument 4110 4111 4112 4113 4114 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4115 # IF_FALSE: [RUN-IF-FALSE]) 4116 # ------------------------------------------------------------ 4117 # Check that the C++ compiler supports an argument 4118 4119 4120 4121 4122 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4123 # IF_FALSE: [RUN-IF-FALSE]) 4124 # ------------------------------------------------------------ 4125 # Check that the C and C++ compilers support an argument 4126 4127 4128 4129 4130 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4131 # IF_FALSE: [RUN-IF-FALSE]) 4132 # ------------------------------------------------------------ 4133 # Check that the linker support an argument 4134 4135 4136 4137 4138 4139 4140 # FLAGS_SETUP_GCC6_COMPILER_FLAGS([PREFIX]) 4141 # Arguments: 4142 # $1 - Optional prefix for each variable defined. 4143 4144 4145 # 4146 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4147 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4148 # 4149 # This code is free software; you can redistribute it and/or modify it 4150 # under the terms of the GNU General Public License version 2 only, as 4151 # published by the Free Software Foundation. Oracle designates this 4152 # particular file as subject to the "Classpath" exception as provided 4153 # by Oracle in the LICENSE file that accompanied this code. 4154 # 4155 # This code is distributed in the hope that it will be useful, but WITHOUT 4156 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4157 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4158 # version 2 for more details (a copy is included in the LICENSE file that 4159 # accompanied this code). 4160 # 4161 # You should have received a copy of the GNU General Public License version 4162 # 2 along with this work; if not, write to the Free Software Foundation, 4163 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4164 # 4165 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4166 # or visit www.oracle.com if you need additional information or have any 4167 # questions. 4168 # 4169 4170 4171 4172 4173 4174 cygwin_help() { 4175 case $1 in 4176 unzip) 4177 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 4178 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4179 ;; 4180 zip) 4181 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 4182 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4183 ;; 4184 make) 4185 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 4186 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4187 ;; 4188 freetype) 4189 HELP_MSG=" 4190 The freetype library can now be build during the configure process. 4191 Download the freetype sources and unpack them into an arbitrary directory: 4192 4193 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 4194 tar -xzf freetype-2.5.3.tar.gz 4195 4196 Then run configure with '--with-freetype-src=<freetype_src>'. This will 4197 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 4198 builds or into '<freetype_src>/lib32' for 32-bit builds. 4199 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 4200 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds. 4201 4202 Alternatively you can unpack the sources like this to use the default directory: 4203 4204 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz" 4205 ;; 4206 esac 4207 } 4208 4209 msys_help() { 4210 PKGHANDLER_COMMAND="" 4211 } 4212 4213 apt_help() { 4214 case $1 in 4215 reduced) 4216 PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;; 4217 devkit) 4218 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 4219 openjdk) 4220 PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;; 4221 alsa) 4222 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 4223 cups) 4224 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 4225 freetype) 4226 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 4227 ffi) 4228 PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;; 4229 x11) 4230 PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 4231 ccache) 4232 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 4233 dtrace) 4234 PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;; 4235 esac 4236 } 4237 4238 yum_help() { 4239 case $1 in 4240 devkit) 4241 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 4242 openjdk) 4243 PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;; 4244 alsa) 4245 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 4246 cups) 4247 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 4248 freetype) 4249 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 4250 x11) 4251 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;; 4252 ccache) 4253 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 4254 esac 4255 } 4256 4257 brew_help() { 4258 case $1 in 4259 openjdk) 4260 PKGHANDLER_COMMAND="brew cask install java" ;; 4261 freetype) 4262 PKGHANDLER_COMMAND="brew install freetype" ;; 4263 ccache) 4264 PKGHANDLER_COMMAND="brew install ccache" ;; 4265 esac 4266 } 4267 4268 port_help() { 4269 PKGHANDLER_COMMAND="" 4270 } 4271 4272 pkgutil_help() { 4273 PKGHANDLER_COMMAND="" 4274 } 4275 4276 pkgadd_help() { 4277 PKGHANDLER_COMMAND="" 4278 } 4279 4280 # This function will check if we're called from the "configure" wrapper while 4281 # printing --help. If so, we will print out additional information that can 4282 # only be extracted within the autoconf script, and then exit. This must be 4283 # called at the very beginning in configure.ac. 4284 4285 4286 4287 4288 4289 4290 # 4291 # Copyright (c) 2011, 2017, 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 # All valid JVM features, regardless of platform 4316 VALID_JVM_FEATURES="compiler1 compiler2 zero shark minimal dtrace jvmti jvmci \ 4317 graal vm-structs jni-check services management all-gcs nmt cds \ 4318 static-build link-time-opt aot" 4319 4320 # All valid JVM variants 4321 VALID_JVM_VARIANTS="server client minimal core zero zeroshark custom" 4322 4323 ############################################################################### 4324 # Check if the specified JVM variant should be built. To be used in shell if 4325 # constructs, like this: 4326 # if HOTSPOT_CHECK_JVM_VARIANT(server); then 4327 # 4328 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants. 4329 4330 # Definition kept in one line to allow inlining in if statements. 4331 # Additional [] needed to keep m4 from mangling shell constructs. 4332 4333 4334 ############################################################################### 4335 # Check if the specified JVM features are explicitly enabled. To be used in 4336 # shell if constructs, like this: 4337 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then 4338 # 4339 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features. 4340 4341 # Definition kept in one line to allow inlining in if statements. 4342 # Additional [] needed to keep m4 from mangling shell constructs. 4343 4344 4345 ############################################################################### 4346 # Check which variants of the JVM that we want to build. Available variants are: 4347 # server: normal interpreter, and a tiered C1/C2 compiler 4348 # client: normal interpreter, and C1 (no C2 compiler) 4349 # minimal: reduced form of client with optional features stripped out 4350 # core: normal interpreter only, no compiler 4351 # zero: C++ based interpreter only, no compiler 4352 # zeroshark: C++ based interpreter, and a llvm-based compiler 4353 # custom: baseline JVM with no default features 4354 # 4355 4356 4357 ############################################################################### 4358 # Check if dtrace should be enabled and has all prerequisites present. 4359 # 4360 4361 4362 ################################################################################ 4363 # Check if AOT should be enabled 4364 # 4365 4366 4367 ################################################################################ 4368 # Allow to disable CDS 4369 # 4370 4371 4372 ############################################################################### 4373 # Set up all JVM features for each JVM variant. 4374 # 4375 4376 4377 ############################################################################### 4378 # Validate JVM features once all setup is complete, including custom setup. 4379 # 4380 4381 4382 ################################################################################ 4383 # 4384 # Specify which sources will be used to build the 64-bit ARM port 4385 # 4386 # --with-cpu-port=arm64 will use hotspot/src/cpu/arm 4387 # --with-cpu-port=aarch64 will use hotspot/src/cpu/aarch64 4388 # 4389 4390 4391 4392 ################################################################################ 4393 # Check if gtest should be built 4394 # 4395 4396 4397 # 4398 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4399 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4400 # 4401 # This code is free software; you can redistribute it and/or modify it 4402 # under the terms of the GNU General Public License version 2 only, as 4403 # published by the Free Software Foundation. Oracle designates this 4404 # particular file as subject to the "Classpath" exception as provided 4405 # by Oracle in the LICENSE file that accompanied this code. 4406 # 4407 # This code is distributed in the hope that it will be useful, but WITHOUT 4408 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4409 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4410 # version 2 for more details (a copy is included in the LICENSE file that 4411 # accompanied this code). 4412 # 4413 # You should have received a copy of the GNU General Public License version 4414 # 2 along with this work; if not, write to the Free Software Foundation, 4415 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4416 # 4417 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4418 # or visit www.oracle.com if you need additional information or have any 4419 # questions. 4420 # 4421 4422 ############################################################################### 4423 # Check which variant of the JDK that we want to build. 4424 # Currently we have: 4425 # normal: standard edition 4426 # but the custom make system may add other variants 4427 # 4428 # Effectively the JDK variant gives a name to a specific set of 4429 # modules to compile into the JDK. 4430 4431 4432 ############################################################################### 4433 # Set the debug level 4434 # release: no debug information, all optimizations, no asserts. 4435 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 4436 # fastdebug: debug information (-g), all optimizations, all asserts 4437 # slowdebug: debug information (-g), no optimizations, all asserts 4438 4439 4440 ############################################################################### 4441 # 4442 # Should we build only OpenJDK even if closed sources are present? 4443 # 4444 4445 4446 4447 4448 ############################################################################### 4449 # 4450 # Enable or disable the elliptic curve crypto implementation 4451 # 4452 4453 4454 4455 4456 ################################################################################ 4457 # 4458 # Gcov coverage data for hotspot 4459 # 4460 4461 4462 ################################################################################ 4463 # 4464 # Static build support. When enabled will generate static 4465 # libraries instead of shared libraries for all JDK libs. 4466 # 4467 4468 4469 ################################################################################ 4470 # 4471 # jlink options. 4472 # We always keep packaged modules in JDK image. 4473 # 4474 4475 4476 ################################################################################ 4477 # 4478 # Check if building of the jtreg failure handler should be enabled. 4479 # 4480 4481 4482 ################################################################################ 4483 # 4484 # Enable or disable generation of the classlist at build time 4485 # 4486 4487 4488 # 4489 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. 4490 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4491 # 4492 # This code is free software; you can redistribute it and/or modify it 4493 # under the terms of the GNU General Public License version 2 only, as 4494 # published by the Free Software Foundation. Oracle designates this 4495 # particular file as subject to the "Classpath" exception as provided 4496 # by Oracle in the LICENSE file that accompanied this code. 4497 # 4498 # This code is distributed in the hope that it will be useful, but WITHOUT 4499 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4500 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4501 # version 2 for more details (a copy is included in the LICENSE file that 4502 # accompanied this code). 4503 # 4504 # You should have received a copy of the GNU General Public License version 4505 # 2 along with this work; if not, write to the Free Software Foundation, 4506 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4507 # 4508 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4509 # or visit www.oracle.com if you need additional information or have any 4510 # questions. 4511 # 4512 4513 ############################################################################### 4514 # 4515 # Setup version numbers 4516 # 4517 4518 # Verify that a given string represents a valid version number, and assign it 4519 # to a variable. 4520 4521 # Argument 1: the variable to assign to 4522 # Argument 2: the value given by the user 4523 4524 4525 4526 4527 # 4528 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4529 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4530 # 4531 # This code is free software; you can redistribute it and/or modify it 4532 # under the terms of the GNU General Public License version 2 only, as 4533 # published by the Free Software Foundation. Oracle designates this 4534 # particular file as subject to the "Classpath" exception as provided 4535 # by Oracle in the LICENSE file that accompanied this code. 4536 # 4537 # This code is distributed in the hope that it will be useful, but WITHOUT 4538 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4539 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4540 # version 2 for more details (a copy is included in the LICENSE file that 4541 # accompanied this code). 4542 # 4543 # You should have received a copy of the GNU General Public License version 4544 # 2 along with this work; if not, write to the Free Software Foundation, 4545 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4546 # 4547 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4548 # or visit www.oracle.com if you need additional information or have any 4549 # questions. 4550 # 4551 4552 # Major library component reside in separate files. 4553 # 4554 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4555 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4556 # 4557 # This code is free software; you can redistribute it and/or modify it 4558 # under the terms of the GNU General Public License version 2 only, as 4559 # published by the Free Software Foundation. Oracle designates this 4560 # particular file as subject to the "Classpath" exception as provided 4561 # by Oracle in the LICENSE file that accompanied this code. 4562 # 4563 # This code is distributed in the hope that it will be useful, but WITHOUT 4564 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4565 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4566 # version 2 for more details (a copy is included in the LICENSE file that 4567 # accompanied this code). 4568 # 4569 # You should have received a copy of the GNU General Public License version 4570 # 2 along with this work; if not, write to the Free Software Foundation, 4571 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4572 # 4573 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4574 # or visit www.oracle.com if you need additional information or have any 4575 # questions. 4576 # 4577 4578 ################################################################################ 4579 # Setup alsa (Advanced Linux Sound Architecture) 4580 ################################################################################ 4581 4582 4583 # 4584 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4585 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4586 # 4587 # This code is free software; you can redistribute it and/or modify it 4588 # under the terms of the GNU General Public License version 2 only, as 4589 # published by the Free Software Foundation. Oracle designates this 4590 # particular file as subject to the "Classpath" exception as provided 4591 # by Oracle in the LICENSE file that accompanied this code. 4592 # 4593 # This code is distributed in the hope that it will be useful, but WITHOUT 4594 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4595 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4596 # version 2 for more details (a copy is included in the LICENSE file that 4597 # accompanied this code). 4598 # 4599 # You should have received a copy of the GNU General Public License version 4600 # 2 along with this work; if not, write to the Free Software Foundation, 4601 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4602 # 4603 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4604 # or visit www.oracle.com if you need additional information or have any 4605 # questions. 4606 # 4607 4608 ################################################################################ 4609 # Setup bundled libraries. 4610 # 4611 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the 4612 # OpenJDK repository. Default is to use these libraries as bundled, but they 4613 # might be replaced by en external version by the user. 4614 ################################################################################ 4615 4616 4617 ################################################################################ 4618 # Setup libjpeg 4619 ################################################################################ 4620 4621 4622 ################################################################################ 4623 # Setup giflib 4624 ################################################################################ 4625 4626 4627 ################################################################################ 4628 # Setup libpng 4629 ################################################################################ 4630 4631 4632 ################################################################################ 4633 # Setup zlib 4634 ################################################################################ 4635 4636 4637 ################################################################################ 4638 # Setup lcms (Little CMS) 4639 ################################################################################ 4640 4641 4642 # 4643 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4644 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4645 # 4646 # This code is free software; you can redistribute it and/or modify it 4647 # under the terms of the GNU General Public License version 2 only, as 4648 # published by the Free Software Foundation. Oracle designates this 4649 # particular file as subject to the "Classpath" exception as provided 4650 # by Oracle in the LICENSE file that accompanied this code. 4651 # 4652 # This code is distributed in the hope that it will be useful, but WITHOUT 4653 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4654 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4655 # version 2 for more details (a copy is included in the LICENSE file that 4656 # accompanied this code). 4657 # 4658 # You should have received a copy of the GNU General Public License version 4659 # 2 along with this work; if not, write to the Free Software Foundation, 4660 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4661 # 4662 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4663 # or visit www.oracle.com if you need additional information or have any 4664 # questions. 4665 # 4666 4667 ################################################################################ 4668 # Setup cups (Common Unix Printing System) 4669 ################################################################################ 4670 4671 4672 # 4673 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 4674 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4675 # 4676 # This code is free software; you can redistribute it and/or modify it 4677 # under the terms of the GNU General Public License version 2 only, as 4678 # published by the Free Software Foundation. Oracle designates this 4679 # particular file as subject to the "Classpath" exception as provided 4680 # by Oracle in the LICENSE file that accompanied this code. 4681 # 4682 # This code is distributed in the hope that it will be useful, but WITHOUT 4683 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4684 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4685 # version 2 for more details (a copy is included in the LICENSE file that 4686 # accompanied this code). 4687 # 4688 # You should have received a copy of the GNU General Public License version 4689 # 2 along with this work; if not, write to the Free Software Foundation, 4690 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4691 # 4692 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4693 # or visit www.oracle.com if you need additional information or have any 4694 # questions. 4695 # 4696 4697 ################################################################################ 4698 # Setup libffi (Foreign Function Interface) 4699 ################################################################################ 4700 4701 4702 # 4703 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4704 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4705 # 4706 # This code is free software; you can redistribute it and/or modify it 4707 # under the terms of the GNU General Public License version 2 only, as 4708 # published by the Free Software Foundation. Oracle designates this 4709 # particular file as subject to the "Classpath" exception as provided 4710 # by Oracle in the LICENSE file that accompanied this code. 4711 # 4712 # This code is distributed in the hope that it will be useful, but WITHOUT 4713 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4714 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4715 # version 2 for more details (a copy is included in the LICENSE file that 4716 # accompanied this code). 4717 # 4718 # You should have received a copy of the GNU General Public License version 4719 # 2 along with this work; if not, write to the Free Software Foundation, 4720 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4721 # 4722 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4723 # or visit www.oracle.com if you need additional information or have any 4724 # questions. 4725 # 4726 4727 ################################################################################ 4728 # Build the freetype lib from source 4729 ################################################################################ 4730 4731 4732 ################################################################################ 4733 # Check if a potential freeype library match is correct and usable 4734 ################################################################################ 4735 4736 4737 ################################################################################ 4738 # Setup freetype (The FreeType2 font rendering library) 4739 ################################################################################ 4740 4741 4742 # 4743 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4744 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4745 # 4746 # This code is free software; you can redistribute it and/or modify it 4747 # under the terms of the GNU General Public License version 2 only, as 4748 # published by the Free Software Foundation. Oracle designates this 4749 # particular file as subject to the "Classpath" exception as provided 4750 # by Oracle in the LICENSE file that accompanied this code. 4751 # 4752 # This code is distributed in the hope that it will be useful, but WITHOUT 4753 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4754 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4755 # version 2 for more details (a copy is included in the LICENSE file that 4756 # accompanied this code). 4757 # 4758 # You should have received a copy of the GNU General Public License version 4759 # 2 along with this work; if not, write to the Free Software Foundation, 4760 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4761 # 4762 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4763 # or visit www.oracle.com if you need additional information or have any 4764 # questions. 4765 # 4766 4767 ################################################################################ 4768 # Setup the standard C/C++ runtime libraries. 4769 # 4770 # Most importantly, determine if stdc++ should be linked statically or 4771 # dynamically. 4772 ################################################################################ 4773 4774 4775 # 4776 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4777 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4778 # 4779 # This code is free software; you can redistribute it and/or modify it 4780 # under the terms of the GNU General Public License version 2 only, as 4781 # published by the Free Software Foundation. Oracle designates this 4782 # particular file as subject to the "Classpath" exception as provided 4783 # by Oracle in the LICENSE file that accompanied this code. 4784 # 4785 # This code is distributed in the hope that it will be useful, but WITHOUT 4786 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4787 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4788 # version 2 for more details (a copy is included in the LICENSE file that 4789 # accompanied this code). 4790 # 4791 # You should have received a copy of the GNU General Public License version 4792 # 2 along with this work; if not, write to the Free Software Foundation, 4793 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4794 # 4795 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4796 # or visit www.oracle.com if you need additional information or have any 4797 # questions. 4798 # 4799 4800 ################################################################################ 4801 # Setup X11 Windows system 4802 ################################################################################ 4803 4804 4805 4806 ################################################################################ 4807 # Determine which libraries are needed for this configuration 4808 ################################################################################ 4809 4810 4811 ################################################################################ 4812 # Parse library options, and setup needed libraries 4813 ################################################################################ 4814 4815 4816 ################################################################################ 4817 # Setup llvm (Low-Level VM) 4818 ################################################################################ 4819 4820 4821 ################################################################################ 4822 # Setup various libraries, typically small system libraries 4823 ################################################################################ 4824 4825 4826 ################################################################################ 4827 # libstlport.so.1 is needed for running gtest on Solaris. Find it to 4828 # redistribute it in the test image. 4829 ################################################################################ 4830 4831 4832 4833 # 4834 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4835 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4836 # 4837 # This code is free software; you can redistribute it and/or modify it 4838 # under the terms of the GNU General Public License version 2 only, as 4839 # published by the Free Software Foundation. Oracle designates this 4840 # particular file as subject to the "Classpath" exception as provided 4841 # by Oracle in the LICENSE file that accompanied this code. 4842 # 4843 # This code is distributed in the hope that it will be useful, but WITHOUT 4844 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4845 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4846 # version 2 for more details (a copy is included in the LICENSE file that 4847 # accompanied this code). 4848 # 4849 # You should have received a copy of the GNU General Public License version 4850 # 2 along with this work; if not, write to the Free Software Foundation, 4851 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4852 # 4853 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4854 # or visit www.oracle.com if you need additional information or have any 4855 # questions. 4856 # 4857 4858 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4859 # Converts autoconf style CPU name to OpenJDK style, into 4860 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4861 4862 4863 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4864 # Converts autoconf style OS name to OpenJDK style, into 4865 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV. 4866 4867 4868 # Expects $host_os $host_cpu $build_os and $build_cpu 4869 # and $with_target_bits to have been setup! 4870 # 4871 # Translate the standard triplet(quadruplet) definition 4872 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4873 # OPENJDK_BUILD_OS, etc. 4874 4875 4876 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4877 # accordingly. Must be done after setting up build and target system, but before 4878 # doing anything else with these values. 4879 4880 4881 # Setup the legacy variables, for controlling the old makefiles. 4882 # 4883 4884 4885 # $1 - Either TARGET or BUILD to setup the variables for. 4886 4887 4888 4889 4890 4891 4892 #%%% Build and target systems %%% 4893 4894 4895 4896 4897 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4898 # Add -mX to various FLAGS variables. 4899 4900 4901 4902 4903 4904 4905 # 4906 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4907 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4908 # 4909 # This code is free software; you can redistribute it and/or modify it 4910 # under the terms of the GNU General Public License version 2 only, as 4911 # published by the Free Software Foundation. Oracle designates this 4912 # particular file as subject to the "Classpath" exception as provided 4913 # by Oracle in the LICENSE file that accompanied this code. 4914 # 4915 # This code is distributed in the hope that it will be useful, but WITHOUT 4916 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4917 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4918 # version 2 for more details (a copy is included in the LICENSE file that 4919 # accompanied this code). 4920 # 4921 # You should have received a copy of the GNU General Public License version 4922 # 2 along with this work; if not, write to the Free Software Foundation, 4923 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4924 # 4925 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4926 # or visit www.oracle.com if you need additional information or have any 4927 # questions. 4928 # 4929 4930 4931 4932 4933 4934 4935 4936 ################################################################################ 4937 # Define a mechanism for importing extra prebuilt modules 4938 # 4939 4940 4941 4942 # 4943 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4944 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4945 # 4946 # This code is free software; you can redistribute it and/or modify it 4947 # under the terms of the GNU General Public License version 2 only, as 4948 # published by the Free Software Foundation. Oracle designates this 4949 # particular file as subject to the "Classpath" exception as provided 4950 # by Oracle in the LICENSE file that accompanied this code. 4951 # 4952 # This code is distributed in the hope that it will be useful, but WITHOUT 4953 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4954 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4955 # version 2 for more details (a copy is included in the LICENSE file that 4956 # accompanied this code). 4957 # 4958 # You should have received a copy of the GNU General Public License version 4959 # 2 along with this work; if not, write to the Free Software Foundation, 4960 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4961 # 4962 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4963 # or visit www.oracle.com if you need additional information or have any 4964 # questions. 4965 # 4966 4967 ######################################################################## 4968 # This file is responsible for detecting, verifying and setting up the 4969 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4970 # proper paths to the binaries, but it will not setup any flags. 4971 # 4972 # The binaries used is determined by the toolchain type, which is the family of 4973 # compilers and related tools that are used. 4974 ######################################################################## 4975 4976 4977 # All valid toolchains, regardless of platform (used by help.m4) 4978 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4979 4980 # These toolchains are valid on different platforms 4981 VALID_TOOLCHAINS_linux="gcc clang" 4982 VALID_TOOLCHAINS_solaris="solstudio" 4983 VALID_TOOLCHAINS_macosx="gcc clang" 4984 VALID_TOOLCHAINS_aix="xlc" 4985 VALID_TOOLCHAINS_windows="microsoft" 4986 4987 # Toolchain descriptions 4988 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4989 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4990 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4991 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4992 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4993 4994 # Minimum supported versions, empty means unspecified 4995 TOOLCHAIN_MINIMUM_VERSION_clang="3.2" 4996 TOOLCHAIN_MINIMUM_VERSION_gcc="4.7" 4997 TOOLCHAIN_MINIMUM_VERSION_microsoft="16.00.30319.01" # VS2010 4998 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.13" 4999 TOOLCHAIN_MINIMUM_VERSION_xlc="" 5000 5001 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called. 5002 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER. 5003 # $1 - optional variable prefix for compiler and version variables (BUILD_) 5004 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_) 5005 5006 5007 # Check if the configured compiler (C and C++) is of a specific version or 5008 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before. 5009 # 5010 # Arguments: 5011 # VERSION: The version string to check against the found version 5012 # IF_AT_LEAST: block to run if the compiler is at least this version (>=) 5013 # IF_OLDER_THAN: block to run if the compiler is older than this version (<) 5014 # PREFIX: Optional variable prefix for compiler to compare version for (OPENJDK_BUILD_) 5015 5016 5017 5018 5019 # Setup a number of variables describing how native output files are 5020 # named on this platform/toolchain. 5021 5022 5023 # Determine which toolchain type to use, and make sure it is valid for this 5024 # platform. Setup various information about the selected toolchain. 5025 5026 5027 # Before we start detecting the toolchain executables, we might need some 5028 # special setup, e.g. additional paths etc. 5029 5030 5031 # Restore path, etc 5032 5033 5034 # Check if a compiler is of the toolchain type we expect, and save the version 5035 # information from it. If the compiler does not match the expected type, 5036 # this function will abort using AC_MSG_ERROR. If it matches, the version will 5037 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 5038 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 5039 # 5040 # $1 = compiler to test (CC or CXX) 5041 # $2 = human readable name of compiler (C or C++) 5042 5043 5044 # Try to locate the given C or C++ compiler in the path, or otherwise. 5045 # 5046 # $1 = compiler to test (CC or CXX) 5047 # $2 = human readable name of compiler (C or C++) 5048 # $3 = compiler name to search for 5049 5050 5051 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 5052 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 5053 # archiver (AR). Verify that the compilers are correct according to the 5054 # toolchain type. 5055 5056 5057 # Setup additional tools that is considered a part of the toolchain, but not the 5058 # core part. Many of these are highly platform-specific and do not exist, 5059 # and/or are not needed on all platforms. 5060 5061 5062 # Setup the build tools (i.e, the compiler and linker used to build programs 5063 # that should be run on the build platform, not the target platform, as a build 5064 # helper). Since the non-cross-compile case uses the normal, target compilers 5065 # for this, we can only do this after these have been setup. 5066 5067 5068 # Do some additional checks on the detected tools. 5069 5070 5071 # Setup the JTReg Regression Test Harness. 5072 5073 5074 # Setup the JIB dependency resolver 5075 5076 5077 # 5078 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 5079 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5080 # 5081 # This code is free software; you can redistribute it and/or modify it 5082 # under the terms of the GNU General Public License version 2 only, as 5083 # published by the Free Software Foundation. Oracle designates this 5084 # particular file as subject to the "Classpath" exception as provided 5085 # by Oracle in the LICENSE file that accompanied this code. 5086 # 5087 # This code is distributed in the hope that it will be useful, but WITHOUT 5088 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 5089 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 5090 # version 2 for more details (a copy is included in the LICENSE file that 5091 # accompanied this code). 5092 # 5093 # You should have received a copy of the GNU General Public License version 5094 # 2 along with this work; if not, write to the Free Software Foundation, 5095 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 5096 # 5097 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 5098 # or visit www.oracle.com if you need additional information or have any 5099 # questions. 5100 # 5101 5102 ################################################################################ 5103 # The order of these defines the priority by which we try to find them. 5104 VALID_VS_VERSIONS="2013 2012 2010" 5105 5106 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010" 5107 VS_VERSION_INTERNAL_2010=100 5108 VS_MSVCR_2010=msvcr100.dll 5109 # We don't use msvcp on Visual Studio 2010 5110 #VS_MSVCP_2010=msvcp100.dll 5111 VS_ENVVAR_2010="VS100COMNTOOLS" 5112 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0" 5113 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1" 5114 VS_VS_PLATFORM_NAME_2010="v100" 5115 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK" 5116 5117 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012" 5118 VS_VERSION_INTERNAL_2012=110 5119 VS_MSVCR_2012=msvcr110.dll 5120 VS_MSVCP_2012=msvcp110.dll 5121 VS_ENVVAR_2012="VS110COMNTOOLS" 5122 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0" 5123 VS_SDK_INSTALLDIR_2012= 5124 VS_VS_PLATFORM_NAME_2012="v110" 5125 VS_SDK_PLATFORM_NAME_2012= 5126 5127 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013" 5128 VS_VERSION_INTERNAL_2013=120 5129 VS_MSVCR_2013=msvcr120.dll 5130 VS_MSVCP_2013=msvcp120.dll 5131 VS_ENVVAR_2013="VS120COMNTOOLS" 5132 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0" 5133 VS_SDK_INSTALLDIR_2013= 5134 VS_VS_PLATFORM_NAME_2013="v120" 5135 VS_SDK_PLATFORM_NAME_2013= 5136 5137 ################################################################################ 5138 5139 5140 5141 ################################################################################ 5142 5143 5144 5145 ################################################################################ 5146 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper 5147 # build environment and assigns it to VS_ENV_CMD 5148 5149 5150 ################################################################################ 5151 5152 5153 5154 ################################################################################ 5155 # Check if the VS env variables were setup prior to running configure. 5156 # If not, then find vcvarsall.bat and run it automatically, and integrate 5157 # the set env variables into the spec file. 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 # This line needs to be here, verbatim, after all includes and the dummy hook 5173 # definitions. It is replaced with custom functionality when building 5174 # custom sources. 5175 #CUSTOM_AUTOCONF_INCLUDE 5176 5177 # Do not change or remove the following line, it is needed for consistency checks: 5178 DATE_WHEN_GENERATED=1504508900 5179 5180 ############################################################################### 5181 # 5182 # Initialization / Boot-strapping 5183 # 5184 # The bootstrapping process needs to solve the "chicken or the egg" problem, 5185 # thus it jumps back and forth, each time gaining something needed later on. 5186 # 5187 ############################################################################### 5188 5189 # If we are requested to print additional help, do that and then exit. 5190 # This must be the very first call. 5191 5192 if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then 5193 5194 # Print available toolchains 5195 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 5196 $PRINTF "Which are valid to use depends on the build platform.\n" 5197 for toolchain in $VALID_TOOLCHAINS_all; do 5198 # Use indirect variable referencing 5199 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 5200 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 5201 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 5202 done 5203 $PRINTF "\n" 5204 5205 # Print available jvm features 5206 $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n" 5207 $PRINTF "Which are valid to use depends on the target platform.\n " 5208 $PRINTF "%s " $VALID_JVM_FEATURES 5209 $PRINTF "\n" 5210 5211 # And now exit directly 5212 exit 0 5213 fi 5214 5215 5216 # Basic initialization that must happen first of all in the normal process. 5217 5218 # Save the original command line. This is passed to us by the wrapper configure script. 5219 5220 # Save the path variable before it gets changed 5221 ORIGINAL_PATH="$PATH" 5222 5223 DATE_WHEN_CONFIGURED=`LANG=C date` 5224 5225 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 5226 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 5227 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 5228 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 5229 5230 5231 # Start with tools that do not need have cross compilation support 5232 # and can be expected to be found in the default PATH. These tools are 5233 # used by configure. 5234 5235 # First are all the simple required tools. 5236 5237 5238 5239 # Publish this variable in the help. 5240 5241 5242 if [ -z "${BASENAME+x}" ]; then 5243 # The variable is not set by user, try to locate tool using the code snippet 5244 for ac_prog in basename 5245 do 5246 # Extract the first word of "$ac_prog", so it can be a program name with args. 5247 set dummy $ac_prog; ac_word=$2 5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5249 $as_echo_n "checking for $ac_word... " >&6; } 5250 if ${ac_cv_path_BASENAME+:} false; then : 5251 $as_echo_n "(cached) " >&6 5252 else 5253 case $BASENAME in 5254 [\\/]* | ?:[\\/]*) 5255 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5256 ;; 5257 *) 5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5259 for as_dir in $PATH 5260 do 5261 IFS=$as_save_IFS 5262 test -z "$as_dir" && as_dir=. 5263 for ac_exec_ext in '' $ac_executable_extensions; do 5264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5265 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5267 break 2 5268 fi 5269 done 5270 done 5271 IFS=$as_save_IFS 5272 5273 ;; 5274 esac 5275 fi 5276 BASENAME=$ac_cv_path_BASENAME 5277 if test -n "$BASENAME"; then 5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5279 $as_echo "$BASENAME" >&6; } 5280 else 5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5282 $as_echo "no" >&6; } 5283 fi 5284 5285 5286 test -n "$BASENAME" && break 5287 done 5288 5289 else 5290 # The variable is set, but is it from the command line or the environment? 5291 5292 # Try to remove the string !BASENAME! from our list. 5293 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 5294 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5295 # If it failed, the variable was not from the command line. Ignore it, 5296 # but warn the user (except for BASH, which is always set by the calling BASH). 5297 if test "xBASENAME" != xBASH; then 5298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 5299 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 5300 fi 5301 # Try to locate tool using the code snippet 5302 for ac_prog in basename 5303 do 5304 # Extract the first word of "$ac_prog", so it can be a program name with args. 5305 set dummy $ac_prog; ac_word=$2 5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5307 $as_echo_n "checking for $ac_word... " >&6; } 5308 if ${ac_cv_path_BASENAME+:} false; then : 5309 $as_echo_n "(cached) " >&6 5310 else 5311 case $BASENAME in 5312 [\\/]* | ?:[\\/]*) 5313 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5314 ;; 5315 *) 5316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5317 for as_dir in $PATH 5318 do 5319 IFS=$as_save_IFS 5320 test -z "$as_dir" && as_dir=. 5321 for ac_exec_ext in '' $ac_executable_extensions; do 5322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5323 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5325 break 2 5326 fi 5327 done 5328 done 5329 IFS=$as_save_IFS 5330 5331 ;; 5332 esac 5333 fi 5334 BASENAME=$ac_cv_path_BASENAME 5335 if test -n "$BASENAME"; then 5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5337 $as_echo "$BASENAME" >&6; } 5338 else 5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5340 $as_echo "no" >&6; } 5341 fi 5342 5343 5344 test -n "$BASENAME" && break 5345 done 5346 5347 else 5348 # If it succeeded, then it was overridden by the user. We will use it 5349 # for the tool. 5350 5351 # First remove it from the list of overridden variables, so we can test 5352 # for unknown variables in the end. 5353 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5354 5355 # Check if we try to supply an empty value 5356 if test "x$BASENAME" = x; then 5357 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5 5358 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;} 5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5360 $as_echo_n "checking for BASENAME... " >&6; } 5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5362 $as_echo "disabled" >&6; } 5363 else 5364 # Check if the provided tool contains a complete path. 5365 tool_specified="$BASENAME" 5366 tool_basename="${tool_specified##*/}" 5367 if test "x$tool_basename" = "x$tool_specified"; then 5368 # A command without a complete path is provided, search $PATH. 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 5370 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 5371 # Extract the first word of "$tool_basename", so it can be a program name with args. 5372 set dummy $tool_basename; ac_word=$2 5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5374 $as_echo_n "checking for $ac_word... " >&6; } 5375 if ${ac_cv_path_BASENAME+:} false; then : 5376 $as_echo_n "(cached) " >&6 5377 else 5378 case $BASENAME in 5379 [\\/]* | ?:[\\/]*) 5380 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5381 ;; 5382 *) 5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5384 for as_dir in $PATH 5385 do 5386 IFS=$as_save_IFS 5387 test -z "$as_dir" && as_dir=. 5388 for ac_exec_ext in '' $ac_executable_extensions; do 5389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5390 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5392 break 2 5393 fi 5394 done 5395 done 5396 IFS=$as_save_IFS 5397 5398 ;; 5399 esac 5400 fi 5401 BASENAME=$ac_cv_path_BASENAME 5402 if test -n "$BASENAME"; then 5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5404 $as_echo "$BASENAME" >&6; } 5405 else 5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5407 $as_echo "no" >&6; } 5408 fi 5409 5410 5411 if test "x$BASENAME" = x; then 5412 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5413 fi 5414 else 5415 # Otherwise we believe it is a complete path. Use it as it is. 5416 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 5417 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5419 $as_echo_n "checking for BASENAME... " >&6; } 5420 if test ! -x "$tool_specified"; then 5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5422 $as_echo "not found" >&6; } 5423 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 5424 fi 5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5426 $as_echo "$tool_specified" >&6; } 5427 fi 5428 fi 5429 fi 5430 5431 fi 5432 5433 5434 5435 if test "x$BASENAME" = x; then 5436 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 5437 fi 5438 5439 5440 5441 5442 5443 # Publish this variable in the help. 5444 5445 5446 if [ -z "${BASH+x}" ]; then 5447 # The variable is not set by user, try to locate tool using the code snippet 5448 for ac_prog in bash 5449 do 5450 # Extract the first word of "$ac_prog", so it can be a program name with args. 5451 set dummy $ac_prog; ac_word=$2 5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5453 $as_echo_n "checking for $ac_word... " >&6; } 5454 if ${ac_cv_path_BASH+:} false; then : 5455 $as_echo_n "(cached) " >&6 5456 else 5457 case $BASH in 5458 [\\/]* | ?:[\\/]*) 5459 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5460 ;; 5461 *) 5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5463 for as_dir in $PATH 5464 do 5465 IFS=$as_save_IFS 5466 test -z "$as_dir" && as_dir=. 5467 for ac_exec_ext in '' $ac_executable_extensions; do 5468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5469 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5471 break 2 5472 fi 5473 done 5474 done 5475 IFS=$as_save_IFS 5476 5477 ;; 5478 esac 5479 fi 5480 BASH=$ac_cv_path_BASH 5481 if test -n "$BASH"; then 5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5483 $as_echo "$BASH" >&6; } 5484 else 5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5486 $as_echo "no" >&6; } 5487 fi 5488 5489 5490 test -n "$BASH" && break 5491 done 5492 5493 else 5494 # The variable is set, but is it from the command line or the environment? 5495 5496 # Try to remove the string !BASH! from our list. 5497 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 5498 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5499 # If it failed, the variable was not from the command line. Ignore it, 5500 # but warn the user (except for BASH, which is always set by the calling BASH). 5501 if test "xBASH" != xBASH; then 5502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 5503 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 5504 fi 5505 # Try to locate tool using the code snippet 5506 for ac_prog in bash 5507 do 5508 # Extract the first word of "$ac_prog", so it can be a program name with args. 5509 set dummy $ac_prog; ac_word=$2 5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5511 $as_echo_n "checking for $ac_word... " >&6; } 5512 if ${ac_cv_path_BASH+:} false; then : 5513 $as_echo_n "(cached) " >&6 5514 else 5515 case $BASH in 5516 [\\/]* | ?:[\\/]*) 5517 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5518 ;; 5519 *) 5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5521 for as_dir in $PATH 5522 do 5523 IFS=$as_save_IFS 5524 test -z "$as_dir" && as_dir=. 5525 for ac_exec_ext in '' $ac_executable_extensions; do 5526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5527 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5529 break 2 5530 fi 5531 done 5532 done 5533 IFS=$as_save_IFS 5534 5535 ;; 5536 esac 5537 fi 5538 BASH=$ac_cv_path_BASH 5539 if test -n "$BASH"; then 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5541 $as_echo "$BASH" >&6; } 5542 else 5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5544 $as_echo "no" >&6; } 5545 fi 5546 5547 5548 test -n "$BASH" && break 5549 done 5550 5551 else 5552 # If it succeeded, then it was overridden by the user. We will use it 5553 # for the tool. 5554 5555 # First remove it from the list of overridden variables, so we can test 5556 # for unknown variables in the end. 5557 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5558 5559 # Check if we try to supply an empty value 5560 if test "x$BASH" = x; then 5561 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5 5562 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;} 5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5564 $as_echo_n "checking for BASH... " >&6; } 5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5566 $as_echo "disabled" >&6; } 5567 else 5568 # Check if the provided tool contains a complete path. 5569 tool_specified="$BASH" 5570 tool_basename="${tool_specified##*/}" 5571 if test "x$tool_basename" = "x$tool_specified"; then 5572 # A command without a complete path is provided, search $PATH. 5573 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 5574 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 5575 # Extract the first word of "$tool_basename", so it can be a program name with args. 5576 set dummy $tool_basename; ac_word=$2 5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5578 $as_echo_n "checking for $ac_word... " >&6; } 5579 if ${ac_cv_path_BASH+:} false; then : 5580 $as_echo_n "(cached) " >&6 5581 else 5582 case $BASH in 5583 [\\/]* | ?:[\\/]*) 5584 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5585 ;; 5586 *) 5587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5588 for as_dir in $PATH 5589 do 5590 IFS=$as_save_IFS 5591 test -z "$as_dir" && as_dir=. 5592 for ac_exec_ext in '' $ac_executable_extensions; do 5593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5594 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5596 break 2 5597 fi 5598 done 5599 done 5600 IFS=$as_save_IFS 5601 5602 ;; 5603 esac 5604 fi 5605 BASH=$ac_cv_path_BASH 5606 if test -n "$BASH"; then 5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5608 $as_echo "$BASH" >&6; } 5609 else 5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5611 $as_echo "no" >&6; } 5612 fi 5613 5614 5615 if test "x$BASH" = x; then 5616 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5617 fi 5618 else 5619 # Otherwise we believe it is a complete path. Use it as it is. 5620 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 5621 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5623 $as_echo_n "checking for BASH... " >&6; } 5624 if test ! -x "$tool_specified"; then 5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5626 $as_echo "not found" >&6; } 5627 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 5628 fi 5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5630 $as_echo "$tool_specified" >&6; } 5631 fi 5632 fi 5633 fi 5634 5635 fi 5636 5637 5638 5639 if test "x$BASH" = x; then 5640 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 5641 fi 5642 5643 5644 5645 5646 5647 # Publish this variable in the help. 5648 5649 5650 if [ -z "${CAT+x}" ]; then 5651 # The variable is not set by user, try to locate tool using the code snippet 5652 for ac_prog in cat 5653 do 5654 # Extract the first word of "$ac_prog", so it can be a program name with args. 5655 set dummy $ac_prog; ac_word=$2 5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5657 $as_echo_n "checking for $ac_word... " >&6; } 5658 if ${ac_cv_path_CAT+:} false; then : 5659 $as_echo_n "(cached) " >&6 5660 else 5661 case $CAT in 5662 [\\/]* | ?:[\\/]*) 5663 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5664 ;; 5665 *) 5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5667 for as_dir in $PATH 5668 do 5669 IFS=$as_save_IFS 5670 test -z "$as_dir" && as_dir=. 5671 for ac_exec_ext in '' $ac_executable_extensions; do 5672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5673 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5675 break 2 5676 fi 5677 done 5678 done 5679 IFS=$as_save_IFS 5680 5681 ;; 5682 esac 5683 fi 5684 CAT=$ac_cv_path_CAT 5685 if test -n "$CAT"; then 5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5687 $as_echo "$CAT" >&6; } 5688 else 5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5690 $as_echo "no" >&6; } 5691 fi 5692 5693 5694 test -n "$CAT" && break 5695 done 5696 5697 else 5698 # The variable is set, but is it from the command line or the environment? 5699 5700 # Try to remove the string !CAT! from our list. 5701 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 5702 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5703 # If it failed, the variable was not from the command line. Ignore it, 5704 # but warn the user (except for BASH, which is always set by the calling BASH). 5705 if test "xCAT" != xBASH; then 5706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 5707 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 5708 fi 5709 # Try to locate tool using the code snippet 5710 for ac_prog in cat 5711 do 5712 # Extract the first word of "$ac_prog", so it can be a program name with args. 5713 set dummy $ac_prog; ac_word=$2 5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5715 $as_echo_n "checking for $ac_word... " >&6; } 5716 if ${ac_cv_path_CAT+:} false; then : 5717 $as_echo_n "(cached) " >&6 5718 else 5719 case $CAT in 5720 [\\/]* | ?:[\\/]*) 5721 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5722 ;; 5723 *) 5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5725 for as_dir in $PATH 5726 do 5727 IFS=$as_save_IFS 5728 test -z "$as_dir" && as_dir=. 5729 for ac_exec_ext in '' $ac_executable_extensions; do 5730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5731 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5733 break 2 5734 fi 5735 done 5736 done 5737 IFS=$as_save_IFS 5738 5739 ;; 5740 esac 5741 fi 5742 CAT=$ac_cv_path_CAT 5743 if test -n "$CAT"; then 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5745 $as_echo "$CAT" >&6; } 5746 else 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5748 $as_echo "no" >&6; } 5749 fi 5750 5751 5752 test -n "$CAT" && break 5753 done 5754 5755 else 5756 # If it succeeded, then it was overridden by the user. We will use it 5757 # for the tool. 5758 5759 # First remove it from the list of overridden variables, so we can test 5760 # for unknown variables in the end. 5761 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5762 5763 # Check if we try to supply an empty value 5764 if test "x$CAT" = x; then 5765 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5 5766 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;} 5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5768 $as_echo_n "checking for CAT... " >&6; } 5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5770 $as_echo "disabled" >&6; } 5771 else 5772 # Check if the provided tool contains a complete path. 5773 tool_specified="$CAT" 5774 tool_basename="${tool_specified##*/}" 5775 if test "x$tool_basename" = "x$tool_specified"; then 5776 # A command without a complete path is provided, search $PATH. 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 5778 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 5779 # Extract the first word of "$tool_basename", so it can be a program name with args. 5780 set dummy $tool_basename; ac_word=$2 5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5782 $as_echo_n "checking for $ac_word... " >&6; } 5783 if ${ac_cv_path_CAT+:} false; then : 5784 $as_echo_n "(cached) " >&6 5785 else 5786 case $CAT in 5787 [\\/]* | ?:[\\/]*) 5788 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5789 ;; 5790 *) 5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5792 for as_dir in $PATH 5793 do 5794 IFS=$as_save_IFS 5795 test -z "$as_dir" && as_dir=. 5796 for ac_exec_ext in '' $ac_executable_extensions; do 5797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5798 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5800 break 2 5801 fi 5802 done 5803 done 5804 IFS=$as_save_IFS 5805 5806 ;; 5807 esac 5808 fi 5809 CAT=$ac_cv_path_CAT 5810 if test -n "$CAT"; then 5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5812 $as_echo "$CAT" >&6; } 5813 else 5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5815 $as_echo "no" >&6; } 5816 fi 5817 5818 5819 if test "x$CAT" = x; then 5820 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5821 fi 5822 else 5823 # Otherwise we believe it is a complete path. Use it as it is. 5824 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 5825 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5827 $as_echo_n "checking for CAT... " >&6; } 5828 if test ! -x "$tool_specified"; then 5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5830 $as_echo "not found" >&6; } 5831 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 5832 fi 5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5834 $as_echo "$tool_specified" >&6; } 5835 fi 5836 fi 5837 fi 5838 5839 fi 5840 5841 5842 5843 if test "x$CAT" = x; then 5844 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 5845 fi 5846 5847 5848 5849 5850 5851 # Publish this variable in the help. 5852 5853 5854 if [ -z "${CHMOD+x}" ]; then 5855 # The variable is not set by user, try to locate tool using the code snippet 5856 for ac_prog in chmod 5857 do 5858 # Extract the first word of "$ac_prog", so it can be a program name with args. 5859 set dummy $ac_prog; ac_word=$2 5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5861 $as_echo_n "checking for $ac_word... " >&6; } 5862 if ${ac_cv_path_CHMOD+:} false; then : 5863 $as_echo_n "(cached) " >&6 5864 else 5865 case $CHMOD in 5866 [\\/]* | ?:[\\/]*) 5867 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5868 ;; 5869 *) 5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5871 for as_dir in $PATH 5872 do 5873 IFS=$as_save_IFS 5874 test -z "$as_dir" && as_dir=. 5875 for ac_exec_ext in '' $ac_executable_extensions; do 5876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5877 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5879 break 2 5880 fi 5881 done 5882 done 5883 IFS=$as_save_IFS 5884 5885 ;; 5886 esac 5887 fi 5888 CHMOD=$ac_cv_path_CHMOD 5889 if test -n "$CHMOD"; then 5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5891 $as_echo "$CHMOD" >&6; } 5892 else 5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5894 $as_echo "no" >&6; } 5895 fi 5896 5897 5898 test -n "$CHMOD" && break 5899 done 5900 5901 else 5902 # The variable is set, but is it from the command line or the environment? 5903 5904 # Try to remove the string !CHMOD! from our list. 5905 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5906 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5907 # If it failed, the variable was not from the command line. Ignore it, 5908 # but warn the user (except for BASH, which is always set by the calling BASH). 5909 if test "xCHMOD" != xBASH; then 5910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5911 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5912 fi 5913 # Try to locate tool using the code snippet 5914 for ac_prog in chmod 5915 do 5916 # Extract the first word of "$ac_prog", so it can be a program name with args. 5917 set dummy $ac_prog; ac_word=$2 5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5919 $as_echo_n "checking for $ac_word... " >&6; } 5920 if ${ac_cv_path_CHMOD+:} false; then : 5921 $as_echo_n "(cached) " >&6 5922 else 5923 case $CHMOD in 5924 [\\/]* | ?:[\\/]*) 5925 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5926 ;; 5927 *) 5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5929 for as_dir in $PATH 5930 do 5931 IFS=$as_save_IFS 5932 test -z "$as_dir" && as_dir=. 5933 for ac_exec_ext in '' $ac_executable_extensions; do 5934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5935 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5937 break 2 5938 fi 5939 done 5940 done 5941 IFS=$as_save_IFS 5942 5943 ;; 5944 esac 5945 fi 5946 CHMOD=$ac_cv_path_CHMOD 5947 if test -n "$CHMOD"; then 5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5949 $as_echo "$CHMOD" >&6; } 5950 else 5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5952 $as_echo "no" >&6; } 5953 fi 5954 5955 5956 test -n "$CHMOD" && break 5957 done 5958 5959 else 5960 # If it succeeded, then it was overridden by the user. We will use it 5961 # for the tool. 5962 5963 # First remove it from the list of overridden variables, so we can test 5964 # for unknown variables in the end. 5965 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5966 5967 # Check if we try to supply an empty value 5968 if test "x$CHMOD" = x; then 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5 5970 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;} 5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5972 $as_echo_n "checking for CHMOD... " >&6; } 5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5974 $as_echo "disabled" >&6; } 5975 else 5976 # Check if the provided tool contains a complete path. 5977 tool_specified="$CHMOD" 5978 tool_basename="${tool_specified##*/}" 5979 if test "x$tool_basename" = "x$tool_specified"; then 5980 # A command without a complete path is provided, search $PATH. 5981 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5982 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5983 # Extract the first word of "$tool_basename", so it can be a program name with args. 5984 set dummy $tool_basename; ac_word=$2 5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5986 $as_echo_n "checking for $ac_word... " >&6; } 5987 if ${ac_cv_path_CHMOD+:} false; then : 5988 $as_echo_n "(cached) " >&6 5989 else 5990 case $CHMOD in 5991 [\\/]* | ?:[\\/]*) 5992 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5993 ;; 5994 *) 5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5996 for as_dir in $PATH 5997 do 5998 IFS=$as_save_IFS 5999 test -z "$as_dir" && as_dir=. 6000 for ac_exec_ext in '' $ac_executable_extensions; do 6001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6002 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 6003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6004 break 2 6005 fi 6006 done 6007 done 6008 IFS=$as_save_IFS 6009 6010 ;; 6011 esac 6012 fi 6013 CHMOD=$ac_cv_path_CHMOD 6014 if test -n "$CHMOD"; then 6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 6016 $as_echo "$CHMOD" >&6; } 6017 else 6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6019 $as_echo "no" >&6; } 6020 fi 6021 6022 6023 if test "x$CHMOD" = x; then 6024 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6025 fi 6026 else 6027 # Otherwise we believe it is a complete path. Use it as it is. 6028 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 6029 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 6031 $as_echo_n "checking for CHMOD... " >&6; } 6032 if test ! -x "$tool_specified"; then 6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6034 $as_echo "not found" >&6; } 6035 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 6036 fi 6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6038 $as_echo "$tool_specified" >&6; } 6039 fi 6040 fi 6041 fi 6042 6043 fi 6044 6045 6046 6047 if test "x$CHMOD" = x; then 6048 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 6049 fi 6050 6051 6052 6053 6054 6055 # Publish this variable in the help. 6056 6057 6058 if [ -z "${CMP+x}" ]; then 6059 # The variable is not set by user, try to locate tool using the code snippet 6060 for ac_prog in cmp 6061 do 6062 # Extract the first word of "$ac_prog", so it can be a program name with args. 6063 set dummy $ac_prog; ac_word=$2 6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6065 $as_echo_n "checking for $ac_word... " >&6; } 6066 if ${ac_cv_path_CMP+:} false; then : 6067 $as_echo_n "(cached) " >&6 6068 else 6069 case $CMP in 6070 [\\/]* | ?:[\\/]*) 6071 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6072 ;; 6073 *) 6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6075 for as_dir in $PATH 6076 do 6077 IFS=$as_save_IFS 6078 test -z "$as_dir" && as_dir=. 6079 for ac_exec_ext in '' $ac_executable_extensions; do 6080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6081 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6083 break 2 6084 fi 6085 done 6086 done 6087 IFS=$as_save_IFS 6088 6089 ;; 6090 esac 6091 fi 6092 CMP=$ac_cv_path_CMP 6093 if test -n "$CMP"; then 6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6095 $as_echo "$CMP" >&6; } 6096 else 6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6098 $as_echo "no" >&6; } 6099 fi 6100 6101 6102 test -n "$CMP" && break 6103 done 6104 6105 else 6106 # The variable is set, but is it from the command line or the environment? 6107 6108 # Try to remove the string !CMP! from our list. 6109 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 6110 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6111 # If it failed, the variable was not from the command line. Ignore it, 6112 # but warn the user (except for BASH, which is always set by the calling BASH). 6113 if test "xCMP" != xBASH; then 6114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 6115 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 6116 fi 6117 # Try to locate tool using the code snippet 6118 for ac_prog in cmp 6119 do 6120 # Extract the first word of "$ac_prog", so it can be a program name with args. 6121 set dummy $ac_prog; ac_word=$2 6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6123 $as_echo_n "checking for $ac_word... " >&6; } 6124 if ${ac_cv_path_CMP+:} false; then : 6125 $as_echo_n "(cached) " >&6 6126 else 6127 case $CMP in 6128 [\\/]* | ?:[\\/]*) 6129 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6130 ;; 6131 *) 6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6133 for as_dir in $PATH 6134 do 6135 IFS=$as_save_IFS 6136 test -z "$as_dir" && as_dir=. 6137 for ac_exec_ext in '' $ac_executable_extensions; do 6138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6139 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6141 break 2 6142 fi 6143 done 6144 done 6145 IFS=$as_save_IFS 6146 6147 ;; 6148 esac 6149 fi 6150 CMP=$ac_cv_path_CMP 6151 if test -n "$CMP"; then 6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6153 $as_echo "$CMP" >&6; } 6154 else 6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6156 $as_echo "no" >&6; } 6157 fi 6158 6159 6160 test -n "$CMP" && break 6161 done 6162 6163 else 6164 # If it succeeded, then it was overridden by the user. We will use it 6165 # for the tool. 6166 6167 # First remove it from the list of overridden variables, so we can test 6168 # for unknown variables in the end. 6169 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6170 6171 # Check if we try to supply an empty value 6172 if test "x$CMP" = x; then 6173 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5 6174 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;} 6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 6176 $as_echo_n "checking for CMP... " >&6; } 6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6178 $as_echo "disabled" >&6; } 6179 else 6180 # Check if the provided tool contains a complete path. 6181 tool_specified="$CMP" 6182 tool_basename="${tool_specified##*/}" 6183 if test "x$tool_basename" = "x$tool_specified"; then 6184 # A command without a complete path is provided, search $PATH. 6185 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 6186 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 6187 # Extract the first word of "$tool_basename", so it can be a program name with args. 6188 set dummy $tool_basename; ac_word=$2 6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6190 $as_echo_n "checking for $ac_word... " >&6; } 6191 if ${ac_cv_path_CMP+:} false; then : 6192 $as_echo_n "(cached) " >&6 6193 else 6194 case $CMP in 6195 [\\/]* | ?:[\\/]*) 6196 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6197 ;; 6198 *) 6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6200 for as_dir in $PATH 6201 do 6202 IFS=$as_save_IFS 6203 test -z "$as_dir" && as_dir=. 6204 for ac_exec_ext in '' $ac_executable_extensions; do 6205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6206 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6208 break 2 6209 fi 6210 done 6211 done 6212 IFS=$as_save_IFS 6213 6214 ;; 6215 esac 6216 fi 6217 CMP=$ac_cv_path_CMP 6218 if test -n "$CMP"; then 6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6220 $as_echo "$CMP" >&6; } 6221 else 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6223 $as_echo "no" >&6; } 6224 fi 6225 6226 6227 if test "x$CMP" = x; then 6228 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6229 fi 6230 else 6231 # Otherwise we believe it is a complete path. Use it as it is. 6232 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 6233 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 6235 $as_echo_n "checking for CMP... " >&6; } 6236 if test ! -x "$tool_specified"; then 6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6238 $as_echo "not found" >&6; } 6239 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 6240 fi 6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6242 $as_echo "$tool_specified" >&6; } 6243 fi 6244 fi 6245 fi 6246 6247 fi 6248 6249 6250 6251 if test "x$CMP" = x; then 6252 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 6253 fi 6254 6255 6256 6257 6258 6259 # Publish this variable in the help. 6260 6261 6262 if [ -z "${COMM+x}" ]; then 6263 # The variable is not set by user, try to locate tool using the code snippet 6264 for ac_prog in comm 6265 do 6266 # Extract the first word of "$ac_prog", so it can be a program name with args. 6267 set dummy $ac_prog; ac_word=$2 6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6269 $as_echo_n "checking for $ac_word... " >&6; } 6270 if ${ac_cv_path_COMM+:} false; then : 6271 $as_echo_n "(cached) " >&6 6272 else 6273 case $COMM in 6274 [\\/]* | ?:[\\/]*) 6275 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6276 ;; 6277 *) 6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6279 for as_dir in $PATH 6280 do 6281 IFS=$as_save_IFS 6282 test -z "$as_dir" && as_dir=. 6283 for ac_exec_ext in '' $ac_executable_extensions; do 6284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6285 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6287 break 2 6288 fi 6289 done 6290 done 6291 IFS=$as_save_IFS 6292 6293 ;; 6294 esac 6295 fi 6296 COMM=$ac_cv_path_COMM 6297 if test -n "$COMM"; then 6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6299 $as_echo "$COMM" >&6; } 6300 else 6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6302 $as_echo "no" >&6; } 6303 fi 6304 6305 6306 test -n "$COMM" && break 6307 done 6308 6309 else 6310 # The variable is set, but is it from the command line or the environment? 6311 6312 # Try to remove the string !COMM! from our list. 6313 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 6314 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6315 # If it failed, the variable was not from the command line. Ignore it, 6316 # but warn the user (except for BASH, which is always set by the calling BASH). 6317 if test "xCOMM" != xBASH; then 6318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 6319 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 6320 fi 6321 # Try to locate tool using the code snippet 6322 for ac_prog in comm 6323 do 6324 # Extract the first word of "$ac_prog", so it can be a program name with args. 6325 set dummy $ac_prog; ac_word=$2 6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6327 $as_echo_n "checking for $ac_word... " >&6; } 6328 if ${ac_cv_path_COMM+:} false; then : 6329 $as_echo_n "(cached) " >&6 6330 else 6331 case $COMM in 6332 [\\/]* | ?:[\\/]*) 6333 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6334 ;; 6335 *) 6336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6337 for as_dir in $PATH 6338 do 6339 IFS=$as_save_IFS 6340 test -z "$as_dir" && as_dir=. 6341 for ac_exec_ext in '' $ac_executable_extensions; do 6342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6343 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6345 break 2 6346 fi 6347 done 6348 done 6349 IFS=$as_save_IFS 6350 6351 ;; 6352 esac 6353 fi 6354 COMM=$ac_cv_path_COMM 6355 if test -n "$COMM"; then 6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6357 $as_echo "$COMM" >&6; } 6358 else 6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6360 $as_echo "no" >&6; } 6361 fi 6362 6363 6364 test -n "$COMM" && break 6365 done 6366 6367 else 6368 # If it succeeded, then it was overridden by the user. We will use it 6369 # for the tool. 6370 6371 # First remove it from the list of overridden variables, so we can test 6372 # for unknown variables in the end. 6373 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6374 6375 # Check if we try to supply an empty value 6376 if test "x$COMM" = x; then 6377 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5 6378 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;} 6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6380 $as_echo_n "checking for COMM... " >&6; } 6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6382 $as_echo "disabled" >&6; } 6383 else 6384 # Check if the provided tool contains a complete path. 6385 tool_specified="$COMM" 6386 tool_basename="${tool_specified##*/}" 6387 if test "x$tool_basename" = "x$tool_specified"; then 6388 # A command without a complete path is provided, search $PATH. 6389 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 6390 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 6391 # Extract the first word of "$tool_basename", so it can be a program name with args. 6392 set dummy $tool_basename; ac_word=$2 6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6394 $as_echo_n "checking for $ac_word... " >&6; } 6395 if ${ac_cv_path_COMM+:} false; then : 6396 $as_echo_n "(cached) " >&6 6397 else 6398 case $COMM in 6399 [\\/]* | ?:[\\/]*) 6400 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6401 ;; 6402 *) 6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6404 for as_dir in $PATH 6405 do 6406 IFS=$as_save_IFS 6407 test -z "$as_dir" && as_dir=. 6408 for ac_exec_ext in '' $ac_executable_extensions; do 6409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6410 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6412 break 2 6413 fi 6414 done 6415 done 6416 IFS=$as_save_IFS 6417 6418 ;; 6419 esac 6420 fi 6421 COMM=$ac_cv_path_COMM 6422 if test -n "$COMM"; then 6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6424 $as_echo "$COMM" >&6; } 6425 else 6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6427 $as_echo "no" >&6; } 6428 fi 6429 6430 6431 if test "x$COMM" = x; then 6432 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6433 fi 6434 else 6435 # Otherwise we believe it is a complete path. Use it as it is. 6436 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 6437 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6439 $as_echo_n "checking for COMM... " >&6; } 6440 if test ! -x "$tool_specified"; then 6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6442 $as_echo "not found" >&6; } 6443 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 6444 fi 6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6446 $as_echo "$tool_specified" >&6; } 6447 fi 6448 fi 6449 fi 6450 6451 fi 6452 6453 6454 6455 if test "x$COMM" = x; then 6456 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 6457 fi 6458 6459 6460 6461 6462 6463 # Publish this variable in the help. 6464 6465 6466 if [ -z "${CP+x}" ]; then 6467 # The variable is not set by user, try to locate tool using the code snippet 6468 for ac_prog in cp 6469 do 6470 # Extract the first word of "$ac_prog", so it can be a program name with args. 6471 set dummy $ac_prog; ac_word=$2 6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6473 $as_echo_n "checking for $ac_word... " >&6; } 6474 if ${ac_cv_path_CP+:} false; then : 6475 $as_echo_n "(cached) " >&6 6476 else 6477 case $CP in 6478 [\\/]* | ?:[\\/]*) 6479 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6480 ;; 6481 *) 6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6483 for as_dir in $PATH 6484 do 6485 IFS=$as_save_IFS 6486 test -z "$as_dir" && as_dir=. 6487 for ac_exec_ext in '' $ac_executable_extensions; do 6488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6489 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6491 break 2 6492 fi 6493 done 6494 done 6495 IFS=$as_save_IFS 6496 6497 ;; 6498 esac 6499 fi 6500 CP=$ac_cv_path_CP 6501 if test -n "$CP"; then 6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6503 $as_echo "$CP" >&6; } 6504 else 6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6506 $as_echo "no" >&6; } 6507 fi 6508 6509 6510 test -n "$CP" && break 6511 done 6512 6513 else 6514 # The variable is set, but is it from the command line or the environment? 6515 6516 # Try to remove the string !CP! from our list. 6517 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 6518 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6519 # If it failed, the variable was not from the command line. Ignore it, 6520 # but warn the user (except for BASH, which is always set by the calling BASH). 6521 if test "xCP" != xBASH; then 6522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 6523 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 6524 fi 6525 # Try to locate tool using the code snippet 6526 for ac_prog in cp 6527 do 6528 # Extract the first word of "$ac_prog", so it can be a program name with args. 6529 set dummy $ac_prog; ac_word=$2 6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6531 $as_echo_n "checking for $ac_word... " >&6; } 6532 if ${ac_cv_path_CP+:} false; then : 6533 $as_echo_n "(cached) " >&6 6534 else 6535 case $CP in 6536 [\\/]* | ?:[\\/]*) 6537 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6538 ;; 6539 *) 6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6541 for as_dir in $PATH 6542 do 6543 IFS=$as_save_IFS 6544 test -z "$as_dir" && as_dir=. 6545 for ac_exec_ext in '' $ac_executable_extensions; do 6546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6547 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6549 break 2 6550 fi 6551 done 6552 done 6553 IFS=$as_save_IFS 6554 6555 ;; 6556 esac 6557 fi 6558 CP=$ac_cv_path_CP 6559 if test -n "$CP"; then 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6561 $as_echo "$CP" >&6; } 6562 else 6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6564 $as_echo "no" >&6; } 6565 fi 6566 6567 6568 test -n "$CP" && break 6569 done 6570 6571 else 6572 # If it succeeded, then it was overridden by the user. We will use it 6573 # for the tool. 6574 6575 # First remove it from the list of overridden variables, so we can test 6576 # for unknown variables in the end. 6577 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6578 6579 # Check if we try to supply an empty value 6580 if test "x$CP" = x; then 6581 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5 6582 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;} 6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6584 $as_echo_n "checking for CP... " >&6; } 6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6586 $as_echo "disabled" >&6; } 6587 else 6588 # Check if the provided tool contains a complete path. 6589 tool_specified="$CP" 6590 tool_basename="${tool_specified##*/}" 6591 if test "x$tool_basename" = "x$tool_specified"; then 6592 # A command without a complete path is provided, search $PATH. 6593 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 6594 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 6595 # Extract the first word of "$tool_basename", so it can be a program name with args. 6596 set dummy $tool_basename; ac_word=$2 6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6598 $as_echo_n "checking for $ac_word... " >&6; } 6599 if ${ac_cv_path_CP+:} false; then : 6600 $as_echo_n "(cached) " >&6 6601 else 6602 case $CP in 6603 [\\/]* | ?:[\\/]*) 6604 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6605 ;; 6606 *) 6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6608 for as_dir in $PATH 6609 do 6610 IFS=$as_save_IFS 6611 test -z "$as_dir" && as_dir=. 6612 for ac_exec_ext in '' $ac_executable_extensions; do 6613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6614 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6616 break 2 6617 fi 6618 done 6619 done 6620 IFS=$as_save_IFS 6621 6622 ;; 6623 esac 6624 fi 6625 CP=$ac_cv_path_CP 6626 if test -n "$CP"; then 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6628 $as_echo "$CP" >&6; } 6629 else 6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6631 $as_echo "no" >&6; } 6632 fi 6633 6634 6635 if test "x$CP" = x; then 6636 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6637 fi 6638 else 6639 # Otherwise we believe it is a complete path. Use it as it is. 6640 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 6641 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6643 $as_echo_n "checking for CP... " >&6; } 6644 if test ! -x "$tool_specified"; then 6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6646 $as_echo "not found" >&6; } 6647 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 6648 fi 6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6650 $as_echo "$tool_specified" >&6; } 6651 fi 6652 fi 6653 fi 6654 6655 fi 6656 6657 6658 6659 if test "x$CP" = x; then 6660 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 6661 fi 6662 6663 6664 6665 6666 6667 # Publish this variable in the help. 6668 6669 6670 if [ -z "${CUT+x}" ]; then 6671 # The variable is not set by user, try to locate tool using the code snippet 6672 for ac_prog in cut 6673 do 6674 # Extract the first word of "$ac_prog", so it can be a program name with args. 6675 set dummy $ac_prog; ac_word=$2 6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6677 $as_echo_n "checking for $ac_word... " >&6; } 6678 if ${ac_cv_path_CUT+:} false; then : 6679 $as_echo_n "(cached) " >&6 6680 else 6681 case $CUT in 6682 [\\/]* | ?:[\\/]*) 6683 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6684 ;; 6685 *) 6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6687 for as_dir in $PATH 6688 do 6689 IFS=$as_save_IFS 6690 test -z "$as_dir" && as_dir=. 6691 for ac_exec_ext in '' $ac_executable_extensions; do 6692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6693 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6695 break 2 6696 fi 6697 done 6698 done 6699 IFS=$as_save_IFS 6700 6701 ;; 6702 esac 6703 fi 6704 CUT=$ac_cv_path_CUT 6705 if test -n "$CUT"; then 6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6707 $as_echo "$CUT" >&6; } 6708 else 6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6710 $as_echo "no" >&6; } 6711 fi 6712 6713 6714 test -n "$CUT" && break 6715 done 6716 6717 else 6718 # The variable is set, but is it from the command line or the environment? 6719 6720 # Try to remove the string !CUT! from our list. 6721 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 6722 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6723 # If it failed, the variable was not from the command line. Ignore it, 6724 # but warn the user (except for BASH, which is always set by the calling BASH). 6725 if test "xCUT" != xBASH; then 6726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 6727 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 6728 fi 6729 # Try to locate tool using the code snippet 6730 for ac_prog in cut 6731 do 6732 # Extract the first word of "$ac_prog", so it can be a program name with args. 6733 set dummy $ac_prog; ac_word=$2 6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6735 $as_echo_n "checking for $ac_word... " >&6; } 6736 if ${ac_cv_path_CUT+:} false; then : 6737 $as_echo_n "(cached) " >&6 6738 else 6739 case $CUT in 6740 [\\/]* | ?:[\\/]*) 6741 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6742 ;; 6743 *) 6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6745 for as_dir in $PATH 6746 do 6747 IFS=$as_save_IFS 6748 test -z "$as_dir" && as_dir=. 6749 for ac_exec_ext in '' $ac_executable_extensions; do 6750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6751 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6753 break 2 6754 fi 6755 done 6756 done 6757 IFS=$as_save_IFS 6758 6759 ;; 6760 esac 6761 fi 6762 CUT=$ac_cv_path_CUT 6763 if test -n "$CUT"; then 6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6765 $as_echo "$CUT" >&6; } 6766 else 6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6768 $as_echo "no" >&6; } 6769 fi 6770 6771 6772 test -n "$CUT" && break 6773 done 6774 6775 else 6776 # If it succeeded, then it was overridden by the user. We will use it 6777 # for the tool. 6778 6779 # First remove it from the list of overridden variables, so we can test 6780 # for unknown variables in the end. 6781 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6782 6783 # Check if we try to supply an empty value 6784 if test "x$CUT" = x; then 6785 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5 6786 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;} 6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6788 $as_echo_n "checking for CUT... " >&6; } 6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6790 $as_echo "disabled" >&6; } 6791 else 6792 # Check if the provided tool contains a complete path. 6793 tool_specified="$CUT" 6794 tool_basename="${tool_specified##*/}" 6795 if test "x$tool_basename" = "x$tool_specified"; then 6796 # A command without a complete path is provided, search $PATH. 6797 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 6798 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 6799 # Extract the first word of "$tool_basename", so it can be a program name with args. 6800 set dummy $tool_basename; ac_word=$2 6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6802 $as_echo_n "checking for $ac_word... " >&6; } 6803 if ${ac_cv_path_CUT+:} false; then : 6804 $as_echo_n "(cached) " >&6 6805 else 6806 case $CUT in 6807 [\\/]* | ?:[\\/]*) 6808 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6809 ;; 6810 *) 6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6812 for as_dir in $PATH 6813 do 6814 IFS=$as_save_IFS 6815 test -z "$as_dir" && as_dir=. 6816 for ac_exec_ext in '' $ac_executable_extensions; do 6817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6818 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6820 break 2 6821 fi 6822 done 6823 done 6824 IFS=$as_save_IFS 6825 6826 ;; 6827 esac 6828 fi 6829 CUT=$ac_cv_path_CUT 6830 if test -n "$CUT"; then 6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6832 $as_echo "$CUT" >&6; } 6833 else 6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6835 $as_echo "no" >&6; } 6836 fi 6837 6838 6839 if test "x$CUT" = x; then 6840 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6841 fi 6842 else 6843 # Otherwise we believe it is a complete path. Use it as it is. 6844 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 6845 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6847 $as_echo_n "checking for CUT... " >&6; } 6848 if test ! -x "$tool_specified"; then 6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6850 $as_echo "not found" >&6; } 6851 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 6852 fi 6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6854 $as_echo "$tool_specified" >&6; } 6855 fi 6856 fi 6857 fi 6858 6859 fi 6860 6861 6862 6863 if test "x$CUT" = x; then 6864 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 6865 fi 6866 6867 6868 6869 6870 6871 # Publish this variable in the help. 6872 6873 6874 if [ -z "${DATE+x}" ]; then 6875 # The variable is not set by user, try to locate tool using the code snippet 6876 for ac_prog in date 6877 do 6878 # Extract the first word of "$ac_prog", so it can be a program name with args. 6879 set dummy $ac_prog; ac_word=$2 6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6881 $as_echo_n "checking for $ac_word... " >&6; } 6882 if ${ac_cv_path_DATE+:} false; then : 6883 $as_echo_n "(cached) " >&6 6884 else 6885 case $DATE in 6886 [\\/]* | ?:[\\/]*) 6887 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6888 ;; 6889 *) 6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6891 for as_dir in $PATH 6892 do 6893 IFS=$as_save_IFS 6894 test -z "$as_dir" && as_dir=. 6895 for ac_exec_ext in '' $ac_executable_extensions; do 6896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6897 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6899 break 2 6900 fi 6901 done 6902 done 6903 IFS=$as_save_IFS 6904 6905 ;; 6906 esac 6907 fi 6908 DATE=$ac_cv_path_DATE 6909 if test -n "$DATE"; then 6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6911 $as_echo "$DATE" >&6; } 6912 else 6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6914 $as_echo "no" >&6; } 6915 fi 6916 6917 6918 test -n "$DATE" && break 6919 done 6920 6921 else 6922 # The variable is set, but is it from the command line or the environment? 6923 6924 # Try to remove the string !DATE! from our list. 6925 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6926 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6927 # If it failed, the variable was not from the command line. Ignore it, 6928 # but warn the user (except for BASH, which is always set by the calling BASH). 6929 if test "xDATE" != xBASH; then 6930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6931 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6932 fi 6933 # Try to locate tool using the code snippet 6934 for ac_prog in date 6935 do 6936 # Extract the first word of "$ac_prog", so it can be a program name with args. 6937 set dummy $ac_prog; ac_word=$2 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6939 $as_echo_n "checking for $ac_word... " >&6; } 6940 if ${ac_cv_path_DATE+:} false; then : 6941 $as_echo_n "(cached) " >&6 6942 else 6943 case $DATE in 6944 [\\/]* | ?:[\\/]*) 6945 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6946 ;; 6947 *) 6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6949 for as_dir in $PATH 6950 do 6951 IFS=$as_save_IFS 6952 test -z "$as_dir" && as_dir=. 6953 for ac_exec_ext in '' $ac_executable_extensions; do 6954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6955 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6957 break 2 6958 fi 6959 done 6960 done 6961 IFS=$as_save_IFS 6962 6963 ;; 6964 esac 6965 fi 6966 DATE=$ac_cv_path_DATE 6967 if test -n "$DATE"; then 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6969 $as_echo "$DATE" >&6; } 6970 else 6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6972 $as_echo "no" >&6; } 6973 fi 6974 6975 6976 test -n "$DATE" && break 6977 done 6978 6979 else 6980 # If it succeeded, then it was overridden by the user. We will use it 6981 # for the tool. 6982 6983 # First remove it from the list of overridden variables, so we can test 6984 # for unknown variables in the end. 6985 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6986 6987 # Check if we try to supply an empty value 6988 if test "x$DATE" = x; then 6989 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5 6990 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;} 6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6992 $as_echo_n "checking for DATE... " >&6; } 6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6994 $as_echo "disabled" >&6; } 6995 else 6996 # Check if the provided tool contains a complete path. 6997 tool_specified="$DATE" 6998 tool_basename="${tool_specified##*/}" 6999 if test "x$tool_basename" = "x$tool_specified"; then 7000 # A command without a complete path is provided, search $PATH. 7001 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 7002 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 7003 # Extract the first word of "$tool_basename", so it can be a program name with args. 7004 set dummy $tool_basename; ac_word=$2 7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7006 $as_echo_n "checking for $ac_word... " >&6; } 7007 if ${ac_cv_path_DATE+:} false; then : 7008 $as_echo_n "(cached) " >&6 7009 else 7010 case $DATE in 7011 [\\/]* | ?:[\\/]*) 7012 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 7013 ;; 7014 *) 7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7016 for as_dir in $PATH 7017 do 7018 IFS=$as_save_IFS 7019 test -z "$as_dir" && as_dir=. 7020 for ac_exec_ext in '' $ac_executable_extensions; do 7021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7022 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 7023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7024 break 2 7025 fi 7026 done 7027 done 7028 IFS=$as_save_IFS 7029 7030 ;; 7031 esac 7032 fi 7033 DATE=$ac_cv_path_DATE 7034 if test -n "$DATE"; then 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 7036 $as_echo "$DATE" >&6; } 7037 else 7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7039 $as_echo "no" >&6; } 7040 fi 7041 7042 7043 if test "x$DATE" = x; then 7044 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7045 fi 7046 else 7047 # Otherwise we believe it is a complete path. Use it as it is. 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 7049 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 7051 $as_echo_n "checking for DATE... " >&6; } 7052 if test ! -x "$tool_specified"; then 7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7054 $as_echo "not found" >&6; } 7055 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 7056 fi 7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7058 $as_echo "$tool_specified" >&6; } 7059 fi 7060 fi 7061 fi 7062 7063 fi 7064 7065 7066 7067 if test "x$DATE" = x; then 7068 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 7069 fi 7070 7071 7072 7073 7074 7075 # Publish this variable in the help. 7076 7077 7078 if [ -z "${DIFF+x}" ]; then 7079 # The variable is not set by user, try to locate tool using the code snippet 7080 for ac_prog in gdiff diff 7081 do 7082 # Extract the first word of "$ac_prog", so it can be a program name with args. 7083 set dummy $ac_prog; ac_word=$2 7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7085 $as_echo_n "checking for $ac_word... " >&6; } 7086 if ${ac_cv_path_DIFF+:} false; then : 7087 $as_echo_n "(cached) " >&6 7088 else 7089 case $DIFF in 7090 [\\/]* | ?:[\\/]*) 7091 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7092 ;; 7093 *) 7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7095 for as_dir in $PATH 7096 do 7097 IFS=$as_save_IFS 7098 test -z "$as_dir" && as_dir=. 7099 for ac_exec_ext in '' $ac_executable_extensions; do 7100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7101 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7103 break 2 7104 fi 7105 done 7106 done 7107 IFS=$as_save_IFS 7108 7109 ;; 7110 esac 7111 fi 7112 DIFF=$ac_cv_path_DIFF 7113 if test -n "$DIFF"; then 7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7115 $as_echo "$DIFF" >&6; } 7116 else 7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7118 $as_echo "no" >&6; } 7119 fi 7120 7121 7122 test -n "$DIFF" && break 7123 done 7124 7125 else 7126 # The variable is set, but is it from the command line or the environment? 7127 7128 # Try to remove the string !DIFF! from our list. 7129 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 7130 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7131 # If it failed, the variable was not from the command line. Ignore it, 7132 # but warn the user (except for BASH, which is always set by the calling BASH). 7133 if test "xDIFF" != xBASH; then 7134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 7135 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 7136 fi 7137 # Try to locate tool using the code snippet 7138 for ac_prog in gdiff diff 7139 do 7140 # Extract the first word of "$ac_prog", so it can be a program name with args. 7141 set dummy $ac_prog; ac_word=$2 7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7143 $as_echo_n "checking for $ac_word... " >&6; } 7144 if ${ac_cv_path_DIFF+:} false; then : 7145 $as_echo_n "(cached) " >&6 7146 else 7147 case $DIFF in 7148 [\\/]* | ?:[\\/]*) 7149 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7150 ;; 7151 *) 7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7153 for as_dir in $PATH 7154 do 7155 IFS=$as_save_IFS 7156 test -z "$as_dir" && as_dir=. 7157 for ac_exec_ext in '' $ac_executable_extensions; do 7158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7159 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7161 break 2 7162 fi 7163 done 7164 done 7165 IFS=$as_save_IFS 7166 7167 ;; 7168 esac 7169 fi 7170 DIFF=$ac_cv_path_DIFF 7171 if test -n "$DIFF"; then 7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7173 $as_echo "$DIFF" >&6; } 7174 else 7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7176 $as_echo "no" >&6; } 7177 fi 7178 7179 7180 test -n "$DIFF" && break 7181 done 7182 7183 else 7184 # If it succeeded, then it was overridden by the user. We will use it 7185 # for the tool. 7186 7187 # First remove it from the list of overridden variables, so we can test 7188 # for unknown variables in the end. 7189 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7190 7191 # Check if we try to supply an empty value 7192 if test "x$DIFF" = x; then 7193 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5 7194 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;} 7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 7196 $as_echo_n "checking for DIFF... " >&6; } 7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7198 $as_echo "disabled" >&6; } 7199 else 7200 # Check if the provided tool contains a complete path. 7201 tool_specified="$DIFF" 7202 tool_basename="${tool_specified##*/}" 7203 if test "x$tool_basename" = "x$tool_specified"; then 7204 # A command without a complete path is provided, search $PATH. 7205 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 7206 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 7207 # Extract the first word of "$tool_basename", so it can be a program name with args. 7208 set dummy $tool_basename; ac_word=$2 7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7210 $as_echo_n "checking for $ac_word... " >&6; } 7211 if ${ac_cv_path_DIFF+:} false; then : 7212 $as_echo_n "(cached) " >&6 7213 else 7214 case $DIFF in 7215 [\\/]* | ?:[\\/]*) 7216 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7217 ;; 7218 *) 7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7220 for as_dir in $PATH 7221 do 7222 IFS=$as_save_IFS 7223 test -z "$as_dir" && as_dir=. 7224 for ac_exec_ext in '' $ac_executable_extensions; do 7225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7226 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7228 break 2 7229 fi 7230 done 7231 done 7232 IFS=$as_save_IFS 7233 7234 ;; 7235 esac 7236 fi 7237 DIFF=$ac_cv_path_DIFF 7238 if test -n "$DIFF"; then 7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7240 $as_echo "$DIFF" >&6; } 7241 else 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7243 $as_echo "no" >&6; } 7244 fi 7245 7246 7247 if test "x$DIFF" = x; then 7248 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7249 fi 7250 else 7251 # Otherwise we believe it is a complete path. Use it as it is. 7252 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 7253 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 7255 $as_echo_n "checking for DIFF... " >&6; } 7256 if test ! -x "$tool_specified"; then 7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7258 $as_echo "not found" >&6; } 7259 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 7260 fi 7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7262 $as_echo "$tool_specified" >&6; } 7263 fi 7264 fi 7265 fi 7266 7267 fi 7268 7269 7270 7271 if test "x$DIFF" = x; then 7272 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 7273 fi 7274 7275 7276 7277 7278 7279 # Publish this variable in the help. 7280 7281 7282 if [ -z "${DIRNAME+x}" ]; then 7283 # The variable is not set by user, try to locate tool using the code snippet 7284 for ac_prog in dirname 7285 do 7286 # Extract the first word of "$ac_prog", so it can be a program name with args. 7287 set dummy $ac_prog; ac_word=$2 7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7289 $as_echo_n "checking for $ac_word... " >&6; } 7290 if ${ac_cv_path_DIRNAME+:} false; then : 7291 $as_echo_n "(cached) " >&6 7292 else 7293 case $DIRNAME in 7294 [\\/]* | ?:[\\/]*) 7295 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7296 ;; 7297 *) 7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7299 for as_dir in $PATH 7300 do 7301 IFS=$as_save_IFS 7302 test -z "$as_dir" && as_dir=. 7303 for ac_exec_ext in '' $ac_executable_extensions; do 7304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7305 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7307 break 2 7308 fi 7309 done 7310 done 7311 IFS=$as_save_IFS 7312 7313 ;; 7314 esac 7315 fi 7316 DIRNAME=$ac_cv_path_DIRNAME 7317 if test -n "$DIRNAME"; then 7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7319 $as_echo "$DIRNAME" >&6; } 7320 else 7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7322 $as_echo "no" >&6; } 7323 fi 7324 7325 7326 test -n "$DIRNAME" && break 7327 done 7328 7329 else 7330 # The variable is set, but is it from the command line or the environment? 7331 7332 # Try to remove the string !DIRNAME! from our list. 7333 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 7334 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7335 # If it failed, the variable was not from the command line. Ignore it, 7336 # but warn the user (except for BASH, which is always set by the calling BASH). 7337 if test "xDIRNAME" != xBASH; then 7338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 7339 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 7340 fi 7341 # Try to locate tool using the code snippet 7342 for ac_prog in dirname 7343 do 7344 # Extract the first word of "$ac_prog", so it can be a program name with args. 7345 set dummy $ac_prog; ac_word=$2 7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7347 $as_echo_n "checking for $ac_word... " >&6; } 7348 if ${ac_cv_path_DIRNAME+:} false; then : 7349 $as_echo_n "(cached) " >&6 7350 else 7351 case $DIRNAME in 7352 [\\/]* | ?:[\\/]*) 7353 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7354 ;; 7355 *) 7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7357 for as_dir in $PATH 7358 do 7359 IFS=$as_save_IFS 7360 test -z "$as_dir" && as_dir=. 7361 for ac_exec_ext in '' $ac_executable_extensions; do 7362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7363 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7365 break 2 7366 fi 7367 done 7368 done 7369 IFS=$as_save_IFS 7370 7371 ;; 7372 esac 7373 fi 7374 DIRNAME=$ac_cv_path_DIRNAME 7375 if test -n "$DIRNAME"; then 7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7377 $as_echo "$DIRNAME" >&6; } 7378 else 7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7380 $as_echo "no" >&6; } 7381 fi 7382 7383 7384 test -n "$DIRNAME" && break 7385 done 7386 7387 else 7388 # If it succeeded, then it was overridden by the user. We will use it 7389 # for the tool. 7390 7391 # First remove it from the list of overridden variables, so we can test 7392 # for unknown variables in the end. 7393 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7394 7395 # Check if we try to supply an empty value 7396 if test "x$DIRNAME" = x; then 7397 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5 7398 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;} 7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7400 $as_echo_n "checking for DIRNAME... " >&6; } 7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7402 $as_echo "disabled" >&6; } 7403 else 7404 # Check if the provided tool contains a complete path. 7405 tool_specified="$DIRNAME" 7406 tool_basename="${tool_specified##*/}" 7407 if test "x$tool_basename" = "x$tool_specified"; then 7408 # A command without a complete path is provided, search $PATH. 7409 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 7410 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 7411 # Extract the first word of "$tool_basename", so it can be a program name with args. 7412 set dummy $tool_basename; ac_word=$2 7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7414 $as_echo_n "checking for $ac_word... " >&6; } 7415 if ${ac_cv_path_DIRNAME+:} false; then : 7416 $as_echo_n "(cached) " >&6 7417 else 7418 case $DIRNAME in 7419 [\\/]* | ?:[\\/]*) 7420 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7421 ;; 7422 *) 7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7424 for as_dir in $PATH 7425 do 7426 IFS=$as_save_IFS 7427 test -z "$as_dir" && as_dir=. 7428 for ac_exec_ext in '' $ac_executable_extensions; do 7429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7430 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7432 break 2 7433 fi 7434 done 7435 done 7436 IFS=$as_save_IFS 7437 7438 ;; 7439 esac 7440 fi 7441 DIRNAME=$ac_cv_path_DIRNAME 7442 if test -n "$DIRNAME"; then 7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7444 $as_echo "$DIRNAME" >&6; } 7445 else 7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7447 $as_echo "no" >&6; } 7448 fi 7449 7450 7451 if test "x$DIRNAME" = x; then 7452 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7453 fi 7454 else 7455 # Otherwise we believe it is a complete path. Use it as it is. 7456 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 7457 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7459 $as_echo_n "checking for DIRNAME... " >&6; } 7460 if test ! -x "$tool_specified"; then 7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7462 $as_echo "not found" >&6; } 7463 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 7464 fi 7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7466 $as_echo "$tool_specified" >&6; } 7467 fi 7468 fi 7469 fi 7470 7471 fi 7472 7473 7474 7475 if test "x$DIRNAME" = x; then 7476 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 7477 fi 7478 7479 7480 7481 7482 7483 # Publish this variable in the help. 7484 7485 7486 if [ -z "${ECHO+x}" ]; then 7487 # The variable is not set by user, try to locate tool using the code snippet 7488 for ac_prog in echo 7489 do 7490 # Extract the first word of "$ac_prog", so it can be a program name with args. 7491 set dummy $ac_prog; ac_word=$2 7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7493 $as_echo_n "checking for $ac_word... " >&6; } 7494 if ${ac_cv_path_ECHO+:} false; then : 7495 $as_echo_n "(cached) " >&6 7496 else 7497 case $ECHO in 7498 [\\/]* | ?:[\\/]*) 7499 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7500 ;; 7501 *) 7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7503 for as_dir in $PATH 7504 do 7505 IFS=$as_save_IFS 7506 test -z "$as_dir" && as_dir=. 7507 for ac_exec_ext in '' $ac_executable_extensions; do 7508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7509 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7511 break 2 7512 fi 7513 done 7514 done 7515 IFS=$as_save_IFS 7516 7517 ;; 7518 esac 7519 fi 7520 ECHO=$ac_cv_path_ECHO 7521 if test -n "$ECHO"; then 7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7523 $as_echo "$ECHO" >&6; } 7524 else 7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7526 $as_echo "no" >&6; } 7527 fi 7528 7529 7530 test -n "$ECHO" && break 7531 done 7532 7533 else 7534 # The variable is set, but is it from the command line or the environment? 7535 7536 # Try to remove the string !ECHO! from our list. 7537 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 7538 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7539 # If it failed, the variable was not from the command line. Ignore it, 7540 # but warn the user (except for BASH, which is always set by the calling BASH). 7541 if test "xECHO" != xBASH; then 7542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 7543 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 7544 fi 7545 # Try to locate tool using the code snippet 7546 for ac_prog in echo 7547 do 7548 # Extract the first word of "$ac_prog", so it can be a program name with args. 7549 set dummy $ac_prog; ac_word=$2 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7551 $as_echo_n "checking for $ac_word... " >&6; } 7552 if ${ac_cv_path_ECHO+:} false; then : 7553 $as_echo_n "(cached) " >&6 7554 else 7555 case $ECHO in 7556 [\\/]* | ?:[\\/]*) 7557 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7558 ;; 7559 *) 7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7561 for as_dir in $PATH 7562 do 7563 IFS=$as_save_IFS 7564 test -z "$as_dir" && as_dir=. 7565 for ac_exec_ext in '' $ac_executable_extensions; do 7566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7567 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7569 break 2 7570 fi 7571 done 7572 done 7573 IFS=$as_save_IFS 7574 7575 ;; 7576 esac 7577 fi 7578 ECHO=$ac_cv_path_ECHO 7579 if test -n "$ECHO"; then 7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7581 $as_echo "$ECHO" >&6; } 7582 else 7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7584 $as_echo "no" >&6; } 7585 fi 7586 7587 7588 test -n "$ECHO" && break 7589 done 7590 7591 else 7592 # If it succeeded, then it was overridden by the user. We will use it 7593 # for the tool. 7594 7595 # First remove it from the list of overridden variables, so we can test 7596 # for unknown variables in the end. 7597 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7598 7599 # Check if we try to supply an empty value 7600 if test "x$ECHO" = x; then 7601 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5 7602 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;} 7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7604 $as_echo_n "checking for ECHO... " >&6; } 7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7606 $as_echo "disabled" >&6; } 7607 else 7608 # Check if the provided tool contains a complete path. 7609 tool_specified="$ECHO" 7610 tool_basename="${tool_specified##*/}" 7611 if test "x$tool_basename" = "x$tool_specified"; then 7612 # A command without a complete path is provided, search $PATH. 7613 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 7614 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 7615 # Extract the first word of "$tool_basename", so it can be a program name with args. 7616 set dummy $tool_basename; ac_word=$2 7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7618 $as_echo_n "checking for $ac_word... " >&6; } 7619 if ${ac_cv_path_ECHO+:} false; then : 7620 $as_echo_n "(cached) " >&6 7621 else 7622 case $ECHO in 7623 [\\/]* | ?:[\\/]*) 7624 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7625 ;; 7626 *) 7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7628 for as_dir in $PATH 7629 do 7630 IFS=$as_save_IFS 7631 test -z "$as_dir" && as_dir=. 7632 for ac_exec_ext in '' $ac_executable_extensions; do 7633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7634 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7636 break 2 7637 fi 7638 done 7639 done 7640 IFS=$as_save_IFS 7641 7642 ;; 7643 esac 7644 fi 7645 ECHO=$ac_cv_path_ECHO 7646 if test -n "$ECHO"; then 7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7648 $as_echo "$ECHO" >&6; } 7649 else 7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7651 $as_echo "no" >&6; } 7652 fi 7653 7654 7655 if test "x$ECHO" = x; then 7656 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7657 fi 7658 else 7659 # Otherwise we believe it is a complete path. Use it as it is. 7660 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 7661 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7663 $as_echo_n "checking for ECHO... " >&6; } 7664 if test ! -x "$tool_specified"; then 7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7666 $as_echo "not found" >&6; } 7667 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 7668 fi 7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7670 $as_echo "$tool_specified" >&6; } 7671 fi 7672 fi 7673 fi 7674 7675 fi 7676 7677 7678 7679 if test "x$ECHO" = x; then 7680 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 7681 fi 7682 7683 7684 7685 7686 7687 # Publish this variable in the help. 7688 7689 7690 if [ -z "${EXPR+x}" ]; then 7691 # The variable is not set by user, try to locate tool using the code snippet 7692 for ac_prog in expr 7693 do 7694 # Extract the first word of "$ac_prog", so it can be a program name with args. 7695 set dummy $ac_prog; ac_word=$2 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7697 $as_echo_n "checking for $ac_word... " >&6; } 7698 if ${ac_cv_path_EXPR+:} false; then : 7699 $as_echo_n "(cached) " >&6 7700 else 7701 case $EXPR in 7702 [\\/]* | ?:[\\/]*) 7703 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7704 ;; 7705 *) 7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7707 for as_dir in $PATH 7708 do 7709 IFS=$as_save_IFS 7710 test -z "$as_dir" && as_dir=. 7711 for ac_exec_ext in '' $ac_executable_extensions; do 7712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7713 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7715 break 2 7716 fi 7717 done 7718 done 7719 IFS=$as_save_IFS 7720 7721 ;; 7722 esac 7723 fi 7724 EXPR=$ac_cv_path_EXPR 7725 if test -n "$EXPR"; then 7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7727 $as_echo "$EXPR" >&6; } 7728 else 7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7730 $as_echo "no" >&6; } 7731 fi 7732 7733 7734 test -n "$EXPR" && break 7735 done 7736 7737 else 7738 # The variable is set, but is it from the command line or the environment? 7739 7740 # Try to remove the string !EXPR! from our list. 7741 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 7742 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7743 # If it failed, the variable was not from the command line. Ignore it, 7744 # but warn the user (except for BASH, which is always set by the calling BASH). 7745 if test "xEXPR" != xBASH; then 7746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 7747 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 7748 fi 7749 # Try to locate tool using the code snippet 7750 for ac_prog in expr 7751 do 7752 # Extract the first word of "$ac_prog", so it can be a program name with args. 7753 set dummy $ac_prog; ac_word=$2 7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7755 $as_echo_n "checking for $ac_word... " >&6; } 7756 if ${ac_cv_path_EXPR+:} false; then : 7757 $as_echo_n "(cached) " >&6 7758 else 7759 case $EXPR in 7760 [\\/]* | ?:[\\/]*) 7761 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7762 ;; 7763 *) 7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7765 for as_dir in $PATH 7766 do 7767 IFS=$as_save_IFS 7768 test -z "$as_dir" && as_dir=. 7769 for ac_exec_ext in '' $ac_executable_extensions; do 7770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7771 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7773 break 2 7774 fi 7775 done 7776 done 7777 IFS=$as_save_IFS 7778 7779 ;; 7780 esac 7781 fi 7782 EXPR=$ac_cv_path_EXPR 7783 if test -n "$EXPR"; then 7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7785 $as_echo "$EXPR" >&6; } 7786 else 7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7788 $as_echo "no" >&6; } 7789 fi 7790 7791 7792 test -n "$EXPR" && break 7793 done 7794 7795 else 7796 # If it succeeded, then it was overridden by the user. We will use it 7797 # for the tool. 7798 7799 # First remove it from the list of overridden variables, so we can test 7800 # for unknown variables in the end. 7801 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7802 7803 # Check if we try to supply an empty value 7804 if test "x$EXPR" = x; then 7805 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5 7806 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;} 7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7808 $as_echo_n "checking for EXPR... " >&6; } 7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7810 $as_echo "disabled" >&6; } 7811 else 7812 # Check if the provided tool contains a complete path. 7813 tool_specified="$EXPR" 7814 tool_basename="${tool_specified##*/}" 7815 if test "x$tool_basename" = "x$tool_specified"; then 7816 # A command without a complete path is provided, search $PATH. 7817 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 7818 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 7819 # Extract the first word of "$tool_basename", so it can be a program name with args. 7820 set dummy $tool_basename; ac_word=$2 7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7822 $as_echo_n "checking for $ac_word... " >&6; } 7823 if ${ac_cv_path_EXPR+:} false; then : 7824 $as_echo_n "(cached) " >&6 7825 else 7826 case $EXPR in 7827 [\\/]* | ?:[\\/]*) 7828 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7829 ;; 7830 *) 7831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7832 for as_dir in $PATH 7833 do 7834 IFS=$as_save_IFS 7835 test -z "$as_dir" && as_dir=. 7836 for ac_exec_ext in '' $ac_executable_extensions; do 7837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7838 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7840 break 2 7841 fi 7842 done 7843 done 7844 IFS=$as_save_IFS 7845 7846 ;; 7847 esac 7848 fi 7849 EXPR=$ac_cv_path_EXPR 7850 if test -n "$EXPR"; then 7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7852 $as_echo "$EXPR" >&6; } 7853 else 7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7855 $as_echo "no" >&6; } 7856 fi 7857 7858 7859 if test "x$EXPR" = x; then 7860 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7861 fi 7862 else 7863 # Otherwise we believe it is a complete path. Use it as it is. 7864 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 7865 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7867 $as_echo_n "checking for EXPR... " >&6; } 7868 if test ! -x "$tool_specified"; then 7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7870 $as_echo "not found" >&6; } 7871 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 7872 fi 7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7874 $as_echo "$tool_specified" >&6; } 7875 fi 7876 fi 7877 fi 7878 7879 fi 7880 7881 7882 7883 if test "x$EXPR" = x; then 7884 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 7885 fi 7886 7887 7888 7889 7890 7891 # Publish this variable in the help. 7892 7893 7894 if [ -z "${FILE+x}" ]; then 7895 # The variable is not set by user, try to locate tool using the code snippet 7896 for ac_prog in file 7897 do 7898 # Extract the first word of "$ac_prog", so it can be a program name with args. 7899 set dummy $ac_prog; ac_word=$2 7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7901 $as_echo_n "checking for $ac_word... " >&6; } 7902 if ${ac_cv_path_FILE+:} false; then : 7903 $as_echo_n "(cached) " >&6 7904 else 7905 case $FILE in 7906 [\\/]* | ?:[\\/]*) 7907 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7908 ;; 7909 *) 7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7911 for as_dir in $PATH 7912 do 7913 IFS=$as_save_IFS 7914 test -z "$as_dir" && as_dir=. 7915 for ac_exec_ext in '' $ac_executable_extensions; do 7916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7917 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7919 break 2 7920 fi 7921 done 7922 done 7923 IFS=$as_save_IFS 7924 7925 ;; 7926 esac 7927 fi 7928 FILE=$ac_cv_path_FILE 7929 if test -n "$FILE"; then 7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7931 $as_echo "$FILE" >&6; } 7932 else 7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7934 $as_echo "no" >&6; } 7935 fi 7936 7937 7938 test -n "$FILE" && break 7939 done 7940 7941 else 7942 # The variable is set, but is it from the command line or the environment? 7943 7944 # Try to remove the string !FILE! from our list. 7945 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 7946 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7947 # If it failed, the variable was not from the command line. Ignore it, 7948 # but warn the user (except for BASH, which is always set by the calling BASH). 7949 if test "xFILE" != xBASH; then 7950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 7951 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 7952 fi 7953 # Try to locate tool using the code snippet 7954 for ac_prog in file 7955 do 7956 # Extract the first word of "$ac_prog", so it can be a program name with args. 7957 set dummy $ac_prog; ac_word=$2 7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7959 $as_echo_n "checking for $ac_word... " >&6; } 7960 if ${ac_cv_path_FILE+:} false; then : 7961 $as_echo_n "(cached) " >&6 7962 else 7963 case $FILE in 7964 [\\/]* | ?:[\\/]*) 7965 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7966 ;; 7967 *) 7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7969 for as_dir in $PATH 7970 do 7971 IFS=$as_save_IFS 7972 test -z "$as_dir" && as_dir=. 7973 for ac_exec_ext in '' $ac_executable_extensions; do 7974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7975 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7977 break 2 7978 fi 7979 done 7980 done 7981 IFS=$as_save_IFS 7982 7983 ;; 7984 esac 7985 fi 7986 FILE=$ac_cv_path_FILE 7987 if test -n "$FILE"; then 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7989 $as_echo "$FILE" >&6; } 7990 else 7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7992 $as_echo "no" >&6; } 7993 fi 7994 7995 7996 test -n "$FILE" && break 7997 done 7998 7999 else 8000 # If it succeeded, then it was overridden by the user. We will use it 8001 # for the tool. 8002 8003 # First remove it from the list of overridden variables, so we can test 8004 # for unknown variables in the end. 8005 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8006 8007 # Check if we try to supply an empty value 8008 if test "x$FILE" = x; then 8009 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5 8010 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;} 8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 8012 $as_echo_n "checking for FILE... " >&6; } 8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8014 $as_echo "disabled" >&6; } 8015 else 8016 # Check if the provided tool contains a complete path. 8017 tool_specified="$FILE" 8018 tool_basename="${tool_specified##*/}" 8019 if test "x$tool_basename" = "x$tool_specified"; then 8020 # A command without a complete path is provided, search $PATH. 8021 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 8022 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 8023 # Extract the first word of "$tool_basename", so it can be a program name with args. 8024 set dummy $tool_basename; ac_word=$2 8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8026 $as_echo_n "checking for $ac_word... " >&6; } 8027 if ${ac_cv_path_FILE+:} false; then : 8028 $as_echo_n "(cached) " >&6 8029 else 8030 case $FILE in 8031 [\\/]* | ?:[\\/]*) 8032 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 8033 ;; 8034 *) 8035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8036 for as_dir in $PATH 8037 do 8038 IFS=$as_save_IFS 8039 test -z "$as_dir" && as_dir=. 8040 for ac_exec_ext in '' $ac_executable_extensions; do 8041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8042 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 8043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8044 break 2 8045 fi 8046 done 8047 done 8048 IFS=$as_save_IFS 8049 8050 ;; 8051 esac 8052 fi 8053 FILE=$ac_cv_path_FILE 8054 if test -n "$FILE"; then 8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 8056 $as_echo "$FILE" >&6; } 8057 else 8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8059 $as_echo "no" >&6; } 8060 fi 8061 8062 8063 if test "x$FILE" = x; then 8064 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8065 fi 8066 else 8067 # Otherwise we believe it is a complete path. Use it as it is. 8068 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 8069 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 8071 $as_echo_n "checking for FILE... " >&6; } 8072 if test ! -x "$tool_specified"; then 8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8074 $as_echo "not found" >&6; } 8075 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 8076 fi 8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8078 $as_echo "$tool_specified" >&6; } 8079 fi 8080 fi 8081 fi 8082 8083 fi 8084 8085 8086 8087 if test "x$FILE" = x; then 8088 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 8089 fi 8090 8091 8092 8093 8094 8095 # Publish this variable in the help. 8096 8097 8098 if [ -z "${FIND+x}" ]; then 8099 # The variable is not set by user, try to locate tool using the code snippet 8100 for ac_prog in find 8101 do 8102 # Extract the first word of "$ac_prog", so it can be a program name with args. 8103 set dummy $ac_prog; ac_word=$2 8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8105 $as_echo_n "checking for $ac_word... " >&6; } 8106 if ${ac_cv_path_FIND+:} false; then : 8107 $as_echo_n "(cached) " >&6 8108 else 8109 case $FIND in 8110 [\\/]* | ?:[\\/]*) 8111 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8112 ;; 8113 *) 8114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8115 for as_dir in $PATH 8116 do 8117 IFS=$as_save_IFS 8118 test -z "$as_dir" && as_dir=. 8119 for ac_exec_ext in '' $ac_executable_extensions; do 8120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8121 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8123 break 2 8124 fi 8125 done 8126 done 8127 IFS=$as_save_IFS 8128 8129 ;; 8130 esac 8131 fi 8132 FIND=$ac_cv_path_FIND 8133 if test -n "$FIND"; then 8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8135 $as_echo "$FIND" >&6; } 8136 else 8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8138 $as_echo "no" >&6; } 8139 fi 8140 8141 8142 test -n "$FIND" && break 8143 done 8144 8145 else 8146 # The variable is set, but is it from the command line or the environment? 8147 8148 # Try to remove the string !FIND! from our list. 8149 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 8150 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8151 # If it failed, the variable was not from the command line. Ignore it, 8152 # but warn the user (except for BASH, which is always set by the calling BASH). 8153 if test "xFIND" != xBASH; then 8154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 8155 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 8156 fi 8157 # Try to locate tool using the code snippet 8158 for ac_prog in find 8159 do 8160 # Extract the first word of "$ac_prog", so it can be a program name with args. 8161 set dummy $ac_prog; ac_word=$2 8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8163 $as_echo_n "checking for $ac_word... " >&6; } 8164 if ${ac_cv_path_FIND+:} false; then : 8165 $as_echo_n "(cached) " >&6 8166 else 8167 case $FIND in 8168 [\\/]* | ?:[\\/]*) 8169 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8170 ;; 8171 *) 8172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8173 for as_dir in $PATH 8174 do 8175 IFS=$as_save_IFS 8176 test -z "$as_dir" && as_dir=. 8177 for ac_exec_ext in '' $ac_executable_extensions; do 8178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8179 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8181 break 2 8182 fi 8183 done 8184 done 8185 IFS=$as_save_IFS 8186 8187 ;; 8188 esac 8189 fi 8190 FIND=$ac_cv_path_FIND 8191 if test -n "$FIND"; then 8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8193 $as_echo "$FIND" >&6; } 8194 else 8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8196 $as_echo "no" >&6; } 8197 fi 8198 8199 8200 test -n "$FIND" && break 8201 done 8202 8203 else 8204 # If it succeeded, then it was overridden by the user. We will use it 8205 # for the tool. 8206 8207 # First remove it from the list of overridden variables, so we can test 8208 # for unknown variables in the end. 8209 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8210 8211 # Check if we try to supply an empty value 8212 if test "x$FIND" = x; then 8213 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5 8214 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;} 8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 8216 $as_echo_n "checking for FIND... " >&6; } 8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8218 $as_echo "disabled" >&6; } 8219 else 8220 # Check if the provided tool contains a complete path. 8221 tool_specified="$FIND" 8222 tool_basename="${tool_specified##*/}" 8223 if test "x$tool_basename" = "x$tool_specified"; then 8224 # A command without a complete path is provided, search $PATH. 8225 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 8226 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 8227 # Extract the first word of "$tool_basename", so it can be a program name with args. 8228 set dummy $tool_basename; ac_word=$2 8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8230 $as_echo_n "checking for $ac_word... " >&6; } 8231 if ${ac_cv_path_FIND+:} false; then : 8232 $as_echo_n "(cached) " >&6 8233 else 8234 case $FIND in 8235 [\\/]* | ?:[\\/]*) 8236 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8237 ;; 8238 *) 8239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8240 for as_dir in $PATH 8241 do 8242 IFS=$as_save_IFS 8243 test -z "$as_dir" && as_dir=. 8244 for ac_exec_ext in '' $ac_executable_extensions; do 8245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8246 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8248 break 2 8249 fi 8250 done 8251 done 8252 IFS=$as_save_IFS 8253 8254 ;; 8255 esac 8256 fi 8257 FIND=$ac_cv_path_FIND 8258 if test -n "$FIND"; then 8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8260 $as_echo "$FIND" >&6; } 8261 else 8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8263 $as_echo "no" >&6; } 8264 fi 8265 8266 8267 if test "x$FIND" = x; then 8268 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8269 fi 8270 else 8271 # Otherwise we believe it is a complete path. Use it as it is. 8272 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 8273 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 8275 $as_echo_n "checking for FIND... " >&6; } 8276 if test ! -x "$tool_specified"; then 8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8278 $as_echo "not found" >&6; } 8279 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 8280 fi 8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8282 $as_echo "$tool_specified" >&6; } 8283 fi 8284 fi 8285 fi 8286 8287 fi 8288 8289 8290 8291 if test "x$FIND" = x; then 8292 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 8293 fi 8294 8295 8296 8297 8298 8299 # Publish this variable in the help. 8300 8301 8302 if [ -z "${HEAD+x}" ]; then 8303 # The variable is not set by user, try to locate tool using the code snippet 8304 for ac_prog in head 8305 do 8306 # Extract the first word of "$ac_prog", so it can be a program name with args. 8307 set dummy $ac_prog; ac_word=$2 8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8309 $as_echo_n "checking for $ac_word... " >&6; } 8310 if ${ac_cv_path_HEAD+:} false; then : 8311 $as_echo_n "(cached) " >&6 8312 else 8313 case $HEAD in 8314 [\\/]* | ?:[\\/]*) 8315 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8316 ;; 8317 *) 8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8319 for as_dir in $PATH 8320 do 8321 IFS=$as_save_IFS 8322 test -z "$as_dir" && as_dir=. 8323 for ac_exec_ext in '' $ac_executable_extensions; do 8324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8325 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8327 break 2 8328 fi 8329 done 8330 done 8331 IFS=$as_save_IFS 8332 8333 ;; 8334 esac 8335 fi 8336 HEAD=$ac_cv_path_HEAD 8337 if test -n "$HEAD"; then 8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8339 $as_echo "$HEAD" >&6; } 8340 else 8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8342 $as_echo "no" >&6; } 8343 fi 8344 8345 8346 test -n "$HEAD" && break 8347 done 8348 8349 else 8350 # The variable is set, but is it from the command line or the environment? 8351 8352 # Try to remove the string !HEAD! from our list. 8353 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 8354 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8355 # If it failed, the variable was not from the command line. Ignore it, 8356 # but warn the user (except for BASH, which is always set by the calling BASH). 8357 if test "xHEAD" != xBASH; then 8358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 8359 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 8360 fi 8361 # Try to locate tool using the code snippet 8362 for ac_prog in head 8363 do 8364 # Extract the first word of "$ac_prog", so it can be a program name with args. 8365 set dummy $ac_prog; ac_word=$2 8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8367 $as_echo_n "checking for $ac_word... " >&6; } 8368 if ${ac_cv_path_HEAD+:} false; then : 8369 $as_echo_n "(cached) " >&6 8370 else 8371 case $HEAD in 8372 [\\/]* | ?:[\\/]*) 8373 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8374 ;; 8375 *) 8376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8377 for as_dir in $PATH 8378 do 8379 IFS=$as_save_IFS 8380 test -z "$as_dir" && as_dir=. 8381 for ac_exec_ext in '' $ac_executable_extensions; do 8382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8383 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8385 break 2 8386 fi 8387 done 8388 done 8389 IFS=$as_save_IFS 8390 8391 ;; 8392 esac 8393 fi 8394 HEAD=$ac_cv_path_HEAD 8395 if test -n "$HEAD"; then 8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8397 $as_echo "$HEAD" >&6; } 8398 else 8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8400 $as_echo "no" >&6; } 8401 fi 8402 8403 8404 test -n "$HEAD" && break 8405 done 8406 8407 else 8408 # If it succeeded, then it was overridden by the user. We will use it 8409 # for the tool. 8410 8411 # First remove it from the list of overridden variables, so we can test 8412 # for unknown variables in the end. 8413 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8414 8415 # Check if we try to supply an empty value 8416 if test "x$HEAD" = x; then 8417 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5 8418 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;} 8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8420 $as_echo_n "checking for HEAD... " >&6; } 8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8422 $as_echo "disabled" >&6; } 8423 else 8424 # Check if the provided tool contains a complete path. 8425 tool_specified="$HEAD" 8426 tool_basename="${tool_specified##*/}" 8427 if test "x$tool_basename" = "x$tool_specified"; then 8428 # A command without a complete path is provided, search $PATH. 8429 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 8430 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 8431 # Extract the first word of "$tool_basename", so it can be a program name with args. 8432 set dummy $tool_basename; ac_word=$2 8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8434 $as_echo_n "checking for $ac_word... " >&6; } 8435 if ${ac_cv_path_HEAD+:} false; then : 8436 $as_echo_n "(cached) " >&6 8437 else 8438 case $HEAD in 8439 [\\/]* | ?:[\\/]*) 8440 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8441 ;; 8442 *) 8443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8444 for as_dir in $PATH 8445 do 8446 IFS=$as_save_IFS 8447 test -z "$as_dir" && as_dir=. 8448 for ac_exec_ext in '' $ac_executable_extensions; do 8449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8450 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8452 break 2 8453 fi 8454 done 8455 done 8456 IFS=$as_save_IFS 8457 8458 ;; 8459 esac 8460 fi 8461 HEAD=$ac_cv_path_HEAD 8462 if test -n "$HEAD"; then 8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8464 $as_echo "$HEAD" >&6; } 8465 else 8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8467 $as_echo "no" >&6; } 8468 fi 8469 8470 8471 if test "x$HEAD" = x; then 8472 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8473 fi 8474 else 8475 # Otherwise we believe it is a complete path. Use it as it is. 8476 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 8477 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8479 $as_echo_n "checking for HEAD... " >&6; } 8480 if test ! -x "$tool_specified"; then 8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8482 $as_echo "not found" >&6; } 8483 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 8484 fi 8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8486 $as_echo "$tool_specified" >&6; } 8487 fi 8488 fi 8489 fi 8490 8491 fi 8492 8493 8494 8495 if test "x$HEAD" = x; then 8496 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 8497 fi 8498 8499 8500 8501 8502 8503 # Publish this variable in the help. 8504 8505 8506 if [ -z "${GUNZIP+x}" ]; then 8507 # The variable is not set by user, try to locate tool using the code snippet 8508 for ac_prog in gunzip 8509 do 8510 # Extract the first word of "$ac_prog", so it can be a program name with args. 8511 set dummy $ac_prog; ac_word=$2 8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8513 $as_echo_n "checking for $ac_word... " >&6; } 8514 if ${ac_cv_path_GUNZIP+:} false; then : 8515 $as_echo_n "(cached) " >&6 8516 else 8517 case $GUNZIP in 8518 [\\/]* | ?:[\\/]*) 8519 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8520 ;; 8521 *) 8522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8523 for as_dir in $PATH 8524 do 8525 IFS=$as_save_IFS 8526 test -z "$as_dir" && as_dir=. 8527 for ac_exec_ext in '' $ac_executable_extensions; do 8528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8529 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8531 break 2 8532 fi 8533 done 8534 done 8535 IFS=$as_save_IFS 8536 8537 ;; 8538 esac 8539 fi 8540 GUNZIP=$ac_cv_path_GUNZIP 8541 if test -n "$GUNZIP"; then 8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8543 $as_echo "$GUNZIP" >&6; } 8544 else 8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8546 $as_echo "no" >&6; } 8547 fi 8548 8549 8550 test -n "$GUNZIP" && break 8551 done 8552 8553 else 8554 # The variable is set, but is it from the command line or the environment? 8555 8556 # Try to remove the string !GUNZIP! from our list. 8557 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GUNZIP!/} 8558 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8559 # If it failed, the variable was not from the command line. Ignore it, 8560 # but warn the user (except for BASH, which is always set by the calling BASH). 8561 if test "xGUNZIP" != xBASH; then 8562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&5 8563 $as_echo "$as_me: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&2;} 8564 fi 8565 # Try to locate tool using the code snippet 8566 for ac_prog in gunzip 8567 do 8568 # Extract the first word of "$ac_prog", so it can be a program name with args. 8569 set dummy $ac_prog; ac_word=$2 8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8571 $as_echo_n "checking for $ac_word... " >&6; } 8572 if ${ac_cv_path_GUNZIP+:} false; then : 8573 $as_echo_n "(cached) " >&6 8574 else 8575 case $GUNZIP in 8576 [\\/]* | ?:[\\/]*) 8577 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8578 ;; 8579 *) 8580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8581 for as_dir in $PATH 8582 do 8583 IFS=$as_save_IFS 8584 test -z "$as_dir" && as_dir=. 8585 for ac_exec_ext in '' $ac_executable_extensions; do 8586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8587 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8589 break 2 8590 fi 8591 done 8592 done 8593 IFS=$as_save_IFS 8594 8595 ;; 8596 esac 8597 fi 8598 GUNZIP=$ac_cv_path_GUNZIP 8599 if test -n "$GUNZIP"; then 8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8601 $as_echo "$GUNZIP" >&6; } 8602 else 8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8604 $as_echo "no" >&6; } 8605 fi 8606 8607 8608 test -n "$GUNZIP" && break 8609 done 8610 8611 else 8612 # If it succeeded, then it was overridden by the user. We will use it 8613 # for the tool. 8614 8615 # First remove it from the list of overridden variables, so we can test 8616 # for unknown variables in the end. 8617 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8618 8619 # Check if we try to supply an empty value 8620 if test "x$GUNZIP" = x; then 8621 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GUNZIP= (no value)" >&5 8622 $as_echo "$as_me: Setting user supplied tool GUNZIP= (no value)" >&6;} 8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5 8624 $as_echo_n "checking for GUNZIP... " >&6; } 8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8626 $as_echo "disabled" >&6; } 8627 else 8628 # Check if the provided tool contains a complete path. 8629 tool_specified="$GUNZIP" 8630 tool_basename="${tool_specified##*/}" 8631 if test "x$tool_basename" = "x$tool_specified"; then 8632 # A command without a complete path is provided, search $PATH. 8633 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GUNZIP=$tool_basename" >&5 8634 $as_echo "$as_me: Will search for user supplied tool GUNZIP=$tool_basename" >&6;} 8635 # Extract the first word of "$tool_basename", so it can be a program name with args. 8636 set dummy $tool_basename; ac_word=$2 8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8638 $as_echo_n "checking for $ac_word... " >&6; } 8639 if ${ac_cv_path_GUNZIP+:} false; then : 8640 $as_echo_n "(cached) " >&6 8641 else 8642 case $GUNZIP in 8643 [\\/]* | ?:[\\/]*) 8644 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8645 ;; 8646 *) 8647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8648 for as_dir in $PATH 8649 do 8650 IFS=$as_save_IFS 8651 test -z "$as_dir" && as_dir=. 8652 for ac_exec_ext in '' $ac_executable_extensions; do 8653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8654 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8656 break 2 8657 fi 8658 done 8659 done 8660 IFS=$as_save_IFS 8661 8662 ;; 8663 esac 8664 fi 8665 GUNZIP=$ac_cv_path_GUNZIP 8666 if test -n "$GUNZIP"; then 8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8668 $as_echo "$GUNZIP" >&6; } 8669 else 8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8671 $as_echo "no" >&6; } 8672 fi 8673 8674 8675 if test "x$GUNZIP" = x; then 8676 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8677 fi 8678 else 8679 # Otherwise we believe it is a complete path. Use it as it is. 8680 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GUNZIP=$tool_specified" >&5 8681 $as_echo "$as_me: Will use user supplied tool GUNZIP=$tool_specified" >&6;} 8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5 8683 $as_echo_n "checking for GUNZIP... " >&6; } 8684 if test ! -x "$tool_specified"; then 8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8686 $as_echo "not found" >&6; } 8687 as_fn_error $? "User supplied tool GUNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 8688 fi 8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8690 $as_echo "$tool_specified" >&6; } 8691 fi 8692 fi 8693 fi 8694 8695 fi 8696 8697 8698 8699 if test "x$GUNZIP" = x; then 8700 as_fn_error $? "Could not find required tool for GUNZIP" "$LINENO" 5 8701 fi 8702 8703 8704 8705 8706 8707 # Publish this variable in the help. 8708 8709 8710 if [ -z "${GZIP+x}" ]; then 8711 # The variable is not set by user, try to locate tool using the code snippet 8712 for ac_prog in pigz gzip 8713 do 8714 # Extract the first word of "$ac_prog", so it can be a program name with args. 8715 set dummy $ac_prog; ac_word=$2 8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8717 $as_echo_n "checking for $ac_word... " >&6; } 8718 if ${ac_cv_path_GZIP+:} false; then : 8719 $as_echo_n "(cached) " >&6 8720 else 8721 case $GZIP in 8722 [\\/]* | ?:[\\/]*) 8723 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8724 ;; 8725 *) 8726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8727 for as_dir in $PATH 8728 do 8729 IFS=$as_save_IFS 8730 test -z "$as_dir" && as_dir=. 8731 for ac_exec_ext in '' $ac_executable_extensions; do 8732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8733 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8735 break 2 8736 fi 8737 done 8738 done 8739 IFS=$as_save_IFS 8740 8741 ;; 8742 esac 8743 fi 8744 GZIP=$ac_cv_path_GZIP 8745 if test -n "$GZIP"; then 8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8747 $as_echo "$GZIP" >&6; } 8748 else 8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8750 $as_echo "no" >&6; } 8751 fi 8752 8753 8754 test -n "$GZIP" && break 8755 done 8756 8757 else 8758 # The variable is set, but is it from the command line or the environment? 8759 8760 # Try to remove the string !GZIP! from our list. 8761 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GZIP!/} 8762 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8763 # If it failed, the variable was not from the command line. Ignore it, 8764 # but warn the user (except for BASH, which is always set by the calling BASH). 8765 if test "xGZIP" != xBASH; then 8766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&5 8767 $as_echo "$as_me: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&2;} 8768 fi 8769 # Try to locate tool using the code snippet 8770 for ac_prog in pigz gzip 8771 do 8772 # Extract the first word of "$ac_prog", so it can be a program name with args. 8773 set dummy $ac_prog; ac_word=$2 8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8775 $as_echo_n "checking for $ac_word... " >&6; } 8776 if ${ac_cv_path_GZIP+:} false; then : 8777 $as_echo_n "(cached) " >&6 8778 else 8779 case $GZIP in 8780 [\\/]* | ?:[\\/]*) 8781 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8782 ;; 8783 *) 8784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8785 for as_dir in $PATH 8786 do 8787 IFS=$as_save_IFS 8788 test -z "$as_dir" && as_dir=. 8789 for ac_exec_ext in '' $ac_executable_extensions; do 8790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8791 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8793 break 2 8794 fi 8795 done 8796 done 8797 IFS=$as_save_IFS 8798 8799 ;; 8800 esac 8801 fi 8802 GZIP=$ac_cv_path_GZIP 8803 if test -n "$GZIP"; then 8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8805 $as_echo "$GZIP" >&6; } 8806 else 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8808 $as_echo "no" >&6; } 8809 fi 8810 8811 8812 test -n "$GZIP" && break 8813 done 8814 8815 else 8816 # If it succeeded, then it was overridden by the user. We will use it 8817 # for the tool. 8818 8819 # First remove it from the list of overridden variables, so we can test 8820 # for unknown variables in the end. 8821 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8822 8823 # Check if we try to supply an empty value 8824 if test "x$GZIP" = x; then 8825 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GZIP= (no value)" >&5 8826 $as_echo "$as_me: Setting user supplied tool GZIP= (no value)" >&6;} 8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5 8828 $as_echo_n "checking for GZIP... " >&6; } 8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8830 $as_echo "disabled" >&6; } 8831 else 8832 # Check if the provided tool contains a complete path. 8833 tool_specified="$GZIP" 8834 tool_basename="${tool_specified##*/}" 8835 if test "x$tool_basename" = "x$tool_specified"; then 8836 # A command without a complete path is provided, search $PATH. 8837 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GZIP=$tool_basename" >&5 8838 $as_echo "$as_me: Will search for user supplied tool GZIP=$tool_basename" >&6;} 8839 # Extract the first word of "$tool_basename", so it can be a program name with args. 8840 set dummy $tool_basename; ac_word=$2 8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8842 $as_echo_n "checking for $ac_word... " >&6; } 8843 if ${ac_cv_path_GZIP+:} false; then : 8844 $as_echo_n "(cached) " >&6 8845 else 8846 case $GZIP in 8847 [\\/]* | ?:[\\/]*) 8848 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8849 ;; 8850 *) 8851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8852 for as_dir in $PATH 8853 do 8854 IFS=$as_save_IFS 8855 test -z "$as_dir" && as_dir=. 8856 for ac_exec_ext in '' $ac_executable_extensions; do 8857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8858 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8860 break 2 8861 fi 8862 done 8863 done 8864 IFS=$as_save_IFS 8865 8866 ;; 8867 esac 8868 fi 8869 GZIP=$ac_cv_path_GZIP 8870 if test -n "$GZIP"; then 8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8872 $as_echo "$GZIP" >&6; } 8873 else 8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8875 $as_echo "no" >&6; } 8876 fi 8877 8878 8879 if test "x$GZIP" = x; then 8880 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8881 fi 8882 else 8883 # Otherwise we believe it is a complete path. Use it as it is. 8884 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GZIP=$tool_specified" >&5 8885 $as_echo "$as_me: Will use user supplied tool GZIP=$tool_specified" >&6;} 8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5 8887 $as_echo_n "checking for GZIP... " >&6; } 8888 if test ! -x "$tool_specified"; then 8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8890 $as_echo "not found" >&6; } 8891 as_fn_error $? "User supplied tool GZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 8892 fi 8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8894 $as_echo "$tool_specified" >&6; } 8895 fi 8896 fi 8897 fi 8898 8899 fi 8900 8901 8902 8903 if test "x$GZIP" = x; then 8904 as_fn_error $? "Could not find required tool for GZIP" "$LINENO" 5 8905 fi 8906 8907 8908 8909 8910 8911 # Publish this variable in the help. 8912 8913 8914 if [ -z "${LN+x}" ]; then 8915 # The variable is not set by user, try to locate tool using the code snippet 8916 for ac_prog in ln 8917 do 8918 # Extract the first word of "$ac_prog", so it can be a program name with args. 8919 set dummy $ac_prog; ac_word=$2 8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8921 $as_echo_n "checking for $ac_word... " >&6; } 8922 if ${ac_cv_path_LN+:} false; then : 8923 $as_echo_n "(cached) " >&6 8924 else 8925 case $LN in 8926 [\\/]* | ?:[\\/]*) 8927 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8928 ;; 8929 *) 8930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8931 for as_dir in $PATH 8932 do 8933 IFS=$as_save_IFS 8934 test -z "$as_dir" && as_dir=. 8935 for ac_exec_ext in '' $ac_executable_extensions; do 8936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8937 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8939 break 2 8940 fi 8941 done 8942 done 8943 IFS=$as_save_IFS 8944 8945 ;; 8946 esac 8947 fi 8948 LN=$ac_cv_path_LN 8949 if test -n "$LN"; then 8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8951 $as_echo "$LN" >&6; } 8952 else 8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8954 $as_echo "no" >&6; } 8955 fi 8956 8957 8958 test -n "$LN" && break 8959 done 8960 8961 else 8962 # The variable is set, but is it from the command line or the environment? 8963 8964 # Try to remove the string !LN! from our list. 8965 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 8966 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8967 # If it failed, the variable was not from the command line. Ignore it, 8968 # but warn the user (except for BASH, which is always set by the calling BASH). 8969 if test "xLN" != xBASH; then 8970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 8971 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 8972 fi 8973 # Try to locate tool using the code snippet 8974 for ac_prog in ln 8975 do 8976 # Extract the first word of "$ac_prog", so it can be a program name with args. 8977 set dummy $ac_prog; ac_word=$2 8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8979 $as_echo_n "checking for $ac_word... " >&6; } 8980 if ${ac_cv_path_LN+:} false; then : 8981 $as_echo_n "(cached) " >&6 8982 else 8983 case $LN in 8984 [\\/]* | ?:[\\/]*) 8985 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8986 ;; 8987 *) 8988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8989 for as_dir in $PATH 8990 do 8991 IFS=$as_save_IFS 8992 test -z "$as_dir" && as_dir=. 8993 for ac_exec_ext in '' $ac_executable_extensions; do 8994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8995 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8997 break 2 8998 fi 8999 done 9000 done 9001 IFS=$as_save_IFS 9002 9003 ;; 9004 esac 9005 fi 9006 LN=$ac_cv_path_LN 9007 if test -n "$LN"; then 9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 9009 $as_echo "$LN" >&6; } 9010 else 9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9012 $as_echo "no" >&6; } 9013 fi 9014 9015 9016 test -n "$LN" && break 9017 done 9018 9019 else 9020 # If it succeeded, then it was overridden by the user. We will use it 9021 # for the tool. 9022 9023 # First remove it from the list of overridden variables, so we can test 9024 # for unknown variables in the end. 9025 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9026 9027 # Check if we try to supply an empty value 9028 if test "x$LN" = x; then 9029 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5 9030 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;} 9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 9032 $as_echo_n "checking for LN... " >&6; } 9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9034 $as_echo "disabled" >&6; } 9035 else 9036 # Check if the provided tool contains a complete path. 9037 tool_specified="$LN" 9038 tool_basename="${tool_specified##*/}" 9039 if test "x$tool_basename" = "x$tool_specified"; then 9040 # A command without a complete path is provided, search $PATH. 9041 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 9042 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 9043 # Extract the first word of "$tool_basename", so it can be a program name with args. 9044 set dummy $tool_basename; ac_word=$2 9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9046 $as_echo_n "checking for $ac_word... " >&6; } 9047 if ${ac_cv_path_LN+:} false; then : 9048 $as_echo_n "(cached) " >&6 9049 else 9050 case $LN in 9051 [\\/]* | ?:[\\/]*) 9052 ac_cv_path_LN="$LN" # Let the user override the test with a path. 9053 ;; 9054 *) 9055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9056 for as_dir in $PATH 9057 do 9058 IFS=$as_save_IFS 9059 test -z "$as_dir" && as_dir=. 9060 for ac_exec_ext in '' $ac_executable_extensions; do 9061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9062 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 9063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9064 break 2 9065 fi 9066 done 9067 done 9068 IFS=$as_save_IFS 9069 9070 ;; 9071 esac 9072 fi 9073 LN=$ac_cv_path_LN 9074 if test -n "$LN"; then 9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 9076 $as_echo "$LN" >&6; } 9077 else 9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9079 $as_echo "no" >&6; } 9080 fi 9081 9082 9083 if test "x$LN" = x; then 9084 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9085 fi 9086 else 9087 # Otherwise we believe it is a complete path. Use it as it is. 9088 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 9089 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 9091 $as_echo_n "checking for LN... " >&6; } 9092 if test ! -x "$tool_specified"; then 9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9094 $as_echo "not found" >&6; } 9095 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 9096 fi 9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9098 $as_echo "$tool_specified" >&6; } 9099 fi 9100 fi 9101 fi 9102 9103 fi 9104 9105 9106 9107 if test "x$LN" = x; then 9108 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 9109 fi 9110 9111 9112 9113 9114 9115 # Publish this variable in the help. 9116 9117 9118 if [ -z "${LS+x}" ]; then 9119 # The variable is not set by user, try to locate tool using the code snippet 9120 for ac_prog in ls 9121 do 9122 # Extract the first word of "$ac_prog", so it can be a program name with args. 9123 set dummy $ac_prog; ac_word=$2 9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9125 $as_echo_n "checking for $ac_word... " >&6; } 9126 if ${ac_cv_path_LS+:} false; then : 9127 $as_echo_n "(cached) " >&6 9128 else 9129 case $LS in 9130 [\\/]* | ?:[\\/]*) 9131 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9132 ;; 9133 *) 9134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9135 for as_dir in $PATH 9136 do 9137 IFS=$as_save_IFS 9138 test -z "$as_dir" && as_dir=. 9139 for ac_exec_ext in '' $ac_executable_extensions; do 9140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9141 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9143 break 2 9144 fi 9145 done 9146 done 9147 IFS=$as_save_IFS 9148 9149 ;; 9150 esac 9151 fi 9152 LS=$ac_cv_path_LS 9153 if test -n "$LS"; then 9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9155 $as_echo "$LS" >&6; } 9156 else 9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9158 $as_echo "no" >&6; } 9159 fi 9160 9161 9162 test -n "$LS" && break 9163 done 9164 9165 else 9166 # The variable is set, but is it from the command line or the environment? 9167 9168 # Try to remove the string !LS! from our list. 9169 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 9170 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9171 # If it failed, the variable was not from the command line. Ignore it, 9172 # but warn the user (except for BASH, which is always set by the calling BASH). 9173 if test "xLS" != xBASH; then 9174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 9175 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 9176 fi 9177 # Try to locate tool using the code snippet 9178 for ac_prog in ls 9179 do 9180 # Extract the first word of "$ac_prog", so it can be a program name with args. 9181 set dummy $ac_prog; ac_word=$2 9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9183 $as_echo_n "checking for $ac_word... " >&6; } 9184 if ${ac_cv_path_LS+:} false; then : 9185 $as_echo_n "(cached) " >&6 9186 else 9187 case $LS in 9188 [\\/]* | ?:[\\/]*) 9189 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9190 ;; 9191 *) 9192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9193 for as_dir in $PATH 9194 do 9195 IFS=$as_save_IFS 9196 test -z "$as_dir" && as_dir=. 9197 for ac_exec_ext in '' $ac_executable_extensions; do 9198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9199 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9201 break 2 9202 fi 9203 done 9204 done 9205 IFS=$as_save_IFS 9206 9207 ;; 9208 esac 9209 fi 9210 LS=$ac_cv_path_LS 9211 if test -n "$LS"; then 9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9213 $as_echo "$LS" >&6; } 9214 else 9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9216 $as_echo "no" >&6; } 9217 fi 9218 9219 9220 test -n "$LS" && break 9221 done 9222 9223 else 9224 # If it succeeded, then it was overridden by the user. We will use it 9225 # for the tool. 9226 9227 # First remove it from the list of overridden variables, so we can test 9228 # for unknown variables in the end. 9229 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9230 9231 # Check if we try to supply an empty value 9232 if test "x$LS" = x; then 9233 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5 9234 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;} 9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 9236 $as_echo_n "checking for LS... " >&6; } 9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9238 $as_echo "disabled" >&6; } 9239 else 9240 # Check if the provided tool contains a complete path. 9241 tool_specified="$LS" 9242 tool_basename="${tool_specified##*/}" 9243 if test "x$tool_basename" = "x$tool_specified"; then 9244 # A command without a complete path is provided, search $PATH. 9245 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 9246 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 9247 # Extract the first word of "$tool_basename", so it can be a program name with args. 9248 set dummy $tool_basename; ac_word=$2 9249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9250 $as_echo_n "checking for $ac_word... " >&6; } 9251 if ${ac_cv_path_LS+:} false; then : 9252 $as_echo_n "(cached) " >&6 9253 else 9254 case $LS in 9255 [\\/]* | ?:[\\/]*) 9256 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9257 ;; 9258 *) 9259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9260 for as_dir in $PATH 9261 do 9262 IFS=$as_save_IFS 9263 test -z "$as_dir" && as_dir=. 9264 for ac_exec_ext in '' $ac_executable_extensions; do 9265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9266 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9268 break 2 9269 fi 9270 done 9271 done 9272 IFS=$as_save_IFS 9273 9274 ;; 9275 esac 9276 fi 9277 LS=$ac_cv_path_LS 9278 if test -n "$LS"; then 9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9280 $as_echo "$LS" >&6; } 9281 else 9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9283 $as_echo "no" >&6; } 9284 fi 9285 9286 9287 if test "x$LS" = x; then 9288 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9289 fi 9290 else 9291 # Otherwise we believe it is a complete path. Use it as it is. 9292 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 9293 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 9295 $as_echo_n "checking for LS... " >&6; } 9296 if test ! -x "$tool_specified"; then 9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9298 $as_echo "not found" >&6; } 9299 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 9300 fi 9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9302 $as_echo "$tool_specified" >&6; } 9303 fi 9304 fi 9305 fi 9306 9307 fi 9308 9309 9310 9311 if test "x$LS" = x; then 9312 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 9313 fi 9314 9315 9316 9317 9318 9319 # Publish this variable in the help. 9320 9321 9322 if [ -z "${MKDIR+x}" ]; then 9323 # The variable is not set by user, try to locate tool using the code snippet 9324 for ac_prog in mkdir 9325 do 9326 # Extract the first word of "$ac_prog", so it can be a program name with args. 9327 set dummy $ac_prog; ac_word=$2 9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9329 $as_echo_n "checking for $ac_word... " >&6; } 9330 if ${ac_cv_path_MKDIR+:} false; then : 9331 $as_echo_n "(cached) " >&6 9332 else 9333 case $MKDIR in 9334 [\\/]* | ?:[\\/]*) 9335 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9336 ;; 9337 *) 9338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9339 for as_dir in $PATH 9340 do 9341 IFS=$as_save_IFS 9342 test -z "$as_dir" && as_dir=. 9343 for ac_exec_ext in '' $ac_executable_extensions; do 9344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9345 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9347 break 2 9348 fi 9349 done 9350 done 9351 IFS=$as_save_IFS 9352 9353 ;; 9354 esac 9355 fi 9356 MKDIR=$ac_cv_path_MKDIR 9357 if test -n "$MKDIR"; then 9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9359 $as_echo "$MKDIR" >&6; } 9360 else 9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9362 $as_echo "no" >&6; } 9363 fi 9364 9365 9366 test -n "$MKDIR" && break 9367 done 9368 9369 else 9370 # The variable is set, but is it from the command line or the environment? 9371 9372 # Try to remove the string !MKDIR! from our list. 9373 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 9374 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9375 # If it failed, the variable was not from the command line. Ignore it, 9376 # but warn the user (except for BASH, which is always set by the calling BASH). 9377 if test "xMKDIR" != xBASH; then 9378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 9379 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 9380 fi 9381 # Try to locate tool using the code snippet 9382 for ac_prog in mkdir 9383 do 9384 # Extract the first word of "$ac_prog", so it can be a program name with args. 9385 set dummy $ac_prog; ac_word=$2 9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9387 $as_echo_n "checking for $ac_word... " >&6; } 9388 if ${ac_cv_path_MKDIR+:} false; then : 9389 $as_echo_n "(cached) " >&6 9390 else 9391 case $MKDIR in 9392 [\\/]* | ?:[\\/]*) 9393 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9394 ;; 9395 *) 9396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9397 for as_dir in $PATH 9398 do 9399 IFS=$as_save_IFS 9400 test -z "$as_dir" && as_dir=. 9401 for ac_exec_ext in '' $ac_executable_extensions; do 9402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9403 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9405 break 2 9406 fi 9407 done 9408 done 9409 IFS=$as_save_IFS 9410 9411 ;; 9412 esac 9413 fi 9414 MKDIR=$ac_cv_path_MKDIR 9415 if test -n "$MKDIR"; then 9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9417 $as_echo "$MKDIR" >&6; } 9418 else 9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9420 $as_echo "no" >&6; } 9421 fi 9422 9423 9424 test -n "$MKDIR" && break 9425 done 9426 9427 else 9428 # If it succeeded, then it was overridden by the user. We will use it 9429 # for the tool. 9430 9431 # First remove it from the list of overridden variables, so we can test 9432 # for unknown variables in the end. 9433 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9434 9435 # Check if we try to supply an empty value 9436 if test "x$MKDIR" = x; then 9437 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5 9438 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;} 9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 9440 $as_echo_n "checking for MKDIR... " >&6; } 9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9442 $as_echo "disabled" >&6; } 9443 else 9444 # Check if the provided tool contains a complete path. 9445 tool_specified="$MKDIR" 9446 tool_basename="${tool_specified##*/}" 9447 if test "x$tool_basename" = "x$tool_specified"; then 9448 # A command without a complete path is provided, search $PATH. 9449 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 9450 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 9451 # Extract the first word of "$tool_basename", so it can be a program name with args. 9452 set dummy $tool_basename; ac_word=$2 9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9454 $as_echo_n "checking for $ac_word... " >&6; } 9455 if ${ac_cv_path_MKDIR+:} false; then : 9456 $as_echo_n "(cached) " >&6 9457 else 9458 case $MKDIR in 9459 [\\/]* | ?:[\\/]*) 9460 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9461 ;; 9462 *) 9463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9464 for as_dir in $PATH 9465 do 9466 IFS=$as_save_IFS 9467 test -z "$as_dir" && as_dir=. 9468 for ac_exec_ext in '' $ac_executable_extensions; do 9469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9470 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9472 break 2 9473 fi 9474 done 9475 done 9476 IFS=$as_save_IFS 9477 9478 ;; 9479 esac 9480 fi 9481 MKDIR=$ac_cv_path_MKDIR 9482 if test -n "$MKDIR"; then 9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9484 $as_echo "$MKDIR" >&6; } 9485 else 9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9487 $as_echo "no" >&6; } 9488 fi 9489 9490 9491 if test "x$MKDIR" = x; then 9492 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9493 fi 9494 else 9495 # Otherwise we believe it is a complete path. Use it as it is. 9496 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 9497 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 9499 $as_echo_n "checking for MKDIR... " >&6; } 9500 if test ! -x "$tool_specified"; then 9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9502 $as_echo "not found" >&6; } 9503 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 9504 fi 9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9506 $as_echo "$tool_specified" >&6; } 9507 fi 9508 fi 9509 fi 9510 9511 fi 9512 9513 9514 9515 if test "x$MKDIR" = x; then 9516 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 9517 fi 9518 9519 9520 9521 9522 9523 # Publish this variable in the help. 9524 9525 9526 if [ -z "${MKTEMP+x}" ]; then 9527 # The variable is not set by user, try to locate tool using the code snippet 9528 for ac_prog in mktemp 9529 do 9530 # Extract the first word of "$ac_prog", so it can be a program name with args. 9531 set dummy $ac_prog; ac_word=$2 9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9533 $as_echo_n "checking for $ac_word... " >&6; } 9534 if ${ac_cv_path_MKTEMP+:} false; then : 9535 $as_echo_n "(cached) " >&6 9536 else 9537 case $MKTEMP in 9538 [\\/]* | ?:[\\/]*) 9539 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9540 ;; 9541 *) 9542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9543 for as_dir in $PATH 9544 do 9545 IFS=$as_save_IFS 9546 test -z "$as_dir" && as_dir=. 9547 for ac_exec_ext in '' $ac_executable_extensions; do 9548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9549 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9551 break 2 9552 fi 9553 done 9554 done 9555 IFS=$as_save_IFS 9556 9557 ;; 9558 esac 9559 fi 9560 MKTEMP=$ac_cv_path_MKTEMP 9561 if test -n "$MKTEMP"; then 9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9563 $as_echo "$MKTEMP" >&6; } 9564 else 9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9566 $as_echo "no" >&6; } 9567 fi 9568 9569 9570 test -n "$MKTEMP" && break 9571 done 9572 9573 else 9574 # The variable is set, but is it from the command line or the environment? 9575 9576 # Try to remove the string !MKTEMP! from our list. 9577 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 9578 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9579 # If it failed, the variable was not from the command line. Ignore it, 9580 # but warn the user (except for BASH, which is always set by the calling BASH). 9581 if test "xMKTEMP" != xBASH; then 9582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 9583 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 9584 fi 9585 # Try to locate tool using the code snippet 9586 for ac_prog in mktemp 9587 do 9588 # Extract the first word of "$ac_prog", so it can be a program name with args. 9589 set dummy $ac_prog; ac_word=$2 9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9591 $as_echo_n "checking for $ac_word... " >&6; } 9592 if ${ac_cv_path_MKTEMP+:} false; then : 9593 $as_echo_n "(cached) " >&6 9594 else 9595 case $MKTEMP in 9596 [\\/]* | ?:[\\/]*) 9597 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9598 ;; 9599 *) 9600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9601 for as_dir in $PATH 9602 do 9603 IFS=$as_save_IFS 9604 test -z "$as_dir" && as_dir=. 9605 for ac_exec_ext in '' $ac_executable_extensions; do 9606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9607 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9609 break 2 9610 fi 9611 done 9612 done 9613 IFS=$as_save_IFS 9614 9615 ;; 9616 esac 9617 fi 9618 MKTEMP=$ac_cv_path_MKTEMP 9619 if test -n "$MKTEMP"; then 9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9621 $as_echo "$MKTEMP" >&6; } 9622 else 9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9624 $as_echo "no" >&6; } 9625 fi 9626 9627 9628 test -n "$MKTEMP" && break 9629 done 9630 9631 else 9632 # If it succeeded, then it was overridden by the user. We will use it 9633 # for the tool. 9634 9635 # First remove it from the list of overridden variables, so we can test 9636 # for unknown variables in the end. 9637 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9638 9639 # Check if we try to supply an empty value 9640 if test "x$MKTEMP" = x; then 9641 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5 9642 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;} 9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 9644 $as_echo_n "checking for MKTEMP... " >&6; } 9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9646 $as_echo "disabled" >&6; } 9647 else 9648 # Check if the provided tool contains a complete path. 9649 tool_specified="$MKTEMP" 9650 tool_basename="${tool_specified##*/}" 9651 if test "x$tool_basename" = "x$tool_specified"; then 9652 # A command without a complete path is provided, search $PATH. 9653 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 9654 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 9655 # Extract the first word of "$tool_basename", so it can be a program name with args. 9656 set dummy $tool_basename; ac_word=$2 9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9658 $as_echo_n "checking for $ac_word... " >&6; } 9659 if ${ac_cv_path_MKTEMP+:} false; then : 9660 $as_echo_n "(cached) " >&6 9661 else 9662 case $MKTEMP in 9663 [\\/]* | ?:[\\/]*) 9664 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9665 ;; 9666 *) 9667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9668 for as_dir in $PATH 9669 do 9670 IFS=$as_save_IFS 9671 test -z "$as_dir" && as_dir=. 9672 for ac_exec_ext in '' $ac_executable_extensions; do 9673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9674 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9676 break 2 9677 fi 9678 done 9679 done 9680 IFS=$as_save_IFS 9681 9682 ;; 9683 esac 9684 fi 9685 MKTEMP=$ac_cv_path_MKTEMP 9686 if test -n "$MKTEMP"; then 9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9688 $as_echo "$MKTEMP" >&6; } 9689 else 9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9691 $as_echo "no" >&6; } 9692 fi 9693 9694 9695 if test "x$MKTEMP" = x; then 9696 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9697 fi 9698 else 9699 # Otherwise we believe it is a complete path. Use it as it is. 9700 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 9701 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 9703 $as_echo_n "checking for MKTEMP... " >&6; } 9704 if test ! -x "$tool_specified"; then 9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9706 $as_echo "not found" >&6; } 9707 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 9708 fi 9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9710 $as_echo "$tool_specified" >&6; } 9711 fi 9712 fi 9713 fi 9714 9715 fi 9716 9717 9718 9719 if test "x$MKTEMP" = x; then 9720 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 9721 fi 9722 9723 9724 9725 9726 9727 # Publish this variable in the help. 9728 9729 9730 if [ -z "${MV+x}" ]; then 9731 # The variable is not set by user, try to locate tool using the code snippet 9732 for ac_prog in mv 9733 do 9734 # Extract the first word of "$ac_prog", so it can be a program name with args. 9735 set dummy $ac_prog; ac_word=$2 9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9737 $as_echo_n "checking for $ac_word... " >&6; } 9738 if ${ac_cv_path_MV+:} false; then : 9739 $as_echo_n "(cached) " >&6 9740 else 9741 case $MV in 9742 [\\/]* | ?:[\\/]*) 9743 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9744 ;; 9745 *) 9746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9747 for as_dir in $PATH 9748 do 9749 IFS=$as_save_IFS 9750 test -z "$as_dir" && as_dir=. 9751 for ac_exec_ext in '' $ac_executable_extensions; do 9752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9753 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9755 break 2 9756 fi 9757 done 9758 done 9759 IFS=$as_save_IFS 9760 9761 ;; 9762 esac 9763 fi 9764 MV=$ac_cv_path_MV 9765 if test -n "$MV"; then 9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9767 $as_echo "$MV" >&6; } 9768 else 9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9770 $as_echo "no" >&6; } 9771 fi 9772 9773 9774 test -n "$MV" && break 9775 done 9776 9777 else 9778 # The variable is set, but is it from the command line or the environment? 9779 9780 # Try to remove the string !MV! from our list. 9781 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 9782 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9783 # If it failed, the variable was not from the command line. Ignore it, 9784 # but warn the user (except for BASH, which is always set by the calling BASH). 9785 if test "xMV" != xBASH; then 9786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 9787 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 9788 fi 9789 # Try to locate tool using the code snippet 9790 for ac_prog in mv 9791 do 9792 # Extract the first word of "$ac_prog", so it can be a program name with args. 9793 set dummy $ac_prog; ac_word=$2 9794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9795 $as_echo_n "checking for $ac_word... " >&6; } 9796 if ${ac_cv_path_MV+:} false; then : 9797 $as_echo_n "(cached) " >&6 9798 else 9799 case $MV in 9800 [\\/]* | ?:[\\/]*) 9801 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9802 ;; 9803 *) 9804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9805 for as_dir in $PATH 9806 do 9807 IFS=$as_save_IFS 9808 test -z "$as_dir" && as_dir=. 9809 for ac_exec_ext in '' $ac_executable_extensions; do 9810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9811 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9813 break 2 9814 fi 9815 done 9816 done 9817 IFS=$as_save_IFS 9818 9819 ;; 9820 esac 9821 fi 9822 MV=$ac_cv_path_MV 9823 if test -n "$MV"; then 9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9825 $as_echo "$MV" >&6; } 9826 else 9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9828 $as_echo "no" >&6; } 9829 fi 9830 9831 9832 test -n "$MV" && break 9833 done 9834 9835 else 9836 # If it succeeded, then it was overridden by the user. We will use it 9837 # for the tool. 9838 9839 # First remove it from the list of overridden variables, so we can test 9840 # for unknown variables in the end. 9841 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9842 9843 # Check if we try to supply an empty value 9844 if test "x$MV" = x; then 9845 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5 9846 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;} 9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9848 $as_echo_n "checking for MV... " >&6; } 9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9850 $as_echo "disabled" >&6; } 9851 else 9852 # Check if the provided tool contains a complete path. 9853 tool_specified="$MV" 9854 tool_basename="${tool_specified##*/}" 9855 if test "x$tool_basename" = "x$tool_specified"; then 9856 # A command without a complete path is provided, search $PATH. 9857 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 9858 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 9859 # Extract the first word of "$tool_basename", so it can be a program name with args. 9860 set dummy $tool_basename; ac_word=$2 9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9862 $as_echo_n "checking for $ac_word... " >&6; } 9863 if ${ac_cv_path_MV+:} false; then : 9864 $as_echo_n "(cached) " >&6 9865 else 9866 case $MV in 9867 [\\/]* | ?:[\\/]*) 9868 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9869 ;; 9870 *) 9871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9872 for as_dir in $PATH 9873 do 9874 IFS=$as_save_IFS 9875 test -z "$as_dir" && as_dir=. 9876 for ac_exec_ext in '' $ac_executable_extensions; do 9877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9878 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9880 break 2 9881 fi 9882 done 9883 done 9884 IFS=$as_save_IFS 9885 9886 ;; 9887 esac 9888 fi 9889 MV=$ac_cv_path_MV 9890 if test -n "$MV"; then 9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9892 $as_echo "$MV" >&6; } 9893 else 9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9895 $as_echo "no" >&6; } 9896 fi 9897 9898 9899 if test "x$MV" = x; then 9900 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9901 fi 9902 else 9903 # Otherwise we believe it is a complete path. Use it as it is. 9904 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 9905 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9907 $as_echo_n "checking for MV... " >&6; } 9908 if test ! -x "$tool_specified"; then 9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9910 $as_echo "not found" >&6; } 9911 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 9912 fi 9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9914 $as_echo "$tool_specified" >&6; } 9915 fi 9916 fi 9917 fi 9918 9919 fi 9920 9921 9922 9923 if test "x$MV" = x; then 9924 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 9925 fi 9926 9927 9928 9929 9930 9931 # Publish this variable in the help. 9932 9933 9934 if [ -z "${NAWK+x}" ]; then 9935 # The variable is not set by user, try to locate tool using the code snippet 9936 for ac_prog in nawk gawk awk 9937 do 9938 # Extract the first word of "$ac_prog", so it can be a program name with args. 9939 set dummy $ac_prog; ac_word=$2 9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9941 $as_echo_n "checking for $ac_word... " >&6; } 9942 if ${ac_cv_path_NAWK+:} false; then : 9943 $as_echo_n "(cached) " >&6 9944 else 9945 case $NAWK in 9946 [\\/]* | ?:[\\/]*) 9947 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9948 ;; 9949 *) 9950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9951 for as_dir in $PATH 9952 do 9953 IFS=$as_save_IFS 9954 test -z "$as_dir" && as_dir=. 9955 for ac_exec_ext in '' $ac_executable_extensions; do 9956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9957 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9959 break 2 9960 fi 9961 done 9962 done 9963 IFS=$as_save_IFS 9964 9965 ;; 9966 esac 9967 fi 9968 NAWK=$ac_cv_path_NAWK 9969 if test -n "$NAWK"; then 9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9971 $as_echo "$NAWK" >&6; } 9972 else 9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9974 $as_echo "no" >&6; } 9975 fi 9976 9977 9978 test -n "$NAWK" && break 9979 done 9980 9981 else 9982 # The variable is set, but is it from the command line or the environment? 9983 9984 # Try to remove the string !NAWK! from our list. 9985 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 9986 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9987 # If it failed, the variable was not from the command line. Ignore it, 9988 # but warn the user (except for BASH, which is always set by the calling BASH). 9989 if test "xNAWK" != xBASH; then 9990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 9991 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 9992 fi 9993 # Try to locate tool using the code snippet 9994 for ac_prog in nawk gawk awk 9995 do 9996 # Extract the first word of "$ac_prog", so it can be a program name with args. 9997 set dummy $ac_prog; ac_word=$2 9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9999 $as_echo_n "checking for $ac_word... " >&6; } 10000 if ${ac_cv_path_NAWK+:} false; then : 10001 $as_echo_n "(cached) " >&6 10002 else 10003 case $NAWK in 10004 [\\/]* | ?:[\\/]*) 10005 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 10006 ;; 10007 *) 10008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10009 for as_dir in $PATH 10010 do 10011 IFS=$as_save_IFS 10012 test -z "$as_dir" && as_dir=. 10013 for ac_exec_ext in '' $ac_executable_extensions; do 10014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10015 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 10016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10017 break 2 10018 fi 10019 done 10020 done 10021 IFS=$as_save_IFS 10022 10023 ;; 10024 esac 10025 fi 10026 NAWK=$ac_cv_path_NAWK 10027 if test -n "$NAWK"; then 10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 10029 $as_echo "$NAWK" >&6; } 10030 else 10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10032 $as_echo "no" >&6; } 10033 fi 10034 10035 10036 test -n "$NAWK" && break 10037 done 10038 10039 else 10040 # If it succeeded, then it was overridden by the user. We will use it 10041 # for the tool. 10042 10043 # First remove it from the list of overridden variables, so we can test 10044 # for unknown variables in the end. 10045 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10046 10047 # Check if we try to supply an empty value 10048 if test "x$NAWK" = x; then 10049 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5 10050 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;} 10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 10052 $as_echo_n "checking for NAWK... " >&6; } 10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10054 $as_echo "disabled" >&6; } 10055 else 10056 # Check if the provided tool contains a complete path. 10057 tool_specified="$NAWK" 10058 tool_basename="${tool_specified##*/}" 10059 if test "x$tool_basename" = "x$tool_specified"; then 10060 # A command without a complete path is provided, search $PATH. 10061 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 10062 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 10063 # Extract the first word of "$tool_basename", so it can be a program name with args. 10064 set dummy $tool_basename; ac_word=$2 10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10066 $as_echo_n "checking for $ac_word... " >&6; } 10067 if ${ac_cv_path_NAWK+:} false; then : 10068 $as_echo_n "(cached) " >&6 10069 else 10070 case $NAWK in 10071 [\\/]* | ?:[\\/]*) 10072 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 10073 ;; 10074 *) 10075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10076 for as_dir in $PATH 10077 do 10078 IFS=$as_save_IFS 10079 test -z "$as_dir" && as_dir=. 10080 for ac_exec_ext in '' $ac_executable_extensions; do 10081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10082 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 10083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10084 break 2 10085 fi 10086 done 10087 done 10088 IFS=$as_save_IFS 10089 10090 ;; 10091 esac 10092 fi 10093 NAWK=$ac_cv_path_NAWK 10094 if test -n "$NAWK"; then 10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 10096 $as_echo "$NAWK" >&6; } 10097 else 10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10099 $as_echo "no" >&6; } 10100 fi 10101 10102 10103 if test "x$NAWK" = x; then 10104 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10105 fi 10106 else 10107 # Otherwise we believe it is a complete path. Use it as it is. 10108 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 10109 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 10111 $as_echo_n "checking for NAWK... " >&6; } 10112 if test ! -x "$tool_specified"; then 10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10114 $as_echo "not found" >&6; } 10115 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 10116 fi 10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10118 $as_echo "$tool_specified" >&6; } 10119 fi 10120 fi 10121 fi 10122 10123 fi 10124 10125 10126 10127 if test "x$NAWK" = x; then 10128 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 10129 fi 10130 10131 10132 10133 10134 10135 # Publish this variable in the help. 10136 10137 10138 if [ -z "${PRINTF+x}" ]; then 10139 # The variable is not set by user, try to locate tool using the code snippet 10140 for ac_prog in printf 10141 do 10142 # Extract the first word of "$ac_prog", so it can be a program name with args. 10143 set dummy $ac_prog; ac_word=$2 10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10145 $as_echo_n "checking for $ac_word... " >&6; } 10146 if ${ac_cv_path_PRINTF+:} false; then : 10147 $as_echo_n "(cached) " >&6 10148 else 10149 case $PRINTF in 10150 [\\/]* | ?:[\\/]*) 10151 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10152 ;; 10153 *) 10154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10155 for as_dir in $PATH 10156 do 10157 IFS=$as_save_IFS 10158 test -z "$as_dir" && as_dir=. 10159 for ac_exec_ext in '' $ac_executable_extensions; do 10160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10161 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10163 break 2 10164 fi 10165 done 10166 done 10167 IFS=$as_save_IFS 10168 10169 ;; 10170 esac 10171 fi 10172 PRINTF=$ac_cv_path_PRINTF 10173 if test -n "$PRINTF"; then 10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10175 $as_echo "$PRINTF" >&6; } 10176 else 10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10178 $as_echo "no" >&6; } 10179 fi 10180 10181 10182 test -n "$PRINTF" && break 10183 done 10184 10185 else 10186 # The variable is set, but is it from the command line or the environment? 10187 10188 # Try to remove the string !PRINTF! from our list. 10189 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 10190 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10191 # If it failed, the variable was not from the command line. Ignore it, 10192 # but warn the user (except for BASH, which is always set by the calling BASH). 10193 if test "xPRINTF" != xBASH; then 10194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 10195 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 10196 fi 10197 # Try to locate tool using the code snippet 10198 for ac_prog in printf 10199 do 10200 # Extract the first word of "$ac_prog", so it can be a program name with args. 10201 set dummy $ac_prog; ac_word=$2 10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10203 $as_echo_n "checking for $ac_word... " >&6; } 10204 if ${ac_cv_path_PRINTF+:} false; then : 10205 $as_echo_n "(cached) " >&6 10206 else 10207 case $PRINTF in 10208 [\\/]* | ?:[\\/]*) 10209 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10210 ;; 10211 *) 10212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10213 for as_dir in $PATH 10214 do 10215 IFS=$as_save_IFS 10216 test -z "$as_dir" && as_dir=. 10217 for ac_exec_ext in '' $ac_executable_extensions; do 10218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10219 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10221 break 2 10222 fi 10223 done 10224 done 10225 IFS=$as_save_IFS 10226 10227 ;; 10228 esac 10229 fi 10230 PRINTF=$ac_cv_path_PRINTF 10231 if test -n "$PRINTF"; then 10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10233 $as_echo "$PRINTF" >&6; } 10234 else 10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10236 $as_echo "no" >&6; } 10237 fi 10238 10239 10240 test -n "$PRINTF" && break 10241 done 10242 10243 else 10244 # If it succeeded, then it was overridden by the user. We will use it 10245 # for the tool. 10246 10247 # First remove it from the list of overridden variables, so we can test 10248 # for unknown variables in the end. 10249 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10250 10251 # Check if we try to supply an empty value 10252 if test "x$PRINTF" = x; then 10253 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5 10254 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;} 10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 10256 $as_echo_n "checking for PRINTF... " >&6; } 10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10258 $as_echo "disabled" >&6; } 10259 else 10260 # Check if the provided tool contains a complete path. 10261 tool_specified="$PRINTF" 10262 tool_basename="${tool_specified##*/}" 10263 if test "x$tool_basename" = "x$tool_specified"; then 10264 # A command without a complete path is provided, search $PATH. 10265 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 10266 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 10267 # Extract the first word of "$tool_basename", so it can be a program name with args. 10268 set dummy $tool_basename; ac_word=$2 10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10270 $as_echo_n "checking for $ac_word... " >&6; } 10271 if ${ac_cv_path_PRINTF+:} false; then : 10272 $as_echo_n "(cached) " >&6 10273 else 10274 case $PRINTF in 10275 [\\/]* | ?:[\\/]*) 10276 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10277 ;; 10278 *) 10279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10280 for as_dir in $PATH 10281 do 10282 IFS=$as_save_IFS 10283 test -z "$as_dir" && as_dir=. 10284 for ac_exec_ext in '' $ac_executable_extensions; do 10285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10286 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10288 break 2 10289 fi 10290 done 10291 done 10292 IFS=$as_save_IFS 10293 10294 ;; 10295 esac 10296 fi 10297 PRINTF=$ac_cv_path_PRINTF 10298 if test -n "$PRINTF"; then 10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10300 $as_echo "$PRINTF" >&6; } 10301 else 10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10303 $as_echo "no" >&6; } 10304 fi 10305 10306 10307 if test "x$PRINTF" = x; then 10308 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10309 fi 10310 else 10311 # Otherwise we believe it is a complete path. Use it as it is. 10312 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 10313 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 10315 $as_echo_n "checking for PRINTF... " >&6; } 10316 if test ! -x "$tool_specified"; then 10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10318 $as_echo "not found" >&6; } 10319 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 10320 fi 10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10322 $as_echo "$tool_specified" >&6; } 10323 fi 10324 fi 10325 fi 10326 10327 fi 10328 10329 10330 10331 if test "x$PRINTF" = x; then 10332 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 10333 fi 10334 10335 10336 10337 10338 10339 # Publish this variable in the help. 10340 10341 10342 if [ -z "${RM+x}" ]; then 10343 # The variable is not set by user, try to locate tool using the code snippet 10344 for ac_prog in rm 10345 do 10346 # Extract the first word of "$ac_prog", so it can be a program name with args. 10347 set dummy $ac_prog; ac_word=$2 10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10349 $as_echo_n "checking for $ac_word... " >&6; } 10350 if ${ac_cv_path_RM+:} false; then : 10351 $as_echo_n "(cached) " >&6 10352 else 10353 case $RM in 10354 [\\/]* | ?:[\\/]*) 10355 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10356 ;; 10357 *) 10358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10359 for as_dir in $PATH 10360 do 10361 IFS=$as_save_IFS 10362 test -z "$as_dir" && as_dir=. 10363 for ac_exec_ext in '' $ac_executable_extensions; do 10364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10365 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10367 break 2 10368 fi 10369 done 10370 done 10371 IFS=$as_save_IFS 10372 10373 ;; 10374 esac 10375 fi 10376 RM=$ac_cv_path_RM 10377 if test -n "$RM"; then 10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10379 $as_echo "$RM" >&6; } 10380 else 10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10382 $as_echo "no" >&6; } 10383 fi 10384 10385 10386 test -n "$RM" && break 10387 done 10388 10389 else 10390 # The variable is set, but is it from the command line or the environment? 10391 10392 # Try to remove the string !RM! from our list. 10393 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 10394 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10395 # If it failed, the variable was not from the command line. Ignore it, 10396 # but warn the user (except for BASH, which is always set by the calling BASH). 10397 if test "xRM" != xBASH; then 10398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 10399 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 10400 fi 10401 # Try to locate tool using the code snippet 10402 for ac_prog in rm 10403 do 10404 # Extract the first word of "$ac_prog", so it can be a program name with args. 10405 set dummy $ac_prog; ac_word=$2 10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10407 $as_echo_n "checking for $ac_word... " >&6; } 10408 if ${ac_cv_path_RM+:} false; then : 10409 $as_echo_n "(cached) " >&6 10410 else 10411 case $RM in 10412 [\\/]* | ?:[\\/]*) 10413 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10414 ;; 10415 *) 10416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10417 for as_dir in $PATH 10418 do 10419 IFS=$as_save_IFS 10420 test -z "$as_dir" && as_dir=. 10421 for ac_exec_ext in '' $ac_executable_extensions; do 10422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10423 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10425 break 2 10426 fi 10427 done 10428 done 10429 IFS=$as_save_IFS 10430 10431 ;; 10432 esac 10433 fi 10434 RM=$ac_cv_path_RM 10435 if test -n "$RM"; then 10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10437 $as_echo "$RM" >&6; } 10438 else 10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10440 $as_echo "no" >&6; } 10441 fi 10442 10443 10444 test -n "$RM" && break 10445 done 10446 10447 else 10448 # If it succeeded, then it was overridden by the user. We will use it 10449 # for the tool. 10450 10451 # First remove it from the list of overridden variables, so we can test 10452 # for unknown variables in the end. 10453 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10454 10455 # Check if we try to supply an empty value 10456 if test "x$RM" = x; then 10457 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5 10458 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;} 10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 10460 $as_echo_n "checking for RM... " >&6; } 10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10462 $as_echo "disabled" >&6; } 10463 else 10464 # Check if the provided tool contains a complete path. 10465 tool_specified="$RM" 10466 tool_basename="${tool_specified##*/}" 10467 if test "x$tool_basename" = "x$tool_specified"; then 10468 # A command without a complete path is provided, search $PATH. 10469 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 10470 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 10471 # Extract the first word of "$tool_basename", so it can be a program name with args. 10472 set dummy $tool_basename; ac_word=$2 10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10474 $as_echo_n "checking for $ac_word... " >&6; } 10475 if ${ac_cv_path_RM+:} false; then : 10476 $as_echo_n "(cached) " >&6 10477 else 10478 case $RM in 10479 [\\/]* | ?:[\\/]*) 10480 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10481 ;; 10482 *) 10483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10484 for as_dir in $PATH 10485 do 10486 IFS=$as_save_IFS 10487 test -z "$as_dir" && as_dir=. 10488 for ac_exec_ext in '' $ac_executable_extensions; do 10489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10490 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10492 break 2 10493 fi 10494 done 10495 done 10496 IFS=$as_save_IFS 10497 10498 ;; 10499 esac 10500 fi 10501 RM=$ac_cv_path_RM 10502 if test -n "$RM"; then 10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10504 $as_echo "$RM" >&6; } 10505 else 10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10507 $as_echo "no" >&6; } 10508 fi 10509 10510 10511 if test "x$RM" = x; then 10512 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10513 fi 10514 else 10515 # Otherwise we believe it is a complete path. Use it as it is. 10516 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 10517 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 10519 $as_echo_n "checking for RM... " >&6; } 10520 if test ! -x "$tool_specified"; then 10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10522 $as_echo "not found" >&6; } 10523 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 10524 fi 10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10526 $as_echo "$tool_specified" >&6; } 10527 fi 10528 fi 10529 fi 10530 10531 fi 10532 10533 10534 10535 if test "x$RM" = x; then 10536 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 10537 fi 10538 10539 10540 10541 10542 10543 # Publish this variable in the help. 10544 10545 10546 if [ -z "${RMDIR+x}" ]; then 10547 # The variable is not set by user, try to locate tool using the code snippet 10548 for ac_prog in rmdir 10549 do 10550 # Extract the first word of "$ac_prog", so it can be a program name with args. 10551 set dummy $ac_prog; ac_word=$2 10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10553 $as_echo_n "checking for $ac_word... " >&6; } 10554 if ${ac_cv_path_RMDIR+:} false; then : 10555 $as_echo_n "(cached) " >&6 10556 else 10557 case $RMDIR in 10558 [\\/]* | ?:[\\/]*) 10559 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10560 ;; 10561 *) 10562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10563 for as_dir in $PATH 10564 do 10565 IFS=$as_save_IFS 10566 test -z "$as_dir" && as_dir=. 10567 for ac_exec_ext in '' $ac_executable_extensions; do 10568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10569 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10571 break 2 10572 fi 10573 done 10574 done 10575 IFS=$as_save_IFS 10576 10577 ;; 10578 esac 10579 fi 10580 RMDIR=$ac_cv_path_RMDIR 10581 if test -n "$RMDIR"; then 10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10583 $as_echo "$RMDIR" >&6; } 10584 else 10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10586 $as_echo "no" >&6; } 10587 fi 10588 10589 10590 test -n "$RMDIR" && break 10591 done 10592 10593 else 10594 # The variable is set, but is it from the command line or the environment? 10595 10596 # Try to remove the string !RMDIR! from our list. 10597 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/} 10598 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10599 # If it failed, the variable was not from the command line. Ignore it, 10600 # but warn the user (except for BASH, which is always set by the calling BASH). 10601 if test "xRMDIR" != xBASH; then 10602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5 10603 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;} 10604 fi 10605 # Try to locate tool using the code snippet 10606 for ac_prog in rmdir 10607 do 10608 # Extract the first word of "$ac_prog", so it can be a program name with args. 10609 set dummy $ac_prog; ac_word=$2 10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10611 $as_echo_n "checking for $ac_word... " >&6; } 10612 if ${ac_cv_path_RMDIR+:} false; then : 10613 $as_echo_n "(cached) " >&6 10614 else 10615 case $RMDIR in 10616 [\\/]* | ?:[\\/]*) 10617 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10618 ;; 10619 *) 10620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10621 for as_dir in $PATH 10622 do 10623 IFS=$as_save_IFS 10624 test -z "$as_dir" && as_dir=. 10625 for ac_exec_ext in '' $ac_executable_extensions; do 10626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10627 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10629 break 2 10630 fi 10631 done 10632 done 10633 IFS=$as_save_IFS 10634 10635 ;; 10636 esac 10637 fi 10638 RMDIR=$ac_cv_path_RMDIR 10639 if test -n "$RMDIR"; then 10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10641 $as_echo "$RMDIR" >&6; } 10642 else 10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10644 $as_echo "no" >&6; } 10645 fi 10646 10647 10648 test -n "$RMDIR" && break 10649 done 10650 10651 else 10652 # If it succeeded, then it was overridden by the user. We will use it 10653 # for the tool. 10654 10655 # First remove it from the list of overridden variables, so we can test 10656 # for unknown variables in the end. 10657 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10658 10659 # Check if we try to supply an empty value 10660 if test "x$RMDIR" = x; then 10661 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5 10662 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;} 10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 10664 $as_echo_n "checking for RMDIR... " >&6; } 10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10666 $as_echo "disabled" >&6; } 10667 else 10668 # Check if the provided tool contains a complete path. 10669 tool_specified="$RMDIR" 10670 tool_basename="${tool_specified##*/}" 10671 if test "x$tool_basename" = "x$tool_specified"; then 10672 # A command without a complete path is provided, search $PATH. 10673 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5 10674 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;} 10675 # Extract the first word of "$tool_basename", so it can be a program name with args. 10676 set dummy $tool_basename; ac_word=$2 10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10678 $as_echo_n "checking for $ac_word... " >&6; } 10679 if ${ac_cv_path_RMDIR+:} false; then : 10680 $as_echo_n "(cached) " >&6 10681 else 10682 case $RMDIR in 10683 [\\/]* | ?:[\\/]*) 10684 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10685 ;; 10686 *) 10687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10688 for as_dir in $PATH 10689 do 10690 IFS=$as_save_IFS 10691 test -z "$as_dir" && as_dir=. 10692 for ac_exec_ext in '' $ac_executable_extensions; do 10693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10694 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10696 break 2 10697 fi 10698 done 10699 done 10700 IFS=$as_save_IFS 10701 10702 ;; 10703 esac 10704 fi 10705 RMDIR=$ac_cv_path_RMDIR 10706 if test -n "$RMDIR"; then 10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10708 $as_echo "$RMDIR" >&6; } 10709 else 10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10711 $as_echo "no" >&6; } 10712 fi 10713 10714 10715 if test "x$RMDIR" = x; then 10716 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10717 fi 10718 else 10719 # Otherwise we believe it is a complete path. Use it as it is. 10720 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5 10721 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;} 10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 10723 $as_echo_n "checking for RMDIR... " >&6; } 10724 if test ! -x "$tool_specified"; then 10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10726 $as_echo "not found" >&6; } 10727 as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 10728 fi 10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10730 $as_echo "$tool_specified" >&6; } 10731 fi 10732 fi 10733 fi 10734 10735 fi 10736 10737 10738 10739 if test "x$RMDIR" = x; then 10740 as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5 10741 fi 10742 10743 10744 10745 10746 10747 # Publish this variable in the help. 10748 10749 10750 if [ -z "${SH+x}" ]; then 10751 # The variable is not set by user, try to locate tool using the code snippet 10752 for ac_prog in sh 10753 do 10754 # Extract the first word of "$ac_prog", so it can be a program name with args. 10755 set dummy $ac_prog; ac_word=$2 10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10757 $as_echo_n "checking for $ac_word... " >&6; } 10758 if ${ac_cv_path_SH+:} false; then : 10759 $as_echo_n "(cached) " >&6 10760 else 10761 case $SH in 10762 [\\/]* | ?:[\\/]*) 10763 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10764 ;; 10765 *) 10766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10767 for as_dir in $PATH 10768 do 10769 IFS=$as_save_IFS 10770 test -z "$as_dir" && as_dir=. 10771 for ac_exec_ext in '' $ac_executable_extensions; do 10772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10773 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10775 break 2 10776 fi 10777 done 10778 done 10779 IFS=$as_save_IFS 10780 10781 ;; 10782 esac 10783 fi 10784 SH=$ac_cv_path_SH 10785 if test -n "$SH"; then 10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10787 $as_echo "$SH" >&6; } 10788 else 10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10790 $as_echo "no" >&6; } 10791 fi 10792 10793 10794 test -n "$SH" && break 10795 done 10796 10797 else 10798 # The variable is set, but is it from the command line or the environment? 10799 10800 # Try to remove the string !SH! from our list. 10801 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 10802 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10803 # If it failed, the variable was not from the command line. Ignore it, 10804 # but warn the user (except for BASH, which is always set by the calling BASH). 10805 if test "xSH" != xBASH; then 10806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 10807 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 10808 fi 10809 # Try to locate tool using the code snippet 10810 for ac_prog in sh 10811 do 10812 # Extract the first word of "$ac_prog", so it can be a program name with args. 10813 set dummy $ac_prog; ac_word=$2 10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10815 $as_echo_n "checking for $ac_word... " >&6; } 10816 if ${ac_cv_path_SH+:} false; then : 10817 $as_echo_n "(cached) " >&6 10818 else 10819 case $SH in 10820 [\\/]* | ?:[\\/]*) 10821 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10822 ;; 10823 *) 10824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10825 for as_dir in $PATH 10826 do 10827 IFS=$as_save_IFS 10828 test -z "$as_dir" && as_dir=. 10829 for ac_exec_ext in '' $ac_executable_extensions; do 10830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10831 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10833 break 2 10834 fi 10835 done 10836 done 10837 IFS=$as_save_IFS 10838 10839 ;; 10840 esac 10841 fi 10842 SH=$ac_cv_path_SH 10843 if test -n "$SH"; then 10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10845 $as_echo "$SH" >&6; } 10846 else 10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10848 $as_echo "no" >&6; } 10849 fi 10850 10851 10852 test -n "$SH" && break 10853 done 10854 10855 else 10856 # If it succeeded, then it was overridden by the user. We will use it 10857 # for the tool. 10858 10859 # First remove it from the list of overridden variables, so we can test 10860 # for unknown variables in the end. 10861 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10862 10863 # Check if we try to supply an empty value 10864 if test "x$SH" = x; then 10865 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5 10866 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;} 10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10868 $as_echo_n "checking for SH... " >&6; } 10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10870 $as_echo "disabled" >&6; } 10871 else 10872 # Check if the provided tool contains a complete path. 10873 tool_specified="$SH" 10874 tool_basename="${tool_specified##*/}" 10875 if test "x$tool_basename" = "x$tool_specified"; then 10876 # A command without a complete path is provided, search $PATH. 10877 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 10878 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 10879 # Extract the first word of "$tool_basename", so it can be a program name with args. 10880 set dummy $tool_basename; ac_word=$2 10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10882 $as_echo_n "checking for $ac_word... " >&6; } 10883 if ${ac_cv_path_SH+:} false; then : 10884 $as_echo_n "(cached) " >&6 10885 else 10886 case $SH in 10887 [\\/]* | ?:[\\/]*) 10888 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10889 ;; 10890 *) 10891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10892 for as_dir in $PATH 10893 do 10894 IFS=$as_save_IFS 10895 test -z "$as_dir" && as_dir=. 10896 for ac_exec_ext in '' $ac_executable_extensions; do 10897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10898 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10900 break 2 10901 fi 10902 done 10903 done 10904 IFS=$as_save_IFS 10905 10906 ;; 10907 esac 10908 fi 10909 SH=$ac_cv_path_SH 10910 if test -n "$SH"; then 10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10912 $as_echo "$SH" >&6; } 10913 else 10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10915 $as_echo "no" >&6; } 10916 fi 10917 10918 10919 if test "x$SH" = x; then 10920 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10921 fi 10922 else 10923 # Otherwise we believe it is a complete path. Use it as it is. 10924 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 10925 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10927 $as_echo_n "checking for SH... " >&6; } 10928 if test ! -x "$tool_specified"; then 10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10930 $as_echo "not found" >&6; } 10931 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 10932 fi 10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10934 $as_echo "$tool_specified" >&6; } 10935 fi 10936 fi 10937 fi 10938 10939 fi 10940 10941 10942 10943 if test "x$SH" = x; then 10944 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 10945 fi 10946 10947 10948 10949 10950 10951 # Publish this variable in the help. 10952 10953 10954 if [ -z "${SORT+x}" ]; then 10955 # The variable is not set by user, try to locate tool using the code snippet 10956 for ac_prog in sort 10957 do 10958 # Extract the first word of "$ac_prog", so it can be a program name with args. 10959 set dummy $ac_prog; ac_word=$2 10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10961 $as_echo_n "checking for $ac_word... " >&6; } 10962 if ${ac_cv_path_SORT+:} false; then : 10963 $as_echo_n "(cached) " >&6 10964 else 10965 case $SORT in 10966 [\\/]* | ?:[\\/]*) 10967 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 10968 ;; 10969 *) 10970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10971 for as_dir in $PATH 10972 do 10973 IFS=$as_save_IFS 10974 test -z "$as_dir" && as_dir=. 10975 for ac_exec_ext in '' $ac_executable_extensions; do 10976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10977 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 10978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10979 break 2 10980 fi 10981 done 10982 done 10983 IFS=$as_save_IFS 10984 10985 ;; 10986 esac 10987 fi 10988 SORT=$ac_cv_path_SORT 10989 if test -n "$SORT"; then 10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 10991 $as_echo "$SORT" >&6; } 10992 else 10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10994 $as_echo "no" >&6; } 10995 fi 10996 10997 10998 test -n "$SORT" && break 10999 done 11000 11001 else 11002 # The variable is set, but is it from the command line or the environment? 11003 11004 # Try to remove the string !SORT! from our list. 11005 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 11006 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11007 # If it failed, the variable was not from the command line. Ignore it, 11008 # but warn the user (except for BASH, which is always set by the calling BASH). 11009 if test "xSORT" != xBASH; then 11010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 11011 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 11012 fi 11013 # Try to locate tool using the code snippet 11014 for ac_prog in sort 11015 do 11016 # Extract the first word of "$ac_prog", so it can be a program name with args. 11017 set dummy $ac_prog; ac_word=$2 11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11019 $as_echo_n "checking for $ac_word... " >&6; } 11020 if ${ac_cv_path_SORT+:} false; then : 11021 $as_echo_n "(cached) " >&6 11022 else 11023 case $SORT in 11024 [\\/]* | ?:[\\/]*) 11025 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 11026 ;; 11027 *) 11028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11029 for as_dir in $PATH 11030 do 11031 IFS=$as_save_IFS 11032 test -z "$as_dir" && as_dir=. 11033 for ac_exec_ext in '' $ac_executable_extensions; do 11034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11035 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 11036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11037 break 2 11038 fi 11039 done 11040 done 11041 IFS=$as_save_IFS 11042 11043 ;; 11044 esac 11045 fi 11046 SORT=$ac_cv_path_SORT 11047 if test -n "$SORT"; then 11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 11049 $as_echo "$SORT" >&6; } 11050 else 11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11052 $as_echo "no" >&6; } 11053 fi 11054 11055 11056 test -n "$SORT" && break 11057 done 11058 11059 else 11060 # If it succeeded, then it was overridden by the user. We will use it 11061 # for the tool. 11062 11063 # First remove it from the list of overridden variables, so we can test 11064 # for unknown variables in the end. 11065 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11066 11067 # Check if we try to supply an empty value 11068 if test "x$SORT" = x; then 11069 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5 11070 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;} 11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 11072 $as_echo_n "checking for SORT... " >&6; } 11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11074 $as_echo "disabled" >&6; } 11075 else 11076 # Check if the provided tool contains a complete path. 11077 tool_specified="$SORT" 11078 tool_basename="${tool_specified##*/}" 11079 if test "x$tool_basename" = "x$tool_specified"; then 11080 # A command without a complete path is provided, search $PATH. 11081 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 11082 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 11083 # Extract the first word of "$tool_basename", so it can be a program name with args. 11084 set dummy $tool_basename; ac_word=$2 11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11086 $as_echo_n "checking for $ac_word... " >&6; } 11087 if ${ac_cv_path_SORT+:} false; then : 11088 $as_echo_n "(cached) " >&6 11089 else 11090 case $SORT in 11091 [\\/]* | ?:[\\/]*) 11092 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 11093 ;; 11094 *) 11095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11096 for as_dir in $PATH 11097 do 11098 IFS=$as_save_IFS 11099 test -z "$as_dir" && as_dir=. 11100 for ac_exec_ext in '' $ac_executable_extensions; do 11101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11102 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 11103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11104 break 2 11105 fi 11106 done 11107 done 11108 IFS=$as_save_IFS 11109 11110 ;; 11111 esac 11112 fi 11113 SORT=$ac_cv_path_SORT 11114 if test -n "$SORT"; then 11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 11116 $as_echo "$SORT" >&6; } 11117 else 11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11119 $as_echo "no" >&6; } 11120 fi 11121 11122 11123 if test "x$SORT" = x; then 11124 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11125 fi 11126 else 11127 # Otherwise we believe it is a complete path. Use it as it is. 11128 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 11129 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 11131 $as_echo_n "checking for SORT... " >&6; } 11132 if test ! -x "$tool_specified"; then 11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11134 $as_echo "not found" >&6; } 11135 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 11136 fi 11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11138 $as_echo "$tool_specified" >&6; } 11139 fi 11140 fi 11141 fi 11142 11143 fi 11144 11145 11146 11147 if test "x$SORT" = x; then 11148 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 11149 fi 11150 11151 11152 11153 11154 11155 # Publish this variable in the help. 11156 11157 11158 if [ -z "${TAIL+x}" ]; then 11159 # The variable is not set by user, try to locate tool using the code snippet 11160 for ac_prog in tail 11161 do 11162 # Extract the first word of "$ac_prog", so it can be a program name with args. 11163 set dummy $ac_prog; ac_word=$2 11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11165 $as_echo_n "checking for $ac_word... " >&6; } 11166 if ${ac_cv_path_TAIL+:} false; then : 11167 $as_echo_n "(cached) " >&6 11168 else 11169 case $TAIL in 11170 [\\/]* | ?:[\\/]*) 11171 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11172 ;; 11173 *) 11174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11175 for as_dir in $PATH 11176 do 11177 IFS=$as_save_IFS 11178 test -z "$as_dir" && as_dir=. 11179 for ac_exec_ext in '' $ac_executable_extensions; do 11180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11181 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11183 break 2 11184 fi 11185 done 11186 done 11187 IFS=$as_save_IFS 11188 11189 ;; 11190 esac 11191 fi 11192 TAIL=$ac_cv_path_TAIL 11193 if test -n "$TAIL"; then 11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11195 $as_echo "$TAIL" >&6; } 11196 else 11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11198 $as_echo "no" >&6; } 11199 fi 11200 11201 11202 test -n "$TAIL" && break 11203 done 11204 11205 else 11206 # The variable is set, but is it from the command line or the environment? 11207 11208 # Try to remove the string !TAIL! from our list. 11209 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 11210 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11211 # If it failed, the variable was not from the command line. Ignore it, 11212 # but warn the user (except for BASH, which is always set by the calling BASH). 11213 if test "xTAIL" != xBASH; then 11214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 11215 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 11216 fi 11217 # Try to locate tool using the code snippet 11218 for ac_prog in tail 11219 do 11220 # Extract the first word of "$ac_prog", so it can be a program name with args. 11221 set dummy $ac_prog; ac_word=$2 11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11223 $as_echo_n "checking for $ac_word... " >&6; } 11224 if ${ac_cv_path_TAIL+:} false; then : 11225 $as_echo_n "(cached) " >&6 11226 else 11227 case $TAIL in 11228 [\\/]* | ?:[\\/]*) 11229 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11230 ;; 11231 *) 11232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11233 for as_dir in $PATH 11234 do 11235 IFS=$as_save_IFS 11236 test -z "$as_dir" && as_dir=. 11237 for ac_exec_ext in '' $ac_executable_extensions; do 11238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11239 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11241 break 2 11242 fi 11243 done 11244 done 11245 IFS=$as_save_IFS 11246 11247 ;; 11248 esac 11249 fi 11250 TAIL=$ac_cv_path_TAIL 11251 if test -n "$TAIL"; then 11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11253 $as_echo "$TAIL" >&6; } 11254 else 11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11256 $as_echo "no" >&6; } 11257 fi 11258 11259 11260 test -n "$TAIL" && break 11261 done 11262 11263 else 11264 # If it succeeded, then it was overridden by the user. We will use it 11265 # for the tool. 11266 11267 # First remove it from the list of overridden variables, so we can test 11268 # for unknown variables in the end. 11269 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11270 11271 # Check if we try to supply an empty value 11272 if test "x$TAIL" = x; then 11273 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5 11274 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;} 11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 11276 $as_echo_n "checking for TAIL... " >&6; } 11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11278 $as_echo "disabled" >&6; } 11279 else 11280 # Check if the provided tool contains a complete path. 11281 tool_specified="$TAIL" 11282 tool_basename="${tool_specified##*/}" 11283 if test "x$tool_basename" = "x$tool_specified"; then 11284 # A command without a complete path is provided, search $PATH. 11285 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 11286 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 11287 # Extract the first word of "$tool_basename", so it can be a program name with args. 11288 set dummy $tool_basename; ac_word=$2 11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11290 $as_echo_n "checking for $ac_word... " >&6; } 11291 if ${ac_cv_path_TAIL+:} false; then : 11292 $as_echo_n "(cached) " >&6 11293 else 11294 case $TAIL in 11295 [\\/]* | ?:[\\/]*) 11296 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11297 ;; 11298 *) 11299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11300 for as_dir in $PATH 11301 do 11302 IFS=$as_save_IFS 11303 test -z "$as_dir" && as_dir=. 11304 for ac_exec_ext in '' $ac_executable_extensions; do 11305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11306 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11308 break 2 11309 fi 11310 done 11311 done 11312 IFS=$as_save_IFS 11313 11314 ;; 11315 esac 11316 fi 11317 TAIL=$ac_cv_path_TAIL 11318 if test -n "$TAIL"; then 11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11320 $as_echo "$TAIL" >&6; } 11321 else 11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11323 $as_echo "no" >&6; } 11324 fi 11325 11326 11327 if test "x$TAIL" = x; then 11328 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11329 fi 11330 else 11331 # Otherwise we believe it is a complete path. Use it as it is. 11332 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 11333 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 11335 $as_echo_n "checking for TAIL... " >&6; } 11336 if test ! -x "$tool_specified"; then 11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11338 $as_echo "not found" >&6; } 11339 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 11340 fi 11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11342 $as_echo "$tool_specified" >&6; } 11343 fi 11344 fi 11345 fi 11346 11347 fi 11348 11349 11350 11351 if test "x$TAIL" = x; then 11352 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 11353 fi 11354 11355 11356 11357 11358 11359 # Publish this variable in the help. 11360 11361 11362 if [ -z "${TAR+x}" ]; then 11363 # The variable is not set by user, try to locate tool using the code snippet 11364 for ac_prog in gtar tar 11365 do 11366 # Extract the first word of "$ac_prog", so it can be a program name with args. 11367 set dummy $ac_prog; ac_word=$2 11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11369 $as_echo_n "checking for $ac_word... " >&6; } 11370 if ${ac_cv_path_TAR+:} false; then : 11371 $as_echo_n "(cached) " >&6 11372 else 11373 case $TAR in 11374 [\\/]* | ?:[\\/]*) 11375 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11376 ;; 11377 *) 11378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11379 for as_dir in $PATH 11380 do 11381 IFS=$as_save_IFS 11382 test -z "$as_dir" && as_dir=. 11383 for ac_exec_ext in '' $ac_executable_extensions; do 11384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11385 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11387 break 2 11388 fi 11389 done 11390 done 11391 IFS=$as_save_IFS 11392 11393 ;; 11394 esac 11395 fi 11396 TAR=$ac_cv_path_TAR 11397 if test -n "$TAR"; then 11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11399 $as_echo "$TAR" >&6; } 11400 else 11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11402 $as_echo "no" >&6; } 11403 fi 11404 11405 11406 test -n "$TAR" && break 11407 done 11408 11409 else 11410 # The variable is set, but is it from the command line or the environment? 11411 11412 # Try to remove the string !TAR! from our list. 11413 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 11414 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11415 # If it failed, the variable was not from the command line. Ignore it, 11416 # but warn the user (except for BASH, which is always set by the calling BASH). 11417 if test "xTAR" != xBASH; then 11418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 11419 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 11420 fi 11421 # Try to locate tool using the code snippet 11422 for ac_prog in gtar tar 11423 do 11424 # Extract the first word of "$ac_prog", so it can be a program name with args. 11425 set dummy $ac_prog; ac_word=$2 11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11427 $as_echo_n "checking for $ac_word... " >&6; } 11428 if ${ac_cv_path_TAR+:} false; then : 11429 $as_echo_n "(cached) " >&6 11430 else 11431 case $TAR in 11432 [\\/]* | ?:[\\/]*) 11433 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11434 ;; 11435 *) 11436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11437 for as_dir in $PATH 11438 do 11439 IFS=$as_save_IFS 11440 test -z "$as_dir" && as_dir=. 11441 for ac_exec_ext in '' $ac_executable_extensions; do 11442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11443 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11445 break 2 11446 fi 11447 done 11448 done 11449 IFS=$as_save_IFS 11450 11451 ;; 11452 esac 11453 fi 11454 TAR=$ac_cv_path_TAR 11455 if test -n "$TAR"; then 11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11457 $as_echo "$TAR" >&6; } 11458 else 11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11460 $as_echo "no" >&6; } 11461 fi 11462 11463 11464 test -n "$TAR" && break 11465 done 11466 11467 else 11468 # If it succeeded, then it was overridden by the user. We will use it 11469 # for the tool. 11470 11471 # First remove it from the list of overridden variables, so we can test 11472 # for unknown variables in the end. 11473 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11474 11475 # Check if we try to supply an empty value 11476 if test "x$TAR" = x; then 11477 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5 11478 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;} 11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 11480 $as_echo_n "checking for TAR... " >&6; } 11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11482 $as_echo "disabled" >&6; } 11483 else 11484 # Check if the provided tool contains a complete path. 11485 tool_specified="$TAR" 11486 tool_basename="${tool_specified##*/}" 11487 if test "x$tool_basename" = "x$tool_specified"; then 11488 # A command without a complete path is provided, search $PATH. 11489 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 11490 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 11491 # Extract the first word of "$tool_basename", so it can be a program name with args. 11492 set dummy $tool_basename; ac_word=$2 11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11494 $as_echo_n "checking for $ac_word... " >&6; } 11495 if ${ac_cv_path_TAR+:} false; then : 11496 $as_echo_n "(cached) " >&6 11497 else 11498 case $TAR in 11499 [\\/]* | ?:[\\/]*) 11500 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11501 ;; 11502 *) 11503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11504 for as_dir in $PATH 11505 do 11506 IFS=$as_save_IFS 11507 test -z "$as_dir" && as_dir=. 11508 for ac_exec_ext in '' $ac_executable_extensions; do 11509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11510 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11512 break 2 11513 fi 11514 done 11515 done 11516 IFS=$as_save_IFS 11517 11518 ;; 11519 esac 11520 fi 11521 TAR=$ac_cv_path_TAR 11522 if test -n "$TAR"; then 11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11524 $as_echo "$TAR" >&6; } 11525 else 11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11527 $as_echo "no" >&6; } 11528 fi 11529 11530 11531 if test "x$TAR" = x; then 11532 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11533 fi 11534 else 11535 # Otherwise we believe it is a complete path. Use it as it is. 11536 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 11537 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 11539 $as_echo_n "checking for TAR... " >&6; } 11540 if test ! -x "$tool_specified"; then 11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11542 $as_echo "not found" >&6; } 11543 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 11544 fi 11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11546 $as_echo "$tool_specified" >&6; } 11547 fi 11548 fi 11549 fi 11550 11551 fi 11552 11553 11554 11555 if test "x$TAR" = x; then 11556 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 11557 fi 11558 11559 11560 11561 11562 11563 # Publish this variable in the help. 11564 11565 11566 if [ -z "${TEE+x}" ]; then 11567 # The variable is not set by user, try to locate tool using the code snippet 11568 for ac_prog in tee 11569 do 11570 # Extract the first word of "$ac_prog", so it can be a program name with args. 11571 set dummy $ac_prog; ac_word=$2 11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11573 $as_echo_n "checking for $ac_word... " >&6; } 11574 if ${ac_cv_path_TEE+:} false; then : 11575 $as_echo_n "(cached) " >&6 11576 else 11577 case $TEE in 11578 [\\/]* | ?:[\\/]*) 11579 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11580 ;; 11581 *) 11582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11583 for as_dir in $PATH 11584 do 11585 IFS=$as_save_IFS 11586 test -z "$as_dir" && as_dir=. 11587 for ac_exec_ext in '' $ac_executable_extensions; do 11588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11589 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11591 break 2 11592 fi 11593 done 11594 done 11595 IFS=$as_save_IFS 11596 11597 ;; 11598 esac 11599 fi 11600 TEE=$ac_cv_path_TEE 11601 if test -n "$TEE"; then 11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11603 $as_echo "$TEE" >&6; } 11604 else 11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11606 $as_echo "no" >&6; } 11607 fi 11608 11609 11610 test -n "$TEE" && break 11611 done 11612 11613 else 11614 # The variable is set, but is it from the command line or the environment? 11615 11616 # Try to remove the string !TEE! from our list. 11617 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 11618 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11619 # If it failed, the variable was not from the command line. Ignore it, 11620 # but warn the user (except for BASH, which is always set by the calling BASH). 11621 if test "xTEE" != xBASH; then 11622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 11623 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 11624 fi 11625 # Try to locate tool using the code snippet 11626 for ac_prog in tee 11627 do 11628 # Extract the first word of "$ac_prog", so it can be a program name with args. 11629 set dummy $ac_prog; ac_word=$2 11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11631 $as_echo_n "checking for $ac_word... " >&6; } 11632 if ${ac_cv_path_TEE+:} false; then : 11633 $as_echo_n "(cached) " >&6 11634 else 11635 case $TEE in 11636 [\\/]* | ?:[\\/]*) 11637 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11638 ;; 11639 *) 11640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11641 for as_dir in $PATH 11642 do 11643 IFS=$as_save_IFS 11644 test -z "$as_dir" && as_dir=. 11645 for ac_exec_ext in '' $ac_executable_extensions; do 11646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11647 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11649 break 2 11650 fi 11651 done 11652 done 11653 IFS=$as_save_IFS 11654 11655 ;; 11656 esac 11657 fi 11658 TEE=$ac_cv_path_TEE 11659 if test -n "$TEE"; then 11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11661 $as_echo "$TEE" >&6; } 11662 else 11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11664 $as_echo "no" >&6; } 11665 fi 11666 11667 11668 test -n "$TEE" && break 11669 done 11670 11671 else 11672 # If it succeeded, then it was overridden by the user. We will use it 11673 # for the tool. 11674 11675 # First remove it from the list of overridden variables, so we can test 11676 # for unknown variables in the end. 11677 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11678 11679 # Check if we try to supply an empty value 11680 if test "x$TEE" = x; then 11681 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5 11682 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;} 11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11684 $as_echo_n "checking for TEE... " >&6; } 11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11686 $as_echo "disabled" >&6; } 11687 else 11688 # Check if the provided tool contains a complete path. 11689 tool_specified="$TEE" 11690 tool_basename="${tool_specified##*/}" 11691 if test "x$tool_basename" = "x$tool_specified"; then 11692 # A command without a complete path is provided, search $PATH. 11693 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 11694 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 11695 # Extract the first word of "$tool_basename", so it can be a program name with args. 11696 set dummy $tool_basename; ac_word=$2 11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11698 $as_echo_n "checking for $ac_word... " >&6; } 11699 if ${ac_cv_path_TEE+:} false; then : 11700 $as_echo_n "(cached) " >&6 11701 else 11702 case $TEE in 11703 [\\/]* | ?:[\\/]*) 11704 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11705 ;; 11706 *) 11707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11708 for as_dir in $PATH 11709 do 11710 IFS=$as_save_IFS 11711 test -z "$as_dir" && as_dir=. 11712 for ac_exec_ext in '' $ac_executable_extensions; do 11713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11714 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11716 break 2 11717 fi 11718 done 11719 done 11720 IFS=$as_save_IFS 11721 11722 ;; 11723 esac 11724 fi 11725 TEE=$ac_cv_path_TEE 11726 if test -n "$TEE"; then 11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11728 $as_echo "$TEE" >&6; } 11729 else 11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11731 $as_echo "no" >&6; } 11732 fi 11733 11734 11735 if test "x$TEE" = x; then 11736 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11737 fi 11738 else 11739 # Otherwise we believe it is a complete path. Use it as it is. 11740 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 11741 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11743 $as_echo_n "checking for TEE... " >&6; } 11744 if test ! -x "$tool_specified"; then 11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11746 $as_echo "not found" >&6; } 11747 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 11748 fi 11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11750 $as_echo "$tool_specified" >&6; } 11751 fi 11752 fi 11753 fi 11754 11755 fi 11756 11757 11758 11759 if test "x$TEE" = x; then 11760 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 11761 fi 11762 11763 11764 11765 11766 11767 # Publish this variable in the help. 11768 11769 11770 if [ -z "${TOUCH+x}" ]; then 11771 # The variable is not set by user, try to locate tool using the code snippet 11772 for ac_prog in touch 11773 do 11774 # Extract the first word of "$ac_prog", so it can be a program name with args. 11775 set dummy $ac_prog; ac_word=$2 11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11777 $as_echo_n "checking for $ac_word... " >&6; } 11778 if ${ac_cv_path_TOUCH+:} false; then : 11779 $as_echo_n "(cached) " >&6 11780 else 11781 case $TOUCH in 11782 [\\/]* | ?:[\\/]*) 11783 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11784 ;; 11785 *) 11786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11787 for as_dir in $PATH 11788 do 11789 IFS=$as_save_IFS 11790 test -z "$as_dir" && as_dir=. 11791 for ac_exec_ext in '' $ac_executable_extensions; do 11792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11793 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11795 break 2 11796 fi 11797 done 11798 done 11799 IFS=$as_save_IFS 11800 11801 ;; 11802 esac 11803 fi 11804 TOUCH=$ac_cv_path_TOUCH 11805 if test -n "$TOUCH"; then 11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11807 $as_echo "$TOUCH" >&6; } 11808 else 11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11810 $as_echo "no" >&6; } 11811 fi 11812 11813 11814 test -n "$TOUCH" && break 11815 done 11816 11817 else 11818 # The variable is set, but is it from the command line or the environment? 11819 11820 # Try to remove the string !TOUCH! from our list. 11821 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 11822 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11823 # If it failed, the variable was not from the command line. Ignore it, 11824 # but warn the user (except for BASH, which is always set by the calling BASH). 11825 if test "xTOUCH" != xBASH; then 11826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 11827 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 11828 fi 11829 # Try to locate tool using the code snippet 11830 for ac_prog in touch 11831 do 11832 # Extract the first word of "$ac_prog", so it can be a program name with args. 11833 set dummy $ac_prog; ac_word=$2 11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11835 $as_echo_n "checking for $ac_word... " >&6; } 11836 if ${ac_cv_path_TOUCH+:} false; then : 11837 $as_echo_n "(cached) " >&6 11838 else 11839 case $TOUCH in 11840 [\\/]* | ?:[\\/]*) 11841 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11842 ;; 11843 *) 11844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11845 for as_dir in $PATH 11846 do 11847 IFS=$as_save_IFS 11848 test -z "$as_dir" && as_dir=. 11849 for ac_exec_ext in '' $ac_executable_extensions; do 11850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11851 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11853 break 2 11854 fi 11855 done 11856 done 11857 IFS=$as_save_IFS 11858 11859 ;; 11860 esac 11861 fi 11862 TOUCH=$ac_cv_path_TOUCH 11863 if test -n "$TOUCH"; then 11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11865 $as_echo "$TOUCH" >&6; } 11866 else 11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11868 $as_echo "no" >&6; } 11869 fi 11870 11871 11872 test -n "$TOUCH" && break 11873 done 11874 11875 else 11876 # If it succeeded, then it was overridden by the user. We will use it 11877 # for the tool. 11878 11879 # First remove it from the list of overridden variables, so we can test 11880 # for unknown variables in the end. 11881 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11882 11883 # Check if we try to supply an empty value 11884 if test "x$TOUCH" = x; then 11885 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5 11886 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;} 11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11888 $as_echo_n "checking for TOUCH... " >&6; } 11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11890 $as_echo "disabled" >&6; } 11891 else 11892 # Check if the provided tool contains a complete path. 11893 tool_specified="$TOUCH" 11894 tool_basename="${tool_specified##*/}" 11895 if test "x$tool_basename" = "x$tool_specified"; then 11896 # A command without a complete path is provided, search $PATH. 11897 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 11898 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 11899 # Extract the first word of "$tool_basename", so it can be a program name with args. 11900 set dummy $tool_basename; ac_word=$2 11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11902 $as_echo_n "checking for $ac_word... " >&6; } 11903 if ${ac_cv_path_TOUCH+:} false; then : 11904 $as_echo_n "(cached) " >&6 11905 else 11906 case $TOUCH in 11907 [\\/]* | ?:[\\/]*) 11908 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11909 ;; 11910 *) 11911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11912 for as_dir in $PATH 11913 do 11914 IFS=$as_save_IFS 11915 test -z "$as_dir" && as_dir=. 11916 for ac_exec_ext in '' $ac_executable_extensions; do 11917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11918 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11920 break 2 11921 fi 11922 done 11923 done 11924 IFS=$as_save_IFS 11925 11926 ;; 11927 esac 11928 fi 11929 TOUCH=$ac_cv_path_TOUCH 11930 if test -n "$TOUCH"; then 11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11932 $as_echo "$TOUCH" >&6; } 11933 else 11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11935 $as_echo "no" >&6; } 11936 fi 11937 11938 11939 if test "x$TOUCH" = x; then 11940 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11941 fi 11942 else 11943 # Otherwise we believe it is a complete path. Use it as it is. 11944 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 11945 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11947 $as_echo_n "checking for TOUCH... " >&6; } 11948 if test ! -x "$tool_specified"; then 11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11950 $as_echo "not found" >&6; } 11951 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 11952 fi 11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11954 $as_echo "$tool_specified" >&6; } 11955 fi 11956 fi 11957 fi 11958 11959 fi 11960 11961 11962 11963 if test "x$TOUCH" = x; then 11964 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 11965 fi 11966 11967 11968 11969 11970 11971 # Publish this variable in the help. 11972 11973 11974 if [ -z "${TR+x}" ]; then 11975 # The variable is not set by user, try to locate tool using the code snippet 11976 for ac_prog in tr 11977 do 11978 # Extract the first word of "$ac_prog", so it can be a program name with args. 11979 set dummy $ac_prog; ac_word=$2 11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11981 $as_echo_n "checking for $ac_word... " >&6; } 11982 if ${ac_cv_path_TR+:} false; then : 11983 $as_echo_n "(cached) " >&6 11984 else 11985 case $TR in 11986 [\\/]* | ?:[\\/]*) 11987 ac_cv_path_TR="$TR" # Let the user override the test with a path. 11988 ;; 11989 *) 11990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11991 for as_dir in $PATH 11992 do 11993 IFS=$as_save_IFS 11994 test -z "$as_dir" && as_dir=. 11995 for ac_exec_ext in '' $ac_executable_extensions; do 11996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11997 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 11998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11999 break 2 12000 fi 12001 done 12002 done 12003 IFS=$as_save_IFS 12004 12005 ;; 12006 esac 12007 fi 12008 TR=$ac_cv_path_TR 12009 if test -n "$TR"; then 12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12011 $as_echo "$TR" >&6; } 12012 else 12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12014 $as_echo "no" >&6; } 12015 fi 12016 12017 12018 test -n "$TR" && break 12019 done 12020 12021 else 12022 # The variable is set, but is it from the command line or the environment? 12023 12024 # Try to remove the string !TR! from our list. 12025 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 12026 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12027 # If it failed, the variable was not from the command line. Ignore it, 12028 # but warn the user (except for BASH, which is always set by the calling BASH). 12029 if test "xTR" != xBASH; then 12030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 12031 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 12032 fi 12033 # Try to locate tool using the code snippet 12034 for ac_prog in tr 12035 do 12036 # Extract the first word of "$ac_prog", so it can be a program name with args. 12037 set dummy $ac_prog; ac_word=$2 12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12039 $as_echo_n "checking for $ac_word... " >&6; } 12040 if ${ac_cv_path_TR+:} false; then : 12041 $as_echo_n "(cached) " >&6 12042 else 12043 case $TR in 12044 [\\/]* | ?:[\\/]*) 12045 ac_cv_path_TR="$TR" # Let the user override the test with a path. 12046 ;; 12047 *) 12048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12049 for as_dir in $PATH 12050 do 12051 IFS=$as_save_IFS 12052 test -z "$as_dir" && as_dir=. 12053 for ac_exec_ext in '' $ac_executable_extensions; do 12054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12055 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 12056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12057 break 2 12058 fi 12059 done 12060 done 12061 IFS=$as_save_IFS 12062 12063 ;; 12064 esac 12065 fi 12066 TR=$ac_cv_path_TR 12067 if test -n "$TR"; then 12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12069 $as_echo "$TR" >&6; } 12070 else 12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12072 $as_echo "no" >&6; } 12073 fi 12074 12075 12076 test -n "$TR" && break 12077 done 12078 12079 else 12080 # If it succeeded, then it was overridden by the user. We will use it 12081 # for the tool. 12082 12083 # First remove it from the list of overridden variables, so we can test 12084 # for unknown variables in the end. 12085 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12086 12087 # Check if we try to supply an empty value 12088 if test "x$TR" = x; then 12089 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5 12090 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;} 12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 12092 $as_echo_n "checking for TR... " >&6; } 12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12094 $as_echo "disabled" >&6; } 12095 else 12096 # Check if the provided tool contains a complete path. 12097 tool_specified="$TR" 12098 tool_basename="${tool_specified##*/}" 12099 if test "x$tool_basename" = "x$tool_specified"; then 12100 # A command without a complete path is provided, search $PATH. 12101 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 12102 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 12103 # Extract the first word of "$tool_basename", so it can be a program name with args. 12104 set dummy $tool_basename; ac_word=$2 12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12106 $as_echo_n "checking for $ac_word... " >&6; } 12107 if ${ac_cv_path_TR+:} false; then : 12108 $as_echo_n "(cached) " >&6 12109 else 12110 case $TR in 12111 [\\/]* | ?:[\\/]*) 12112 ac_cv_path_TR="$TR" # Let the user override the test with a path. 12113 ;; 12114 *) 12115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12116 for as_dir in $PATH 12117 do 12118 IFS=$as_save_IFS 12119 test -z "$as_dir" && as_dir=. 12120 for ac_exec_ext in '' $ac_executable_extensions; do 12121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12122 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 12123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12124 break 2 12125 fi 12126 done 12127 done 12128 IFS=$as_save_IFS 12129 12130 ;; 12131 esac 12132 fi 12133 TR=$ac_cv_path_TR 12134 if test -n "$TR"; then 12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12136 $as_echo "$TR" >&6; } 12137 else 12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12139 $as_echo "no" >&6; } 12140 fi 12141 12142 12143 if test "x$TR" = x; then 12144 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12145 fi 12146 else 12147 # Otherwise we believe it is a complete path. Use it as it is. 12148 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 12149 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 12151 $as_echo_n "checking for TR... " >&6; } 12152 if test ! -x "$tool_specified"; then 12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12154 $as_echo "not found" >&6; } 12155 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 12156 fi 12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12158 $as_echo "$tool_specified" >&6; } 12159 fi 12160 fi 12161 fi 12162 12163 fi 12164 12165 12166 12167 if test "x$TR" = x; then 12168 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 12169 fi 12170 12171 12172 12173 12174 12175 # Publish this variable in the help. 12176 12177 12178 if [ -z "${UNAME+x}" ]; then 12179 # The variable is not set by user, try to locate tool using the code snippet 12180 for ac_prog in uname 12181 do 12182 # Extract the first word of "$ac_prog", so it can be a program name with args. 12183 set dummy $ac_prog; ac_word=$2 12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12185 $as_echo_n "checking for $ac_word... " >&6; } 12186 if ${ac_cv_path_UNAME+:} false; then : 12187 $as_echo_n "(cached) " >&6 12188 else 12189 case $UNAME in 12190 [\\/]* | ?:[\\/]*) 12191 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12192 ;; 12193 *) 12194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12195 for as_dir in $PATH 12196 do 12197 IFS=$as_save_IFS 12198 test -z "$as_dir" && as_dir=. 12199 for ac_exec_ext in '' $ac_executable_extensions; do 12200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12201 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12203 break 2 12204 fi 12205 done 12206 done 12207 IFS=$as_save_IFS 12208 12209 ;; 12210 esac 12211 fi 12212 UNAME=$ac_cv_path_UNAME 12213 if test -n "$UNAME"; then 12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12215 $as_echo "$UNAME" >&6; } 12216 else 12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12218 $as_echo "no" >&6; } 12219 fi 12220 12221 12222 test -n "$UNAME" && break 12223 done 12224 12225 else 12226 # The variable is set, but is it from the command line or the environment? 12227 12228 # Try to remove the string !UNAME! from our list. 12229 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 12230 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12231 # If it failed, the variable was not from the command line. Ignore it, 12232 # but warn the user (except for BASH, which is always set by the calling BASH). 12233 if test "xUNAME" != xBASH; then 12234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 12235 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 12236 fi 12237 # Try to locate tool using the code snippet 12238 for ac_prog in uname 12239 do 12240 # Extract the first word of "$ac_prog", so it can be a program name with args. 12241 set dummy $ac_prog; ac_word=$2 12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12243 $as_echo_n "checking for $ac_word... " >&6; } 12244 if ${ac_cv_path_UNAME+:} false; then : 12245 $as_echo_n "(cached) " >&6 12246 else 12247 case $UNAME in 12248 [\\/]* | ?:[\\/]*) 12249 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12250 ;; 12251 *) 12252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12253 for as_dir in $PATH 12254 do 12255 IFS=$as_save_IFS 12256 test -z "$as_dir" && as_dir=. 12257 for ac_exec_ext in '' $ac_executable_extensions; do 12258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12259 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12261 break 2 12262 fi 12263 done 12264 done 12265 IFS=$as_save_IFS 12266 12267 ;; 12268 esac 12269 fi 12270 UNAME=$ac_cv_path_UNAME 12271 if test -n "$UNAME"; then 12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12273 $as_echo "$UNAME" >&6; } 12274 else 12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12276 $as_echo "no" >&6; } 12277 fi 12278 12279 12280 test -n "$UNAME" && break 12281 done 12282 12283 else 12284 # If it succeeded, then it was overridden by the user. We will use it 12285 # for the tool. 12286 12287 # First remove it from the list of overridden variables, so we can test 12288 # for unknown variables in the end. 12289 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12290 12291 # Check if we try to supply an empty value 12292 if test "x$UNAME" = x; then 12293 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5 12294 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;} 12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 12296 $as_echo_n "checking for UNAME... " >&6; } 12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12298 $as_echo "disabled" >&6; } 12299 else 12300 # Check if the provided tool contains a complete path. 12301 tool_specified="$UNAME" 12302 tool_basename="${tool_specified##*/}" 12303 if test "x$tool_basename" = "x$tool_specified"; then 12304 # A command without a complete path is provided, search $PATH. 12305 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 12306 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 12307 # Extract the first word of "$tool_basename", so it can be a program name with args. 12308 set dummy $tool_basename; ac_word=$2 12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12310 $as_echo_n "checking for $ac_word... " >&6; } 12311 if ${ac_cv_path_UNAME+:} false; then : 12312 $as_echo_n "(cached) " >&6 12313 else 12314 case $UNAME in 12315 [\\/]* | ?:[\\/]*) 12316 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12317 ;; 12318 *) 12319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12320 for as_dir in $PATH 12321 do 12322 IFS=$as_save_IFS 12323 test -z "$as_dir" && as_dir=. 12324 for ac_exec_ext in '' $ac_executable_extensions; do 12325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12326 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12328 break 2 12329 fi 12330 done 12331 done 12332 IFS=$as_save_IFS 12333 12334 ;; 12335 esac 12336 fi 12337 UNAME=$ac_cv_path_UNAME 12338 if test -n "$UNAME"; then 12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12340 $as_echo "$UNAME" >&6; } 12341 else 12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12343 $as_echo "no" >&6; } 12344 fi 12345 12346 12347 if test "x$UNAME" = x; then 12348 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12349 fi 12350 else 12351 # Otherwise we believe it is a complete path. Use it as it is. 12352 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 12353 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 12355 $as_echo_n "checking for UNAME... " >&6; } 12356 if test ! -x "$tool_specified"; then 12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12358 $as_echo "not found" >&6; } 12359 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 12360 fi 12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12362 $as_echo "$tool_specified" >&6; } 12363 fi 12364 fi 12365 fi 12366 12367 fi 12368 12369 12370 12371 if test "x$UNAME" = x; then 12372 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 12373 fi 12374 12375 12376 12377 12378 12379 # Publish this variable in the help. 12380 12381 12382 if [ -z "${UNIQ+x}" ]; then 12383 # The variable is not set by user, try to locate tool using the code snippet 12384 for ac_prog in uniq 12385 do 12386 # Extract the first word of "$ac_prog", so it can be a program name with args. 12387 set dummy $ac_prog; ac_word=$2 12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12389 $as_echo_n "checking for $ac_word... " >&6; } 12390 if ${ac_cv_path_UNIQ+:} false; then : 12391 $as_echo_n "(cached) " >&6 12392 else 12393 case $UNIQ in 12394 [\\/]* | ?:[\\/]*) 12395 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12396 ;; 12397 *) 12398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12399 for as_dir in $PATH 12400 do 12401 IFS=$as_save_IFS 12402 test -z "$as_dir" && as_dir=. 12403 for ac_exec_ext in '' $ac_executable_extensions; do 12404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12405 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12407 break 2 12408 fi 12409 done 12410 done 12411 IFS=$as_save_IFS 12412 12413 ;; 12414 esac 12415 fi 12416 UNIQ=$ac_cv_path_UNIQ 12417 if test -n "$UNIQ"; then 12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12419 $as_echo "$UNIQ" >&6; } 12420 else 12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12422 $as_echo "no" >&6; } 12423 fi 12424 12425 12426 test -n "$UNIQ" && break 12427 done 12428 12429 else 12430 # The variable is set, but is it from the command line or the environment? 12431 12432 # Try to remove the string !UNIQ! from our list. 12433 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 12434 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12435 # If it failed, the variable was not from the command line. Ignore it, 12436 # but warn the user (except for BASH, which is always set by the calling BASH). 12437 if test "xUNIQ" != xBASH; then 12438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 12439 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 12440 fi 12441 # Try to locate tool using the code snippet 12442 for ac_prog in uniq 12443 do 12444 # Extract the first word of "$ac_prog", so it can be a program name with args. 12445 set dummy $ac_prog; ac_word=$2 12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12447 $as_echo_n "checking for $ac_word... " >&6; } 12448 if ${ac_cv_path_UNIQ+:} false; then : 12449 $as_echo_n "(cached) " >&6 12450 else 12451 case $UNIQ in 12452 [\\/]* | ?:[\\/]*) 12453 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12454 ;; 12455 *) 12456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12457 for as_dir in $PATH 12458 do 12459 IFS=$as_save_IFS 12460 test -z "$as_dir" && as_dir=. 12461 for ac_exec_ext in '' $ac_executable_extensions; do 12462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12463 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12465 break 2 12466 fi 12467 done 12468 done 12469 IFS=$as_save_IFS 12470 12471 ;; 12472 esac 12473 fi 12474 UNIQ=$ac_cv_path_UNIQ 12475 if test -n "$UNIQ"; then 12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12477 $as_echo "$UNIQ" >&6; } 12478 else 12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12480 $as_echo "no" >&6; } 12481 fi 12482 12483 12484 test -n "$UNIQ" && break 12485 done 12486 12487 else 12488 # If it succeeded, then it was overridden by the user. We will use it 12489 # for the tool. 12490 12491 # First remove it from the list of overridden variables, so we can test 12492 # for unknown variables in the end. 12493 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12494 12495 # Check if we try to supply an empty value 12496 if test "x$UNIQ" = x; then 12497 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5 12498 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;} 12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 12500 $as_echo_n "checking for UNIQ... " >&6; } 12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12502 $as_echo "disabled" >&6; } 12503 else 12504 # Check if the provided tool contains a complete path. 12505 tool_specified="$UNIQ" 12506 tool_basename="${tool_specified##*/}" 12507 if test "x$tool_basename" = "x$tool_specified"; then 12508 # A command without a complete path is provided, search $PATH. 12509 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 12510 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 12511 # Extract the first word of "$tool_basename", so it can be a program name with args. 12512 set dummy $tool_basename; ac_word=$2 12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12514 $as_echo_n "checking for $ac_word... " >&6; } 12515 if ${ac_cv_path_UNIQ+:} false; then : 12516 $as_echo_n "(cached) " >&6 12517 else 12518 case $UNIQ in 12519 [\\/]* | ?:[\\/]*) 12520 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12521 ;; 12522 *) 12523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12524 for as_dir in $PATH 12525 do 12526 IFS=$as_save_IFS 12527 test -z "$as_dir" && as_dir=. 12528 for ac_exec_ext in '' $ac_executable_extensions; do 12529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12530 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12532 break 2 12533 fi 12534 done 12535 done 12536 IFS=$as_save_IFS 12537 12538 ;; 12539 esac 12540 fi 12541 UNIQ=$ac_cv_path_UNIQ 12542 if test -n "$UNIQ"; then 12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12544 $as_echo "$UNIQ" >&6; } 12545 else 12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12547 $as_echo "no" >&6; } 12548 fi 12549 12550 12551 if test "x$UNIQ" = x; then 12552 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12553 fi 12554 else 12555 # Otherwise we believe it is a complete path. Use it as it is. 12556 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 12557 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 12559 $as_echo_n "checking for UNIQ... " >&6; } 12560 if test ! -x "$tool_specified"; then 12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12562 $as_echo "not found" >&6; } 12563 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 12564 fi 12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12566 $as_echo "$tool_specified" >&6; } 12567 fi 12568 fi 12569 fi 12570 12571 fi 12572 12573 12574 12575 if test "x$UNIQ" = x; then 12576 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 12577 fi 12578 12579 12580 12581 12582 12583 # Publish this variable in the help. 12584 12585 12586 if [ -z "${WC+x}" ]; then 12587 # The variable is not set by user, try to locate tool using the code snippet 12588 for ac_prog in wc 12589 do 12590 # Extract the first word of "$ac_prog", so it can be a program name with args. 12591 set dummy $ac_prog; ac_word=$2 12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12593 $as_echo_n "checking for $ac_word... " >&6; } 12594 if ${ac_cv_path_WC+:} false; then : 12595 $as_echo_n "(cached) " >&6 12596 else 12597 case $WC in 12598 [\\/]* | ?:[\\/]*) 12599 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12600 ;; 12601 *) 12602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12603 for as_dir in $PATH 12604 do 12605 IFS=$as_save_IFS 12606 test -z "$as_dir" && as_dir=. 12607 for ac_exec_ext in '' $ac_executable_extensions; do 12608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12609 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12611 break 2 12612 fi 12613 done 12614 done 12615 IFS=$as_save_IFS 12616 12617 ;; 12618 esac 12619 fi 12620 WC=$ac_cv_path_WC 12621 if test -n "$WC"; then 12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12623 $as_echo "$WC" >&6; } 12624 else 12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12626 $as_echo "no" >&6; } 12627 fi 12628 12629 12630 test -n "$WC" && break 12631 done 12632 12633 else 12634 # The variable is set, but is it from the command line or the environment? 12635 12636 # Try to remove the string !WC! from our list. 12637 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 12638 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12639 # If it failed, the variable was not from the command line. Ignore it, 12640 # but warn the user (except for BASH, which is always set by the calling BASH). 12641 if test "xWC" != xBASH; then 12642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 12643 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 12644 fi 12645 # Try to locate tool using the code snippet 12646 for ac_prog in wc 12647 do 12648 # Extract the first word of "$ac_prog", so it can be a program name with args. 12649 set dummy $ac_prog; ac_word=$2 12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12651 $as_echo_n "checking for $ac_word... " >&6; } 12652 if ${ac_cv_path_WC+:} false; then : 12653 $as_echo_n "(cached) " >&6 12654 else 12655 case $WC in 12656 [\\/]* | ?:[\\/]*) 12657 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12658 ;; 12659 *) 12660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12661 for as_dir in $PATH 12662 do 12663 IFS=$as_save_IFS 12664 test -z "$as_dir" && as_dir=. 12665 for ac_exec_ext in '' $ac_executable_extensions; do 12666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12667 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12669 break 2 12670 fi 12671 done 12672 done 12673 IFS=$as_save_IFS 12674 12675 ;; 12676 esac 12677 fi 12678 WC=$ac_cv_path_WC 12679 if test -n "$WC"; then 12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12681 $as_echo "$WC" >&6; } 12682 else 12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12684 $as_echo "no" >&6; } 12685 fi 12686 12687 12688 test -n "$WC" && break 12689 done 12690 12691 else 12692 # If it succeeded, then it was overridden by the user. We will use it 12693 # for the tool. 12694 12695 # First remove it from the list of overridden variables, so we can test 12696 # for unknown variables in the end. 12697 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12698 12699 # Check if we try to supply an empty value 12700 if test "x$WC" = x; then 12701 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5 12702 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;} 12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12704 $as_echo_n "checking for WC... " >&6; } 12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12706 $as_echo "disabled" >&6; } 12707 else 12708 # Check if the provided tool contains a complete path. 12709 tool_specified="$WC" 12710 tool_basename="${tool_specified##*/}" 12711 if test "x$tool_basename" = "x$tool_specified"; then 12712 # A command without a complete path is provided, search $PATH. 12713 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 12714 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 12715 # Extract the first word of "$tool_basename", so it can be a program name with args. 12716 set dummy $tool_basename; ac_word=$2 12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12718 $as_echo_n "checking for $ac_word... " >&6; } 12719 if ${ac_cv_path_WC+:} false; then : 12720 $as_echo_n "(cached) " >&6 12721 else 12722 case $WC in 12723 [\\/]* | ?:[\\/]*) 12724 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12725 ;; 12726 *) 12727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12728 for as_dir in $PATH 12729 do 12730 IFS=$as_save_IFS 12731 test -z "$as_dir" && as_dir=. 12732 for ac_exec_ext in '' $ac_executable_extensions; do 12733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12734 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12736 break 2 12737 fi 12738 done 12739 done 12740 IFS=$as_save_IFS 12741 12742 ;; 12743 esac 12744 fi 12745 WC=$ac_cv_path_WC 12746 if test -n "$WC"; then 12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12748 $as_echo "$WC" >&6; } 12749 else 12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12751 $as_echo "no" >&6; } 12752 fi 12753 12754 12755 if test "x$WC" = x; then 12756 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12757 fi 12758 else 12759 # Otherwise we believe it is a complete path. Use it as it is. 12760 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 12761 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12763 $as_echo_n "checking for WC... " >&6; } 12764 if test ! -x "$tool_specified"; then 12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12766 $as_echo "not found" >&6; } 12767 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 12768 fi 12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12770 $as_echo "$tool_specified" >&6; } 12771 fi 12772 fi 12773 fi 12774 12775 fi 12776 12777 12778 12779 if test "x$WC" = x; then 12780 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 12781 fi 12782 12783 12784 12785 12786 12787 # Publish this variable in the help. 12788 12789 12790 if [ -z "${WHICH+x}" ]; then 12791 # The variable is not set by user, try to locate tool using the code snippet 12792 for ac_prog in which 12793 do 12794 # Extract the first word of "$ac_prog", so it can be a program name with args. 12795 set dummy $ac_prog; ac_word=$2 12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12797 $as_echo_n "checking for $ac_word... " >&6; } 12798 if ${ac_cv_path_WHICH+:} false; then : 12799 $as_echo_n "(cached) " >&6 12800 else 12801 case $WHICH in 12802 [\\/]* | ?:[\\/]*) 12803 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12804 ;; 12805 *) 12806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12807 for as_dir in $PATH 12808 do 12809 IFS=$as_save_IFS 12810 test -z "$as_dir" && as_dir=. 12811 for ac_exec_ext in '' $ac_executable_extensions; do 12812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12813 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12815 break 2 12816 fi 12817 done 12818 done 12819 IFS=$as_save_IFS 12820 12821 ;; 12822 esac 12823 fi 12824 WHICH=$ac_cv_path_WHICH 12825 if test -n "$WHICH"; then 12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12827 $as_echo "$WHICH" >&6; } 12828 else 12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12830 $as_echo "no" >&6; } 12831 fi 12832 12833 12834 test -n "$WHICH" && break 12835 done 12836 12837 else 12838 # The variable is set, but is it from the command line or the environment? 12839 12840 # Try to remove the string !WHICH! from our list. 12841 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 12842 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12843 # If it failed, the variable was not from the command line. Ignore it, 12844 # but warn the user (except for BASH, which is always set by the calling BASH). 12845 if test "xWHICH" != xBASH; then 12846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 12847 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 12848 fi 12849 # Try to locate tool using the code snippet 12850 for ac_prog in which 12851 do 12852 # Extract the first word of "$ac_prog", so it can be a program name with args. 12853 set dummy $ac_prog; ac_word=$2 12854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12855 $as_echo_n "checking for $ac_word... " >&6; } 12856 if ${ac_cv_path_WHICH+:} false; then : 12857 $as_echo_n "(cached) " >&6 12858 else 12859 case $WHICH in 12860 [\\/]* | ?:[\\/]*) 12861 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12862 ;; 12863 *) 12864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12865 for as_dir in $PATH 12866 do 12867 IFS=$as_save_IFS 12868 test -z "$as_dir" && as_dir=. 12869 for ac_exec_ext in '' $ac_executable_extensions; do 12870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12871 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12873 break 2 12874 fi 12875 done 12876 done 12877 IFS=$as_save_IFS 12878 12879 ;; 12880 esac 12881 fi 12882 WHICH=$ac_cv_path_WHICH 12883 if test -n "$WHICH"; then 12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12885 $as_echo "$WHICH" >&6; } 12886 else 12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12888 $as_echo "no" >&6; } 12889 fi 12890 12891 12892 test -n "$WHICH" && break 12893 done 12894 12895 else 12896 # If it succeeded, then it was overridden by the user. We will use it 12897 # for the tool. 12898 12899 # First remove it from the list of overridden variables, so we can test 12900 # for unknown variables in the end. 12901 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12902 12903 # Check if we try to supply an empty value 12904 if test "x$WHICH" = x; then 12905 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5 12906 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;} 12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12908 $as_echo_n "checking for WHICH... " >&6; } 12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12910 $as_echo "disabled" >&6; } 12911 else 12912 # Check if the provided tool contains a complete path. 12913 tool_specified="$WHICH" 12914 tool_basename="${tool_specified##*/}" 12915 if test "x$tool_basename" = "x$tool_specified"; then 12916 # A command without a complete path is provided, search $PATH. 12917 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 12918 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 12919 # Extract the first word of "$tool_basename", so it can be a program name with args. 12920 set dummy $tool_basename; ac_word=$2 12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12922 $as_echo_n "checking for $ac_word... " >&6; } 12923 if ${ac_cv_path_WHICH+:} false; then : 12924 $as_echo_n "(cached) " >&6 12925 else 12926 case $WHICH in 12927 [\\/]* | ?:[\\/]*) 12928 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12929 ;; 12930 *) 12931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12932 for as_dir in $PATH 12933 do 12934 IFS=$as_save_IFS 12935 test -z "$as_dir" && as_dir=. 12936 for ac_exec_ext in '' $ac_executable_extensions; do 12937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12938 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12940 break 2 12941 fi 12942 done 12943 done 12944 IFS=$as_save_IFS 12945 12946 ;; 12947 esac 12948 fi 12949 WHICH=$ac_cv_path_WHICH 12950 if test -n "$WHICH"; then 12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12952 $as_echo "$WHICH" >&6; } 12953 else 12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12955 $as_echo "no" >&6; } 12956 fi 12957 12958 12959 if test "x$WHICH" = x; then 12960 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12961 fi 12962 else 12963 # Otherwise we believe it is a complete path. Use it as it is. 12964 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 12965 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12967 $as_echo_n "checking for WHICH... " >&6; } 12968 if test ! -x "$tool_specified"; then 12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12970 $as_echo "not found" >&6; } 12971 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 12972 fi 12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12974 $as_echo "$tool_specified" >&6; } 12975 fi 12976 fi 12977 fi 12978 12979 fi 12980 12981 12982 12983 if test "x$WHICH" = x; then 12984 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 12985 fi 12986 12987 12988 12989 12990 12991 # Publish this variable in the help. 12992 12993 12994 if [ -z "${XARGS+x}" ]; then 12995 # The variable is not set by user, try to locate tool using the code snippet 12996 for ac_prog in xargs 12997 do 12998 # Extract the first word of "$ac_prog", so it can be a program name with args. 12999 set dummy $ac_prog; ac_word=$2 13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13001 $as_echo_n "checking for $ac_word... " >&6; } 13002 if ${ac_cv_path_XARGS+:} false; then : 13003 $as_echo_n "(cached) " >&6 13004 else 13005 case $XARGS in 13006 [\\/]* | ?:[\\/]*) 13007 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13008 ;; 13009 *) 13010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13011 for as_dir in $PATH 13012 do 13013 IFS=$as_save_IFS 13014 test -z "$as_dir" && as_dir=. 13015 for ac_exec_ext in '' $ac_executable_extensions; do 13016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13017 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13019 break 2 13020 fi 13021 done 13022 done 13023 IFS=$as_save_IFS 13024 13025 ;; 13026 esac 13027 fi 13028 XARGS=$ac_cv_path_XARGS 13029 if test -n "$XARGS"; then 13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13031 $as_echo "$XARGS" >&6; } 13032 else 13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13034 $as_echo "no" >&6; } 13035 fi 13036 13037 13038 test -n "$XARGS" && break 13039 done 13040 13041 else 13042 # The variable is set, but is it from the command line or the environment? 13043 13044 # Try to remove the string !XARGS! from our list. 13045 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 13046 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13047 # If it failed, the variable was not from the command line. Ignore it, 13048 # but warn the user (except for BASH, which is always set by the calling BASH). 13049 if test "xXARGS" != xBASH; then 13050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 13051 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 13052 fi 13053 # Try to locate tool using the code snippet 13054 for ac_prog in xargs 13055 do 13056 # Extract the first word of "$ac_prog", so it can be a program name with args. 13057 set dummy $ac_prog; ac_word=$2 13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13059 $as_echo_n "checking for $ac_word... " >&6; } 13060 if ${ac_cv_path_XARGS+:} false; then : 13061 $as_echo_n "(cached) " >&6 13062 else 13063 case $XARGS in 13064 [\\/]* | ?:[\\/]*) 13065 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13066 ;; 13067 *) 13068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13069 for as_dir in $PATH 13070 do 13071 IFS=$as_save_IFS 13072 test -z "$as_dir" && as_dir=. 13073 for ac_exec_ext in '' $ac_executable_extensions; do 13074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13075 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13077 break 2 13078 fi 13079 done 13080 done 13081 IFS=$as_save_IFS 13082 13083 ;; 13084 esac 13085 fi 13086 XARGS=$ac_cv_path_XARGS 13087 if test -n "$XARGS"; then 13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13089 $as_echo "$XARGS" >&6; } 13090 else 13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13092 $as_echo "no" >&6; } 13093 fi 13094 13095 13096 test -n "$XARGS" && break 13097 done 13098 13099 else 13100 # If it succeeded, then it was overridden by the user. We will use it 13101 # for the tool. 13102 13103 # First remove it from the list of overridden variables, so we can test 13104 # for unknown variables in the end. 13105 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13106 13107 # Check if we try to supply an empty value 13108 if test "x$XARGS" = x; then 13109 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5 13110 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;} 13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 13112 $as_echo_n "checking for XARGS... " >&6; } 13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13114 $as_echo "disabled" >&6; } 13115 else 13116 # Check if the provided tool contains a complete path. 13117 tool_specified="$XARGS" 13118 tool_basename="${tool_specified##*/}" 13119 if test "x$tool_basename" = "x$tool_specified"; then 13120 # A command without a complete path is provided, search $PATH. 13121 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 13122 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 13123 # Extract the first word of "$tool_basename", so it can be a program name with args. 13124 set dummy $tool_basename; ac_word=$2 13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13126 $as_echo_n "checking for $ac_word... " >&6; } 13127 if ${ac_cv_path_XARGS+:} false; then : 13128 $as_echo_n "(cached) " >&6 13129 else 13130 case $XARGS in 13131 [\\/]* | ?:[\\/]*) 13132 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13133 ;; 13134 *) 13135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13136 for as_dir in $PATH 13137 do 13138 IFS=$as_save_IFS 13139 test -z "$as_dir" && as_dir=. 13140 for ac_exec_ext in '' $ac_executable_extensions; do 13141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13142 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13144 break 2 13145 fi 13146 done 13147 done 13148 IFS=$as_save_IFS 13149 13150 ;; 13151 esac 13152 fi 13153 XARGS=$ac_cv_path_XARGS 13154 if test -n "$XARGS"; then 13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13156 $as_echo "$XARGS" >&6; } 13157 else 13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13159 $as_echo "no" >&6; } 13160 fi 13161 13162 13163 if test "x$XARGS" = x; then 13164 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13165 fi 13166 else 13167 # Otherwise we believe it is a complete path. Use it as it is. 13168 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 13169 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 13171 $as_echo_n "checking for XARGS... " >&6; } 13172 if test ! -x "$tool_specified"; then 13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13174 $as_echo "not found" >&6; } 13175 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 13176 fi 13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13178 $as_echo "$tool_specified" >&6; } 13179 fi 13180 fi 13181 fi 13182 13183 fi 13184 13185 13186 13187 if test "x$XARGS" = x; then 13188 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 13189 fi 13190 13191 13192 13193 # Then required tools that require some special treatment. 13194 13195 13196 # Publish this variable in the help. 13197 13198 13199 if [ -z "${AWK+x}" ]; then 13200 # The variable is not set by user, try to locate tool using the code snippet 13201 for ac_prog in gawk mawk nawk awk 13202 do 13203 # Extract the first word of "$ac_prog", so it can be a program name with args. 13204 set dummy $ac_prog; ac_word=$2 13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13206 $as_echo_n "checking for $ac_word... " >&6; } 13207 if ${ac_cv_prog_AWK+:} false; then : 13208 $as_echo_n "(cached) " >&6 13209 else 13210 if test -n "$AWK"; then 13211 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13212 else 13213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13214 for as_dir in $PATH 13215 do 13216 IFS=$as_save_IFS 13217 test -z "$as_dir" && as_dir=. 13218 for ac_exec_ext in '' $ac_executable_extensions; do 13219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13220 ac_cv_prog_AWK="$ac_prog" 13221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13222 break 2 13223 fi 13224 done 13225 done 13226 IFS=$as_save_IFS 13227 13228 fi 13229 fi 13230 AWK=$ac_cv_prog_AWK 13231 if test -n "$AWK"; then 13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13233 $as_echo "$AWK" >&6; } 13234 else 13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13236 $as_echo "no" >&6; } 13237 fi 13238 13239 13240 test -n "$AWK" && break 13241 done 13242 13243 else 13244 # The variable is set, but is it from the command line or the environment? 13245 13246 # Try to remove the string !AWK! from our list. 13247 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 13248 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13249 # If it failed, the variable was not from the command line. Ignore it, 13250 # but warn the user (except for BASH, which is always set by the calling BASH). 13251 if test "xAWK" != xBASH; then 13252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 13253 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 13254 fi 13255 # Try to locate tool using the code snippet 13256 for ac_prog in gawk mawk nawk awk 13257 do 13258 # Extract the first word of "$ac_prog", so it can be a program name with args. 13259 set dummy $ac_prog; ac_word=$2 13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13261 $as_echo_n "checking for $ac_word... " >&6; } 13262 if ${ac_cv_prog_AWK+:} false; then : 13263 $as_echo_n "(cached) " >&6 13264 else 13265 if test -n "$AWK"; then 13266 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13267 else 13268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13269 for as_dir in $PATH 13270 do 13271 IFS=$as_save_IFS 13272 test -z "$as_dir" && as_dir=. 13273 for ac_exec_ext in '' $ac_executable_extensions; do 13274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13275 ac_cv_prog_AWK="$ac_prog" 13276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13277 break 2 13278 fi 13279 done 13280 done 13281 IFS=$as_save_IFS 13282 13283 fi 13284 fi 13285 AWK=$ac_cv_prog_AWK 13286 if test -n "$AWK"; then 13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13288 $as_echo "$AWK" >&6; } 13289 else 13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13291 $as_echo "no" >&6; } 13292 fi 13293 13294 13295 test -n "$AWK" && break 13296 done 13297 13298 else 13299 # If it succeeded, then it was overridden by the user. We will use it 13300 # for the tool. 13301 13302 # First remove it from the list of overridden variables, so we can test 13303 # for unknown variables in the end. 13304 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13305 13306 # Check if we try to supply an empty value 13307 if test "x$AWK" = x; then 13308 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5 13309 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;} 13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 13311 $as_echo_n "checking for AWK... " >&6; } 13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13313 $as_echo "disabled" >&6; } 13314 else 13315 # Check if the provided tool contains a complete path. 13316 tool_specified="$AWK" 13317 tool_basename="${tool_specified##*/}" 13318 if test "x$tool_basename" = "x$tool_specified"; then 13319 # A command without a complete path is provided, search $PATH. 13320 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 13321 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 13322 # Extract the first word of "$tool_basename", so it can be a program name with args. 13323 set dummy $tool_basename; ac_word=$2 13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13325 $as_echo_n "checking for $ac_word... " >&6; } 13326 if ${ac_cv_path_AWK+:} false; then : 13327 $as_echo_n "(cached) " >&6 13328 else 13329 case $AWK in 13330 [\\/]* | ?:[\\/]*) 13331 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 13332 ;; 13333 *) 13334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13335 for as_dir in $PATH 13336 do 13337 IFS=$as_save_IFS 13338 test -z "$as_dir" && as_dir=. 13339 for ac_exec_ext in '' $ac_executable_extensions; do 13340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13341 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 13342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13343 break 2 13344 fi 13345 done 13346 done 13347 IFS=$as_save_IFS 13348 13349 ;; 13350 esac 13351 fi 13352 AWK=$ac_cv_path_AWK 13353 if test -n "$AWK"; then 13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13355 $as_echo "$AWK" >&6; } 13356 else 13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13358 $as_echo "no" >&6; } 13359 fi 13360 13361 13362 if test "x$AWK" = x; then 13363 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13364 fi 13365 else 13366 # Otherwise we believe it is a complete path. Use it as it is. 13367 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 13368 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 13370 $as_echo_n "checking for AWK... " >&6; } 13371 if test ! -x "$tool_specified"; then 13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13373 $as_echo "not found" >&6; } 13374 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 13375 fi 13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13377 $as_echo "$tool_specified" >&6; } 13378 fi 13379 fi 13380 fi 13381 13382 fi 13383 13384 13385 if test "x$AWK" = x; then 13386 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 13387 fi 13388 13389 13390 13391 13392 # Publish this variable in the help. 13393 13394 13395 if [ -z "${GREP+x}" ]; then 13396 # The variable is not set by user, try to locate tool using the code snippet 13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13398 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 13399 if ${ac_cv_path_GREP+:} false; then : 13400 $as_echo_n "(cached) " >&6 13401 else 13402 if test -z "$GREP"; then 13403 ac_path_GREP_found=false 13404 # Loop through the user's path and test for each of PROGNAME-LIST 13405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13406 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13407 do 13408 IFS=$as_save_IFS 13409 test -z "$as_dir" && as_dir=. 13410 for ac_prog in grep ggrep; do 13411 for ac_exec_ext in '' $ac_executable_extensions; do 13412 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 13413 as_fn_executable_p "$ac_path_GREP" || continue 13414 # Check for GNU ac_path_GREP and select it if it is found. 13415 # Check for GNU $ac_path_GREP 13416 case `"$ac_path_GREP" --version 2>&1` in 13417 *GNU*) 13418 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13419 *) 13420 ac_count=0 13421 $as_echo_n 0123456789 >"conftest.in" 13422 while : 13423 do 13424 cat "conftest.in" "conftest.in" >"conftest.tmp" 13425 mv "conftest.tmp" "conftest.in" 13426 cp "conftest.in" "conftest.nl" 13427 $as_echo 'GREP' >> "conftest.nl" 13428 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13429 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13430 as_fn_arith $ac_count + 1 && ac_count=$as_val 13431 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13432 # Best one so far, save it but keep looking for a better one 13433 ac_cv_path_GREP="$ac_path_GREP" 13434 ac_path_GREP_max=$ac_count 13435 fi 13436 # 10*(2^10) chars as input seems more than enough 13437 test $ac_count -gt 10 && break 13438 done 13439 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13440 esac 13441 13442 $ac_path_GREP_found && break 3 13443 done 13444 done 13445 done 13446 IFS=$as_save_IFS 13447 if test -z "$ac_cv_path_GREP"; then 13448 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13449 fi 13450 else 13451 ac_cv_path_GREP=$GREP 13452 fi 13453 13454 fi 13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 13456 $as_echo "$ac_cv_path_GREP" >&6; } 13457 GREP="$ac_cv_path_GREP" 13458 13459 13460 else 13461 # The variable is set, but is it from the command line or the environment? 13462 13463 # Try to remove the string !GREP! from our list. 13464 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 13465 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13466 # If it failed, the variable was not from the command line. Ignore it, 13467 # but warn the user (except for BASH, which is always set by the calling BASH). 13468 if test "xGREP" != xBASH; then 13469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 13470 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 13471 fi 13472 # Try to locate tool using the code snippet 13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13474 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 13475 if ${ac_cv_path_GREP+:} false; then : 13476 $as_echo_n "(cached) " >&6 13477 else 13478 if test -z "$GREP"; then 13479 ac_path_GREP_found=false 13480 # Loop through the user's path and test for each of PROGNAME-LIST 13481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13482 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13483 do 13484 IFS=$as_save_IFS 13485 test -z "$as_dir" && as_dir=. 13486 for ac_prog in grep ggrep; do 13487 for ac_exec_ext in '' $ac_executable_extensions; do 13488 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 13489 as_fn_executable_p "$ac_path_GREP" || continue 13490 # Check for GNU ac_path_GREP and select it if it is found. 13491 # Check for GNU $ac_path_GREP 13492 case `"$ac_path_GREP" --version 2>&1` in 13493 *GNU*) 13494 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13495 *) 13496 ac_count=0 13497 $as_echo_n 0123456789 >"conftest.in" 13498 while : 13499 do 13500 cat "conftest.in" "conftest.in" >"conftest.tmp" 13501 mv "conftest.tmp" "conftest.in" 13502 cp "conftest.in" "conftest.nl" 13503 $as_echo 'GREP' >> "conftest.nl" 13504 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13505 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13506 as_fn_arith $ac_count + 1 && ac_count=$as_val 13507 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13508 # Best one so far, save it but keep looking for a better one 13509 ac_cv_path_GREP="$ac_path_GREP" 13510 ac_path_GREP_max=$ac_count 13511 fi 13512 # 10*(2^10) chars as input seems more than enough 13513 test $ac_count -gt 10 && break 13514 done 13515 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13516 esac 13517 13518 $ac_path_GREP_found && break 3 13519 done 13520 done 13521 done 13522 IFS=$as_save_IFS 13523 if test -z "$ac_cv_path_GREP"; then 13524 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13525 fi 13526 else 13527 ac_cv_path_GREP=$GREP 13528 fi 13529 13530 fi 13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 13532 $as_echo "$ac_cv_path_GREP" >&6; } 13533 GREP="$ac_cv_path_GREP" 13534 13535 13536 else 13537 # If it succeeded, then it was overridden by the user. We will use it 13538 # for the tool. 13539 13540 # First remove it from the list of overridden variables, so we can test 13541 # for unknown variables in the end. 13542 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13543 13544 # Check if we try to supply an empty value 13545 if test "x$GREP" = x; then 13546 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5 13547 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;} 13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 13549 $as_echo_n "checking for GREP... " >&6; } 13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13551 $as_echo "disabled" >&6; } 13552 else 13553 # Check if the provided tool contains a complete path. 13554 tool_specified="$GREP" 13555 tool_basename="${tool_specified##*/}" 13556 if test "x$tool_basename" = "x$tool_specified"; then 13557 # A command without a complete path is provided, search $PATH. 13558 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 13559 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 13560 # Extract the first word of "$tool_basename", so it can be a program name with args. 13561 set dummy $tool_basename; ac_word=$2 13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13563 $as_echo_n "checking for $ac_word... " >&6; } 13564 if ${ac_cv_path_GREP+:} false; then : 13565 $as_echo_n "(cached) " >&6 13566 else 13567 case $GREP in 13568 [\\/]* | ?:[\\/]*) 13569 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 13570 ;; 13571 *) 13572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13573 for as_dir in $PATH 13574 do 13575 IFS=$as_save_IFS 13576 test -z "$as_dir" && as_dir=. 13577 for ac_exec_ext in '' $ac_executable_extensions; do 13578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13579 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 13580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13581 break 2 13582 fi 13583 done 13584 done 13585 IFS=$as_save_IFS 13586 13587 ;; 13588 esac 13589 fi 13590 GREP=$ac_cv_path_GREP 13591 if test -n "$GREP"; then 13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 13593 $as_echo "$GREP" >&6; } 13594 else 13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13596 $as_echo "no" >&6; } 13597 fi 13598 13599 13600 if test "x$GREP" = x; then 13601 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13602 fi 13603 else 13604 # Otherwise we believe it is a complete path. Use it as it is. 13605 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 13606 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 13608 $as_echo_n "checking for GREP... " >&6; } 13609 if test ! -x "$tool_specified"; then 13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13611 $as_echo "not found" >&6; } 13612 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13613 fi 13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13615 $as_echo "$tool_specified" >&6; } 13616 fi 13617 fi 13618 fi 13619 13620 fi 13621 13622 13623 if test "x$GREP" = x; then 13624 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 13625 fi 13626 13627 13628 13629 13630 # Publish this variable in the help. 13631 13632 13633 if [ -z "${EGREP+x}" ]; then 13634 # The variable is not set by user, try to locate tool using the code snippet 13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13636 $as_echo_n "checking for egrep... " >&6; } 13637 if ${ac_cv_path_EGREP+:} false; then : 13638 $as_echo_n "(cached) " >&6 13639 else 13640 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13641 then ac_cv_path_EGREP="$GREP -E" 13642 else 13643 if test -z "$EGREP"; then 13644 ac_path_EGREP_found=false 13645 # Loop through the user's path and test for each of PROGNAME-LIST 13646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13647 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13648 do 13649 IFS=$as_save_IFS 13650 test -z "$as_dir" && as_dir=. 13651 for ac_prog in egrep; do 13652 for ac_exec_ext in '' $ac_executable_extensions; do 13653 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13654 as_fn_executable_p "$ac_path_EGREP" || continue 13655 # Check for GNU ac_path_EGREP and select it if it is found. 13656 # Check for GNU $ac_path_EGREP 13657 case `"$ac_path_EGREP" --version 2>&1` in 13658 *GNU*) 13659 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13660 *) 13661 ac_count=0 13662 $as_echo_n 0123456789 >"conftest.in" 13663 while : 13664 do 13665 cat "conftest.in" "conftest.in" >"conftest.tmp" 13666 mv "conftest.tmp" "conftest.in" 13667 cp "conftest.in" "conftest.nl" 13668 $as_echo 'EGREP' >> "conftest.nl" 13669 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13670 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13671 as_fn_arith $ac_count + 1 && ac_count=$as_val 13672 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13673 # Best one so far, save it but keep looking for a better one 13674 ac_cv_path_EGREP="$ac_path_EGREP" 13675 ac_path_EGREP_max=$ac_count 13676 fi 13677 # 10*(2^10) chars as input seems more than enough 13678 test $ac_count -gt 10 && break 13679 done 13680 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13681 esac 13682 13683 $ac_path_EGREP_found && break 3 13684 done 13685 done 13686 done 13687 IFS=$as_save_IFS 13688 if test -z "$ac_cv_path_EGREP"; then 13689 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13690 fi 13691 else 13692 ac_cv_path_EGREP=$EGREP 13693 fi 13694 13695 fi 13696 fi 13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13698 $as_echo "$ac_cv_path_EGREP" >&6; } 13699 EGREP="$ac_cv_path_EGREP" 13700 13701 13702 else 13703 # The variable is set, but is it from the command line or the environment? 13704 13705 # Try to remove the string !EGREP! from our list. 13706 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 13707 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13708 # If it failed, the variable was not from the command line. Ignore it, 13709 # but warn the user (except for BASH, which is always set by the calling BASH). 13710 if test "xEGREP" != xBASH; then 13711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 13712 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 13713 fi 13714 # Try to locate tool using the code snippet 13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13716 $as_echo_n "checking for egrep... " >&6; } 13717 if ${ac_cv_path_EGREP+:} false; then : 13718 $as_echo_n "(cached) " >&6 13719 else 13720 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13721 then ac_cv_path_EGREP="$GREP -E" 13722 else 13723 if test -z "$EGREP"; then 13724 ac_path_EGREP_found=false 13725 # Loop through the user's path and test for each of PROGNAME-LIST 13726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13727 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13728 do 13729 IFS=$as_save_IFS 13730 test -z "$as_dir" && as_dir=. 13731 for ac_prog in egrep; do 13732 for ac_exec_ext in '' $ac_executable_extensions; do 13733 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13734 as_fn_executable_p "$ac_path_EGREP" || continue 13735 # Check for GNU ac_path_EGREP and select it if it is found. 13736 # Check for GNU $ac_path_EGREP 13737 case `"$ac_path_EGREP" --version 2>&1` in 13738 *GNU*) 13739 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13740 *) 13741 ac_count=0 13742 $as_echo_n 0123456789 >"conftest.in" 13743 while : 13744 do 13745 cat "conftest.in" "conftest.in" >"conftest.tmp" 13746 mv "conftest.tmp" "conftest.in" 13747 cp "conftest.in" "conftest.nl" 13748 $as_echo 'EGREP' >> "conftest.nl" 13749 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13750 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13751 as_fn_arith $ac_count + 1 && ac_count=$as_val 13752 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13753 # Best one so far, save it but keep looking for a better one 13754 ac_cv_path_EGREP="$ac_path_EGREP" 13755 ac_path_EGREP_max=$ac_count 13756 fi 13757 # 10*(2^10) chars as input seems more than enough 13758 test $ac_count -gt 10 && break 13759 done 13760 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13761 esac 13762 13763 $ac_path_EGREP_found && break 3 13764 done 13765 done 13766 done 13767 IFS=$as_save_IFS 13768 if test -z "$ac_cv_path_EGREP"; then 13769 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13770 fi 13771 else 13772 ac_cv_path_EGREP=$EGREP 13773 fi 13774 13775 fi 13776 fi 13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13778 $as_echo "$ac_cv_path_EGREP" >&6; } 13779 EGREP="$ac_cv_path_EGREP" 13780 13781 13782 else 13783 # If it succeeded, then it was overridden by the user. We will use it 13784 # for the tool. 13785 13786 # First remove it from the list of overridden variables, so we can test 13787 # for unknown variables in the end. 13788 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13789 13790 # Check if we try to supply an empty value 13791 if test "x$EGREP" = x; then 13792 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5 13793 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;} 13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13795 $as_echo_n "checking for EGREP... " >&6; } 13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13797 $as_echo "disabled" >&6; } 13798 else 13799 # Check if the provided tool contains a complete path. 13800 tool_specified="$EGREP" 13801 tool_basename="${tool_specified##*/}" 13802 if test "x$tool_basename" = "x$tool_specified"; then 13803 # A command without a complete path is provided, search $PATH. 13804 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 13805 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 13806 # Extract the first word of "$tool_basename", so it can be a program name with args. 13807 set dummy $tool_basename; ac_word=$2 13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13809 $as_echo_n "checking for $ac_word... " >&6; } 13810 if ${ac_cv_path_EGREP+:} false; then : 13811 $as_echo_n "(cached) " >&6 13812 else 13813 case $EGREP in 13814 [\\/]* | ?:[\\/]*) 13815 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 13816 ;; 13817 *) 13818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13819 for as_dir in $PATH 13820 do 13821 IFS=$as_save_IFS 13822 test -z "$as_dir" && as_dir=. 13823 for ac_exec_ext in '' $ac_executable_extensions; do 13824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13825 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 13826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13827 break 2 13828 fi 13829 done 13830 done 13831 IFS=$as_save_IFS 13832 13833 ;; 13834 esac 13835 fi 13836 EGREP=$ac_cv_path_EGREP 13837 if test -n "$EGREP"; then 13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 13839 $as_echo "$EGREP" >&6; } 13840 else 13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13842 $as_echo "no" >&6; } 13843 fi 13844 13845 13846 if test "x$EGREP" = x; then 13847 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13848 fi 13849 else 13850 # Otherwise we believe it is a complete path. Use it as it is. 13851 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 13852 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13854 $as_echo_n "checking for EGREP... " >&6; } 13855 if test ! -x "$tool_specified"; then 13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13857 $as_echo "not found" >&6; } 13858 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13859 fi 13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13861 $as_echo "$tool_specified" >&6; } 13862 fi 13863 fi 13864 fi 13865 13866 fi 13867 13868 13869 if test "x$EGREP" = x; then 13870 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 13871 fi 13872 13873 13874 13875 13876 # Publish this variable in the help. 13877 13878 13879 if [ -z "${FGREP+x}" ]; then 13880 # The variable is not set by user, try to locate tool using the code snippet 13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13882 $as_echo_n "checking for fgrep... " >&6; } 13883 if ${ac_cv_path_FGREP+:} false; then : 13884 $as_echo_n "(cached) " >&6 13885 else 13886 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13887 then ac_cv_path_FGREP="$GREP -F" 13888 else 13889 if test -z "$FGREP"; then 13890 ac_path_FGREP_found=false 13891 # Loop through the user's path and test for each of PROGNAME-LIST 13892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13893 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13894 do 13895 IFS=$as_save_IFS 13896 test -z "$as_dir" && as_dir=. 13897 for ac_prog in fgrep; do 13898 for ac_exec_ext in '' $ac_executable_extensions; do 13899 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13900 as_fn_executable_p "$ac_path_FGREP" || continue 13901 # Check for GNU ac_path_FGREP and select it if it is found. 13902 # Check for GNU $ac_path_FGREP 13903 case `"$ac_path_FGREP" --version 2>&1` in 13904 *GNU*) 13905 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13906 *) 13907 ac_count=0 13908 $as_echo_n 0123456789 >"conftest.in" 13909 while : 13910 do 13911 cat "conftest.in" "conftest.in" >"conftest.tmp" 13912 mv "conftest.tmp" "conftest.in" 13913 cp "conftest.in" "conftest.nl" 13914 $as_echo 'FGREP' >> "conftest.nl" 13915 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13917 as_fn_arith $ac_count + 1 && ac_count=$as_val 13918 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13919 # Best one so far, save it but keep looking for a better one 13920 ac_cv_path_FGREP="$ac_path_FGREP" 13921 ac_path_FGREP_max=$ac_count 13922 fi 13923 # 10*(2^10) chars as input seems more than enough 13924 test $ac_count -gt 10 && break 13925 done 13926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13927 esac 13928 13929 $ac_path_FGREP_found && break 3 13930 done 13931 done 13932 done 13933 IFS=$as_save_IFS 13934 if test -z "$ac_cv_path_FGREP"; then 13935 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13936 fi 13937 else 13938 ac_cv_path_FGREP=$FGREP 13939 fi 13940 13941 fi 13942 fi 13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13944 $as_echo "$ac_cv_path_FGREP" >&6; } 13945 FGREP="$ac_cv_path_FGREP" 13946 13947 13948 else 13949 # The variable is set, but is it from the command line or the environment? 13950 13951 # Try to remove the string !FGREP! from our list. 13952 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 13953 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13954 # If it failed, the variable was not from the command line. Ignore it, 13955 # but warn the user (except for BASH, which is always set by the calling BASH). 13956 if test "xFGREP" != xBASH; then 13957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 13958 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 13959 fi 13960 # Try to locate tool using the code snippet 13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13962 $as_echo_n "checking for fgrep... " >&6; } 13963 if ${ac_cv_path_FGREP+:} false; then : 13964 $as_echo_n "(cached) " >&6 13965 else 13966 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13967 then ac_cv_path_FGREP="$GREP -F" 13968 else 13969 if test -z "$FGREP"; then 13970 ac_path_FGREP_found=false 13971 # Loop through the user's path and test for each of PROGNAME-LIST 13972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13973 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13974 do 13975 IFS=$as_save_IFS 13976 test -z "$as_dir" && as_dir=. 13977 for ac_prog in fgrep; do 13978 for ac_exec_ext in '' $ac_executable_extensions; do 13979 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13980 as_fn_executable_p "$ac_path_FGREP" || continue 13981 # Check for GNU ac_path_FGREP and select it if it is found. 13982 # Check for GNU $ac_path_FGREP 13983 case `"$ac_path_FGREP" --version 2>&1` in 13984 *GNU*) 13985 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13986 *) 13987 ac_count=0 13988 $as_echo_n 0123456789 >"conftest.in" 13989 while : 13990 do 13991 cat "conftest.in" "conftest.in" >"conftest.tmp" 13992 mv "conftest.tmp" "conftest.in" 13993 cp "conftest.in" "conftest.nl" 13994 $as_echo 'FGREP' >> "conftest.nl" 13995 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13996 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13997 as_fn_arith $ac_count + 1 && ac_count=$as_val 13998 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13999 # Best one so far, save it but keep looking for a better one 14000 ac_cv_path_FGREP="$ac_path_FGREP" 14001 ac_path_FGREP_max=$ac_count 14002 fi 14003 # 10*(2^10) chars as input seems more than enough 14004 test $ac_count -gt 10 && break 14005 done 14006 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14007 esac 14008 14009 $ac_path_FGREP_found && break 3 14010 done 14011 done 14012 done 14013 IFS=$as_save_IFS 14014 if test -z "$ac_cv_path_FGREP"; then 14015 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 14016 fi 14017 else 14018 ac_cv_path_FGREP=$FGREP 14019 fi 14020 14021 fi 14022 fi 14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 14024 $as_echo "$ac_cv_path_FGREP" >&6; } 14025 FGREP="$ac_cv_path_FGREP" 14026 14027 14028 else 14029 # If it succeeded, then it was overridden by the user. We will use it 14030 # for the tool. 14031 14032 # First remove it from the list of overridden variables, so we can test 14033 # for unknown variables in the end. 14034 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14035 14036 # Check if we try to supply an empty value 14037 if test "x$FGREP" = x; then 14038 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5 14039 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;} 14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 14041 $as_echo_n "checking for FGREP... " >&6; } 14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14043 $as_echo "disabled" >&6; } 14044 else 14045 # Check if the provided tool contains a complete path. 14046 tool_specified="$FGREP" 14047 tool_basename="${tool_specified##*/}" 14048 if test "x$tool_basename" = "x$tool_specified"; then 14049 # A command without a complete path is provided, search $PATH. 14050 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 14051 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 14052 # Extract the first word of "$tool_basename", so it can be a program name with args. 14053 set dummy $tool_basename; ac_word=$2 14054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14055 $as_echo_n "checking for $ac_word... " >&6; } 14056 if ${ac_cv_path_FGREP+:} false; then : 14057 $as_echo_n "(cached) " >&6 14058 else 14059 case $FGREP in 14060 [\\/]* | ?:[\\/]*) 14061 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 14062 ;; 14063 *) 14064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14065 for as_dir in $PATH 14066 do 14067 IFS=$as_save_IFS 14068 test -z "$as_dir" && as_dir=. 14069 for ac_exec_ext in '' $ac_executable_extensions; do 14070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14071 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 14072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14073 break 2 14074 fi 14075 done 14076 done 14077 IFS=$as_save_IFS 14078 14079 ;; 14080 esac 14081 fi 14082 FGREP=$ac_cv_path_FGREP 14083 if test -n "$FGREP"; then 14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 14085 $as_echo "$FGREP" >&6; } 14086 else 14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14088 $as_echo "no" >&6; } 14089 fi 14090 14091 14092 if test "x$FGREP" = x; then 14093 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14094 fi 14095 else 14096 # Otherwise we believe it is a complete path. Use it as it is. 14097 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 14098 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 14100 $as_echo_n "checking for FGREP... " >&6; } 14101 if test ! -x "$tool_specified"; then 14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14103 $as_echo "not found" >&6; } 14104 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 14105 fi 14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14107 $as_echo "$tool_specified" >&6; } 14108 fi 14109 fi 14110 fi 14111 14112 fi 14113 14114 14115 if test "x$FGREP" = x; then 14116 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 14117 fi 14118 14119 14120 14121 14122 # Publish this variable in the help. 14123 14124 14125 if [ -z "${SED+x}" ]; then 14126 # The variable is not set by user, try to locate tool using the code snippet 14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 14128 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 14129 if ${ac_cv_path_SED+:} false; then : 14130 $as_echo_n "(cached) " >&6 14131 else 14132 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 14133 for ac_i in 1 2 3 4 5 6 7; do 14134 ac_script="$ac_script$as_nl$ac_script" 14135 done 14136 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 14137 { ac_script=; unset ac_script;} 14138 if test -z "$SED"; then 14139 ac_path_SED_found=false 14140 # Loop through the user's path and test for each of PROGNAME-LIST 14141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14142 for as_dir in $PATH 14143 do 14144 IFS=$as_save_IFS 14145 test -z "$as_dir" && as_dir=. 14146 for ac_prog in sed gsed; do 14147 for ac_exec_ext in '' $ac_executable_extensions; do 14148 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 14149 as_fn_executable_p "$ac_path_SED" || continue 14150 # Check for GNU ac_path_SED and select it if it is found. 14151 # Check for GNU $ac_path_SED 14152 case `"$ac_path_SED" --version 2>&1` in 14153 *GNU*) 14154 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 14155 *) 14156 ac_count=0 14157 $as_echo_n 0123456789 >"conftest.in" 14158 while : 14159 do 14160 cat "conftest.in" "conftest.in" >"conftest.tmp" 14161 mv "conftest.tmp" "conftest.in" 14162 cp "conftest.in" "conftest.nl" 14163 $as_echo '' >> "conftest.nl" 14164 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 14165 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14166 as_fn_arith $ac_count + 1 && ac_count=$as_val 14167 if test $ac_count -gt ${ac_path_SED_max-0}; then 14168 # Best one so far, save it but keep looking for a better one 14169 ac_cv_path_SED="$ac_path_SED" 14170 ac_path_SED_max=$ac_count 14171 fi 14172 # 10*(2^10) chars as input seems more than enough 14173 test $ac_count -gt 10 && break 14174 done 14175 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14176 esac 14177 14178 $ac_path_SED_found && break 3 14179 done 14180 done 14181 done 14182 IFS=$as_save_IFS 14183 if test -z "$ac_cv_path_SED"; then 14184 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 14185 fi 14186 else 14187 ac_cv_path_SED=$SED 14188 fi 14189 14190 fi 14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 14192 $as_echo "$ac_cv_path_SED" >&6; } 14193 SED="$ac_cv_path_SED" 14194 rm -f conftest.sed 14195 14196 else 14197 # The variable is set, but is it from the command line or the environment? 14198 14199 # Try to remove the string !SED! from our list. 14200 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 14201 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14202 # If it failed, the variable was not from the command line. Ignore it, 14203 # but warn the user (except for BASH, which is always set by the calling BASH). 14204 if test "xSED" != xBASH; then 14205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 14206 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 14207 fi 14208 # Try to locate tool using the code snippet 14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 14210 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 14211 if ${ac_cv_path_SED+:} false; then : 14212 $as_echo_n "(cached) " >&6 14213 else 14214 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 14215 for ac_i in 1 2 3 4 5 6 7; do 14216 ac_script="$ac_script$as_nl$ac_script" 14217 done 14218 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 14219 { ac_script=; unset ac_script;} 14220 if test -z "$SED"; then 14221 ac_path_SED_found=false 14222 # Loop through the user's path and test for each of PROGNAME-LIST 14223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14224 for as_dir in $PATH 14225 do 14226 IFS=$as_save_IFS 14227 test -z "$as_dir" && as_dir=. 14228 for ac_prog in sed gsed; do 14229 for ac_exec_ext in '' $ac_executable_extensions; do 14230 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 14231 as_fn_executable_p "$ac_path_SED" || continue 14232 # Check for GNU ac_path_SED and select it if it is found. 14233 # Check for GNU $ac_path_SED 14234 case `"$ac_path_SED" --version 2>&1` in 14235 *GNU*) 14236 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 14237 *) 14238 ac_count=0 14239 $as_echo_n 0123456789 >"conftest.in" 14240 while : 14241 do 14242 cat "conftest.in" "conftest.in" >"conftest.tmp" 14243 mv "conftest.tmp" "conftest.in" 14244 cp "conftest.in" "conftest.nl" 14245 $as_echo '' >> "conftest.nl" 14246 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 14247 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14248 as_fn_arith $ac_count + 1 && ac_count=$as_val 14249 if test $ac_count -gt ${ac_path_SED_max-0}; then 14250 # Best one so far, save it but keep looking for a better one 14251 ac_cv_path_SED="$ac_path_SED" 14252 ac_path_SED_max=$ac_count 14253 fi 14254 # 10*(2^10) chars as input seems more than enough 14255 test $ac_count -gt 10 && break 14256 done 14257 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14258 esac 14259 14260 $ac_path_SED_found && break 3 14261 done 14262 done 14263 done 14264 IFS=$as_save_IFS 14265 if test -z "$ac_cv_path_SED"; then 14266 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 14267 fi 14268 else 14269 ac_cv_path_SED=$SED 14270 fi 14271 14272 fi 14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 14274 $as_echo "$ac_cv_path_SED" >&6; } 14275 SED="$ac_cv_path_SED" 14276 rm -f conftest.sed 14277 14278 else 14279 # If it succeeded, then it was overridden by the user. We will use it 14280 # for the tool. 14281 14282 # First remove it from the list of overridden variables, so we can test 14283 # for unknown variables in the end. 14284 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14285 14286 # Check if we try to supply an empty value 14287 if test "x$SED" = x; then 14288 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5 14289 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;} 14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 14291 $as_echo_n "checking for SED... " >&6; } 14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14293 $as_echo "disabled" >&6; } 14294 else 14295 # Check if the provided tool contains a complete path. 14296 tool_specified="$SED" 14297 tool_basename="${tool_specified##*/}" 14298 if test "x$tool_basename" = "x$tool_specified"; then 14299 # A command without a complete path is provided, search $PATH. 14300 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 14301 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 14302 # Extract the first word of "$tool_basename", so it can be a program name with args. 14303 set dummy $tool_basename; ac_word=$2 14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14305 $as_echo_n "checking for $ac_word... " >&6; } 14306 if ${ac_cv_path_SED+:} false; then : 14307 $as_echo_n "(cached) " >&6 14308 else 14309 case $SED in 14310 [\\/]* | ?:[\\/]*) 14311 ac_cv_path_SED="$SED" # Let the user override the test with a path. 14312 ;; 14313 *) 14314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14315 for as_dir in $PATH 14316 do 14317 IFS=$as_save_IFS 14318 test -z "$as_dir" && as_dir=. 14319 for ac_exec_ext in '' $ac_executable_extensions; do 14320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14321 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 14322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14323 break 2 14324 fi 14325 done 14326 done 14327 IFS=$as_save_IFS 14328 14329 ;; 14330 esac 14331 fi 14332 SED=$ac_cv_path_SED 14333 if test -n "$SED"; then 14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 14335 $as_echo "$SED" >&6; } 14336 else 14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14338 $as_echo "no" >&6; } 14339 fi 14340 14341 14342 if test "x$SED" = x; then 14343 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14344 fi 14345 else 14346 # Otherwise we believe it is a complete path. Use it as it is. 14347 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 14348 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 14350 $as_echo_n "checking for SED... " >&6; } 14351 if test ! -x "$tool_specified"; then 14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14353 $as_echo "not found" >&6; } 14354 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 14355 fi 14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14357 $as_echo "$tool_specified" >&6; } 14358 fi 14359 fi 14360 fi 14361 14362 fi 14363 14364 14365 if test "x$SED" = x; then 14366 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 14367 fi 14368 14369 14370 14371 # Always force rm. 14372 RM="$RM -f" 14373 14374 # pwd behaves differently on various platforms and some don't support the -L flag. 14375 # Always use the bash builtin pwd to get uniform behavior. 14376 THEPWDCMD=pwd 14377 14378 # These are not required on all platforms 14379 14380 14381 # Publish this variable in the help. 14382 14383 14384 if [ -z "${CYGPATH+x}" ]; then 14385 # The variable is not set by user, try to locate tool using the code snippet 14386 for ac_prog in cygpath 14387 do 14388 # Extract the first word of "$ac_prog", so it can be a program name with args. 14389 set dummy $ac_prog; ac_word=$2 14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14391 $as_echo_n "checking for $ac_word... " >&6; } 14392 if ${ac_cv_path_CYGPATH+:} false; then : 14393 $as_echo_n "(cached) " >&6 14394 else 14395 case $CYGPATH in 14396 [\\/]* | ?:[\\/]*) 14397 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14398 ;; 14399 *) 14400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14401 for as_dir in $PATH 14402 do 14403 IFS=$as_save_IFS 14404 test -z "$as_dir" && as_dir=. 14405 for ac_exec_ext in '' $ac_executable_extensions; do 14406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14407 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14409 break 2 14410 fi 14411 done 14412 done 14413 IFS=$as_save_IFS 14414 14415 ;; 14416 esac 14417 fi 14418 CYGPATH=$ac_cv_path_CYGPATH 14419 if test -n "$CYGPATH"; then 14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14421 $as_echo "$CYGPATH" >&6; } 14422 else 14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14424 $as_echo "no" >&6; } 14425 fi 14426 14427 14428 test -n "$CYGPATH" && break 14429 done 14430 14431 else 14432 # The variable is set, but is it from the command line or the environment? 14433 14434 # Try to remove the string !CYGPATH! from our list. 14435 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 14436 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14437 # If it failed, the variable was not from the command line. Ignore it, 14438 # but warn the user (except for BASH, which is always set by the calling BASH). 14439 if test "xCYGPATH" != xBASH; then 14440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 14441 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 14442 fi 14443 # Try to locate tool using the code snippet 14444 for ac_prog in cygpath 14445 do 14446 # Extract the first word of "$ac_prog", so it can be a program name with args. 14447 set dummy $ac_prog; ac_word=$2 14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14449 $as_echo_n "checking for $ac_word... " >&6; } 14450 if ${ac_cv_path_CYGPATH+:} false; then : 14451 $as_echo_n "(cached) " >&6 14452 else 14453 case $CYGPATH in 14454 [\\/]* | ?:[\\/]*) 14455 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14456 ;; 14457 *) 14458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14459 for as_dir in $PATH 14460 do 14461 IFS=$as_save_IFS 14462 test -z "$as_dir" && as_dir=. 14463 for ac_exec_ext in '' $ac_executable_extensions; do 14464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14465 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14467 break 2 14468 fi 14469 done 14470 done 14471 IFS=$as_save_IFS 14472 14473 ;; 14474 esac 14475 fi 14476 CYGPATH=$ac_cv_path_CYGPATH 14477 if test -n "$CYGPATH"; then 14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14479 $as_echo "$CYGPATH" >&6; } 14480 else 14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14482 $as_echo "no" >&6; } 14483 fi 14484 14485 14486 test -n "$CYGPATH" && break 14487 done 14488 14489 else 14490 # If it succeeded, then it was overridden by the user. We will use it 14491 # for the tool. 14492 14493 # First remove it from the list of overridden variables, so we can test 14494 # for unknown variables in the end. 14495 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14496 14497 # Check if we try to supply an empty value 14498 if test "x$CYGPATH" = x; then 14499 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5 14500 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;} 14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 14502 $as_echo_n "checking for CYGPATH... " >&6; } 14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14504 $as_echo "disabled" >&6; } 14505 else 14506 # Check if the provided tool contains a complete path. 14507 tool_specified="$CYGPATH" 14508 tool_basename="${tool_specified##*/}" 14509 if test "x$tool_basename" = "x$tool_specified"; then 14510 # A command without a complete path is provided, search $PATH. 14511 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 14512 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 14513 # Extract the first word of "$tool_basename", so it can be a program name with args. 14514 set dummy $tool_basename; ac_word=$2 14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14516 $as_echo_n "checking for $ac_word... " >&6; } 14517 if ${ac_cv_path_CYGPATH+:} false; then : 14518 $as_echo_n "(cached) " >&6 14519 else 14520 case $CYGPATH in 14521 [\\/]* | ?:[\\/]*) 14522 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14523 ;; 14524 *) 14525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14526 for as_dir in $PATH 14527 do 14528 IFS=$as_save_IFS 14529 test -z "$as_dir" && as_dir=. 14530 for ac_exec_ext in '' $ac_executable_extensions; do 14531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14532 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14534 break 2 14535 fi 14536 done 14537 done 14538 IFS=$as_save_IFS 14539 14540 ;; 14541 esac 14542 fi 14543 CYGPATH=$ac_cv_path_CYGPATH 14544 if test -n "$CYGPATH"; then 14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14546 $as_echo "$CYGPATH" >&6; } 14547 else 14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14549 $as_echo "no" >&6; } 14550 fi 14551 14552 14553 if test "x$CYGPATH" = x; then 14554 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14555 fi 14556 else 14557 # Otherwise we believe it is a complete path. Use it as it is. 14558 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 14559 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 14561 $as_echo_n "checking for CYGPATH... " >&6; } 14562 if test ! -x "$tool_specified"; then 14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14564 $as_echo "not found" >&6; } 14565 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 14566 fi 14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14568 $as_echo "$tool_specified" >&6; } 14569 fi 14570 fi 14571 fi 14572 14573 fi 14574 14575 14576 14577 14578 # Publish this variable in the help. 14579 14580 14581 if [ -z "${READLINK+x}" ]; then 14582 # The variable is not set by user, try to locate tool using the code snippet 14583 for ac_prog in greadlink readlink 14584 do 14585 # Extract the first word of "$ac_prog", so it can be a program name with args. 14586 set dummy $ac_prog; ac_word=$2 14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14588 $as_echo_n "checking for $ac_word... " >&6; } 14589 if ${ac_cv_path_READLINK+:} false; then : 14590 $as_echo_n "(cached) " >&6 14591 else 14592 case $READLINK in 14593 [\\/]* | ?:[\\/]*) 14594 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14595 ;; 14596 *) 14597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14598 for as_dir in $PATH 14599 do 14600 IFS=$as_save_IFS 14601 test -z "$as_dir" && as_dir=. 14602 for ac_exec_ext in '' $ac_executable_extensions; do 14603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14604 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14606 break 2 14607 fi 14608 done 14609 done 14610 IFS=$as_save_IFS 14611 14612 ;; 14613 esac 14614 fi 14615 READLINK=$ac_cv_path_READLINK 14616 if test -n "$READLINK"; then 14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14618 $as_echo "$READLINK" >&6; } 14619 else 14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14621 $as_echo "no" >&6; } 14622 fi 14623 14624 14625 test -n "$READLINK" && break 14626 done 14627 14628 else 14629 # The variable is set, but is it from the command line or the environment? 14630 14631 # Try to remove the string !READLINK! from our list. 14632 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 14633 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14634 # If it failed, the variable was not from the command line. Ignore it, 14635 # but warn the user (except for BASH, which is always set by the calling BASH). 14636 if test "xREADLINK" != xBASH; then 14637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 14638 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 14639 fi 14640 # Try to locate tool using the code snippet 14641 for ac_prog in greadlink readlink 14642 do 14643 # Extract the first word of "$ac_prog", so it can be a program name with args. 14644 set dummy $ac_prog; ac_word=$2 14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14646 $as_echo_n "checking for $ac_word... " >&6; } 14647 if ${ac_cv_path_READLINK+:} false; then : 14648 $as_echo_n "(cached) " >&6 14649 else 14650 case $READLINK in 14651 [\\/]* | ?:[\\/]*) 14652 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14653 ;; 14654 *) 14655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14656 for as_dir in $PATH 14657 do 14658 IFS=$as_save_IFS 14659 test -z "$as_dir" && as_dir=. 14660 for ac_exec_ext in '' $ac_executable_extensions; do 14661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14662 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14664 break 2 14665 fi 14666 done 14667 done 14668 IFS=$as_save_IFS 14669 14670 ;; 14671 esac 14672 fi 14673 READLINK=$ac_cv_path_READLINK 14674 if test -n "$READLINK"; then 14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14676 $as_echo "$READLINK" >&6; } 14677 else 14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14679 $as_echo "no" >&6; } 14680 fi 14681 14682 14683 test -n "$READLINK" && break 14684 done 14685 14686 else 14687 # If it succeeded, then it was overridden by the user. We will use it 14688 # for the tool. 14689 14690 # First remove it from the list of overridden variables, so we can test 14691 # for unknown variables in the end. 14692 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14693 14694 # Check if we try to supply an empty value 14695 if test "x$READLINK" = x; then 14696 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5 14697 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;} 14698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14699 $as_echo_n "checking for READLINK... " >&6; } 14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14701 $as_echo "disabled" >&6; } 14702 else 14703 # Check if the provided tool contains a complete path. 14704 tool_specified="$READLINK" 14705 tool_basename="${tool_specified##*/}" 14706 if test "x$tool_basename" = "x$tool_specified"; then 14707 # A command without a complete path is provided, search $PATH. 14708 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 14709 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 14710 # Extract the first word of "$tool_basename", so it can be a program name with args. 14711 set dummy $tool_basename; ac_word=$2 14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14713 $as_echo_n "checking for $ac_word... " >&6; } 14714 if ${ac_cv_path_READLINK+:} false; then : 14715 $as_echo_n "(cached) " >&6 14716 else 14717 case $READLINK in 14718 [\\/]* | ?:[\\/]*) 14719 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14720 ;; 14721 *) 14722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14723 for as_dir in $PATH 14724 do 14725 IFS=$as_save_IFS 14726 test -z "$as_dir" && as_dir=. 14727 for ac_exec_ext in '' $ac_executable_extensions; do 14728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14729 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14731 break 2 14732 fi 14733 done 14734 done 14735 IFS=$as_save_IFS 14736 14737 ;; 14738 esac 14739 fi 14740 READLINK=$ac_cv_path_READLINK 14741 if test -n "$READLINK"; then 14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14743 $as_echo "$READLINK" >&6; } 14744 else 14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14746 $as_echo "no" >&6; } 14747 fi 14748 14749 14750 if test "x$READLINK" = x; then 14751 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14752 fi 14753 else 14754 # Otherwise we believe it is a complete path. Use it as it is. 14755 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 14756 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 14757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14758 $as_echo_n "checking for READLINK... " >&6; } 14759 if test ! -x "$tool_specified"; then 14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14761 $as_echo "not found" >&6; } 14762 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 14763 fi 14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14765 $as_echo "$tool_specified" >&6; } 14766 fi 14767 fi 14768 fi 14769 14770 fi 14771 14772 14773 14774 14775 # Publish this variable in the help. 14776 14777 14778 if [ -z "${DF+x}" ]; then 14779 # The variable is not set by user, try to locate tool using the code snippet 14780 for ac_prog in df 14781 do 14782 # Extract the first word of "$ac_prog", so it can be a program name with args. 14783 set dummy $ac_prog; ac_word=$2 14784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14785 $as_echo_n "checking for $ac_word... " >&6; } 14786 if ${ac_cv_path_DF+:} false; then : 14787 $as_echo_n "(cached) " >&6 14788 else 14789 case $DF in 14790 [\\/]* | ?:[\\/]*) 14791 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14792 ;; 14793 *) 14794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14795 for as_dir in $PATH 14796 do 14797 IFS=$as_save_IFS 14798 test -z "$as_dir" && as_dir=. 14799 for ac_exec_ext in '' $ac_executable_extensions; do 14800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14801 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14803 break 2 14804 fi 14805 done 14806 done 14807 IFS=$as_save_IFS 14808 14809 ;; 14810 esac 14811 fi 14812 DF=$ac_cv_path_DF 14813 if test -n "$DF"; then 14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14815 $as_echo "$DF" >&6; } 14816 else 14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14818 $as_echo "no" >&6; } 14819 fi 14820 14821 14822 test -n "$DF" && break 14823 done 14824 14825 else 14826 # The variable is set, but is it from the command line or the environment? 14827 14828 # Try to remove the string !DF! from our list. 14829 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 14830 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14831 # If it failed, the variable was not from the command line. Ignore it, 14832 # but warn the user (except for BASH, which is always set by the calling BASH). 14833 if test "xDF" != xBASH; then 14834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 14835 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 14836 fi 14837 # Try to locate tool using the code snippet 14838 for ac_prog in df 14839 do 14840 # Extract the first word of "$ac_prog", so it can be a program name with args. 14841 set dummy $ac_prog; ac_word=$2 14842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14843 $as_echo_n "checking for $ac_word... " >&6; } 14844 if ${ac_cv_path_DF+:} false; then : 14845 $as_echo_n "(cached) " >&6 14846 else 14847 case $DF in 14848 [\\/]* | ?:[\\/]*) 14849 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14850 ;; 14851 *) 14852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14853 for as_dir in $PATH 14854 do 14855 IFS=$as_save_IFS 14856 test -z "$as_dir" && as_dir=. 14857 for ac_exec_ext in '' $ac_executable_extensions; do 14858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14859 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14861 break 2 14862 fi 14863 done 14864 done 14865 IFS=$as_save_IFS 14866 14867 ;; 14868 esac 14869 fi 14870 DF=$ac_cv_path_DF 14871 if test -n "$DF"; then 14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14873 $as_echo "$DF" >&6; } 14874 else 14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14876 $as_echo "no" >&6; } 14877 fi 14878 14879 14880 test -n "$DF" && break 14881 done 14882 14883 else 14884 # If it succeeded, then it was overridden by the user. We will use it 14885 # for the tool. 14886 14887 # First remove it from the list of overridden variables, so we can test 14888 # for unknown variables in the end. 14889 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14890 14891 # Check if we try to supply an empty value 14892 if test "x$DF" = x; then 14893 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5 14894 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;} 14895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14896 $as_echo_n "checking for DF... " >&6; } 14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14898 $as_echo "disabled" >&6; } 14899 else 14900 # Check if the provided tool contains a complete path. 14901 tool_specified="$DF" 14902 tool_basename="${tool_specified##*/}" 14903 if test "x$tool_basename" = "x$tool_specified"; then 14904 # A command without a complete path is provided, search $PATH. 14905 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 14906 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 14907 # Extract the first word of "$tool_basename", so it can be a program name with args. 14908 set dummy $tool_basename; ac_word=$2 14909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14910 $as_echo_n "checking for $ac_word... " >&6; } 14911 if ${ac_cv_path_DF+:} false; then : 14912 $as_echo_n "(cached) " >&6 14913 else 14914 case $DF in 14915 [\\/]* | ?:[\\/]*) 14916 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14917 ;; 14918 *) 14919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14920 for as_dir in $PATH 14921 do 14922 IFS=$as_save_IFS 14923 test -z "$as_dir" && as_dir=. 14924 for ac_exec_ext in '' $ac_executable_extensions; do 14925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14926 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14928 break 2 14929 fi 14930 done 14931 done 14932 IFS=$as_save_IFS 14933 14934 ;; 14935 esac 14936 fi 14937 DF=$ac_cv_path_DF 14938 if test -n "$DF"; then 14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14940 $as_echo "$DF" >&6; } 14941 else 14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14943 $as_echo "no" >&6; } 14944 fi 14945 14946 14947 if test "x$DF" = x; then 14948 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14949 fi 14950 else 14951 # Otherwise we believe it is a complete path. Use it as it is. 14952 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 14953 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 14954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14955 $as_echo_n "checking for DF... " >&6; } 14956 if test ! -x "$tool_specified"; then 14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14958 $as_echo "not found" >&6; } 14959 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 14960 fi 14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14962 $as_echo "$tool_specified" >&6; } 14963 fi 14964 fi 14965 fi 14966 14967 fi 14968 14969 14970 14971 14972 # Publish this variable in the help. 14973 14974 14975 if [ -z "${CPIO+x}" ]; then 14976 # The variable is not set by user, try to locate tool using the code snippet 14977 for ac_prog in cpio bsdcpio 14978 do 14979 # Extract the first word of "$ac_prog", so it can be a program name with args. 14980 set dummy $ac_prog; ac_word=$2 14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14982 $as_echo_n "checking for $ac_word... " >&6; } 14983 if ${ac_cv_path_CPIO+:} false; then : 14984 $as_echo_n "(cached) " >&6 14985 else 14986 case $CPIO in 14987 [\\/]* | ?:[\\/]*) 14988 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 14989 ;; 14990 *) 14991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14992 for as_dir in $PATH 14993 do 14994 IFS=$as_save_IFS 14995 test -z "$as_dir" && as_dir=. 14996 for ac_exec_ext in '' $ac_executable_extensions; do 14997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14998 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 14999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15000 break 2 15001 fi 15002 done 15003 done 15004 IFS=$as_save_IFS 15005 15006 ;; 15007 esac 15008 fi 15009 CPIO=$ac_cv_path_CPIO 15010 if test -n "$CPIO"; then 15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15012 $as_echo "$CPIO" >&6; } 15013 else 15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15015 $as_echo "no" >&6; } 15016 fi 15017 15018 15019 test -n "$CPIO" && break 15020 done 15021 15022 else 15023 # The variable is set, but is it from the command line or the environment? 15024 15025 # Try to remove the string !CPIO! from our list. 15026 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 15027 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15028 # If it failed, the variable was not from the command line. Ignore it, 15029 # but warn the user (except for BASH, which is always set by the calling BASH). 15030 if test "xCPIO" != xBASH; then 15031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 15032 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 15033 fi 15034 # Try to locate tool using the code snippet 15035 for ac_prog in cpio bsdcpio 15036 do 15037 # Extract the first word of "$ac_prog", so it can be a program name with args. 15038 set dummy $ac_prog; ac_word=$2 15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15040 $as_echo_n "checking for $ac_word... " >&6; } 15041 if ${ac_cv_path_CPIO+:} false; then : 15042 $as_echo_n "(cached) " >&6 15043 else 15044 case $CPIO in 15045 [\\/]* | ?:[\\/]*) 15046 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 15047 ;; 15048 *) 15049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15050 for as_dir in $PATH 15051 do 15052 IFS=$as_save_IFS 15053 test -z "$as_dir" && as_dir=. 15054 for ac_exec_ext in '' $ac_executable_extensions; do 15055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15056 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 15057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15058 break 2 15059 fi 15060 done 15061 done 15062 IFS=$as_save_IFS 15063 15064 ;; 15065 esac 15066 fi 15067 CPIO=$ac_cv_path_CPIO 15068 if test -n "$CPIO"; then 15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15070 $as_echo "$CPIO" >&6; } 15071 else 15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15073 $as_echo "no" >&6; } 15074 fi 15075 15076 15077 test -n "$CPIO" && break 15078 done 15079 15080 else 15081 # If it succeeded, then it was overridden by the user. We will use it 15082 # for the tool. 15083 15084 # First remove it from the list of overridden variables, so we can test 15085 # for unknown variables in the end. 15086 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15087 15088 # Check if we try to supply an empty value 15089 if test "x$CPIO" = x; then 15090 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5 15091 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;} 15092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 15093 $as_echo_n "checking for CPIO... " >&6; } 15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15095 $as_echo "disabled" >&6; } 15096 else 15097 # Check if the provided tool contains a complete path. 15098 tool_specified="$CPIO" 15099 tool_basename="${tool_specified##*/}" 15100 if test "x$tool_basename" = "x$tool_specified"; then 15101 # A command without a complete path is provided, search $PATH. 15102 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 15103 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 15104 # Extract the first word of "$tool_basename", so it can be a program name with args. 15105 set dummy $tool_basename; ac_word=$2 15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15107 $as_echo_n "checking for $ac_word... " >&6; } 15108 if ${ac_cv_path_CPIO+:} false; then : 15109 $as_echo_n "(cached) " >&6 15110 else 15111 case $CPIO in 15112 [\\/]* | ?:[\\/]*) 15113 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 15114 ;; 15115 *) 15116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15117 for as_dir in $PATH 15118 do 15119 IFS=$as_save_IFS 15120 test -z "$as_dir" && as_dir=. 15121 for ac_exec_ext in '' $ac_executable_extensions; do 15122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15123 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 15124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15125 break 2 15126 fi 15127 done 15128 done 15129 IFS=$as_save_IFS 15130 15131 ;; 15132 esac 15133 fi 15134 CPIO=$ac_cv_path_CPIO 15135 if test -n "$CPIO"; then 15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15137 $as_echo "$CPIO" >&6; } 15138 else 15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15140 $as_echo "no" >&6; } 15141 fi 15142 15143 15144 if test "x$CPIO" = x; then 15145 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15146 fi 15147 else 15148 # Otherwise we believe it is a complete path. Use it as it is. 15149 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 15150 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 15151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 15152 $as_echo_n "checking for CPIO... " >&6; } 15153 if test ! -x "$tool_specified"; then 15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15155 $as_echo "not found" >&6; } 15156 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 15157 fi 15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15159 $as_echo "$tool_specified" >&6; } 15160 fi 15161 fi 15162 fi 15163 15164 fi 15165 15166 15167 15168 15169 # Publish this variable in the help. 15170 15171 15172 if [ -z "${NICE+x}" ]; then 15173 # The variable is not set by user, try to locate tool using the code snippet 15174 for ac_prog in nice 15175 do 15176 # Extract the first word of "$ac_prog", so it can be a program name with args. 15177 set dummy $ac_prog; ac_word=$2 15178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15179 $as_echo_n "checking for $ac_word... " >&6; } 15180 if ${ac_cv_path_NICE+:} false; then : 15181 $as_echo_n "(cached) " >&6 15182 else 15183 case $NICE in 15184 [\\/]* | ?:[\\/]*) 15185 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15186 ;; 15187 *) 15188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15189 for as_dir in $PATH 15190 do 15191 IFS=$as_save_IFS 15192 test -z "$as_dir" && as_dir=. 15193 for ac_exec_ext in '' $ac_executable_extensions; do 15194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15195 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15197 break 2 15198 fi 15199 done 15200 done 15201 IFS=$as_save_IFS 15202 15203 ;; 15204 esac 15205 fi 15206 NICE=$ac_cv_path_NICE 15207 if test -n "$NICE"; then 15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15209 $as_echo "$NICE" >&6; } 15210 else 15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15212 $as_echo "no" >&6; } 15213 fi 15214 15215 15216 test -n "$NICE" && break 15217 done 15218 15219 else 15220 # The variable is set, but is it from the command line or the environment? 15221 15222 # Try to remove the string !NICE! from our list. 15223 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/} 15224 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15225 # If it failed, the variable was not from the command line. Ignore it, 15226 # but warn the user (except for BASH, which is always set by the calling BASH). 15227 if test "xNICE" != xBASH; then 15228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5 15229 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;} 15230 fi 15231 # Try to locate tool using the code snippet 15232 for ac_prog in nice 15233 do 15234 # Extract the first word of "$ac_prog", so it can be a program name with args. 15235 set dummy $ac_prog; ac_word=$2 15236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15237 $as_echo_n "checking for $ac_word... " >&6; } 15238 if ${ac_cv_path_NICE+:} false; then : 15239 $as_echo_n "(cached) " >&6 15240 else 15241 case $NICE in 15242 [\\/]* | ?:[\\/]*) 15243 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15244 ;; 15245 *) 15246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15247 for as_dir in $PATH 15248 do 15249 IFS=$as_save_IFS 15250 test -z "$as_dir" && as_dir=. 15251 for ac_exec_ext in '' $ac_executable_extensions; do 15252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15253 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15255 break 2 15256 fi 15257 done 15258 done 15259 IFS=$as_save_IFS 15260 15261 ;; 15262 esac 15263 fi 15264 NICE=$ac_cv_path_NICE 15265 if test -n "$NICE"; then 15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15267 $as_echo "$NICE" >&6; } 15268 else 15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15270 $as_echo "no" >&6; } 15271 fi 15272 15273 15274 test -n "$NICE" && break 15275 done 15276 15277 else 15278 # If it succeeded, then it was overridden by the user. We will use it 15279 # for the tool. 15280 15281 # First remove it from the list of overridden variables, so we can test 15282 # for unknown variables in the end. 15283 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15284 15285 # Check if we try to supply an empty value 15286 if test "x$NICE" = x; then 15287 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5 15288 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;} 15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 15290 $as_echo_n "checking for NICE... " >&6; } 15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15292 $as_echo "disabled" >&6; } 15293 else 15294 # Check if the provided tool contains a complete path. 15295 tool_specified="$NICE" 15296 tool_basename="${tool_specified##*/}" 15297 if test "x$tool_basename" = "x$tool_specified"; then 15298 # A command without a complete path is provided, search $PATH. 15299 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5 15300 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;} 15301 # Extract the first word of "$tool_basename", so it can be a program name with args. 15302 set dummy $tool_basename; ac_word=$2 15303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15304 $as_echo_n "checking for $ac_word... " >&6; } 15305 if ${ac_cv_path_NICE+:} false; then : 15306 $as_echo_n "(cached) " >&6 15307 else 15308 case $NICE in 15309 [\\/]* | ?:[\\/]*) 15310 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15311 ;; 15312 *) 15313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15314 for as_dir in $PATH 15315 do 15316 IFS=$as_save_IFS 15317 test -z "$as_dir" && as_dir=. 15318 for ac_exec_ext in '' $ac_executable_extensions; do 15319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15320 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15322 break 2 15323 fi 15324 done 15325 done 15326 IFS=$as_save_IFS 15327 15328 ;; 15329 esac 15330 fi 15331 NICE=$ac_cv_path_NICE 15332 if test -n "$NICE"; then 15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15334 $as_echo "$NICE" >&6; } 15335 else 15336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15337 $as_echo "no" >&6; } 15338 fi 15339 15340 15341 if test "x$NICE" = x; then 15342 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15343 fi 15344 else 15345 # Otherwise we believe it is a complete path. Use it as it is. 15346 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5 15347 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;} 15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 15349 $as_echo_n "checking for NICE... " >&6; } 15350 if test ! -x "$tool_specified"; then 15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15352 $as_echo "not found" >&6; } 15353 as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5 15354 fi 15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15356 $as_echo "$tool_specified" >&6; } 15357 fi 15358 fi 15359 fi 15360 15361 fi 15362 15363 15364 15365 15366 # Publish this variable in the help. 15367 15368 15369 if [ -z "${PANDOC+x}" ]; then 15370 # The variable is not set by user, try to locate tool using the code snippet 15371 for ac_prog in pandoc 15372 do 15373 # Extract the first word of "$ac_prog", so it can be a program name with args. 15374 set dummy $ac_prog; ac_word=$2 15375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15376 $as_echo_n "checking for $ac_word... " >&6; } 15377 if ${ac_cv_path_PANDOC+:} false; then : 15378 $as_echo_n "(cached) " >&6 15379 else 15380 case $PANDOC in 15381 [\\/]* | ?:[\\/]*) 15382 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 15383 ;; 15384 *) 15385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15386 for as_dir in $PATH 15387 do 15388 IFS=$as_save_IFS 15389 test -z "$as_dir" && as_dir=. 15390 for ac_exec_ext in '' $ac_executable_extensions; do 15391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15392 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 15393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15394 break 2 15395 fi 15396 done 15397 done 15398 IFS=$as_save_IFS 15399 15400 ;; 15401 esac 15402 fi 15403 PANDOC=$ac_cv_path_PANDOC 15404 if test -n "$PANDOC"; then 15405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 15406 $as_echo "$PANDOC" >&6; } 15407 else 15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15409 $as_echo "no" >&6; } 15410 fi 15411 15412 15413 test -n "$PANDOC" && break 15414 done 15415 15416 else 15417 # The variable is set, but is it from the command line or the environment? 15418 15419 # Try to remove the string !PANDOC! from our list. 15420 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PANDOC!/} 15421 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15422 # If it failed, the variable was not from the command line. Ignore it, 15423 # but warn the user (except for BASH, which is always set by the calling BASH). 15424 if test "xPANDOC" != xBASH; then 15425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&5 15426 $as_echo "$as_me: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&2;} 15427 fi 15428 # Try to locate tool using the code snippet 15429 for ac_prog in pandoc 15430 do 15431 # Extract the first word of "$ac_prog", so it can be a program name with args. 15432 set dummy $ac_prog; ac_word=$2 15433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15434 $as_echo_n "checking for $ac_word... " >&6; } 15435 if ${ac_cv_path_PANDOC+:} false; then : 15436 $as_echo_n "(cached) " >&6 15437 else 15438 case $PANDOC in 15439 [\\/]* | ?:[\\/]*) 15440 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 15441 ;; 15442 *) 15443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15444 for as_dir in $PATH 15445 do 15446 IFS=$as_save_IFS 15447 test -z "$as_dir" && as_dir=. 15448 for ac_exec_ext in '' $ac_executable_extensions; do 15449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15450 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 15451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15452 break 2 15453 fi 15454 done 15455 done 15456 IFS=$as_save_IFS 15457 15458 ;; 15459 esac 15460 fi 15461 PANDOC=$ac_cv_path_PANDOC 15462 if test -n "$PANDOC"; then 15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 15464 $as_echo "$PANDOC" >&6; } 15465 else 15466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15467 $as_echo "no" >&6; } 15468 fi 15469 15470 15471 test -n "$PANDOC" && break 15472 done 15473 15474 else 15475 # If it succeeded, then it was overridden by the user. We will use it 15476 # for the tool. 15477 15478 # First remove it from the list of overridden variables, so we can test 15479 # for unknown variables in the end. 15480 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15481 15482 # Check if we try to supply an empty value 15483 if test "x$PANDOC" = x; then 15484 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PANDOC= (no value)" >&5 15485 $as_echo "$as_me: Setting user supplied tool PANDOC= (no value)" >&6;} 15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5 15487 $as_echo_n "checking for PANDOC... " >&6; } 15488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15489 $as_echo "disabled" >&6; } 15490 else 15491 # Check if the provided tool contains a complete path. 15492 tool_specified="$PANDOC" 15493 tool_basename="${tool_specified##*/}" 15494 if test "x$tool_basename" = "x$tool_specified"; then 15495 # A command without a complete path is provided, search $PATH. 15496 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PANDOC=$tool_basename" >&5 15497 $as_echo "$as_me: Will search for user supplied tool PANDOC=$tool_basename" >&6;} 15498 # Extract the first word of "$tool_basename", so it can be a program name with args. 15499 set dummy $tool_basename; ac_word=$2 15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15501 $as_echo_n "checking for $ac_word... " >&6; } 15502 if ${ac_cv_path_PANDOC+:} false; then : 15503 $as_echo_n "(cached) " >&6 15504 else 15505 case $PANDOC in 15506 [\\/]* | ?:[\\/]*) 15507 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 15508 ;; 15509 *) 15510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15511 for as_dir in $PATH 15512 do 15513 IFS=$as_save_IFS 15514 test -z "$as_dir" && as_dir=. 15515 for ac_exec_ext in '' $ac_executable_extensions; do 15516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15517 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 15518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15519 break 2 15520 fi 15521 done 15522 done 15523 IFS=$as_save_IFS 15524 15525 ;; 15526 esac 15527 fi 15528 PANDOC=$ac_cv_path_PANDOC 15529 if test -n "$PANDOC"; then 15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 15531 $as_echo "$PANDOC" >&6; } 15532 else 15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15534 $as_echo "no" >&6; } 15535 fi 15536 15537 15538 if test "x$PANDOC" = x; then 15539 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15540 fi 15541 else 15542 # Otherwise we believe it is a complete path. Use it as it is. 15543 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PANDOC=$tool_specified" >&5 15544 $as_echo "$as_me: Will use user supplied tool PANDOC=$tool_specified" >&6;} 15545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5 15546 $as_echo_n "checking for PANDOC... " >&6; } 15547 if test ! -x "$tool_specified"; then 15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15549 $as_echo "not found" >&6; } 15550 as_fn_error $? "User supplied tool PANDOC=$tool_specified does not exist or is not executable" "$LINENO" 5 15551 fi 15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15553 $as_echo "$tool_specified" >&6; } 15554 fi 15555 fi 15556 fi 15557 15558 fi 15559 15560 15561 15562 15563 # Now we can determine OpenJDK build and target platforms. This is required to 15564 # have early on. 15565 # Make sure we can run config.sub. 15566 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 15567 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 15568 15569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 15570 $as_echo_n "checking build system type... " >&6; } 15571 if ${ac_cv_build+:} false; then : 15572 $as_echo_n "(cached) " >&6 15573 else 15574 ac_build_alias=$build_alias 15575 test "x$ac_build_alias" = x && 15576 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 15577 test "x$ac_build_alias" = x && 15578 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 15579 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 15580 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 15581 15582 fi 15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 15584 $as_echo "$ac_cv_build" >&6; } 15585 case $ac_cv_build in 15586 *-*-*) ;; 15587 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 15588 esac 15589 build=$ac_cv_build 15590 ac_save_IFS=$IFS; IFS='-' 15591 set x $ac_cv_build 15592 shift 15593 build_cpu=$1 15594 build_vendor=$2 15595 shift; shift 15596 # Remember, the first character of IFS is used to create $*, 15597 # except with old shells: 15598 build_os=$* 15599 IFS=$ac_save_IFS 15600 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 15601 15602 15603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 15604 $as_echo_n "checking host system type... " >&6; } 15605 if ${ac_cv_host+:} false; then : 15606 $as_echo_n "(cached) " >&6 15607 else 15608 if test "x$host_alias" = x; then 15609 ac_cv_host=$ac_cv_build 15610 else 15611 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 15612 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 15613 fi 15614 15615 fi 15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 15617 $as_echo "$ac_cv_host" >&6; } 15618 case $ac_cv_host in 15619 *-*-*) ;; 15620 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 15621 esac 15622 host=$ac_cv_host 15623 ac_save_IFS=$IFS; IFS='-' 15624 set x $ac_cv_host 15625 shift 15626 host_cpu=$1 15627 host_vendor=$2 15628 shift; shift 15629 # Remember, the first character of IFS is used to create $*, 15630 # except with old shells: 15631 host_os=$* 15632 IFS=$ac_save_IFS 15633 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 15634 15635 15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 15637 $as_echo_n "checking target system type... " >&6; } 15638 if ${ac_cv_target+:} false; then : 15639 $as_echo_n "(cached) " >&6 15640 else 15641 if test "x$target_alias" = x; then 15642 ac_cv_target=$ac_cv_host 15643 else 15644 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 15645 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 15646 fi 15647 15648 fi 15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 15650 $as_echo "$ac_cv_target" >&6; } 15651 case $ac_cv_target in 15652 *-*-*) ;; 15653 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 15654 esac 15655 target=$ac_cv_target 15656 ac_save_IFS=$IFS; IFS='-' 15657 set x $ac_cv_target 15658 shift 15659 target_cpu=$1 15660 target_vendor=$2 15661 shift; shift 15662 # Remember, the first character of IFS is used to create $*, 15663 # except with old shells: 15664 target_os=$* 15665 IFS=$ac_save_IFS 15666 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 15667 15668 15669 # The aliases save the names the user supplied, while $host etc. 15670 # will get canonicalized. 15671 test -n "$target_alias" && 15672 test "$program_prefix$program_suffix$program_transform_name" = \ 15673 NONENONEs,x,x, && 15674 program_prefix=${target_alias}- 15675 15676 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 15677 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 15678 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 15679 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 15680 # to use the configure naming style. 15681 15682 15683 15684 15685 15686 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 15687 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 15688 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 15689 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 15690 OPENJDK_TARGET_AUTOCONF_NAME="$host" 15691 OPENJDK_BUILD_AUTOCONF_NAME="$build" 15692 15693 15694 15695 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 15696 15697 case "$build_os" in 15698 *linux*) 15699 VAR_OS=linux 15700 VAR_OS_TYPE=unix 15701 ;; 15702 *solaris*) 15703 VAR_OS=solaris 15704 VAR_OS_TYPE=unix 15705 ;; 15706 *darwin*) 15707 VAR_OS=macosx 15708 VAR_OS_TYPE=unix 15709 ;; 15710 *bsd*) 15711 VAR_OS=bsd 15712 VAR_OS_TYPE=unix 15713 ;; 15714 *cygwin*) 15715 VAR_OS=windows 15716 VAR_OS_ENV=windows.cygwin 15717 ;; 15718 *mingw*) 15719 VAR_OS=windows 15720 VAR_OS_ENV=windows.msys 15721 ;; 15722 *aix*) 15723 VAR_OS=aix 15724 VAR_OS_TYPE=unix 15725 ;; 15726 *) 15727 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 15728 ;; 15729 esac 15730 15731 15732 # First argument is the cpu name from the trip/quad 15733 case "$build_cpu" in 15734 x86_64) 15735 VAR_CPU=x86_64 15736 VAR_CPU_ARCH=x86 15737 VAR_CPU_BITS=64 15738 VAR_CPU_ENDIAN=little 15739 ;; 15740 i?86) 15741 VAR_CPU=x86 15742 VAR_CPU_ARCH=x86 15743 VAR_CPU_BITS=32 15744 VAR_CPU_ENDIAN=little 15745 ;; 15746 alpha*) 15747 VAR_CPU=alpha 15748 VAR_CPU_ARCH=alpha 15749 VAR_CPU_BITS=64 15750 VAR_CPU_ENDIAN=little 15751 ;; 15752 arm*) 15753 VAR_CPU=arm 15754 VAR_CPU_ARCH=arm 15755 VAR_CPU_BITS=32 15756 VAR_CPU_ENDIAN=little 15757 ;; 15758 aarch64) 15759 VAR_CPU=aarch64 15760 VAR_CPU_ARCH=aarch64 15761 VAR_CPU_BITS=64 15762 VAR_CPU_ENDIAN=little 15763 ;; 15764 m68k) 15765 VAR_CPU=m68k 15766 VAR_CPU_ARCH=m68k 15767 VAR_CPU_BITS=32 15768 VAR_CPU_ENDIAN=big 15769 ;; 15770 mips) 15771 VAR_CPU=mips 15772 VAR_CPU_ARCH=mips 15773 VAR_CPU_BITS=32 15774 VAR_CPU_ENDIAN=big 15775 ;; 15776 mipsel) 15777 VAR_CPU=mipsel 15778 VAR_CPU_ARCH=mipsel 15779 VAR_CPU_BITS=32 15780 VAR_CPU_ENDIAN=little 15781 ;; 15782 mips64) 15783 VAR_CPU=mips64 15784 VAR_CPU_ARCH=mips64 15785 VAR_CPU_BITS=64 15786 VAR_CPU_ENDIAN=big 15787 ;; 15788 mips64el) 15789 VAR_CPU=mips64el 15790 VAR_CPU_ARCH=mips64el 15791 VAR_CPU_BITS=64 15792 VAR_CPU_ENDIAN=little 15793 ;; 15794 powerpc) 15795 VAR_CPU=ppc 15796 VAR_CPU_ARCH=ppc 15797 VAR_CPU_BITS=32 15798 VAR_CPU_ENDIAN=big 15799 ;; 15800 powerpc64) 15801 VAR_CPU=ppc64 15802 VAR_CPU_ARCH=ppc 15803 VAR_CPU_BITS=64 15804 VAR_CPU_ENDIAN=big 15805 ;; 15806 powerpc64le) 15807 VAR_CPU=ppc64le 15808 VAR_CPU_ARCH=ppc 15809 VAR_CPU_BITS=64 15810 VAR_CPU_ENDIAN=little 15811 ;; 15812 s390) 15813 VAR_CPU=s390 15814 VAR_CPU_ARCH=s390 15815 VAR_CPU_BITS=32 15816 VAR_CPU_ENDIAN=big 15817 ;; 15818 s390x) 15819 VAR_CPU=s390x 15820 VAR_CPU_ARCH=s390 15821 VAR_CPU_BITS=64 15822 VAR_CPU_ENDIAN=big 15823 ;; 15824 sh*eb) 15825 VAR_CPU=sh 15826 VAR_CPU_ARCH=sh 15827 VAR_CPU_BITS=32 15828 VAR_CPU_ENDIAN=big 15829 ;; 15830 sh*) 15831 VAR_CPU=sh 15832 VAR_CPU_ARCH=sh 15833 VAR_CPU_BITS=32 15834 VAR_CPU_ENDIAN=little 15835 ;; 15836 sparc) 15837 VAR_CPU=sparc 15838 VAR_CPU_ARCH=sparc 15839 VAR_CPU_BITS=32 15840 VAR_CPU_ENDIAN=big 15841 ;; 15842 sparcv9|sparc64) 15843 VAR_CPU=sparcv9 15844 VAR_CPU_ARCH=sparc 15845 VAR_CPU_BITS=64 15846 VAR_CPU_ENDIAN=big 15847 ;; 15848 *) 15849 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 15850 ;; 15851 esac 15852 15853 # ..and setup our own variables. (Do this explicitly to facilitate searching) 15854 OPENJDK_BUILD_OS="$VAR_OS" 15855 if test "x$VAR_OS_TYPE" != x; then 15856 OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE" 15857 else 15858 OPENJDK_BUILD_OS_TYPE="$VAR_OS" 15859 fi 15860 if test "x$VAR_OS_ENV" != x; then 15861 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 15862 else 15863 OPENJDK_BUILD_OS_ENV="$VAR_OS" 15864 fi 15865 OPENJDK_BUILD_CPU="$VAR_CPU" 15866 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 15867 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 15868 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 15869 15870 15871 15872 15873 15874 15875 15876 15877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 15878 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 15880 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 15881 15882 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 15883 15884 case "$host_os" in 15885 *linux*) 15886 VAR_OS=linux 15887 VAR_OS_TYPE=unix 15888 ;; 15889 *solaris*) 15890 VAR_OS=solaris 15891 VAR_OS_TYPE=unix 15892 ;; 15893 *darwin*) 15894 VAR_OS=macosx 15895 VAR_OS_TYPE=unix 15896 ;; 15897 *bsd*) 15898 VAR_OS=bsd 15899 VAR_OS_TYPE=unix 15900 ;; 15901 *cygwin*) 15902 VAR_OS=windows 15903 VAR_OS_ENV=windows.cygwin 15904 ;; 15905 *mingw*) 15906 VAR_OS=windows 15907 VAR_OS_ENV=windows.msys 15908 ;; 15909 *aix*) 15910 VAR_OS=aix 15911 VAR_OS_TYPE=unix 15912 ;; 15913 *) 15914 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 15915 ;; 15916 esac 15917 15918 15919 # First argument is the cpu name from the trip/quad 15920 case "$host_cpu" in 15921 x86_64) 15922 VAR_CPU=x86_64 15923 VAR_CPU_ARCH=x86 15924 VAR_CPU_BITS=64 15925 VAR_CPU_ENDIAN=little 15926 ;; 15927 i?86) 15928 VAR_CPU=x86 15929 VAR_CPU_ARCH=x86 15930 VAR_CPU_BITS=32 15931 VAR_CPU_ENDIAN=little 15932 ;; 15933 alpha*) 15934 VAR_CPU=alpha 15935 VAR_CPU_ARCH=alpha 15936 VAR_CPU_BITS=64 15937 VAR_CPU_ENDIAN=little 15938 ;; 15939 arm*) 15940 VAR_CPU=arm 15941 VAR_CPU_ARCH=arm 15942 VAR_CPU_BITS=32 15943 VAR_CPU_ENDIAN=little 15944 ;; 15945 aarch64) 15946 VAR_CPU=aarch64 15947 VAR_CPU_ARCH=aarch64 15948 VAR_CPU_BITS=64 15949 VAR_CPU_ENDIAN=little 15950 ;; 15951 m68k) 15952 VAR_CPU=m68k 15953 VAR_CPU_ARCH=m68k 15954 VAR_CPU_BITS=32 15955 VAR_CPU_ENDIAN=big 15956 ;; 15957 mips) 15958 VAR_CPU=mips 15959 VAR_CPU_ARCH=mips 15960 VAR_CPU_BITS=32 15961 VAR_CPU_ENDIAN=big 15962 ;; 15963 mipsel) 15964 VAR_CPU=mipsel 15965 VAR_CPU_ARCH=mipsel 15966 VAR_CPU_BITS=32 15967 VAR_CPU_ENDIAN=little 15968 ;; 15969 mips64) 15970 VAR_CPU=mips64 15971 VAR_CPU_ARCH=mips64 15972 VAR_CPU_BITS=64 15973 VAR_CPU_ENDIAN=big 15974 ;; 15975 mips64el) 15976 VAR_CPU=mips64el 15977 VAR_CPU_ARCH=mips64el 15978 VAR_CPU_BITS=64 15979 VAR_CPU_ENDIAN=little 15980 ;; 15981 powerpc) 15982 VAR_CPU=ppc 15983 VAR_CPU_ARCH=ppc 15984 VAR_CPU_BITS=32 15985 VAR_CPU_ENDIAN=big 15986 ;; 15987 powerpc64) 15988 VAR_CPU=ppc64 15989 VAR_CPU_ARCH=ppc 15990 VAR_CPU_BITS=64 15991 VAR_CPU_ENDIAN=big 15992 ;; 15993 powerpc64le) 15994 VAR_CPU=ppc64le 15995 VAR_CPU_ARCH=ppc 15996 VAR_CPU_BITS=64 15997 VAR_CPU_ENDIAN=little 15998 ;; 15999 s390) 16000 VAR_CPU=s390 16001 VAR_CPU_ARCH=s390 16002 VAR_CPU_BITS=32 16003 VAR_CPU_ENDIAN=big 16004 ;; 16005 s390x) 16006 VAR_CPU=s390x 16007 VAR_CPU_ARCH=s390 16008 VAR_CPU_BITS=64 16009 VAR_CPU_ENDIAN=big 16010 ;; 16011 sh*eb) 16012 VAR_CPU=sh 16013 VAR_CPU_ARCH=sh 16014 VAR_CPU_BITS=32 16015 VAR_CPU_ENDIAN=big 16016 ;; 16017 sh*) 16018 VAR_CPU=sh 16019 VAR_CPU_ARCH=sh 16020 VAR_CPU_BITS=32 16021 VAR_CPU_ENDIAN=little 16022 ;; 16023 sparc) 16024 VAR_CPU=sparc 16025 VAR_CPU_ARCH=sparc 16026 VAR_CPU_BITS=32 16027 VAR_CPU_ENDIAN=big 16028 ;; 16029 sparcv9|sparc64) 16030 VAR_CPU=sparcv9 16031 VAR_CPU_ARCH=sparc 16032 VAR_CPU_BITS=64 16033 VAR_CPU_ENDIAN=big 16034 ;; 16035 *) 16036 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 16037 ;; 16038 esac 16039 16040 # ... and setup our own variables. (Do this explicitly to facilitate searching) 16041 OPENJDK_TARGET_OS="$VAR_OS" 16042 if test "x$VAR_OS_TYPE" != x; then 16043 OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE" 16044 else 16045 OPENJDK_TARGET_OS_TYPE="$VAR_OS" 16046 fi 16047 if test "x$VAR_OS_ENV" != x; then 16048 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 16049 else 16050 OPENJDK_TARGET_OS_ENV="$VAR_OS" 16051 fi 16052 OPENJDK_TARGET_CPU="$VAR_CPU" 16053 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 16054 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 16055 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 16056 16057 16058 16059 16060 16061 16062 16063 16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 16065 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 16066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 16067 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 16068 16069 16070 16071 # Check whether --with-target-bits was given. 16072 if test "${with_target_bits+set}" = set; then : 16073 withval=$with_target_bits; 16074 fi 16075 16076 16077 # We have three types of compiles: 16078 # native == normal compilation, target system == build system 16079 # cross == traditional cross compilation, target system != build system; special toolchain needed 16080 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 16081 # 16082 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 16083 # We're doing a proper cross-compilation 16084 COMPILE_TYPE="cross" 16085 else 16086 COMPILE_TYPE="native" 16087 fi 16088 16089 if test "x$with_target_bits" != x; then 16090 if test "x$COMPILE_TYPE" = "xcross"; then 16091 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 16092 fi 16093 16094 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 16095 # A reduced build is requested 16096 COMPILE_TYPE="reduced" 16097 OPENJDK_TARGET_CPU_BITS=32 16098 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 16099 OPENJDK_TARGET_CPU=x86 16100 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 16101 OPENJDK_TARGET_CPU=sparc 16102 else 16103 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 16104 fi 16105 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 16106 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 16107 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 16108 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 16109 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 16110 else 16111 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 16112 fi 16113 fi 16114 16115 16116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 16117 $as_echo_n "checking compilation type... " >&6; } 16118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 16119 $as_echo "$COMPILE_TYPE" >&6; } 16120 16121 16122 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16123 OPENJDK_MODULE_TARGET_OS_NAME="macos" 16124 else 16125 OPENJDK_MODULE_TARGET_OS_NAME="$OPENJDK_TARGET_OS" 16126 fi 16127 16128 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16129 OPENJDK_MODULE_TARGET_OS_ARCH="amd64" 16130 else 16131 OPENJDK_MODULE_TARGET_OS_ARCH="$OPENJDK_TARGET_CPU" 16132 fi 16133 16134 OPENJDK_MODULE_TARGET_PLATFORM="${OPENJDK_MODULE_TARGET_OS_NAME}-${OPENJDK_MODULE_TARGET_OS_ARCH}" 16135 16136 16137 16138 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 16139 RELEASE_FILE_OS_NAME=SunOS 16140 fi 16141 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 16142 RELEASE_FILE_OS_NAME=Linux 16143 fi 16144 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 16145 RELEASE_FILE_OS_NAME=Windows 16146 fi 16147 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16148 RELEASE_FILE_OS_NAME="Darwin" 16149 fi 16150 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 16151 RELEASE_FILE_OS_NAME="AIX" 16152 fi 16153 RELEASE_FILE_OS_ARCH=${OPENJDK_TARGET_CPU} 16154 16155 16156 16157 16158 16159 16160 # Also store the legacy naming of the cpu. 16161 # Ie i586 and amd64 instead of x86 and x86_64 16162 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 16163 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16164 OPENJDK_TARGET_CPU_LEGACY="i586" 16165 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16166 # On all platforms except MacOSX replace x86_64 with amd64. 16167 OPENJDK_TARGET_CPU_LEGACY="amd64" 16168 elif test "x$OPENJDK_TARGET_CPU" = xalpha; then 16169 # Avoid name collisions with variables named alpha 16170 OPENJDK_TARGET_CPU_LEGACY="_alpha_" 16171 elif test "x$OPENJDK_TARGET_CPU" = xsh; then 16172 # Avoid name collisions with variables named sh 16173 OPENJDK_TARGET_CPU_LEGACY="_sh_" 16174 fi 16175 16176 16177 # And the second legacy naming of the cpu. 16178 # Ie i386 and amd64 instead of x86 and x86_64. 16179 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 16180 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16181 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 16182 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16183 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 16184 fi 16185 16186 16187 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 16188 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 16189 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 16190 OPENJDK_TARGET_CPU_ISADIR="" 16191 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 16192 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16193 OPENJDK_TARGET_CPU_ISADIR="/amd64" 16194 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 16195 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 16196 fi 16197 fi 16198 16199 16200 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 16201 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 16202 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 16203 # On linux only, we replace x86 with i386. 16204 OPENJDK_TARGET_CPU_OSARCH="i386" 16205 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16206 # On all platforms except macosx, we replace x86_64 with amd64. 16207 OPENJDK_TARGET_CPU_OSARCH="amd64" 16208 fi 16209 16210 16211 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 16212 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16213 OPENJDK_TARGET_CPU_JLI="i386" 16214 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16215 # On all platforms except macosx, we replace x86_64 with amd64. 16216 OPENJDK_TARGET_CPU_JLI="amd64" 16217 fi 16218 16219 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16220 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 16221 else 16222 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE} 16223 fi 16224 16225 16226 # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles 16227 # Macosx is osx and x86_64 is x64 16228 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16229 OPENJDK_TARGET_OS_BUNDLE="osx" 16230 else 16231 OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS" 16232 fi 16233 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16234 OPENJDK_TARGET_CPU_BUNDLE="x64" 16235 else 16236 OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU" 16237 fi 16238 OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}" 16239 16240 16241 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 16242 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 16243 # unpack200.exe. This variable is used in 16244 # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER. 16245 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 16246 OPENJDK_TARGET_ADD_LP64="-D_LP64=1" 16247 fi 16248 fi 16249 16250 if test "x$COMPILE_TYPE" = "xcross"; then 16251 # FIXME: ... or should this include reduced builds..? 16252 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 16253 else 16254 DEFINE_CROSS_COMPILE_ARCH="" 16255 fi 16256 16257 16258 # Convert openjdk platform names to hotspot names 16259 16260 HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS} 16261 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16262 HOTSPOT_TARGET_OS=bsd 16263 fi 16264 16265 16266 HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE} 16267 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 16268 HOTSPOT_TARGET_OS_TYPE=posix 16269 fi 16270 16271 16272 HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU} 16273 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16274 HOTSPOT_TARGET_CPU=x86_32 16275 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 16276 HOTSPOT_TARGET_CPU=sparc 16277 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 16278 HOTSPOT_TARGET_CPU=ppc_64 16279 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 16280 HOTSPOT_TARGET_CPU=ppc_64 16281 fi 16282 16283 16284 # This is identical with OPENJDK_*, but define anyway for consistency. 16285 HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH} 16286 16287 16288 # Setup HOTSPOT_TARGET_CPU_DEFINE 16289 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16290 HOTSPOT_TARGET_CPU_DEFINE=IA32 16291 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16292 HOTSPOT_TARGET_CPU_DEFINE=AMD64 16293 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 16294 HOTSPOT_TARGET_CPU_DEFINE=SPARC 16295 elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then 16296 HOTSPOT_TARGET_CPU_DEFINE=AARCH64 16297 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 16298 HOTSPOT_TARGET_CPU_DEFINE=PPC64 16299 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 16300 HOTSPOT_TARGET_CPU_DEFINE=PPC64 16301 16302 # The cpu defines below are for zero, we don't support them directly. 16303 elif test "x$OPENJDK_TARGET_CPU" = xsparc; then 16304 HOTSPOT_TARGET_CPU_DEFINE=SPARC 16305 elif test "x$OPENJDK_TARGET_CPU" = xppc; then 16306 HOTSPOT_TARGET_CPU_DEFINE=PPC32 16307 elif test "x$OPENJDK_TARGET_CPU" = xs390; then 16308 HOTSPOT_TARGET_CPU_DEFINE=S390 16309 elif test "x$OPENJDK_TARGET_CPU" = xs390x; then 16310 HOTSPOT_TARGET_CPU_DEFINE=S390 16311 elif test "x$OPENJDK_TARGET_CPU" != x; then 16312 HOTSPOT_TARGET_CPU_DEFINE=$(echo $OPENJDK_TARGET_CPU | tr a-z A-Z) 16313 fi 16314 16315 16316 16317 16318 # Also store the legacy naming of the cpu. 16319 # Ie i586 and amd64 instead of x86 and x86_64 16320 OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU" 16321 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16322 OPENJDK_BUILD_CPU_LEGACY="i586" 16323 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16324 # On all platforms except MacOSX replace x86_64 with amd64. 16325 OPENJDK_BUILD_CPU_LEGACY="amd64" 16326 elif test "x$OPENJDK_BUILD_CPU" = xalpha; then 16327 # Avoid name collisions with variables named alpha 16328 OPENJDK_BUILD_CPU_LEGACY="_alpha_" 16329 elif test "x$OPENJDK_BUILD_CPU" = xsh; then 16330 # Avoid name collisions with variables named sh 16331 OPENJDK_BUILD_CPU_LEGACY="_sh_" 16332 fi 16333 16334 16335 # And the second legacy naming of the cpu. 16336 # Ie i386 and amd64 instead of x86 and x86_64. 16337 OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU" 16338 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16339 OPENJDK_BUILD_CPU_LEGACY_LIB="i386" 16340 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16341 OPENJDK_BUILD_CPU_LEGACY_LIB="amd64" 16342 fi 16343 16344 16345 # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 16346 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 16347 # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so 16348 OPENJDK_BUILD_CPU_ISADIR="" 16349 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 16350 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16351 OPENJDK_BUILD_CPU_ISADIR="/amd64" 16352 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16353 OPENJDK_BUILD_CPU_ISADIR="/sparcv9" 16354 fi 16355 fi 16356 16357 16358 # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property 16359 OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU" 16360 if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then 16361 # On linux only, we replace x86 with i386. 16362 OPENJDK_BUILD_CPU_OSARCH="i386" 16363 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16364 # On all platforms except macosx, we replace x86_64 with amd64. 16365 OPENJDK_BUILD_CPU_OSARCH="amd64" 16366 fi 16367 16368 16369 OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU" 16370 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16371 OPENJDK_BUILD_CPU_JLI="i386" 16372 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16373 # On all platforms except macosx, we replace x86_64 with amd64. 16374 OPENJDK_BUILD_CPU_JLI="amd64" 16375 fi 16376 16377 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16378 OPENJDK_BUILD_OS_EXPORT_DIR=macosx 16379 else 16380 OPENJDK_BUILD_OS_EXPORT_DIR=${OPENJDK_BUILD_OS_TYPE} 16381 fi 16382 16383 16384 # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles 16385 # Macosx is osx and x86_64 is x64 16386 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16387 OPENJDK_BUILD_OS_BUNDLE="osx" 16388 else 16389 OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS" 16390 fi 16391 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16392 OPENJDK_BUILD_CPU_BUNDLE="x64" 16393 else 16394 OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU" 16395 fi 16396 OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}" 16397 16398 16399 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 16400 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 16401 # unpack200.exe. This variable is used in 16402 # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER. 16403 if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then 16404 OPENJDK_BUILD_ADD_LP64="-D_LP64=1" 16405 fi 16406 fi 16407 16408 if test "x$COMPILE_TYPE" = "xcross"; then 16409 # FIXME: ... or should this include reduced builds..? 16410 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY" 16411 else 16412 DEFINE_CROSS_COMPILE_ARCH="" 16413 fi 16414 16415 16416 # Convert openjdk platform names to hotspot names 16417 16418 HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS} 16419 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16420 HOTSPOT_BUILD_OS=bsd 16421 fi 16422 16423 16424 HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE} 16425 if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then 16426 HOTSPOT_BUILD_OS_TYPE=posix 16427 fi 16428 16429 16430 HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU} 16431 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16432 HOTSPOT_BUILD_CPU=x86_32 16433 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16434 HOTSPOT_BUILD_CPU=sparc 16435 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 16436 HOTSPOT_BUILD_CPU=ppc_64 16437 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 16438 HOTSPOT_BUILD_CPU=ppc_64 16439 fi 16440 16441 16442 # This is identical with OPENJDK_*, but define anyway for consistency. 16443 HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH} 16444 16445 16446 # Setup HOTSPOT_BUILD_CPU_DEFINE 16447 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16448 HOTSPOT_BUILD_CPU_DEFINE=IA32 16449 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16450 HOTSPOT_BUILD_CPU_DEFINE=AMD64 16451 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16452 HOTSPOT_BUILD_CPU_DEFINE=SPARC 16453 elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then 16454 HOTSPOT_BUILD_CPU_DEFINE=AARCH64 16455 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 16456 HOTSPOT_BUILD_CPU_DEFINE=PPC64 16457 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 16458 HOTSPOT_BUILD_CPU_DEFINE=PPC64 16459 16460 # The cpu defines below are for zero, we don't support them directly. 16461 elif test "x$OPENJDK_BUILD_CPU" = xsparc; then 16462 HOTSPOT_BUILD_CPU_DEFINE=SPARC 16463 elif test "x$OPENJDK_BUILD_CPU" = xppc; then 16464 HOTSPOT_BUILD_CPU_DEFINE=PPC32 16465 elif test "x$OPENJDK_BUILD_CPU" = xs390; then 16466 HOTSPOT_BUILD_CPU_DEFINE=S390 16467 elif test "x$OPENJDK_BUILD_CPU" = xs390x; then 16468 HOTSPOT_BUILD_CPU_DEFINE=S390 16469 elif test "x$OPENJDK_BUILD_CPU" != x; then 16470 HOTSPOT_BUILD_CPU_DEFINE=$(echo $OPENJDK_BUILD_CPU | tr a-z A-Z) 16471 fi 16472 16473 16474 16475 16476 16477 16478 # Continue setting up basic stuff. Most remaining code require fundamental tools. 16479 16480 # Save the current directory this script was started from 16481 CURDIR="$PWD" 16482 16483 # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them 16484 # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED 16485 # was not available at that time. 16486 REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'` 16487 if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then 16488 ORIGINAL_PATH="$REWRITTEN_PATH" 16489 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5 16490 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;} 16491 fi 16492 16493 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 16494 PATH_SEP=";" 16495 16496 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 16497 if test $SRC_ROOT_LENGTH -gt 100; then 16498 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 16499 fi 16500 16501 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 16503 $as_echo_n "checking cygwin release... " >&6; } 16504 CYGWIN_VERSION=`$UNAME -r` 16505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 16506 $as_echo "$CYGWIN_VERSION" >&6; } 16507 WINDOWS_ENV_VENDOR='cygwin' 16508 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 16509 16510 CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'` 16511 if test "x$CYGWIN_VERSION_OLD" != x; then 16512 { $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 16513 $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;} 16514 as_fn_error $? "Cannot continue" "$LINENO" 5 16515 fi 16516 if test "x$CYGPATH" = x; then 16517 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 16518 fi 16519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 16520 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 16521 # The cmd output ends with Windows line endings (CR/LF) 16522 cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'` 16523 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 16524 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 16526 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 16527 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 16528 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 16529 if test "x$test_cygdrive_prefix" = x; then 16530 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 16531 fi 16532 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 16534 $as_echo_n "checking msys release... " >&6; } 16535 MSYS_VERSION=`$UNAME -r` 16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 16537 $as_echo "$MSYS_VERSION" >&6; } 16538 16539 WINDOWS_ENV_VENDOR='msys' 16540 WINDOWS_ENV_VERSION="$MSYS_VERSION" 16541 16542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 16543 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 16544 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 16545 MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"` 16546 16547 windows_path="$MSYS_ROOT_PATH" 16548 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16549 unix_path=`$CYGPATH -u "$windows_path"` 16550 MSYS_ROOT_PATH="$unix_path" 16551 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16552 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16553 MSYS_ROOT_PATH="$unix_path" 16554 fi 16555 16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 16557 $as_echo "$MSYS_ROOT_PATH" >&6; } 16558 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 16559 else 16560 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 16561 fi 16562 16563 # Test if windows or unix (cygwin/msys) find is first in path. 16564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 16565 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 16566 FIND_BINARY_OUTPUT=`find --version 2>&1` 16567 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 16569 $as_echo "unix style" >&6; } 16570 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 16572 $as_echo "Windows" >&6; } 16573 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 16574 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 16575 { $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 16576 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 16577 as_fn_error $? "Cannot continue" "$LINENO" 5 16578 else 16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 16580 $as_echo "unknown" >&6; } 16581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 16582 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 16583 fi 16584 16585 else 16586 PATH_SEP=":" 16587 fi 16588 16589 16590 # We get the top-level directory from the supporting wrappers. 16591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 16592 $as_echo_n "checking for top-level directory... " >&6; } 16593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 16594 $as_echo "$TOPDIR" >&6; } 16595 16596 16597 # Save the original version of TOPDIR for string comparisons 16598 ORIGINAL_TOPDIR="$TOPDIR" 16599 16600 16601 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 16602 16603 # Only process if variable expands to non-empty 16604 16605 if test "x$CURDIR" != x; then 16606 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16607 16608 # Input might be given as Windows format, start by converting to 16609 # unix format. 16610 path="$CURDIR" 16611 new_path=`$CYGPATH -u "$path"` 16612 16613 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16614 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16615 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16616 # "foo.exe" is OK but "foo" is an error. 16617 # 16618 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16619 # It is also a way to make sure we got the proper file name for the real test later on. 16620 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16621 if test "x$test_shortpath" = x; then 16622 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 16623 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 16624 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 16625 fi 16626 16627 # Call helper function which possibly converts this using DOS-style short mode. 16628 # If so, the updated path is stored in $new_path. 16629 16630 input_path="$new_path" 16631 # Check if we need to convert this using DOS-style short mode. If the path 16632 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16633 # take no chances and rewrite it. 16634 # Note: m4 eats our [], so we need to use [ and ] instead. 16635 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16636 if test "x$has_forbidden_chars" != x; then 16637 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16638 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16639 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16640 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16641 # Going to short mode and back again did indeed matter. Since short mode is 16642 # case insensitive, let's make it lowercase to improve readability. 16643 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16644 # Now convert it back to Unix-style (cygpath) 16645 input_path=`$CYGPATH -u "$shortmode_path"` 16646 new_path="$input_path" 16647 fi 16648 fi 16649 16650 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16651 if test "x$test_cygdrive_prefix" = x; then 16652 # As a simple fix, exclude /usr/bin since it's not a real path. 16653 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16654 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16655 # a path prefixed by /cygdrive for fixpath to work. 16656 new_path="$CYGWIN_ROOT_PATH$input_path" 16657 fi 16658 fi 16659 16660 16661 if test "x$path" != "x$new_path"; then 16662 CURDIR="$new_path" 16663 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 16664 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 16665 fi 16666 16667 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16668 16669 path="$CURDIR" 16670 has_colon=`$ECHO $path | $GREP ^.:` 16671 new_path="$path" 16672 if test "x$has_colon" = x; then 16673 # Not in mixed or Windows style, start by that. 16674 new_path=`cmd //c echo $path` 16675 fi 16676 16677 16678 input_path="$new_path" 16679 # Check if we need to convert this using DOS-style short mode. If the path 16680 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16681 # take no chances and rewrite it. 16682 # Note: m4 eats our [], so we need to use [ and ] instead. 16683 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16684 if test "x$has_forbidden_chars" != x; then 16685 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16686 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16687 fi 16688 16689 16690 windows_path="$new_path" 16691 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16692 unix_path=`$CYGPATH -u "$windows_path"` 16693 new_path="$unix_path" 16694 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16695 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16696 new_path="$unix_path" 16697 fi 16698 16699 if test "x$path" != "x$new_path"; then 16700 CURDIR="$new_path" 16701 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 16702 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 16703 fi 16704 16705 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16706 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16707 16708 else 16709 # We're on a unix platform. Hooray! :) 16710 path="$CURDIR" 16711 has_space=`$ECHO "$path" | $GREP " "` 16712 if test "x$has_space" != x; then 16713 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 16714 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 16715 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16716 fi 16717 16718 # Use eval to expand a potential ~ 16719 eval path="$path" 16720 if test ! -f "$path" && test ! -d "$path"; then 16721 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 16722 fi 16723 16724 if test -d "$path"; then 16725 CURDIR="`cd "$path"; $THEPWDCMD -L`" 16726 else 16727 dir="`$DIRNAME "$path"`" 16728 base="`$BASENAME "$path"`" 16729 CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 16730 fi 16731 fi 16732 fi 16733 16734 16735 # Only process if variable expands to non-empty 16736 16737 if test "x$TOPDIR" != x; then 16738 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16739 16740 # Input might be given as Windows format, start by converting to 16741 # unix format. 16742 path="$TOPDIR" 16743 new_path=`$CYGPATH -u "$path"` 16744 16745 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16746 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16747 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16748 # "foo.exe" is OK but "foo" is an error. 16749 # 16750 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16751 # It is also a way to make sure we got the proper file name for the real test later on. 16752 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16753 if test "x$test_shortpath" = x; then 16754 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 16755 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 16756 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 16757 fi 16758 16759 # Call helper function which possibly converts this using DOS-style short mode. 16760 # If so, the updated path is stored in $new_path. 16761 16762 input_path="$new_path" 16763 # Check if we need to convert this using DOS-style short mode. If the path 16764 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16765 # take no chances and rewrite it. 16766 # Note: m4 eats our [], so we need to use [ and ] instead. 16767 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16768 if test "x$has_forbidden_chars" != x; then 16769 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16770 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16771 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16772 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16773 # Going to short mode and back again did indeed matter. Since short mode is 16774 # case insensitive, let's make it lowercase to improve readability. 16775 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16776 # Now convert it back to Unix-style (cygpath) 16777 input_path=`$CYGPATH -u "$shortmode_path"` 16778 new_path="$input_path" 16779 fi 16780 fi 16781 16782 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16783 if test "x$test_cygdrive_prefix" = x; then 16784 # As a simple fix, exclude /usr/bin since it's not a real path. 16785 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16786 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16787 # a path prefixed by /cygdrive for fixpath to work. 16788 new_path="$CYGWIN_ROOT_PATH$input_path" 16789 fi 16790 fi 16791 16792 16793 if test "x$path" != "x$new_path"; then 16794 TOPDIR="$new_path" 16795 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 16796 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 16797 fi 16798 16799 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16800 16801 path="$TOPDIR" 16802 has_colon=`$ECHO $path | $GREP ^.:` 16803 new_path="$path" 16804 if test "x$has_colon" = x; then 16805 # Not in mixed or Windows style, start by that. 16806 new_path=`cmd //c echo $path` 16807 fi 16808 16809 16810 input_path="$new_path" 16811 # Check if we need to convert this using DOS-style short mode. If the path 16812 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16813 # take no chances and rewrite it. 16814 # Note: m4 eats our [], so we need to use [ and ] instead. 16815 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16816 if test "x$has_forbidden_chars" != x; then 16817 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16818 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16819 fi 16820 16821 16822 windows_path="$new_path" 16823 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16824 unix_path=`$CYGPATH -u "$windows_path"` 16825 new_path="$unix_path" 16826 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16827 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16828 new_path="$unix_path" 16829 fi 16830 16831 if test "x$path" != "x$new_path"; then 16832 TOPDIR="$new_path" 16833 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 16834 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 16835 fi 16836 16837 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16838 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16839 16840 else 16841 # We're on a unix platform. Hooray! :) 16842 path="$TOPDIR" 16843 has_space=`$ECHO "$path" | $GREP " "` 16844 if test "x$has_space" != x; then 16845 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 16846 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 16847 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16848 fi 16849 16850 # Use eval to expand a potential ~ 16851 eval path="$path" 16852 if test ! -f "$path" && test ! -d "$path"; then 16853 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 16854 fi 16855 16856 if test -d "$path"; then 16857 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 16858 else 16859 dir="`$DIRNAME "$path"`" 16860 base="`$BASENAME "$path"`" 16861 TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 16862 fi 16863 fi 16864 fi 16865 16866 # SRC_ROOT is a traditional alias for TOPDIR. 16867 SRC_ROOT=$TOPDIR 16868 16869 # Calculate a canonical version of TOPDIR for string comparisons 16870 CANONICAL_TOPDIR=$TOPDIR 16871 16872 if test "x$OPENJDK_BUILD_OS" != xwindows; then 16873 # Follow a chain of symbolic links. Use readlink 16874 # where it exists, else fall back to horribly 16875 # complicated shell code. 16876 if test "x$READLINK_TESTED" != yes; then 16877 # On MacOSX there is a readlink tool with a different 16878 # purpose than the GNU readlink tool. Check the found readlink. 16879 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 16880 if test "x$ISGNU" = x; then 16881 # A readlink that we do not know how to use. 16882 # Are there other non-GNU readlinks out there? 16883 READLINK_TESTED=yes 16884 READLINK= 16885 fi 16886 fi 16887 16888 if test "x$READLINK" != x; then 16889 CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR` 16890 else 16891 # Save the current directory for restoring afterwards 16892 STARTDIR=$PWD 16893 COUNTER=0 16894 sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR` 16895 sym_link_file=`$BASENAME $CANONICAL_TOPDIR` 16896 cd $sym_link_dir 16897 # Use -P flag to resolve symlinks in directories. 16898 cd `$THEPWDCMD -P` 16899 sym_link_dir=`$THEPWDCMD -P` 16900 # Resolve file symlinks 16901 while test $COUNTER -lt 20; do 16902 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 16903 if test "x$ISLINK" == x; then 16904 # This is not a symbolic link! We are done! 16905 break 16906 fi 16907 # Again resolve directory symlinks since the target of the just found 16908 # link could be in a different directory 16909 cd `$DIRNAME $ISLINK` 16910 sym_link_dir=`$THEPWDCMD -P` 16911 sym_link_file=`$BASENAME $ISLINK` 16912 let COUNTER=COUNTER+1 16913 done 16914 cd $STARTDIR 16915 CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file 16916 fi 16917 fi 16918 16919 16920 16921 # Locate the directory of this script. 16922 AUTOCONF_DIR=$TOPDIR/common/autoconf 16923 16924 # Setup username (for use in adhoc version strings etc) 16925 # Outer [ ] to quote m4. 16926 USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'` 16927 16928 16929 16930 # Check if it's a pure open build or if custom sources are to be used. 16931 16932 # Check whether --enable-openjdk-only was given. 16933 if test "${enable_openjdk_only+set}" = set; then : 16934 enableval=$enable_openjdk_only; 16935 else 16936 enable_openjdk_only="no" 16937 fi 16938 16939 16940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if custom source is suppressed (openjdk-only)" >&5 16941 $as_echo_n "checking if custom source is suppressed (openjdk-only)... " >&6; } 16942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openjdk_only" >&5 16943 $as_echo "$enable_openjdk_only" >&6; } 16944 if test "x$enable_openjdk_only" = "xyes"; then 16945 SUPPRESS_CUSTOM_EXTENSIONS="true" 16946 elif test "x$enable_openjdk_only" = "xno"; then 16947 SUPPRESS_CUSTOM_EXTENSIONS="false" 16948 else 16949 as_fn_error $? "Invalid value for --enable-openjdk-only: $enable_openjdk_only" "$LINENO" 5 16950 fi 16951 16952 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 16953 # the IncludeCustomExtension macro. 16954 16955 16956 # Check whether --with-custom-make-dir was given. 16957 if test "${with_custom_make_dir+set}" = set; then : 16958 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 16959 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 16960 fi 16961 16962 16963 16964 16965 # These are needed to be able to create a configuration name (and thus the output directory) 16966 16967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 16968 $as_echo_n "checking which variant of the JDK to build... " >&6; } 16969 16970 # Check whether --with-jdk-variant was given. 16971 if test "${with_jdk_variant+set}" = set; then : 16972 withval=$with_jdk_variant; 16973 fi 16974 16975 16976 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 16977 JDK_VARIANT="normal" 16978 else 16979 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 16980 fi 16981 16982 16983 16984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 16985 $as_echo "$JDK_VARIANT" >&6; } 16986 16987 16988 DEBUG_LEVEL="release" 16989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 16990 $as_echo_n "checking which debug level to use... " >&6; } 16991 # Check whether --enable-debug was given. 16992 if test "${enable_debug+set}" = set; then : 16993 enableval=$enable_debug; 16994 ENABLE_DEBUG="${enableval}" 16995 DEBUG_LEVEL="fastdebug" 16996 16997 else 16998 ENABLE_DEBUG="no" 16999 fi 17000 17001 17002 17003 # Check whether --with-debug-level was given. 17004 if test "${with_debug_level+set}" = set; then : 17005 withval=$with_debug_level; 17006 DEBUG_LEVEL="${withval}" 17007 if test "x$ENABLE_DEBUG" = xyes; then 17008 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 17009 fi 17010 17011 fi 17012 17013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 17014 $as_echo "$DEBUG_LEVEL" >&6; } 17015 17016 if test "x$DEBUG_LEVEL" != xrelease && \ 17017 test "x$DEBUG_LEVEL" != xoptimized && \ 17018 test "x$DEBUG_LEVEL" != xfastdebug && \ 17019 test "x$DEBUG_LEVEL" != xslowdebug; then 17020 as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5 17021 fi 17022 17023 # Translate DEBUG_LEVEL to debug level used by Hotspot 17024 HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL" 17025 if test "x$DEBUG_LEVEL" = xrelease; then 17026 HOTSPOT_DEBUG_LEVEL="product" 17027 elif test "x$DEBUG_LEVEL" = xslowdebug; then 17028 HOTSPOT_DEBUG_LEVEL="debug" 17029 fi 17030 17031 if test "x$DEBUG_LEVEL" = xoptimized; then 17032 # The debug level 'optimized' is a little special because it is currently only 17033 # applicable to the HotSpot build where it means to build a completely 17034 # optimized version of the VM without any debugging code (like for the 17035 # 'release' debug level which is called 'product' in the HotSpot build) but 17036 # with the exception that it can contain additional code which is otherwise 17037 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 17038 # test new and/or experimental features which are not intended for customer 17039 # shipment. Because these new features need to be tested and benchmarked in 17040 # real world scenarios, we want to build the containing JDK at the 'release' 17041 # debug level. 17042 DEBUG_LEVEL="release" 17043 fi 17044 17045 17046 17047 17048 17049 17050 # Check whether --with-jvm-variants was given. 17051 if test "${with_jvm_variants+set}" = set; then : 17052 withval=$with_jvm_variants; 17053 fi 17054 17055 17056 17057 17058 # Check whether --with-cpu-port was given. 17059 if test "${with_cpu_port+set}" = set; then : 17060 withval=$with_cpu_port; 17061 fi 17062 17063 17064 if test "x$with_cpu_port" != x; then 17065 if test "x$OPENJDK_TARGET_CPU" != xaarch64; then 17066 as_fn_error $? "--with-cpu-port only available on aarch64" "$LINENO" 5 17067 fi 17068 if test "x$with_cpu_port" != xarm64 && \ 17069 test "x$with_cpu_port" != xaarch64; then 17070 as_fn_error $? "--with-cpu-port must specify arm64 or aarch64" "$LINENO" 5 17071 fi 17072 HOTSPOT_TARGET_CPU_PORT="$with_cpu_port" 17073 fi 17074 17075 17076 if test "x$with_jvm_variants" = x; then 17077 with_jvm_variants="server" 17078 fi 17079 JVM_VARIANTS_OPT="$with_jvm_variants" 17080 17081 # Has the user listed more than one variant? 17082 # Additional [] needed to keep m4 from mangling shell constructs. 17083 if [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then 17084 BUILDING_MULTIPLE_JVM_VARIANTS=true 17085 else 17086 BUILDING_MULTIPLE_JVM_VARIANTS=false 17087 fi 17088 # Replace the commas with AND for use in the build directory name. 17089 JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'` 17090 17091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 17092 $as_echo_n "checking which variants of the JVM to build... " >&6; } 17093 # JVM_VARIANTS is a space-separated list. 17094 # Also use minimal, not minimal1 (which is kept for backwards compatibility). 17095 JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'` 17096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5 17097 $as_echo "$JVM_VARIANTS" >&6; } 17098 17099 # Check that the selected variants are valid 17100 17101 # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326 17102 # Notice that the original variant failes on SLES 10 and 11 17103 NEEDLE=${VALID_JVM_VARIANTS// /$'\n'} 17104 STACK=${JVM_VARIANTS// /$'\n'} 17105 INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 17106 if test "x$INVALID_VARIANTS" != x; then 17107 { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5 17108 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;} 17109 as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5 17110 fi 17111 17112 # All "special" variants share the same output directory ("server") 17113 VALID_MULTIPLE_JVM_VARIANTS="server client minimal" 17114 NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'} 17115 STACK=${JVM_VARIANTS// /$'\n'} 17116 INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 17117 if test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then 17118 as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5 17119 fi 17120 17121 # The "main" variant is the one used by other libs to link against during the 17122 # build. 17123 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then 17124 MAIN_VARIANT_PRIO_ORDER="server client minimal" 17125 for variant in $MAIN_VARIANT_PRIO_ORDER; do 17126 if [[ " $JVM_VARIANTS " =~ " $variant " ]] ; then 17127 JVM_VARIANT_MAIN="$variant" 17128 break 17129 fi 17130 done 17131 else 17132 JVM_VARIANT_MAIN="$JVM_VARIANTS" 17133 fi 17134 17135 17136 17137 17138 17139 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 17140 # zero behaves as a platform and rewrites these values. This is really weird. :( 17141 # We are guaranteed that we do not build any other variants when building zero. 17142 HOTSPOT_TARGET_CPU=zero 17143 HOTSPOT_TARGET_CPU_ARCH=zero 17144 fi 17145 17146 17147 # With basic setup done, call the custom early hook. 17148 17149 17150 # Check if we have devkits, extra paths or sysroot set. 17151 17152 17153 # Check whether --with-devkit was given. 17154 if test "${with_devkit+set}" = set; then : 17155 withval=$with_devkit; 17156 17157 # Only process if variable expands to non-empty 17158 17159 if test "x$with_devkit" != x; then 17160 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17161 17162 # Input might be given as Windows format, start by converting to 17163 # unix format. 17164 path="$with_devkit" 17165 new_path=`$CYGPATH -u "$path"` 17166 17167 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17168 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17169 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17170 # "foo.exe" is OK but "foo" is an error. 17171 # 17172 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17173 # It is also a way to make sure we got the proper file name for the real test later on. 17174 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17175 if test "x$test_shortpath" = x; then 17176 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 17177 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 17178 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 17179 fi 17180 17181 # Call helper function which possibly converts this using DOS-style short mode. 17182 # If so, the updated path is stored in $new_path. 17183 17184 input_path="$new_path" 17185 # Check if we need to convert this using DOS-style short mode. If the path 17186 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17187 # take no chances and rewrite it. 17188 # Note: m4 eats our [], so we need to use [ and ] instead. 17189 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17190 if test "x$has_forbidden_chars" != x; then 17191 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17192 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17193 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17194 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17195 # Going to short mode and back again did indeed matter. Since short mode is 17196 # case insensitive, let's make it lowercase to improve readability. 17197 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17198 # Now convert it back to Unix-style (cygpath) 17199 input_path=`$CYGPATH -u "$shortmode_path"` 17200 new_path="$input_path" 17201 fi 17202 fi 17203 17204 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17205 if test "x$test_cygdrive_prefix" = x; then 17206 # As a simple fix, exclude /usr/bin since it's not a real path. 17207 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17208 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17209 # a path prefixed by /cygdrive for fixpath to work. 17210 new_path="$CYGWIN_ROOT_PATH$input_path" 17211 fi 17212 fi 17213 17214 17215 if test "x$path" != "x$new_path"; then 17216 with_devkit="$new_path" 17217 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 17218 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 17219 fi 17220 17221 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17222 17223 path="$with_devkit" 17224 has_colon=`$ECHO $path | $GREP ^.:` 17225 new_path="$path" 17226 if test "x$has_colon" = x; then 17227 # Not in mixed or Windows style, start by that. 17228 new_path=`cmd //c echo $path` 17229 fi 17230 17231 17232 input_path="$new_path" 17233 # Check if we need to convert this using DOS-style short mode. If the path 17234 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17235 # take no chances and rewrite it. 17236 # Note: m4 eats our [], so we need to use [ and ] instead. 17237 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17238 if test "x$has_forbidden_chars" != x; then 17239 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17240 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17241 fi 17242 17243 17244 windows_path="$new_path" 17245 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17246 unix_path=`$CYGPATH -u "$windows_path"` 17247 new_path="$unix_path" 17248 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17249 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17250 new_path="$unix_path" 17251 fi 17252 17253 if test "x$path" != "x$new_path"; then 17254 with_devkit="$new_path" 17255 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 17256 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 17257 fi 17258 17259 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17260 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17261 17262 else 17263 # We're on a unix platform. Hooray! :) 17264 path="$with_devkit" 17265 has_space=`$ECHO "$path" | $GREP " "` 17266 if test "x$has_space" != x; then 17267 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 17268 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 17269 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17270 fi 17271 17272 # Use eval to expand a potential ~ 17273 eval path="$path" 17274 if test ! -f "$path" && test ! -d "$path"; then 17275 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 17276 fi 17277 17278 if test -d "$path"; then 17279 with_devkit="`cd "$path"; $THEPWDCMD -L`" 17280 else 17281 dir="`$DIRNAME "$path"`" 17282 base="`$BASENAME "$path"`" 17283 with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 17284 fi 17285 fi 17286 fi 17287 17288 DEVKIT_ROOT="$with_devkit" 17289 # Check for a meta data info file in the root of the devkit 17290 if test -f "$DEVKIT_ROOT/devkit.info"; then 17291 . $DEVKIT_ROOT/devkit.info 17292 # This potentially sets the following: 17293 # A descriptive name of the devkit 17294 17295 if test "x$DEVKIT_NAME" = x; then 17296 eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 17297 fi 17298 17299 # Corresponds to --with-extra-path 17300 17301 if test "x$DEVKIT_EXTRA_PATH" = x; then 17302 eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 17303 fi 17304 17305 # Corresponds to --with-toolchain-path 17306 17307 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 17308 eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 17309 fi 17310 17311 # Corresponds to --with-sysroot 17312 17313 if test "x$DEVKIT_SYSROOT" = x; then 17314 eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 17315 fi 17316 17317 17318 # Identifies the Visual Studio version in the devkit 17319 17320 if test "x$DEVKIT_VS_VERSION" = x; then 17321 eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}" 17322 fi 17323 17324 # The Visual Studio include environment variable 17325 17326 if test "x$DEVKIT_VS_INCLUDE" = x; then 17327 eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}" 17328 fi 17329 17330 # The Visual Studio lib environment variable 17331 17332 if test "x$DEVKIT_VS_LIB" = x; then 17333 eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}" 17334 fi 17335 17336 # Corresponds to --with-msvcr-dll 17337 17338 if test "x$DEVKIT_MSVCR_DLL" = x; then 17339 eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}" 17340 fi 17341 17342 # Corresponds to --with-msvcp-dll 17343 17344 if test "x$DEVKIT_MSVCP_DLL" = x; then 17345 eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}" 17346 fi 17347 17348 fi 17349 17350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 17351 $as_echo_n "checking for devkit... " >&6; } 17352 if test "x$DEVKIT_NAME" != x; then 17353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 17354 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 17355 else 17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 17357 $as_echo "$DEVKIT_ROOT" >&6; } 17358 fi 17359 17360 17361 if test "x$DEVKIT_EXTRA_PATH" != x; then 17362 if test "x$EXTRA_PATH" = x; then 17363 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 17364 else 17365 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 17366 fi 17367 fi 17368 17369 17370 # Fallback default of just /bin if DEVKIT_PATH is not defined 17371 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 17372 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 17373 fi 17374 17375 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 17376 if test "x$TOOLCHAIN_PATH" = x; then 17377 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 17378 else 17379 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 17380 fi 17381 fi 17382 17383 17384 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 17385 # places for backwards compatiblity. 17386 if test "x$DEVKIT_SYSROOT" != x; then 17387 SYSROOT="$DEVKIT_SYSROOT" 17388 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 17389 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 17390 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 17391 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 17392 fi 17393 17394 17395 fi 17396 17397 17398 # You can force the sysroot if the sysroot encoded into the compiler tools 17399 # is not correct. 17400 17401 # Check whether --with-sys-root was given. 17402 if test "${with_sys_root+set}" = set; then : 17403 withval=$with_sys_root; SYSROOT=$with_sys_root 17404 17405 fi 17406 17407 17408 17409 # Check whether --with-sysroot was given. 17410 if test "${with_sysroot+set}" = set; then : 17411 withval=$with_sysroot; SYSROOT=$with_sysroot 17412 17413 fi 17414 17415 17416 17417 # Check whether --with-tools-dir was given. 17418 if test "${with_tools_dir+set}" = set; then : 17419 withval=$with_tools_dir; 17420 if test "x$with_tools_dir" != x; then 17421 if test "x$TOOLCHAIN_PATH" = x; then 17422 TOOLCHAIN_PATH="$with_tools_dir" 17423 else 17424 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 17425 fi 17426 fi 17427 17428 17429 fi 17430 17431 17432 17433 # Check whether --with-toolchain-path was given. 17434 if test "${with_toolchain_path+set}" = set; then : 17435 withval=$with_toolchain_path; 17436 if test "x$with_toolchain_path" != x; then 17437 if test "x$TOOLCHAIN_PATH" = x; then 17438 TOOLCHAIN_PATH="$with_toolchain_path" 17439 else 17440 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 17441 fi 17442 fi 17443 17444 17445 fi 17446 17447 17448 17449 # Check whether --with-extra-path was given. 17450 if test "${with_extra_path+set}" = set; then : 17451 withval=$with_extra_path; 17452 if test "x$with_extra_path" != x; then 17453 if test "x$EXTRA_PATH" = x; then 17454 EXTRA_PATH="$with_extra_path" 17455 else 17456 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 17457 fi 17458 fi 17459 17460 17461 fi 17462 17463 17464 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 17465 # If a devkit has been supplied, find xcodebuild in the toolchain_path. 17466 # If not, detect if Xcode is installed by running xcodebuild -version 17467 # if no Xcode installed, xcodebuild exits with 1 17468 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 17469 if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then 17470 # We need to use xcodebuild in the toolchain dir provided by the user, this will 17471 # fall back on the stub binary in /usr/bin/xcodebuild 17472 # Extract the first word of "xcodebuild", so it can be a program name with args. 17473 set dummy xcodebuild; ac_word=$2 17474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17475 $as_echo_n "checking for $ac_word... " >&6; } 17476 if ${ac_cv_path_XCODEBUILD+:} false; then : 17477 $as_echo_n "(cached) " >&6 17478 else 17479 case $XCODEBUILD in 17480 [\\/]* | ?:[\\/]*) 17481 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 17482 ;; 17483 *) 17484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17485 for as_dir in $TOOLCHAIN_PATH 17486 do 17487 IFS=$as_save_IFS 17488 test -z "$as_dir" && as_dir=. 17489 for ac_exec_ext in '' $ac_executable_extensions; do 17490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17491 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 17492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17493 break 2 17494 fi 17495 done 17496 done 17497 IFS=$as_save_IFS 17498 17499 test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild" 17500 ;; 17501 esac 17502 fi 17503 XCODEBUILD=$ac_cv_path_XCODEBUILD 17504 if test -n "$XCODEBUILD"; then 17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 17506 $as_echo "$XCODEBUILD" >&6; } 17507 else 17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17509 $as_echo "no" >&6; } 17510 fi 17511 17512 17513 else 17514 # this should result in SYSROOT being empty, unless --with-sysroot is provided 17515 # when only the command line tools are installed there are no SDKs, so headers 17516 # are copied into the system frameworks 17517 XCODEBUILD= 17518 17519 fi 17520 17521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5 17522 $as_echo_n "checking for sdk name... " >&6; } 17523 17524 # Check whether --with-sdk-name was given. 17525 if test "${with_sdk_name+set}" = set; then : 17526 withval=$with_sdk_name; SDKNAME=$with_sdk_name 17527 17528 fi 17529 17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5 17531 $as_echo "$SDKNAME" >&6; } 17532 17533 # if toolchain path is specified then don't rely on system headers, they may not compile 17534 HAVE_SYSTEM_FRAMEWORK_HEADERS=0 17535 test -z "$TOOLCHAIN_PATH" && \ 17536 HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?` 17537 17538 if test -z "$SYSROOT"; then 17539 if test -n "$XCODEBUILD"; then 17540 # if we don't have system headers, use default SDK name (last resort) 17541 if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 17542 SDKNAME=${SDKNAME:-macosx} 17543 fi 17544 17545 if test -n "$SDKNAME"; then 17546 # Call xcodebuild to determine SYSROOT 17547 SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | $GREP '^Path: ' | $SED 's/Path: //'` 17548 fi 17549 else 17550 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 17551 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 17552 fi 17553 fi 17554 else 17555 # warn user if --with-sdk-name was also set 17556 if test -n "$with_sdk_name"; then 17557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5 17558 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;} 17559 fi 17560 fi 17561 17562 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then 17563 # If no system framework headers, then SYSROOT must be set, or we won't build 17564 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 17565 fi 17566 17567 # Perform a basic sanity test 17568 if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 17569 if test -z "$SYSROOT"; then 17570 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 17571 else 17572 as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5 17573 fi 17574 fi 17575 17576 # set SDKROOT too, Xcode tools will pick it up 17577 SDKROOT="$SYSROOT" 17578 17579 fi 17580 17581 # Prepend the extra path to the global path 17582 17583 if test "x$EXTRA_PATH" != x; then 17584 if test "x$PATH" = x; then 17585 PATH="$EXTRA_PATH" 17586 else 17587 PATH="$EXTRA_PATH:$PATH" 17588 fi 17589 fi 17590 17591 17592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 17593 $as_echo_n "checking for sysroot... " >&6; } 17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 17595 $as_echo "$SYSROOT" >&6; } 17596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 17597 $as_echo_n "checking for toolchain path... " >&6; } 17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 17599 $as_echo "$TOOLCHAIN_PATH" >&6; } 17600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 17601 $as_echo_n "checking for extra path... " >&6; } 17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 17603 $as_echo "$EXTRA_PATH" >&6; } 17604 17605 17606 # To properly create a configuration name, we need to have the OpenJDK target 17607 # and options (variants and debug level) parsed. 17608 17609 17610 17611 # Check whether --with-conf-name was given. 17612 if test "${with_conf_name+set}" = set; then : 17613 withval=$with_conf_name; CONF_NAME=${with_conf_name} 17614 fi 17615 17616 17617 # Test from where we are running configure, in or outside of src root. 17618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 17619 $as_echo_n "checking where to store configuration... " >&6; } 17620 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 17621 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 17622 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 17623 # We are running configure from the src root. 17624 # Create a default ./build/target-variant-debuglevel output root. 17625 if test "x${CONF_NAME}" = x; then 17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 17627 $as_echo "in default location" >&6; } 17628 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}" 17629 else 17630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 17631 $as_echo "in build directory with custom name" >&6; } 17632 fi 17633 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 17634 $MKDIR -p "$OUTPUT_ROOT" 17635 if test ! -d "$OUTPUT_ROOT"; then 17636 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 17637 fi 17638 else 17639 # We are running configure from outside of the src dir. 17640 # Then use the current directory as output dir! 17641 # If configuration is situated in normal build directory, just use the build 17642 # directory name as configuration name, otherwise use the complete path. 17643 if test "x${CONF_NAME}" = x; then 17644 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 17645 fi 17646 OUTPUT_ROOT="$CURDIR" 17647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 17648 $as_echo "in current directory" >&6; } 17649 17650 # WARNING: This might be a bad thing to do. You need to be sure you want to 17651 # have a configuration in this directory. Do some sanity checks! 17652 17653 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 17654 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 17655 # other files 17656 files_present=`$LS $OUTPUT_ROOT` 17657 # Configure has already touched config.log and confdefs.h in the current dir when this check 17658 # is performed. 17659 filtered_files=`$ECHO "$files_present" \ 17660 | $SED -e 's/config.log//g' \ 17661 -e 's/configure.log//g' \ 17662 -e 's/confdefs.h//g' \ 17663 -e 's/ //g' \ 17664 | $TR -d '\n'` 17665 if test "x$filtered_files" != x; then 17666 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 17667 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 17668 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 17669 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 17670 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 17671 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 17672 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 17673 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 17674 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 17675 $as_echo "$as_me: seriously mess up just about everything." >&6;} 17676 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 17677 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 17678 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 17679 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 17680 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 17681 fi 17682 fi 17683 fi 17684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 17685 $as_echo_n "checking what configuration name to use... " >&6; } 17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 17687 $as_echo "$CONF_NAME" >&6; } 17688 17689 17690 # Only process if variable expands to non-empty 17691 17692 if test "x$OUTPUT_ROOT" != x; then 17693 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17694 17695 # Input might be given as Windows format, start by converting to 17696 # unix format. 17697 path="$OUTPUT_ROOT" 17698 new_path=`$CYGPATH -u "$path"` 17699 17700 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17701 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17702 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17703 # "foo.exe" is OK but "foo" is an error. 17704 # 17705 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17706 # It is also a way to make sure we got the proper file name for the real test later on. 17707 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17708 if test "x$test_shortpath" = x; then 17709 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 17710 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 17711 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 17712 fi 17713 17714 # Call helper function which possibly converts this using DOS-style short mode. 17715 # If so, the updated path is stored in $new_path. 17716 17717 input_path="$new_path" 17718 # Check if we need to convert this using DOS-style short mode. If the path 17719 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17720 # take no chances and rewrite it. 17721 # Note: m4 eats our [], so we need to use [ and ] instead. 17722 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17723 if test "x$has_forbidden_chars" != x; then 17724 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17725 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17726 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17727 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17728 # Going to short mode and back again did indeed matter. Since short mode is 17729 # case insensitive, let's make it lowercase to improve readability. 17730 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17731 # Now convert it back to Unix-style (cygpath) 17732 input_path=`$CYGPATH -u "$shortmode_path"` 17733 new_path="$input_path" 17734 fi 17735 fi 17736 17737 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17738 if test "x$test_cygdrive_prefix" = x; then 17739 # As a simple fix, exclude /usr/bin since it's not a real path. 17740 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17741 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17742 # a path prefixed by /cygdrive for fixpath to work. 17743 new_path="$CYGWIN_ROOT_PATH$input_path" 17744 fi 17745 fi 17746 17747 17748 if test "x$path" != "x$new_path"; then 17749 OUTPUT_ROOT="$new_path" 17750 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 17751 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 17752 fi 17753 17754 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17755 17756 path="$OUTPUT_ROOT" 17757 has_colon=`$ECHO $path | $GREP ^.:` 17758 new_path="$path" 17759 if test "x$has_colon" = x; then 17760 # Not in mixed or Windows style, start by that. 17761 new_path=`cmd //c echo $path` 17762 fi 17763 17764 17765 input_path="$new_path" 17766 # Check if we need to convert this using DOS-style short mode. If the path 17767 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17768 # take no chances and rewrite it. 17769 # Note: m4 eats our [], so we need to use [ and ] instead. 17770 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17771 if test "x$has_forbidden_chars" != x; then 17772 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17773 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17774 fi 17775 17776 17777 windows_path="$new_path" 17778 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17779 unix_path=`$CYGPATH -u "$windows_path"` 17780 new_path="$unix_path" 17781 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17782 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17783 new_path="$unix_path" 17784 fi 17785 17786 if test "x$path" != "x$new_path"; then 17787 OUTPUT_ROOT="$new_path" 17788 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 17789 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 17790 fi 17791 17792 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17793 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17794 17795 else 17796 # We're on a unix platform. Hooray! :) 17797 path="$OUTPUT_ROOT" 17798 has_space=`$ECHO "$path" | $GREP " "` 17799 if test "x$has_space" != x; then 17800 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 17801 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 17802 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17803 fi 17804 17805 # Use eval to expand a potential ~ 17806 eval path="$path" 17807 if test ! -f "$path" && test ! -d "$path"; then 17808 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 17809 fi 17810 17811 if test -d "$path"; then 17812 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 17813 else 17814 dir="`$DIRNAME "$path"`" 17815 base="`$BASENAME "$path"`" 17816 OUTPUT_ROOT="`cd "$dir"; $THEPWDCMD -L`/$base" 17817 fi 17818 fi 17819 fi 17820 17821 17822 CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support" 17823 $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR" 17824 17825 SPEC="$OUTPUT_ROOT/spec.gmk" 17826 17827 17828 17829 17830 17831 # The spec.gmk file contains all variables for the make system. 17832 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 17833 17834 # The bootcycle-spec.gmk file contains support for boot cycle builds. 17835 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 17836 17837 # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling. 17838 ac_config_files="$ac_config_files $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" 17839 17840 # The compare.sh is used to compare the build output to other builds. 17841 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 17842 17843 # The generated Makefile knows where the spec.gmk is and where the source is. 17844 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 17845 # which will look for generated configurations 17846 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 17847 17848 17849 17850 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 17851 17852 for ac_prog in apt-get yum brew port pkgutil pkgadd 17853 do 17854 # Extract the first word of "$ac_prog", so it can be a program name with args. 17855 set dummy $ac_prog; ac_word=$2 17856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17857 $as_echo_n "checking for $ac_word... " >&6; } 17858 if ${ac_cv_prog_PKGHANDLER+:} false; then : 17859 $as_echo_n "(cached) " >&6 17860 else 17861 if test -n "$PKGHANDLER"; then 17862 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 17863 else 17864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17865 for as_dir in $PATH 17866 do 17867 IFS=$as_save_IFS 17868 test -z "$as_dir" && as_dir=. 17869 for ac_exec_ext in '' $ac_executable_extensions; do 17870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17871 ac_cv_prog_PKGHANDLER="$ac_prog" 17872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17873 break 2 17874 fi 17875 done 17876 done 17877 IFS=$as_save_IFS 17878 17879 fi 17880 fi 17881 PKGHANDLER=$ac_cv_prog_PKGHANDLER 17882 if test -n "$PKGHANDLER"; then 17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 17884 $as_echo "$PKGHANDLER" >&6; } 17885 else 17886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17887 $as_echo "no" >&6; } 17888 fi 17889 17890 17891 test -n "$PKGHANDLER" && break 17892 done 17893 17894 17895 17896 # Setup tools that requires more complex handling, or that is not needed by the configure script. 17897 17898 17899 17900 # Publish this variable in the help. 17901 17902 17903 if [ -z "${MAKE+x}" ]; then 17904 # The variable is not set by user, try to locate tool using the code snippet 17905 17906 # Try our hardest to locate a correct version of GNU make 17907 for ac_prog in gmake 17908 do 17909 # Extract the first word of "$ac_prog", so it can be a program name with args. 17910 set dummy $ac_prog; ac_word=$2 17911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17912 $as_echo_n "checking for $ac_word... " >&6; } 17913 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 17914 $as_echo_n "(cached) " >&6 17915 else 17916 case $CHECK_GMAKE in 17917 [\\/]* | ?:[\\/]*) 17918 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 17919 ;; 17920 *) 17921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17922 for as_dir in $PATH 17923 do 17924 IFS=$as_save_IFS 17925 test -z "$as_dir" && as_dir=. 17926 for ac_exec_ext in '' $ac_executable_extensions; do 17927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17928 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 17929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17930 break 2 17931 fi 17932 done 17933 done 17934 IFS=$as_save_IFS 17935 17936 ;; 17937 esac 17938 fi 17939 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 17940 if test -n "$CHECK_GMAKE"; then 17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 17942 $as_echo "$CHECK_GMAKE" >&6; } 17943 else 17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17945 $as_echo "no" >&6; } 17946 fi 17947 17948 17949 test -n "$CHECK_GMAKE" && break 17950 done 17951 17952 17953 MAKE_CANDIDATE=""$CHECK_GMAKE"" 17954 DESCRIPTION="gmake in PATH" 17955 17956 # On Cygwin, we require a newer version of make than on other platforms 17957 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17958 MAKE_VERSION_EXPR="-e 4\." 17959 MAKE_REQUIRED_VERSION="4.0" 17960 else 17961 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17962 MAKE_REQUIRED_VERSION="3.81" 17963 fi 17964 17965 if test "x$MAKE_CANDIDATE" != x; then 17966 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17967 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17968 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17969 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17970 if test "x$IS_GNU_MAKE" = x; then 17971 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17972 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17973 else 17974 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 17975 if test "x$IS_MODERN_MAKE" = x; then 17976 { $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 17977 $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;} 17978 else 17979 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17980 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17981 MAKE_EXPECTED_ENV='cygwin' 17982 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17983 MAKE_EXPECTED_ENV='msys' 17984 else 17985 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17986 fi 17987 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17988 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17989 else 17990 # Not relevant for non-Windows 17991 IS_MAKE_CORRECT_ENV=true 17992 fi 17993 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17994 { $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 17995 $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;} 17996 else 17997 FOUND_MAKE=$MAKE_CANDIDATE 17998 17999 # Only process if variable expands to non-empty 18000 18001 if test "x$FOUND_MAKE" != x; then 18002 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18003 18004 # First separate the path from the arguments. This will split at the first 18005 # space. 18006 complete="$FOUND_MAKE" 18007 path="${complete%% *}" 18008 tmp="$complete EOL" 18009 arguments="${tmp#* }" 18010 18011 # Input might be given as Windows format, start by converting to 18012 # unix format. 18013 new_path=`$CYGPATH -u "$path"` 18014 18015 # Now try to locate executable using which 18016 new_path=`$WHICH "$new_path" 2> /dev/null` 18017 # bat and cmd files are not always considered executable in cygwin causing which 18018 # to not find them 18019 if test "x$new_path" = x \ 18020 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18021 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18022 new_path=`$CYGPATH -u "$path"` 18023 fi 18024 if test "x$new_path" = x; then 18025 # Oops. Which didn't find the executable. 18026 # The splitting of arguments from the executable at a space might have been incorrect, 18027 # since paths with space are more likely in Windows. Give it another try with the whole 18028 # argument. 18029 path="$complete" 18030 arguments="EOL" 18031 new_path=`$CYGPATH -u "$path"` 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 # It's still not found. Now this is an unrecoverable error. 18042 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18043 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18044 has_space=`$ECHO "$complete" | $GREP " "` 18045 if test "x$has_space" != x; then 18046 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18047 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18048 fi 18049 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18050 fi 18051 fi 18052 18053 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18054 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18055 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18056 # "foo.exe" is OK but "foo" is an error. 18057 # 18058 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18059 # It is also a way to make sure we got the proper file name for the real test later on. 18060 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18061 if test "x$test_shortpath" = x; then 18062 # Short path failed, file does not exist as specified. 18063 # Try adding .exe or .cmd 18064 if test -f "${new_path}.exe"; then 18065 input_to_shortpath="${new_path}.exe" 18066 elif test -f "${new_path}.cmd"; then 18067 input_to_shortpath="${new_path}.cmd" 18068 else 18069 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18070 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18071 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18072 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18073 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18074 fi 18075 else 18076 input_to_shortpath="$new_path" 18077 fi 18078 18079 # Call helper function which possibly converts this using DOS-style short mode. 18080 # If so, the updated path is stored in $new_path. 18081 new_path="$input_to_shortpath" 18082 18083 input_path="$input_to_shortpath" 18084 # Check if we need to convert this using DOS-style short mode. If the path 18085 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18086 # take no chances and rewrite it. 18087 # Note: m4 eats our [], so we need to use [ and ] instead. 18088 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18089 if test "x$has_forbidden_chars" != x; then 18090 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18091 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18092 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18093 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18094 # Going to short mode and back again did indeed matter. Since short mode is 18095 # case insensitive, let's make it lowercase to improve readability. 18096 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18097 # Now convert it back to Unix-style (cygpath) 18098 input_path=`$CYGPATH -u "$shortmode_path"` 18099 new_path="$input_path" 18100 fi 18101 fi 18102 18103 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18104 if test "x$test_cygdrive_prefix" = x; then 18105 # As a simple fix, exclude /usr/bin since it's not a real path. 18106 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18107 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18108 # a path prefixed by /cygdrive for fixpath to work. 18109 new_path="$CYGWIN_ROOT_PATH$input_path" 18110 fi 18111 fi 18112 18113 # remove trailing .exe if any 18114 new_path="${new_path/%.exe/}" 18115 18116 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18117 18118 # First separate the path from the arguments. This will split at the first 18119 # space. 18120 complete="$FOUND_MAKE" 18121 path="${complete%% *}" 18122 tmp="$complete EOL" 18123 arguments="${tmp#* }" 18124 18125 # Input might be given as Windows format, start by converting to 18126 # unix format. 18127 new_path="$path" 18128 18129 windows_path="$new_path" 18130 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18131 unix_path=`$CYGPATH -u "$windows_path"` 18132 new_path="$unix_path" 18133 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18134 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18135 new_path="$unix_path" 18136 fi 18137 18138 18139 # Now try to locate executable using which 18140 new_path=`$WHICH "$new_path" 2> /dev/null` 18141 18142 if test "x$new_path" = x; then 18143 # Oops. Which didn't find the executable. 18144 # The splitting of arguments from the executable at a space might have been incorrect, 18145 # since paths with space are more likely in Windows. Give it another try with the whole 18146 # argument. 18147 path="$complete" 18148 arguments="EOL" 18149 new_path="$path" 18150 18151 windows_path="$new_path" 18152 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18153 unix_path=`$CYGPATH -u "$windows_path"` 18154 new_path="$unix_path" 18155 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18156 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18157 new_path="$unix_path" 18158 fi 18159 18160 18161 new_path=`$WHICH "$new_path" 2> /dev/null` 18162 # bat and cmd files are not always considered executable in MSYS causing which 18163 # to not find them 18164 if test "x$new_path" = x \ 18165 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18166 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18167 new_path="$path" 18168 18169 windows_path="$new_path" 18170 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18171 unix_path=`$CYGPATH -u "$windows_path"` 18172 new_path="$unix_path" 18173 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18174 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18175 new_path="$unix_path" 18176 fi 18177 18178 fi 18179 18180 if test "x$new_path" = x; then 18181 # It's still not found. Now this is an unrecoverable error. 18182 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18183 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18184 has_space=`$ECHO "$complete" | $GREP " "` 18185 if test "x$has_space" != x; then 18186 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18187 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18188 fi 18189 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18190 fi 18191 fi 18192 18193 # Now new_path has a complete unix path to the binary 18194 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18195 # Keep paths in /bin as-is, but remove trailing .exe if any 18196 new_path="${new_path/%.exe/}" 18197 # Do not save /bin paths to all_fixpath_prefixes! 18198 else 18199 # Not in mixed or Windows style, start by that. 18200 new_path=`cmd //c echo $new_path` 18201 18202 input_path="$new_path" 18203 # Check if we need to convert this using DOS-style short mode. If the path 18204 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18205 # take no chances and rewrite it. 18206 # Note: m4 eats our [], so we need to use [ and ] instead. 18207 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18208 if test "x$has_forbidden_chars" != x; then 18209 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18210 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18211 fi 18212 18213 # Output is in $new_path 18214 18215 windows_path="$new_path" 18216 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18217 unix_path=`$CYGPATH -u "$windows_path"` 18218 new_path="$unix_path" 18219 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18220 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18221 new_path="$unix_path" 18222 fi 18223 18224 # remove trailing .exe if any 18225 new_path="${new_path/%.exe/}" 18226 18227 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18228 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18229 fi 18230 18231 else 18232 # We're on a unix platform. Hooray! :) 18233 # First separate the path from the arguments. This will split at the first 18234 # space. 18235 complete="$FOUND_MAKE" 18236 path="${complete%% *}" 18237 tmp="$complete EOL" 18238 arguments="${tmp#* }" 18239 18240 # Cannot rely on the command "which" here since it doesn't always work. 18241 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18242 if test -z "$is_absolute_path"; then 18243 # Path to executable is not absolute. Find it. 18244 IFS_save="$IFS" 18245 IFS=: 18246 for p in $PATH; do 18247 if test -f "$p/$path" && test -x "$p/$path"; then 18248 new_path="$p/$path" 18249 break 18250 fi 18251 done 18252 IFS="$IFS_save" 18253 else 18254 # This is an absolute path, we can use it without further modifications. 18255 new_path="$path" 18256 fi 18257 18258 if test "x$new_path" = x; then 18259 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18260 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18261 has_space=`$ECHO "$complete" | $GREP " "` 18262 if test "x$has_space" != x; then 18263 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18264 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18265 fi 18266 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18267 fi 18268 fi 18269 18270 # Now join together the path and the arguments once again 18271 if test "x$arguments" != xEOL; then 18272 new_complete="$new_path ${arguments% *}" 18273 else 18274 new_complete="$new_path" 18275 fi 18276 18277 if test "x$complete" != "x$new_complete"; then 18278 FOUND_MAKE="$new_complete" 18279 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18280 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18281 fi 18282 fi 18283 18284 fi 18285 fi 18286 fi 18287 fi 18288 18289 18290 if test "x$FOUND_MAKE" = x; then 18291 for ac_prog in make 18292 do 18293 # Extract the first word of "$ac_prog", so it can be a program name with args. 18294 set dummy $ac_prog; ac_word=$2 18295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18296 $as_echo_n "checking for $ac_word... " >&6; } 18297 if ${ac_cv_path_CHECK_MAKE+:} false; then : 18298 $as_echo_n "(cached) " >&6 18299 else 18300 case $CHECK_MAKE in 18301 [\\/]* | ?:[\\/]*) 18302 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 18303 ;; 18304 *) 18305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18306 for as_dir in $PATH 18307 do 18308 IFS=$as_save_IFS 18309 test -z "$as_dir" && as_dir=. 18310 for ac_exec_ext in '' $ac_executable_extensions; do 18311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18312 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 18313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18314 break 2 18315 fi 18316 done 18317 done 18318 IFS=$as_save_IFS 18319 18320 ;; 18321 esac 18322 fi 18323 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 18324 if test -n "$CHECK_MAKE"; then 18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 18326 $as_echo "$CHECK_MAKE" >&6; } 18327 else 18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18329 $as_echo "no" >&6; } 18330 fi 18331 18332 18333 test -n "$CHECK_MAKE" && break 18334 done 18335 18336 18337 MAKE_CANDIDATE=""$CHECK_MAKE"" 18338 DESCRIPTION="make in PATH" 18339 18340 # On Cygwin, we require a newer version of make than on other platforms 18341 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18342 MAKE_VERSION_EXPR="-e 4\." 18343 MAKE_REQUIRED_VERSION="4.0" 18344 else 18345 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18346 MAKE_REQUIRED_VERSION="3.81" 18347 fi 18348 18349 if test "x$MAKE_CANDIDATE" != x; then 18350 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18351 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18352 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18353 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18354 if test "x$IS_GNU_MAKE" = x; then 18355 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18356 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18357 else 18358 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18359 if test "x$IS_MODERN_MAKE" = x; then 18360 { $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 18361 $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;} 18362 else 18363 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18364 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18365 MAKE_EXPECTED_ENV='cygwin' 18366 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18367 MAKE_EXPECTED_ENV='msys' 18368 else 18369 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18370 fi 18371 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18372 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18373 else 18374 # Not relevant for non-Windows 18375 IS_MAKE_CORRECT_ENV=true 18376 fi 18377 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18378 { $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 18379 $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;} 18380 else 18381 FOUND_MAKE=$MAKE_CANDIDATE 18382 18383 # Only process if variable expands to non-empty 18384 18385 if test "x$FOUND_MAKE" != x; then 18386 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18387 18388 # First separate the path from the arguments. This will split at the first 18389 # space. 18390 complete="$FOUND_MAKE" 18391 path="${complete%% *}" 18392 tmp="$complete EOL" 18393 arguments="${tmp#* }" 18394 18395 # Input might be given as Windows format, start by converting to 18396 # unix format. 18397 new_path=`$CYGPATH -u "$path"` 18398 18399 # Now try to locate executable using which 18400 new_path=`$WHICH "$new_path" 2> /dev/null` 18401 # bat and cmd files are not always considered executable in cygwin causing which 18402 # to not find them 18403 if test "x$new_path" = x \ 18404 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18405 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18406 new_path=`$CYGPATH -u "$path"` 18407 fi 18408 if test "x$new_path" = x; then 18409 # Oops. Which didn't find the executable. 18410 # The splitting of arguments from the executable at a space might have been incorrect, 18411 # since paths with space are more likely in Windows. Give it another try with the whole 18412 # argument. 18413 path="$complete" 18414 arguments="EOL" 18415 new_path=`$CYGPATH -u "$path"` 18416 new_path=`$WHICH "$new_path" 2> /dev/null` 18417 # bat and cmd files are not always considered executable in cygwin causing which 18418 # to not find them 18419 if test "x$new_path" = x \ 18420 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18421 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18422 new_path=`$CYGPATH -u "$path"` 18423 fi 18424 if test "x$new_path" = x; then 18425 # It's still not found. Now this is an unrecoverable error. 18426 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18427 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18428 has_space=`$ECHO "$complete" | $GREP " "` 18429 if test "x$has_space" != x; then 18430 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18431 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18432 fi 18433 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18434 fi 18435 fi 18436 18437 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18438 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18439 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18440 # "foo.exe" is OK but "foo" is an error. 18441 # 18442 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18443 # It is also a way to make sure we got the proper file name for the real test later on. 18444 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18445 if test "x$test_shortpath" = x; then 18446 # Short path failed, file does not exist as specified. 18447 # Try adding .exe or .cmd 18448 if test -f "${new_path}.exe"; then 18449 input_to_shortpath="${new_path}.exe" 18450 elif test -f "${new_path}.cmd"; then 18451 input_to_shortpath="${new_path}.cmd" 18452 else 18453 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18454 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18455 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18456 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18457 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18458 fi 18459 else 18460 input_to_shortpath="$new_path" 18461 fi 18462 18463 # Call helper function which possibly converts this using DOS-style short mode. 18464 # If so, the updated path is stored in $new_path. 18465 new_path="$input_to_shortpath" 18466 18467 input_path="$input_to_shortpath" 18468 # Check if we need to convert this using DOS-style short mode. If the path 18469 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18470 # take no chances and rewrite it. 18471 # Note: m4 eats our [], so we need to use [ and ] instead. 18472 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18473 if test "x$has_forbidden_chars" != x; then 18474 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18475 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18476 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18477 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18478 # Going to short mode and back again did indeed matter. Since short mode is 18479 # case insensitive, let's make it lowercase to improve readability. 18480 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18481 # Now convert it back to Unix-style (cygpath) 18482 input_path=`$CYGPATH -u "$shortmode_path"` 18483 new_path="$input_path" 18484 fi 18485 fi 18486 18487 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18488 if test "x$test_cygdrive_prefix" = x; then 18489 # As a simple fix, exclude /usr/bin since it's not a real path. 18490 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18491 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18492 # a path prefixed by /cygdrive for fixpath to work. 18493 new_path="$CYGWIN_ROOT_PATH$input_path" 18494 fi 18495 fi 18496 18497 # remove trailing .exe if any 18498 new_path="${new_path/%.exe/}" 18499 18500 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18501 18502 # First separate the path from the arguments. This will split at the first 18503 # space. 18504 complete="$FOUND_MAKE" 18505 path="${complete%% *}" 18506 tmp="$complete EOL" 18507 arguments="${tmp#* }" 18508 18509 # Input might be given as Windows format, start by converting to 18510 # unix format. 18511 new_path="$path" 18512 18513 windows_path="$new_path" 18514 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18515 unix_path=`$CYGPATH -u "$windows_path"` 18516 new_path="$unix_path" 18517 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18518 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18519 new_path="$unix_path" 18520 fi 18521 18522 18523 # Now try to locate executable using which 18524 new_path=`$WHICH "$new_path" 2> /dev/null` 18525 18526 if test "x$new_path" = x; then 18527 # Oops. Which didn't find the executable. 18528 # The splitting of arguments from the executable at a space might have been incorrect, 18529 # since paths with space are more likely in Windows. Give it another try with the whole 18530 # argument. 18531 path="$complete" 18532 arguments="EOL" 18533 new_path="$path" 18534 18535 windows_path="$new_path" 18536 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18537 unix_path=`$CYGPATH -u "$windows_path"` 18538 new_path="$unix_path" 18539 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18540 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18541 new_path="$unix_path" 18542 fi 18543 18544 18545 new_path=`$WHICH "$new_path" 2> /dev/null` 18546 # bat and cmd files are not always considered executable in MSYS causing which 18547 # to not find them 18548 if test "x$new_path" = x \ 18549 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18550 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18551 new_path="$path" 18552 18553 windows_path="$new_path" 18554 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18555 unix_path=`$CYGPATH -u "$windows_path"` 18556 new_path="$unix_path" 18557 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18558 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18559 new_path="$unix_path" 18560 fi 18561 18562 fi 18563 18564 if test "x$new_path" = x; then 18565 # It's still not found. Now this is an unrecoverable error. 18566 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18567 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18568 has_space=`$ECHO "$complete" | $GREP " "` 18569 if test "x$has_space" != x; then 18570 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18571 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18572 fi 18573 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18574 fi 18575 fi 18576 18577 # Now new_path has a complete unix path to the binary 18578 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18579 # Keep paths in /bin as-is, but remove trailing .exe if any 18580 new_path="${new_path/%.exe/}" 18581 # Do not save /bin paths to all_fixpath_prefixes! 18582 else 18583 # Not in mixed or Windows style, start by that. 18584 new_path=`cmd //c echo $new_path` 18585 18586 input_path="$new_path" 18587 # Check if we need to convert this using DOS-style short mode. If the path 18588 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18589 # take no chances and rewrite it. 18590 # Note: m4 eats our [], so we need to use [ and ] instead. 18591 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18592 if test "x$has_forbidden_chars" != x; then 18593 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18594 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18595 fi 18596 18597 # Output is in $new_path 18598 18599 windows_path="$new_path" 18600 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18601 unix_path=`$CYGPATH -u "$windows_path"` 18602 new_path="$unix_path" 18603 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18604 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18605 new_path="$unix_path" 18606 fi 18607 18608 # remove trailing .exe if any 18609 new_path="${new_path/%.exe/}" 18610 18611 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18612 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18613 fi 18614 18615 else 18616 # We're on a unix platform. Hooray! :) 18617 # First separate the path from the arguments. This will split at the first 18618 # space. 18619 complete="$FOUND_MAKE" 18620 path="${complete%% *}" 18621 tmp="$complete EOL" 18622 arguments="${tmp#* }" 18623 18624 # Cannot rely on the command "which" here since it doesn't always work. 18625 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18626 if test -z "$is_absolute_path"; then 18627 # Path to executable is not absolute. Find it. 18628 IFS_save="$IFS" 18629 IFS=: 18630 for p in $PATH; do 18631 if test -f "$p/$path" && test -x "$p/$path"; then 18632 new_path="$p/$path" 18633 break 18634 fi 18635 done 18636 IFS="$IFS_save" 18637 else 18638 # This is an absolute path, we can use it without further modifications. 18639 new_path="$path" 18640 fi 18641 18642 if test "x$new_path" = x; then 18643 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18644 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18645 has_space=`$ECHO "$complete" | $GREP " "` 18646 if test "x$has_space" != x; then 18647 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18648 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18649 fi 18650 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18651 fi 18652 fi 18653 18654 # Now join together the path and the arguments once again 18655 if test "x$arguments" != xEOL; then 18656 new_complete="$new_path ${arguments% *}" 18657 else 18658 new_complete="$new_path" 18659 fi 18660 18661 if test "x$complete" != "x$new_complete"; then 18662 FOUND_MAKE="$new_complete" 18663 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18664 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18665 fi 18666 fi 18667 18668 fi 18669 fi 18670 fi 18671 fi 18672 18673 fi 18674 18675 if test "x$FOUND_MAKE" = x; then 18676 if test "x$TOOLCHAIN_PATH" != x; then 18677 # We have a toolchain path, check that as well before giving up. 18678 OLD_PATH=$PATH 18679 PATH=$TOOLCHAIN_PATH:$PATH 18680 for ac_prog in gmake 18681 do 18682 # Extract the first word of "$ac_prog", so it can be a program name with args. 18683 set dummy $ac_prog; ac_word=$2 18684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18685 $as_echo_n "checking for $ac_word... " >&6; } 18686 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 18687 $as_echo_n "(cached) " >&6 18688 else 18689 case $CHECK_TOOLSDIR_GMAKE in 18690 [\\/]* | ?:[\\/]*) 18691 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 18692 ;; 18693 *) 18694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18695 for as_dir in $PATH 18696 do 18697 IFS=$as_save_IFS 18698 test -z "$as_dir" && as_dir=. 18699 for ac_exec_ext in '' $ac_executable_extensions; do 18700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18701 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 18702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18703 break 2 18704 fi 18705 done 18706 done 18707 IFS=$as_save_IFS 18708 18709 ;; 18710 esac 18711 fi 18712 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 18713 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 18714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 18715 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 18716 else 18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18718 $as_echo "no" >&6; } 18719 fi 18720 18721 18722 test -n "$CHECK_TOOLSDIR_GMAKE" && break 18723 done 18724 18725 18726 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 18727 DESCRIPTION="gmake in tools-dir" 18728 18729 # On Cygwin, we require a newer version of make than on other platforms 18730 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18731 MAKE_VERSION_EXPR="-e 4\." 18732 MAKE_REQUIRED_VERSION="4.0" 18733 else 18734 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18735 MAKE_REQUIRED_VERSION="3.81" 18736 fi 18737 18738 if test "x$MAKE_CANDIDATE" != x; then 18739 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18740 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18741 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18742 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18743 if test "x$IS_GNU_MAKE" = x; then 18744 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18745 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18746 else 18747 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18748 if test "x$IS_MODERN_MAKE" = x; then 18749 { $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 18750 $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;} 18751 else 18752 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18753 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18754 MAKE_EXPECTED_ENV='cygwin' 18755 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18756 MAKE_EXPECTED_ENV='msys' 18757 else 18758 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18759 fi 18760 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18761 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18762 else 18763 # Not relevant for non-Windows 18764 IS_MAKE_CORRECT_ENV=true 18765 fi 18766 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18767 { $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 18768 $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;} 18769 else 18770 FOUND_MAKE=$MAKE_CANDIDATE 18771 18772 # Only process if variable expands to non-empty 18773 18774 if test "x$FOUND_MAKE" != x; then 18775 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18776 18777 # First separate the path from the arguments. This will split at the first 18778 # space. 18779 complete="$FOUND_MAKE" 18780 path="${complete%% *}" 18781 tmp="$complete EOL" 18782 arguments="${tmp#* }" 18783 18784 # Input might be given as Windows format, start by converting to 18785 # unix format. 18786 new_path=`$CYGPATH -u "$path"` 18787 18788 # Now try to locate executable using which 18789 new_path=`$WHICH "$new_path" 2> /dev/null` 18790 # bat and cmd files are not always considered executable in cygwin causing which 18791 # to not find them 18792 if test "x$new_path" = x \ 18793 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18794 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18795 new_path=`$CYGPATH -u "$path"` 18796 fi 18797 if test "x$new_path" = x; then 18798 # Oops. Which didn't find the executable. 18799 # The splitting of arguments from the executable at a space might have been incorrect, 18800 # since paths with space are more likely in Windows. Give it another try with the whole 18801 # argument. 18802 path="$complete" 18803 arguments="EOL" 18804 new_path=`$CYGPATH -u "$path"` 18805 new_path=`$WHICH "$new_path" 2> /dev/null` 18806 # bat and cmd files are not always considered executable in cygwin causing which 18807 # to not find them 18808 if test "x$new_path" = x \ 18809 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18810 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18811 new_path=`$CYGPATH -u "$path"` 18812 fi 18813 if test "x$new_path" = x; then 18814 # It's still not found. Now this is an unrecoverable error. 18815 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18816 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18817 has_space=`$ECHO "$complete" | $GREP " "` 18818 if test "x$has_space" != x; then 18819 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18820 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18821 fi 18822 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18823 fi 18824 fi 18825 18826 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18827 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18828 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18829 # "foo.exe" is OK but "foo" is an error. 18830 # 18831 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18832 # It is also a way to make sure we got the proper file name for the real test later on. 18833 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18834 if test "x$test_shortpath" = x; then 18835 # Short path failed, file does not exist as specified. 18836 # Try adding .exe or .cmd 18837 if test -f "${new_path}.exe"; then 18838 input_to_shortpath="${new_path}.exe" 18839 elif test -f "${new_path}.cmd"; then 18840 input_to_shortpath="${new_path}.cmd" 18841 else 18842 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18843 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18844 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18845 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18846 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18847 fi 18848 else 18849 input_to_shortpath="$new_path" 18850 fi 18851 18852 # Call helper function which possibly converts this using DOS-style short mode. 18853 # If so, the updated path is stored in $new_path. 18854 new_path="$input_to_shortpath" 18855 18856 input_path="$input_to_shortpath" 18857 # Check if we need to convert this using DOS-style short mode. If the path 18858 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18859 # take no chances and rewrite it. 18860 # Note: m4 eats our [], so we need to use [ and ] instead. 18861 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18862 if test "x$has_forbidden_chars" != x; then 18863 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18864 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18865 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18866 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18867 # Going to short mode and back again did indeed matter. Since short mode is 18868 # case insensitive, let's make it lowercase to improve readability. 18869 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18870 # Now convert it back to Unix-style (cygpath) 18871 input_path=`$CYGPATH -u "$shortmode_path"` 18872 new_path="$input_path" 18873 fi 18874 fi 18875 18876 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18877 if test "x$test_cygdrive_prefix" = x; then 18878 # As a simple fix, exclude /usr/bin since it's not a real path. 18879 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18880 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18881 # a path prefixed by /cygdrive for fixpath to work. 18882 new_path="$CYGWIN_ROOT_PATH$input_path" 18883 fi 18884 fi 18885 18886 # remove trailing .exe if any 18887 new_path="${new_path/%.exe/}" 18888 18889 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18890 18891 # First separate the path from the arguments. This will split at the first 18892 # space. 18893 complete="$FOUND_MAKE" 18894 path="${complete%% *}" 18895 tmp="$complete EOL" 18896 arguments="${tmp#* }" 18897 18898 # Input might be given as Windows format, start by converting to 18899 # unix format. 18900 new_path="$path" 18901 18902 windows_path="$new_path" 18903 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18904 unix_path=`$CYGPATH -u "$windows_path"` 18905 new_path="$unix_path" 18906 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18907 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18908 new_path="$unix_path" 18909 fi 18910 18911 18912 # Now try to locate executable using which 18913 new_path=`$WHICH "$new_path" 2> /dev/null` 18914 18915 if test "x$new_path" = x; then 18916 # Oops. Which didn't find the executable. 18917 # The splitting of arguments from the executable at a space might have been incorrect, 18918 # since paths with space are more likely in Windows. Give it another try with the whole 18919 # argument. 18920 path="$complete" 18921 arguments="EOL" 18922 new_path="$path" 18923 18924 windows_path="$new_path" 18925 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18926 unix_path=`$CYGPATH -u "$windows_path"` 18927 new_path="$unix_path" 18928 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18929 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18930 new_path="$unix_path" 18931 fi 18932 18933 18934 new_path=`$WHICH "$new_path" 2> /dev/null` 18935 # bat and cmd files are not always considered executable in MSYS causing which 18936 # to not find them 18937 if test "x$new_path" = x \ 18938 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18939 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18940 new_path="$path" 18941 18942 windows_path="$new_path" 18943 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18944 unix_path=`$CYGPATH -u "$windows_path"` 18945 new_path="$unix_path" 18946 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18947 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18948 new_path="$unix_path" 18949 fi 18950 18951 fi 18952 18953 if test "x$new_path" = x; then 18954 # It's still not found. Now this is an unrecoverable error. 18955 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18956 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18957 has_space=`$ECHO "$complete" | $GREP " "` 18958 if test "x$has_space" != x; then 18959 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18960 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18961 fi 18962 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18963 fi 18964 fi 18965 18966 # Now new_path has a complete unix path to the binary 18967 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18968 # Keep paths in /bin as-is, but remove trailing .exe if any 18969 new_path="${new_path/%.exe/}" 18970 # Do not save /bin paths to all_fixpath_prefixes! 18971 else 18972 # Not in mixed or Windows style, start by that. 18973 new_path=`cmd //c echo $new_path` 18974 18975 input_path="$new_path" 18976 # Check if we need to convert this using DOS-style short mode. If the path 18977 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18978 # take no chances and rewrite it. 18979 # Note: m4 eats our [], so we need to use [ and ] instead. 18980 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18981 if test "x$has_forbidden_chars" != x; then 18982 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18983 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18984 fi 18985 18986 # Output is in $new_path 18987 18988 windows_path="$new_path" 18989 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18990 unix_path=`$CYGPATH -u "$windows_path"` 18991 new_path="$unix_path" 18992 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18993 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18994 new_path="$unix_path" 18995 fi 18996 18997 # remove trailing .exe if any 18998 new_path="${new_path/%.exe/}" 18999 19000 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19001 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19002 fi 19003 19004 else 19005 # We're on a unix platform. Hooray! :) 19006 # First separate the path from the arguments. This will split at the first 19007 # space. 19008 complete="$FOUND_MAKE" 19009 path="${complete%% *}" 19010 tmp="$complete EOL" 19011 arguments="${tmp#* }" 19012 19013 # Cannot rely on the command "which" here since it doesn't always work. 19014 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19015 if test -z "$is_absolute_path"; then 19016 # Path to executable is not absolute. Find it. 19017 IFS_save="$IFS" 19018 IFS=: 19019 for p in $PATH; do 19020 if test -f "$p/$path" && test -x "$p/$path"; then 19021 new_path="$p/$path" 19022 break 19023 fi 19024 done 19025 IFS="$IFS_save" 19026 else 19027 # This is an absolute path, we can use it without further modifications. 19028 new_path="$path" 19029 fi 19030 19031 if test "x$new_path" = x; then 19032 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19033 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19034 has_space=`$ECHO "$complete" | $GREP " "` 19035 if test "x$has_space" != x; then 19036 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19037 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19038 fi 19039 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19040 fi 19041 fi 19042 19043 # Now join together the path and the arguments once again 19044 if test "x$arguments" != xEOL; then 19045 new_complete="$new_path ${arguments% *}" 19046 else 19047 new_complete="$new_path" 19048 fi 19049 19050 if test "x$complete" != "x$new_complete"; then 19051 FOUND_MAKE="$new_complete" 19052 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19053 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19054 fi 19055 fi 19056 19057 fi 19058 fi 19059 fi 19060 fi 19061 19062 if test "x$FOUND_MAKE" = x; then 19063 for ac_prog in make 19064 do 19065 # Extract the first word of "$ac_prog", so it can be a program name with args. 19066 set dummy $ac_prog; ac_word=$2 19067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19068 $as_echo_n "checking for $ac_word... " >&6; } 19069 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 19070 $as_echo_n "(cached) " >&6 19071 else 19072 case $CHECK_TOOLSDIR_MAKE in 19073 [\\/]* | ?:[\\/]*) 19074 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 19075 ;; 19076 *) 19077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19078 for as_dir in $PATH 19079 do 19080 IFS=$as_save_IFS 19081 test -z "$as_dir" && as_dir=. 19082 for ac_exec_ext in '' $ac_executable_extensions; do 19083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19084 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 19085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19086 break 2 19087 fi 19088 done 19089 done 19090 IFS=$as_save_IFS 19091 19092 ;; 19093 esac 19094 fi 19095 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 19096 if test -n "$CHECK_TOOLSDIR_MAKE"; then 19097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 19098 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 19099 else 19100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19101 $as_echo "no" >&6; } 19102 fi 19103 19104 19105 test -n "$CHECK_TOOLSDIR_MAKE" && break 19106 done 19107 19108 19109 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 19110 DESCRIPTION="make in tools-dir" 19111 19112 # On Cygwin, we require a newer version of make than on other platforms 19113 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19114 MAKE_VERSION_EXPR="-e 4\." 19115 MAKE_REQUIRED_VERSION="4.0" 19116 else 19117 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19118 MAKE_REQUIRED_VERSION="3.81" 19119 fi 19120 19121 if test "x$MAKE_CANDIDATE" != x; then 19122 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19123 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19124 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19125 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19126 if test "x$IS_GNU_MAKE" = x; then 19127 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19128 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19129 else 19130 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19131 if test "x$IS_MODERN_MAKE" = x; then 19132 { $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 19133 $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;} 19134 else 19135 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19136 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19137 MAKE_EXPECTED_ENV='cygwin' 19138 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19139 MAKE_EXPECTED_ENV='msys' 19140 else 19141 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19142 fi 19143 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19144 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19145 else 19146 # Not relevant for non-Windows 19147 IS_MAKE_CORRECT_ENV=true 19148 fi 19149 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19150 { $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 19151 $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;} 19152 else 19153 FOUND_MAKE=$MAKE_CANDIDATE 19154 19155 # Only process if variable expands to non-empty 19156 19157 if test "x$FOUND_MAKE" != x; then 19158 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19159 19160 # First separate the path from the arguments. This will split at the first 19161 # space. 19162 complete="$FOUND_MAKE" 19163 path="${complete%% *}" 19164 tmp="$complete EOL" 19165 arguments="${tmp#* }" 19166 19167 # Input might be given as Windows format, start by converting to 19168 # unix format. 19169 new_path=`$CYGPATH -u "$path"` 19170 19171 # Now try to locate executable using which 19172 new_path=`$WHICH "$new_path" 2> /dev/null` 19173 # bat and cmd files are not always considered executable in cygwin causing which 19174 # to not find them 19175 if test "x$new_path" = x \ 19176 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19177 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19178 new_path=`$CYGPATH -u "$path"` 19179 fi 19180 if test "x$new_path" = x; then 19181 # Oops. Which didn't find the executable. 19182 # The splitting of arguments from the executable at a space might have been incorrect, 19183 # since paths with space are more likely in Windows. Give it another try with the whole 19184 # argument. 19185 path="$complete" 19186 arguments="EOL" 19187 new_path=`$CYGPATH -u "$path"` 19188 new_path=`$WHICH "$new_path" 2> /dev/null` 19189 # bat and cmd files are not always considered executable in cygwin causing which 19190 # to not find them 19191 if test "x$new_path" = x \ 19192 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19193 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19194 new_path=`$CYGPATH -u "$path"` 19195 fi 19196 if test "x$new_path" = x; then 19197 # It's still not found. Now this is an unrecoverable error. 19198 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19199 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19200 has_space=`$ECHO "$complete" | $GREP " "` 19201 if test "x$has_space" != x; then 19202 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19203 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19204 fi 19205 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19206 fi 19207 fi 19208 19209 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19210 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19211 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19212 # "foo.exe" is OK but "foo" is an error. 19213 # 19214 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19215 # It is also a way to make sure we got the proper file name for the real test later on. 19216 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19217 if test "x$test_shortpath" = x; then 19218 # Short path failed, file does not exist as specified. 19219 # Try adding .exe or .cmd 19220 if test -f "${new_path}.exe"; then 19221 input_to_shortpath="${new_path}.exe" 19222 elif test -f "${new_path}.cmd"; then 19223 input_to_shortpath="${new_path}.cmd" 19224 else 19225 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19226 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19227 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19228 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19229 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19230 fi 19231 else 19232 input_to_shortpath="$new_path" 19233 fi 19234 19235 # Call helper function which possibly converts this using DOS-style short mode. 19236 # If so, the updated path is stored in $new_path. 19237 new_path="$input_to_shortpath" 19238 19239 input_path="$input_to_shortpath" 19240 # Check if we need to convert this using DOS-style short mode. If the path 19241 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19242 # take no chances and rewrite it. 19243 # Note: m4 eats our [], so we need to use [ and ] instead. 19244 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19245 if test "x$has_forbidden_chars" != x; then 19246 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19247 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19248 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19249 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19250 # Going to short mode and back again did indeed matter. Since short mode is 19251 # case insensitive, let's make it lowercase to improve readability. 19252 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19253 # Now convert it back to Unix-style (cygpath) 19254 input_path=`$CYGPATH -u "$shortmode_path"` 19255 new_path="$input_path" 19256 fi 19257 fi 19258 19259 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19260 if test "x$test_cygdrive_prefix" = x; then 19261 # As a simple fix, exclude /usr/bin since it's not a real path. 19262 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19263 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19264 # a path prefixed by /cygdrive for fixpath to work. 19265 new_path="$CYGWIN_ROOT_PATH$input_path" 19266 fi 19267 fi 19268 19269 # remove trailing .exe if any 19270 new_path="${new_path/%.exe/}" 19271 19272 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19273 19274 # First separate the path from the arguments. This will split at the first 19275 # space. 19276 complete="$FOUND_MAKE" 19277 path="${complete%% *}" 19278 tmp="$complete EOL" 19279 arguments="${tmp#* }" 19280 19281 # Input might be given as Windows format, start by converting to 19282 # unix format. 19283 new_path="$path" 19284 19285 windows_path="$new_path" 19286 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19287 unix_path=`$CYGPATH -u "$windows_path"` 19288 new_path="$unix_path" 19289 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19290 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19291 new_path="$unix_path" 19292 fi 19293 19294 19295 # Now try to locate executable using which 19296 new_path=`$WHICH "$new_path" 2> /dev/null` 19297 19298 if test "x$new_path" = x; then 19299 # Oops. Which didn't find the executable. 19300 # The splitting of arguments from the executable at a space might have been incorrect, 19301 # since paths with space are more likely in Windows. Give it another try with the whole 19302 # argument. 19303 path="$complete" 19304 arguments="EOL" 19305 new_path="$path" 19306 19307 windows_path="$new_path" 19308 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19309 unix_path=`$CYGPATH -u "$windows_path"` 19310 new_path="$unix_path" 19311 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19312 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19313 new_path="$unix_path" 19314 fi 19315 19316 19317 new_path=`$WHICH "$new_path" 2> /dev/null` 19318 # bat and cmd files are not always considered executable in MSYS causing which 19319 # to not find them 19320 if test "x$new_path" = x \ 19321 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19322 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19323 new_path="$path" 19324 19325 windows_path="$new_path" 19326 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19327 unix_path=`$CYGPATH -u "$windows_path"` 19328 new_path="$unix_path" 19329 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19330 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19331 new_path="$unix_path" 19332 fi 19333 19334 fi 19335 19336 if test "x$new_path" = x; then 19337 # It's still not found. Now this is an unrecoverable error. 19338 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19339 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19340 has_space=`$ECHO "$complete" | $GREP " "` 19341 if test "x$has_space" != x; then 19342 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19343 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19344 fi 19345 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19346 fi 19347 fi 19348 19349 # Now new_path has a complete unix path to the binary 19350 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19351 # Keep paths in /bin as-is, but remove trailing .exe if any 19352 new_path="${new_path/%.exe/}" 19353 # Do not save /bin paths to all_fixpath_prefixes! 19354 else 19355 # Not in mixed or Windows style, start by that. 19356 new_path=`cmd //c echo $new_path` 19357 19358 input_path="$new_path" 19359 # Check if we need to convert this using DOS-style short mode. If the path 19360 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19361 # take no chances and rewrite it. 19362 # Note: m4 eats our [], so we need to use [ and ] instead. 19363 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19364 if test "x$has_forbidden_chars" != x; then 19365 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19366 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19367 fi 19368 19369 # Output is in $new_path 19370 19371 windows_path="$new_path" 19372 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19373 unix_path=`$CYGPATH -u "$windows_path"` 19374 new_path="$unix_path" 19375 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19376 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19377 new_path="$unix_path" 19378 fi 19379 19380 # remove trailing .exe if any 19381 new_path="${new_path/%.exe/}" 19382 19383 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19384 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19385 fi 19386 19387 else 19388 # We're on a unix platform. Hooray! :) 19389 # First separate the path from the arguments. This will split at the first 19390 # space. 19391 complete="$FOUND_MAKE" 19392 path="${complete%% *}" 19393 tmp="$complete EOL" 19394 arguments="${tmp#* }" 19395 19396 # Cannot rely on the command "which" here since it doesn't always work. 19397 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19398 if test -z "$is_absolute_path"; then 19399 # Path to executable is not absolute. Find it. 19400 IFS_save="$IFS" 19401 IFS=: 19402 for p in $PATH; do 19403 if test -f "$p/$path" && test -x "$p/$path"; then 19404 new_path="$p/$path" 19405 break 19406 fi 19407 done 19408 IFS="$IFS_save" 19409 else 19410 # This is an absolute path, we can use it without further modifications. 19411 new_path="$path" 19412 fi 19413 19414 if test "x$new_path" = x; then 19415 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19416 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19417 has_space=`$ECHO "$complete" | $GREP " "` 19418 if test "x$has_space" != x; then 19419 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19420 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19421 fi 19422 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19423 fi 19424 fi 19425 19426 # Now join together the path and the arguments once again 19427 if test "x$arguments" != xEOL; then 19428 new_complete="$new_path ${arguments% *}" 19429 else 19430 new_complete="$new_path" 19431 fi 19432 19433 if test "x$complete" != "x$new_complete"; then 19434 FOUND_MAKE="$new_complete" 19435 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19436 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19437 fi 19438 fi 19439 19440 fi 19441 fi 19442 fi 19443 fi 19444 19445 fi 19446 PATH=$OLD_PATH 19447 fi 19448 fi 19449 19450 if test "x$FOUND_MAKE" = x; then 19451 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 19452 fi 19453 19454 else 19455 # The variable is set, but is it from the command line or the environment? 19456 19457 # Try to remove the string !MAKE! from our list. 19458 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/} 19459 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19460 # If it failed, the variable was not from the command line. Ignore it, 19461 # but warn the user (except for BASH, which is always set by the calling BASH). 19462 if test "xMAKE" != xBASH; then 19463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5 19464 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;} 19465 fi 19466 # Try to locate tool using the code snippet 19467 19468 # Try our hardest to locate a correct version of GNU make 19469 for ac_prog in gmake 19470 do 19471 # Extract the first word of "$ac_prog", so it can be a program name with args. 19472 set dummy $ac_prog; ac_word=$2 19473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19474 $as_echo_n "checking for $ac_word... " >&6; } 19475 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 19476 $as_echo_n "(cached) " >&6 19477 else 19478 case $CHECK_GMAKE in 19479 [\\/]* | ?:[\\/]*) 19480 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 19481 ;; 19482 *) 19483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19484 for as_dir in $PATH 19485 do 19486 IFS=$as_save_IFS 19487 test -z "$as_dir" && as_dir=. 19488 for ac_exec_ext in '' $ac_executable_extensions; do 19489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19490 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 19491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19492 break 2 19493 fi 19494 done 19495 done 19496 IFS=$as_save_IFS 19497 19498 ;; 19499 esac 19500 fi 19501 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 19502 if test -n "$CHECK_GMAKE"; then 19503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 19504 $as_echo "$CHECK_GMAKE" >&6; } 19505 else 19506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19507 $as_echo "no" >&6; } 19508 fi 19509 19510 19511 test -n "$CHECK_GMAKE" && break 19512 done 19513 19514 19515 MAKE_CANDIDATE=""$CHECK_GMAKE"" 19516 DESCRIPTION="gmake in PATH" 19517 19518 # On Cygwin, we require a newer version of make than on other platforms 19519 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19520 MAKE_VERSION_EXPR="-e 4\." 19521 MAKE_REQUIRED_VERSION="4.0" 19522 else 19523 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19524 MAKE_REQUIRED_VERSION="3.81" 19525 fi 19526 19527 if test "x$MAKE_CANDIDATE" != x; then 19528 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19529 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19530 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19531 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19532 if test "x$IS_GNU_MAKE" = x; then 19533 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19534 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19535 else 19536 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19537 if test "x$IS_MODERN_MAKE" = x; then 19538 { $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 19539 $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;} 19540 else 19541 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19542 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19543 MAKE_EXPECTED_ENV='cygwin' 19544 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19545 MAKE_EXPECTED_ENV='msys' 19546 else 19547 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19548 fi 19549 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19550 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19551 else 19552 # Not relevant for non-Windows 19553 IS_MAKE_CORRECT_ENV=true 19554 fi 19555 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19556 { $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 19557 $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;} 19558 else 19559 FOUND_MAKE=$MAKE_CANDIDATE 19560 19561 # Only process if variable expands to non-empty 19562 19563 if test "x$FOUND_MAKE" != x; then 19564 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19565 19566 # First separate the path from the arguments. This will split at the first 19567 # space. 19568 complete="$FOUND_MAKE" 19569 path="${complete%% *}" 19570 tmp="$complete EOL" 19571 arguments="${tmp#* }" 19572 19573 # Input might be given as Windows format, start by converting to 19574 # unix format. 19575 new_path=`$CYGPATH -u "$path"` 19576 19577 # Now try to locate executable using which 19578 new_path=`$WHICH "$new_path" 2> /dev/null` 19579 # bat and cmd files are not always considered executable in cygwin causing which 19580 # to not find them 19581 if test "x$new_path" = x \ 19582 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19583 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19584 new_path=`$CYGPATH -u "$path"` 19585 fi 19586 if test "x$new_path" = x; then 19587 # Oops. Which didn't find the executable. 19588 # The splitting of arguments from the executable at a space might have been incorrect, 19589 # since paths with space are more likely in Windows. Give it another try with the whole 19590 # argument. 19591 path="$complete" 19592 arguments="EOL" 19593 new_path=`$CYGPATH -u "$path"` 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 # It's still not found. Now this is an unrecoverable error. 19604 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19605 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19606 has_space=`$ECHO "$complete" | $GREP " "` 19607 if test "x$has_space" != x; then 19608 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19609 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19610 fi 19611 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19612 fi 19613 fi 19614 19615 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19616 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19617 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19618 # "foo.exe" is OK but "foo" is an error. 19619 # 19620 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19621 # It is also a way to make sure we got the proper file name for the real test later on. 19622 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19623 if test "x$test_shortpath" = x; then 19624 # Short path failed, file does not exist as specified. 19625 # Try adding .exe or .cmd 19626 if test -f "${new_path}.exe"; then 19627 input_to_shortpath="${new_path}.exe" 19628 elif test -f "${new_path}.cmd"; then 19629 input_to_shortpath="${new_path}.cmd" 19630 else 19631 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19632 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19633 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19634 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19635 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19636 fi 19637 else 19638 input_to_shortpath="$new_path" 19639 fi 19640 19641 # Call helper function which possibly converts this using DOS-style short mode. 19642 # If so, the updated path is stored in $new_path. 19643 new_path="$input_to_shortpath" 19644 19645 input_path="$input_to_shortpath" 19646 # Check if we need to convert this using DOS-style short mode. If the path 19647 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19648 # take no chances and rewrite it. 19649 # Note: m4 eats our [], so we need to use [ and ] instead. 19650 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19651 if test "x$has_forbidden_chars" != x; then 19652 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19653 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19654 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19655 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19656 # Going to short mode and back again did indeed matter. Since short mode is 19657 # case insensitive, let's make it lowercase to improve readability. 19658 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19659 # Now convert it back to Unix-style (cygpath) 19660 input_path=`$CYGPATH -u "$shortmode_path"` 19661 new_path="$input_path" 19662 fi 19663 fi 19664 19665 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19666 if test "x$test_cygdrive_prefix" = x; then 19667 # As a simple fix, exclude /usr/bin since it's not a real path. 19668 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19669 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19670 # a path prefixed by /cygdrive for fixpath to work. 19671 new_path="$CYGWIN_ROOT_PATH$input_path" 19672 fi 19673 fi 19674 19675 # remove trailing .exe if any 19676 new_path="${new_path/%.exe/}" 19677 19678 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19679 19680 # First separate the path from the arguments. This will split at the first 19681 # space. 19682 complete="$FOUND_MAKE" 19683 path="${complete%% *}" 19684 tmp="$complete EOL" 19685 arguments="${tmp#* }" 19686 19687 # Input might be given as Windows format, start by converting to 19688 # unix format. 19689 new_path="$path" 19690 19691 windows_path="$new_path" 19692 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19693 unix_path=`$CYGPATH -u "$windows_path"` 19694 new_path="$unix_path" 19695 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19696 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19697 new_path="$unix_path" 19698 fi 19699 19700 19701 # Now try to locate executable using which 19702 new_path=`$WHICH "$new_path" 2> /dev/null` 19703 19704 if test "x$new_path" = x; then 19705 # Oops. Which didn't find the executable. 19706 # The splitting of arguments from the executable at a space might have been incorrect, 19707 # since paths with space are more likely in Windows. Give it another try with the whole 19708 # argument. 19709 path="$complete" 19710 arguments="EOL" 19711 new_path="$path" 19712 19713 windows_path="$new_path" 19714 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19715 unix_path=`$CYGPATH -u "$windows_path"` 19716 new_path="$unix_path" 19717 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19718 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19719 new_path="$unix_path" 19720 fi 19721 19722 19723 new_path=`$WHICH "$new_path" 2> /dev/null` 19724 # bat and cmd files are not always considered executable in MSYS causing which 19725 # to not find them 19726 if test "x$new_path" = x \ 19727 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19728 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19729 new_path="$path" 19730 19731 windows_path="$new_path" 19732 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19733 unix_path=`$CYGPATH -u "$windows_path"` 19734 new_path="$unix_path" 19735 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19736 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19737 new_path="$unix_path" 19738 fi 19739 19740 fi 19741 19742 if test "x$new_path" = x; then 19743 # It's still not found. Now this is an unrecoverable error. 19744 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19745 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19746 has_space=`$ECHO "$complete" | $GREP " "` 19747 if test "x$has_space" != x; then 19748 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19749 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19750 fi 19751 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19752 fi 19753 fi 19754 19755 # Now new_path has a complete unix path to the binary 19756 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19757 # Keep paths in /bin as-is, but remove trailing .exe if any 19758 new_path="${new_path/%.exe/}" 19759 # Do not save /bin paths to all_fixpath_prefixes! 19760 else 19761 # Not in mixed or Windows style, start by that. 19762 new_path=`cmd //c echo $new_path` 19763 19764 input_path="$new_path" 19765 # Check if we need to convert this using DOS-style short mode. If the path 19766 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19767 # take no chances and rewrite it. 19768 # Note: m4 eats our [], so we need to use [ and ] instead. 19769 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19770 if test "x$has_forbidden_chars" != x; then 19771 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19772 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19773 fi 19774 19775 # Output is in $new_path 19776 19777 windows_path="$new_path" 19778 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19779 unix_path=`$CYGPATH -u "$windows_path"` 19780 new_path="$unix_path" 19781 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19782 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19783 new_path="$unix_path" 19784 fi 19785 19786 # remove trailing .exe if any 19787 new_path="${new_path/%.exe/}" 19788 19789 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19790 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19791 fi 19792 19793 else 19794 # We're on a unix platform. Hooray! :) 19795 # First separate the path from the arguments. This will split at the first 19796 # space. 19797 complete="$FOUND_MAKE" 19798 path="${complete%% *}" 19799 tmp="$complete EOL" 19800 arguments="${tmp#* }" 19801 19802 # Cannot rely on the command "which" here since it doesn't always work. 19803 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19804 if test -z "$is_absolute_path"; then 19805 # Path to executable is not absolute. Find it. 19806 IFS_save="$IFS" 19807 IFS=: 19808 for p in $PATH; do 19809 if test -f "$p/$path" && test -x "$p/$path"; then 19810 new_path="$p/$path" 19811 break 19812 fi 19813 done 19814 IFS="$IFS_save" 19815 else 19816 # This is an absolute path, we can use it without further modifications. 19817 new_path="$path" 19818 fi 19819 19820 if test "x$new_path" = x; then 19821 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19822 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19823 has_space=`$ECHO "$complete" | $GREP " "` 19824 if test "x$has_space" != x; then 19825 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19826 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19827 fi 19828 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19829 fi 19830 fi 19831 19832 # Now join together the path and the arguments once again 19833 if test "x$arguments" != xEOL; then 19834 new_complete="$new_path ${arguments% *}" 19835 else 19836 new_complete="$new_path" 19837 fi 19838 19839 if test "x$complete" != "x$new_complete"; then 19840 FOUND_MAKE="$new_complete" 19841 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19842 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19843 fi 19844 fi 19845 19846 fi 19847 fi 19848 fi 19849 fi 19850 19851 19852 if test "x$FOUND_MAKE" = x; then 19853 for ac_prog in make 19854 do 19855 # Extract the first word of "$ac_prog", so it can be a program name with args. 19856 set dummy $ac_prog; ac_word=$2 19857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19858 $as_echo_n "checking for $ac_word... " >&6; } 19859 if ${ac_cv_path_CHECK_MAKE+:} false; then : 19860 $as_echo_n "(cached) " >&6 19861 else 19862 case $CHECK_MAKE in 19863 [\\/]* | ?:[\\/]*) 19864 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 19865 ;; 19866 *) 19867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19868 for as_dir in $PATH 19869 do 19870 IFS=$as_save_IFS 19871 test -z "$as_dir" && as_dir=. 19872 for ac_exec_ext in '' $ac_executable_extensions; do 19873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19874 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 19875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19876 break 2 19877 fi 19878 done 19879 done 19880 IFS=$as_save_IFS 19881 19882 ;; 19883 esac 19884 fi 19885 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 19886 if test -n "$CHECK_MAKE"; then 19887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 19888 $as_echo "$CHECK_MAKE" >&6; } 19889 else 19890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19891 $as_echo "no" >&6; } 19892 fi 19893 19894 19895 test -n "$CHECK_MAKE" && break 19896 done 19897 19898 19899 MAKE_CANDIDATE=""$CHECK_MAKE"" 19900 DESCRIPTION="make in PATH" 19901 19902 # On Cygwin, we require a newer version of make than on other platforms 19903 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19904 MAKE_VERSION_EXPR="-e 4\." 19905 MAKE_REQUIRED_VERSION="4.0" 19906 else 19907 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19908 MAKE_REQUIRED_VERSION="3.81" 19909 fi 19910 19911 if test "x$MAKE_CANDIDATE" != x; then 19912 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19913 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19914 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19915 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19916 if test "x$IS_GNU_MAKE" = x; then 19917 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19918 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19919 else 19920 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19921 if test "x$IS_MODERN_MAKE" = x; then 19922 { $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 19923 $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;} 19924 else 19925 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19926 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19927 MAKE_EXPECTED_ENV='cygwin' 19928 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19929 MAKE_EXPECTED_ENV='msys' 19930 else 19931 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19932 fi 19933 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19934 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19935 else 19936 # Not relevant for non-Windows 19937 IS_MAKE_CORRECT_ENV=true 19938 fi 19939 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19940 { $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 19941 $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;} 19942 else 19943 FOUND_MAKE=$MAKE_CANDIDATE 19944 19945 # Only process if variable expands to non-empty 19946 19947 if test "x$FOUND_MAKE" != x; then 19948 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19949 19950 # First separate the path from the arguments. This will split at the first 19951 # space. 19952 complete="$FOUND_MAKE" 19953 path="${complete%% *}" 19954 tmp="$complete EOL" 19955 arguments="${tmp#* }" 19956 19957 # Input might be given as Windows format, start by converting to 19958 # unix format. 19959 new_path=`$CYGPATH -u "$path"` 19960 19961 # Now try to locate executable using which 19962 new_path=`$WHICH "$new_path" 2> /dev/null` 19963 # bat and cmd files are not always considered executable in cygwin causing which 19964 # to not find them 19965 if test "x$new_path" = x \ 19966 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19967 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19968 new_path=`$CYGPATH -u "$path"` 19969 fi 19970 if test "x$new_path" = x; then 19971 # Oops. Which didn't find the executable. 19972 # The splitting of arguments from the executable at a space might have been incorrect, 19973 # since paths with space are more likely in Windows. Give it another try with the whole 19974 # argument. 19975 path="$complete" 19976 arguments="EOL" 19977 new_path=`$CYGPATH -u "$path"` 19978 new_path=`$WHICH "$new_path" 2> /dev/null` 19979 # bat and cmd files are not always considered executable in cygwin causing which 19980 # to not find them 19981 if test "x$new_path" = x \ 19982 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19983 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19984 new_path=`$CYGPATH -u "$path"` 19985 fi 19986 if test "x$new_path" = x; then 19987 # It's still not found. Now this is an unrecoverable error. 19988 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19989 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19990 has_space=`$ECHO "$complete" | $GREP " "` 19991 if test "x$has_space" != x; then 19992 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19993 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19994 fi 19995 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19996 fi 19997 fi 19998 19999 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20000 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20001 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20002 # "foo.exe" is OK but "foo" is an error. 20003 # 20004 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20005 # It is also a way to make sure we got the proper file name for the real test later on. 20006 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20007 if test "x$test_shortpath" = x; then 20008 # Short path failed, file does not exist as specified. 20009 # Try adding .exe or .cmd 20010 if test -f "${new_path}.exe"; then 20011 input_to_shortpath="${new_path}.exe" 20012 elif test -f "${new_path}.cmd"; then 20013 input_to_shortpath="${new_path}.cmd" 20014 else 20015 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20016 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20017 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20018 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20019 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20020 fi 20021 else 20022 input_to_shortpath="$new_path" 20023 fi 20024 20025 # Call helper function which possibly converts this using DOS-style short mode. 20026 # If so, the updated path is stored in $new_path. 20027 new_path="$input_to_shortpath" 20028 20029 input_path="$input_to_shortpath" 20030 # Check if we need to convert this using DOS-style short mode. If the path 20031 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20032 # take no chances and rewrite it. 20033 # Note: m4 eats our [], so we need to use [ and ] instead. 20034 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20035 if test "x$has_forbidden_chars" != x; then 20036 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20037 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20038 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20039 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20040 # Going to short mode and back again did indeed matter. Since short mode is 20041 # case insensitive, let's make it lowercase to improve readability. 20042 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20043 # Now convert it back to Unix-style (cygpath) 20044 input_path=`$CYGPATH -u "$shortmode_path"` 20045 new_path="$input_path" 20046 fi 20047 fi 20048 20049 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20050 if test "x$test_cygdrive_prefix" = x; then 20051 # As a simple fix, exclude /usr/bin since it's not a real path. 20052 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20053 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20054 # a path prefixed by /cygdrive for fixpath to work. 20055 new_path="$CYGWIN_ROOT_PATH$input_path" 20056 fi 20057 fi 20058 20059 # remove trailing .exe if any 20060 new_path="${new_path/%.exe/}" 20061 20062 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20063 20064 # First separate the path from the arguments. This will split at the first 20065 # space. 20066 complete="$FOUND_MAKE" 20067 path="${complete%% *}" 20068 tmp="$complete EOL" 20069 arguments="${tmp#* }" 20070 20071 # Input might be given as Windows format, start by converting to 20072 # unix format. 20073 new_path="$path" 20074 20075 windows_path="$new_path" 20076 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20077 unix_path=`$CYGPATH -u "$windows_path"` 20078 new_path="$unix_path" 20079 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20080 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20081 new_path="$unix_path" 20082 fi 20083 20084 20085 # Now try to locate executable using which 20086 new_path=`$WHICH "$new_path" 2> /dev/null` 20087 20088 if test "x$new_path" = x; then 20089 # Oops. Which didn't find the executable. 20090 # The splitting of arguments from the executable at a space might have been incorrect, 20091 # since paths with space are more likely in Windows. Give it another try with the whole 20092 # argument. 20093 path="$complete" 20094 arguments="EOL" 20095 new_path="$path" 20096 20097 windows_path="$new_path" 20098 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20099 unix_path=`$CYGPATH -u "$windows_path"` 20100 new_path="$unix_path" 20101 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20102 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20103 new_path="$unix_path" 20104 fi 20105 20106 20107 new_path=`$WHICH "$new_path" 2> /dev/null` 20108 # bat and cmd files are not always considered executable in MSYS causing which 20109 # to not find them 20110 if test "x$new_path" = x \ 20111 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20112 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20113 new_path="$path" 20114 20115 windows_path="$new_path" 20116 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20117 unix_path=`$CYGPATH -u "$windows_path"` 20118 new_path="$unix_path" 20119 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20120 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20121 new_path="$unix_path" 20122 fi 20123 20124 fi 20125 20126 if test "x$new_path" = x; then 20127 # It's still not found. Now this is an unrecoverable error. 20128 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20129 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20130 has_space=`$ECHO "$complete" | $GREP " "` 20131 if test "x$has_space" != x; then 20132 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20133 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20134 fi 20135 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20136 fi 20137 fi 20138 20139 # Now new_path has a complete unix path to the binary 20140 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20141 # Keep paths in /bin as-is, but remove trailing .exe if any 20142 new_path="${new_path/%.exe/}" 20143 # Do not save /bin paths to all_fixpath_prefixes! 20144 else 20145 # Not in mixed or Windows style, start by that. 20146 new_path=`cmd //c echo $new_path` 20147 20148 input_path="$new_path" 20149 # Check if we need to convert this using DOS-style short mode. If the path 20150 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20151 # take no chances and rewrite it. 20152 # Note: m4 eats our [], so we need to use [ and ] instead. 20153 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20154 if test "x$has_forbidden_chars" != x; then 20155 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20156 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20157 fi 20158 20159 # Output is in $new_path 20160 20161 windows_path="$new_path" 20162 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20163 unix_path=`$CYGPATH -u "$windows_path"` 20164 new_path="$unix_path" 20165 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20166 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20167 new_path="$unix_path" 20168 fi 20169 20170 # remove trailing .exe if any 20171 new_path="${new_path/%.exe/}" 20172 20173 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20174 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20175 fi 20176 20177 else 20178 # We're on a unix platform. Hooray! :) 20179 # First separate the path from the arguments. This will split at the first 20180 # space. 20181 complete="$FOUND_MAKE" 20182 path="${complete%% *}" 20183 tmp="$complete EOL" 20184 arguments="${tmp#* }" 20185 20186 # Cannot rely on the command "which" here since it doesn't always work. 20187 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20188 if test -z "$is_absolute_path"; then 20189 # Path to executable is not absolute. Find it. 20190 IFS_save="$IFS" 20191 IFS=: 20192 for p in $PATH; do 20193 if test -f "$p/$path" && test -x "$p/$path"; then 20194 new_path="$p/$path" 20195 break 20196 fi 20197 done 20198 IFS="$IFS_save" 20199 else 20200 # This is an absolute path, we can use it without further modifications. 20201 new_path="$path" 20202 fi 20203 20204 if test "x$new_path" = x; then 20205 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20206 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20207 has_space=`$ECHO "$complete" | $GREP " "` 20208 if test "x$has_space" != x; then 20209 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20210 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20211 fi 20212 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20213 fi 20214 fi 20215 20216 # Now join together the path and the arguments once again 20217 if test "x$arguments" != xEOL; then 20218 new_complete="$new_path ${arguments% *}" 20219 else 20220 new_complete="$new_path" 20221 fi 20222 20223 if test "x$complete" != "x$new_complete"; then 20224 FOUND_MAKE="$new_complete" 20225 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20226 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20227 fi 20228 fi 20229 20230 fi 20231 fi 20232 fi 20233 fi 20234 20235 fi 20236 20237 if test "x$FOUND_MAKE" = x; then 20238 if test "x$TOOLCHAIN_PATH" != x; then 20239 # We have a toolchain path, check that as well before giving up. 20240 OLD_PATH=$PATH 20241 PATH=$TOOLCHAIN_PATH:$PATH 20242 for ac_prog in gmake 20243 do 20244 # Extract the first word of "$ac_prog", so it can be a program name with args. 20245 set dummy $ac_prog; ac_word=$2 20246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20247 $as_echo_n "checking for $ac_word... " >&6; } 20248 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 20249 $as_echo_n "(cached) " >&6 20250 else 20251 case $CHECK_TOOLSDIR_GMAKE in 20252 [\\/]* | ?:[\\/]*) 20253 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 20254 ;; 20255 *) 20256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20257 for as_dir in $PATH 20258 do 20259 IFS=$as_save_IFS 20260 test -z "$as_dir" && as_dir=. 20261 for ac_exec_ext in '' $ac_executable_extensions; do 20262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20263 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 20264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20265 break 2 20266 fi 20267 done 20268 done 20269 IFS=$as_save_IFS 20270 20271 ;; 20272 esac 20273 fi 20274 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 20275 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 20276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 20277 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 20278 else 20279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20280 $as_echo "no" >&6; } 20281 fi 20282 20283 20284 test -n "$CHECK_TOOLSDIR_GMAKE" && break 20285 done 20286 20287 20288 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 20289 DESCRIPTION="gmake in tools-dir" 20290 20291 # On Cygwin, we require a newer version of make than on other platforms 20292 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20293 MAKE_VERSION_EXPR="-e 4\." 20294 MAKE_REQUIRED_VERSION="4.0" 20295 else 20296 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 20297 MAKE_REQUIRED_VERSION="3.81" 20298 fi 20299 20300 if test "x$MAKE_CANDIDATE" != x; then 20301 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 20302 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 20303 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 20304 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 20305 if test "x$IS_GNU_MAKE" = x; then 20306 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 20307 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 20308 else 20309 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 20310 if test "x$IS_MODERN_MAKE" = x; then 20311 { $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 20312 $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;} 20313 else 20314 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 20315 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20316 MAKE_EXPECTED_ENV='cygwin' 20317 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20318 MAKE_EXPECTED_ENV='msys' 20319 else 20320 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20321 fi 20322 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20323 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20324 else 20325 # Not relevant for non-Windows 20326 IS_MAKE_CORRECT_ENV=true 20327 fi 20328 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20329 { $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 20330 $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;} 20331 else 20332 FOUND_MAKE=$MAKE_CANDIDATE 20333 20334 # Only process if variable expands to non-empty 20335 20336 if test "x$FOUND_MAKE" != x; then 20337 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20338 20339 # First separate the path from the arguments. This will split at the first 20340 # space. 20341 complete="$FOUND_MAKE" 20342 path="${complete%% *}" 20343 tmp="$complete EOL" 20344 arguments="${tmp#* }" 20345 20346 # Input might be given as Windows format, start by converting to 20347 # unix format. 20348 new_path=`$CYGPATH -u "$path"` 20349 20350 # Now try to locate executable using which 20351 new_path=`$WHICH "$new_path" 2> /dev/null` 20352 # bat and cmd files are not always considered executable in cygwin causing which 20353 # to not find them 20354 if test "x$new_path" = x \ 20355 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20356 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20357 new_path=`$CYGPATH -u "$path"` 20358 fi 20359 if test "x$new_path" = x; then 20360 # Oops. Which didn't find the executable. 20361 # The splitting of arguments from the executable at a space might have been incorrect, 20362 # since paths with space are more likely in Windows. Give it another try with the whole 20363 # argument. 20364 path="$complete" 20365 arguments="EOL" 20366 new_path=`$CYGPATH -u "$path"` 20367 new_path=`$WHICH "$new_path" 2> /dev/null` 20368 # bat and cmd files are not always considered executable in cygwin causing which 20369 # to not find them 20370 if test "x$new_path" = x \ 20371 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20372 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20373 new_path=`$CYGPATH -u "$path"` 20374 fi 20375 if test "x$new_path" = x; then 20376 # It's still not found. Now this is an unrecoverable error. 20377 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20378 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20379 has_space=`$ECHO "$complete" | $GREP " "` 20380 if test "x$has_space" != x; then 20381 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20382 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20383 fi 20384 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20385 fi 20386 fi 20387 20388 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20389 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20390 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20391 # "foo.exe" is OK but "foo" is an error. 20392 # 20393 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20394 # It is also a way to make sure we got the proper file name for the real test later on. 20395 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20396 if test "x$test_shortpath" = x; then 20397 # Short path failed, file does not exist as specified. 20398 # Try adding .exe or .cmd 20399 if test -f "${new_path}.exe"; then 20400 input_to_shortpath="${new_path}.exe" 20401 elif test -f "${new_path}.cmd"; then 20402 input_to_shortpath="${new_path}.cmd" 20403 else 20404 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20405 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20406 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20407 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20408 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20409 fi 20410 else 20411 input_to_shortpath="$new_path" 20412 fi 20413 20414 # Call helper function which possibly converts this using DOS-style short mode. 20415 # If so, the updated path is stored in $new_path. 20416 new_path="$input_to_shortpath" 20417 20418 input_path="$input_to_shortpath" 20419 # Check if we need to convert this using DOS-style short mode. If the path 20420 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20421 # take no chances and rewrite it. 20422 # Note: m4 eats our [], so we need to use [ and ] instead. 20423 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20424 if test "x$has_forbidden_chars" != x; then 20425 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20426 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20427 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20428 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20429 # Going to short mode and back again did indeed matter. Since short mode is 20430 # case insensitive, let's make it lowercase to improve readability. 20431 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20432 # Now convert it back to Unix-style (cygpath) 20433 input_path=`$CYGPATH -u "$shortmode_path"` 20434 new_path="$input_path" 20435 fi 20436 fi 20437 20438 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20439 if test "x$test_cygdrive_prefix" = x; then 20440 # As a simple fix, exclude /usr/bin since it's not a real path. 20441 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20442 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20443 # a path prefixed by /cygdrive for fixpath to work. 20444 new_path="$CYGWIN_ROOT_PATH$input_path" 20445 fi 20446 fi 20447 20448 # remove trailing .exe if any 20449 new_path="${new_path/%.exe/}" 20450 20451 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20452 20453 # First separate the path from the arguments. This will split at the first 20454 # space. 20455 complete="$FOUND_MAKE" 20456 path="${complete%% *}" 20457 tmp="$complete EOL" 20458 arguments="${tmp#* }" 20459 20460 # Input might be given as Windows format, start by converting to 20461 # unix format. 20462 new_path="$path" 20463 20464 windows_path="$new_path" 20465 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20466 unix_path=`$CYGPATH -u "$windows_path"` 20467 new_path="$unix_path" 20468 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20469 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20470 new_path="$unix_path" 20471 fi 20472 20473 20474 # Now try to locate executable using which 20475 new_path=`$WHICH "$new_path" 2> /dev/null` 20476 20477 if test "x$new_path" = x; then 20478 # Oops. Which didn't find the executable. 20479 # The splitting of arguments from the executable at a space might have been incorrect, 20480 # since paths with space are more likely in Windows. Give it another try with the whole 20481 # argument. 20482 path="$complete" 20483 arguments="EOL" 20484 new_path="$path" 20485 20486 windows_path="$new_path" 20487 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20488 unix_path=`$CYGPATH -u "$windows_path"` 20489 new_path="$unix_path" 20490 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20491 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20492 new_path="$unix_path" 20493 fi 20494 20495 20496 new_path=`$WHICH "$new_path" 2> /dev/null` 20497 # bat and cmd files are not always considered executable in MSYS causing which 20498 # to not find them 20499 if test "x$new_path" = x \ 20500 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20501 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20502 new_path="$path" 20503 20504 windows_path="$new_path" 20505 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20506 unix_path=`$CYGPATH -u "$windows_path"` 20507 new_path="$unix_path" 20508 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20509 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20510 new_path="$unix_path" 20511 fi 20512 20513 fi 20514 20515 if test "x$new_path" = x; then 20516 # It's still not found. Now this is an unrecoverable error. 20517 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20518 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20519 has_space=`$ECHO "$complete" | $GREP " "` 20520 if test "x$has_space" != x; then 20521 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20522 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20523 fi 20524 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20525 fi 20526 fi 20527 20528 # Now new_path has a complete unix path to the binary 20529 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20530 # Keep paths in /bin as-is, but remove trailing .exe if any 20531 new_path="${new_path/%.exe/}" 20532 # Do not save /bin paths to all_fixpath_prefixes! 20533 else 20534 # Not in mixed or Windows style, start by that. 20535 new_path=`cmd //c echo $new_path` 20536 20537 input_path="$new_path" 20538 # Check if we need to convert this using DOS-style short mode. If the path 20539 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20540 # take no chances and rewrite it. 20541 # Note: m4 eats our [], so we need to use [ and ] instead. 20542 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20543 if test "x$has_forbidden_chars" != x; then 20544 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20545 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20546 fi 20547 20548 # Output is in $new_path 20549 20550 windows_path="$new_path" 20551 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20552 unix_path=`$CYGPATH -u "$windows_path"` 20553 new_path="$unix_path" 20554 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20555 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20556 new_path="$unix_path" 20557 fi 20558 20559 # remove trailing .exe if any 20560 new_path="${new_path/%.exe/}" 20561 20562 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20563 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20564 fi 20565 20566 else 20567 # We're on a unix platform. Hooray! :) 20568 # First separate the path from the arguments. This will split at the first 20569 # space. 20570 complete="$FOUND_MAKE" 20571 path="${complete%% *}" 20572 tmp="$complete EOL" 20573 arguments="${tmp#* }" 20574 20575 # Cannot rely on the command "which" here since it doesn't always work. 20576 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20577 if test -z "$is_absolute_path"; then 20578 # Path to executable is not absolute. Find it. 20579 IFS_save="$IFS" 20580 IFS=: 20581 for p in $PATH; do 20582 if test -f "$p/$path" && test -x "$p/$path"; then 20583 new_path="$p/$path" 20584 break 20585 fi 20586 done 20587 IFS="$IFS_save" 20588 else 20589 # This is an absolute path, we can use it without further modifications. 20590 new_path="$path" 20591 fi 20592 20593 if test "x$new_path" = x; then 20594 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20595 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20596 has_space=`$ECHO "$complete" | $GREP " "` 20597 if test "x$has_space" != x; then 20598 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20599 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20600 fi 20601 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20602 fi 20603 fi 20604 20605 # Now join together the path and the arguments once again 20606 if test "x$arguments" != xEOL; then 20607 new_complete="$new_path ${arguments% *}" 20608 else 20609 new_complete="$new_path" 20610 fi 20611 20612 if test "x$complete" != "x$new_complete"; then 20613 FOUND_MAKE="$new_complete" 20614 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20615 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20616 fi 20617 fi 20618 20619 fi 20620 fi 20621 fi 20622 fi 20623 20624 if test "x$FOUND_MAKE" = x; then 20625 for ac_prog in make 20626 do 20627 # Extract the first word of "$ac_prog", so it can be a program name with args. 20628 set dummy $ac_prog; ac_word=$2 20629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20630 $as_echo_n "checking for $ac_word... " >&6; } 20631 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 20632 $as_echo_n "(cached) " >&6 20633 else 20634 case $CHECK_TOOLSDIR_MAKE in 20635 [\\/]* | ?:[\\/]*) 20636 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 20637 ;; 20638 *) 20639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20640 for as_dir in $PATH 20641 do 20642 IFS=$as_save_IFS 20643 test -z "$as_dir" && as_dir=. 20644 for ac_exec_ext in '' $ac_executable_extensions; do 20645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20646 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 20647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20648 break 2 20649 fi 20650 done 20651 done 20652 IFS=$as_save_IFS 20653 20654 ;; 20655 esac 20656 fi 20657 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 20658 if test -n "$CHECK_TOOLSDIR_MAKE"; then 20659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 20660 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 20661 else 20662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20663 $as_echo "no" >&6; } 20664 fi 20665 20666 20667 test -n "$CHECK_TOOLSDIR_MAKE" && break 20668 done 20669 20670 20671 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 20672 DESCRIPTION="make in tools-dir" 20673 20674 # On Cygwin, we require a newer version of make than on other platforms 20675 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20676 MAKE_VERSION_EXPR="-e 4\." 20677 MAKE_REQUIRED_VERSION="4.0" 20678 else 20679 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 20680 MAKE_REQUIRED_VERSION="3.81" 20681 fi 20682 20683 if test "x$MAKE_CANDIDATE" != x; then 20684 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 20685 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 20686 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 20687 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 20688 if test "x$IS_GNU_MAKE" = x; then 20689 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 20690 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 20691 else 20692 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 20693 if test "x$IS_MODERN_MAKE" = x; then 20694 { $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 20695 $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;} 20696 else 20697 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 20698 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20699 MAKE_EXPECTED_ENV='cygwin' 20700 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20701 MAKE_EXPECTED_ENV='msys' 20702 else 20703 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20704 fi 20705 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20706 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20707 else 20708 # Not relevant for non-Windows 20709 IS_MAKE_CORRECT_ENV=true 20710 fi 20711 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20712 { $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 20713 $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;} 20714 else 20715 FOUND_MAKE=$MAKE_CANDIDATE 20716 20717 # Only process if variable expands to non-empty 20718 20719 if test "x$FOUND_MAKE" != x; then 20720 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20721 20722 # First separate the path from the arguments. This will split at the first 20723 # space. 20724 complete="$FOUND_MAKE" 20725 path="${complete%% *}" 20726 tmp="$complete EOL" 20727 arguments="${tmp#* }" 20728 20729 # Input might be given as Windows format, start by converting to 20730 # unix format. 20731 new_path=`$CYGPATH -u "$path"` 20732 20733 # Now try to locate executable using which 20734 new_path=`$WHICH "$new_path" 2> /dev/null` 20735 # bat and cmd files are not always considered executable in cygwin causing which 20736 # to not find them 20737 if test "x$new_path" = x \ 20738 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20739 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20740 new_path=`$CYGPATH -u "$path"` 20741 fi 20742 if test "x$new_path" = x; then 20743 # Oops. Which didn't find the executable. 20744 # The splitting of arguments from the executable at a space might have been incorrect, 20745 # since paths with space are more likely in Windows. Give it another try with the whole 20746 # argument. 20747 path="$complete" 20748 arguments="EOL" 20749 new_path=`$CYGPATH -u "$path"` 20750 new_path=`$WHICH "$new_path" 2> /dev/null` 20751 # bat and cmd files are not always considered executable in cygwin causing which 20752 # to not find them 20753 if test "x$new_path" = x \ 20754 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20755 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20756 new_path=`$CYGPATH -u "$path"` 20757 fi 20758 if test "x$new_path" = x; then 20759 # It's still not found. Now this is an unrecoverable error. 20760 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20761 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20762 has_space=`$ECHO "$complete" | $GREP " "` 20763 if test "x$has_space" != x; then 20764 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20765 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20766 fi 20767 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20768 fi 20769 fi 20770 20771 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20772 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20773 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20774 # "foo.exe" is OK but "foo" is an error. 20775 # 20776 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20777 # It is also a way to make sure we got the proper file name for the real test later on. 20778 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20779 if test "x$test_shortpath" = x; then 20780 # Short path failed, file does not exist as specified. 20781 # Try adding .exe or .cmd 20782 if test -f "${new_path}.exe"; then 20783 input_to_shortpath="${new_path}.exe" 20784 elif test -f "${new_path}.cmd"; then 20785 input_to_shortpath="${new_path}.cmd" 20786 else 20787 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20788 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20789 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20790 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20791 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20792 fi 20793 else 20794 input_to_shortpath="$new_path" 20795 fi 20796 20797 # Call helper function which possibly converts this using DOS-style short mode. 20798 # If so, the updated path is stored in $new_path. 20799 new_path="$input_to_shortpath" 20800 20801 input_path="$input_to_shortpath" 20802 # Check if we need to convert this using DOS-style short mode. If the path 20803 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20804 # take no chances and rewrite it. 20805 # Note: m4 eats our [], so we need to use [ and ] instead. 20806 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20807 if test "x$has_forbidden_chars" != x; then 20808 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20809 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20810 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20811 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20812 # Going to short mode and back again did indeed matter. Since short mode is 20813 # case insensitive, let's make it lowercase to improve readability. 20814 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20815 # Now convert it back to Unix-style (cygpath) 20816 input_path=`$CYGPATH -u "$shortmode_path"` 20817 new_path="$input_path" 20818 fi 20819 fi 20820 20821 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20822 if test "x$test_cygdrive_prefix" = x; then 20823 # As a simple fix, exclude /usr/bin since it's not a real path. 20824 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20825 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20826 # a path prefixed by /cygdrive for fixpath to work. 20827 new_path="$CYGWIN_ROOT_PATH$input_path" 20828 fi 20829 fi 20830 20831 # remove trailing .exe if any 20832 new_path="${new_path/%.exe/}" 20833 20834 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20835 20836 # First separate the path from the arguments. This will split at the first 20837 # space. 20838 complete="$FOUND_MAKE" 20839 path="${complete%% *}" 20840 tmp="$complete EOL" 20841 arguments="${tmp#* }" 20842 20843 # Input might be given as Windows format, start by converting to 20844 # unix format. 20845 new_path="$path" 20846 20847 windows_path="$new_path" 20848 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20849 unix_path=`$CYGPATH -u "$windows_path"` 20850 new_path="$unix_path" 20851 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20852 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20853 new_path="$unix_path" 20854 fi 20855 20856 20857 # Now try to locate executable using which 20858 new_path=`$WHICH "$new_path" 2> /dev/null` 20859 20860 if test "x$new_path" = x; then 20861 # Oops. Which didn't find the executable. 20862 # The splitting of arguments from the executable at a space might have been incorrect, 20863 # since paths with space are more likely in Windows. Give it another try with the whole 20864 # argument. 20865 path="$complete" 20866 arguments="EOL" 20867 new_path="$path" 20868 20869 windows_path="$new_path" 20870 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20871 unix_path=`$CYGPATH -u "$windows_path"` 20872 new_path="$unix_path" 20873 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20874 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20875 new_path="$unix_path" 20876 fi 20877 20878 20879 new_path=`$WHICH "$new_path" 2> /dev/null` 20880 # bat and cmd files are not always considered executable in MSYS causing which 20881 # to not find them 20882 if test "x$new_path" = x \ 20883 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20884 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20885 new_path="$path" 20886 20887 windows_path="$new_path" 20888 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20889 unix_path=`$CYGPATH -u "$windows_path"` 20890 new_path="$unix_path" 20891 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20892 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20893 new_path="$unix_path" 20894 fi 20895 20896 fi 20897 20898 if test "x$new_path" = x; then 20899 # It's still not found. Now this is an unrecoverable error. 20900 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20901 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20902 has_space=`$ECHO "$complete" | $GREP " "` 20903 if test "x$has_space" != x; then 20904 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20905 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20906 fi 20907 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20908 fi 20909 fi 20910 20911 # Now new_path has a complete unix path to the binary 20912 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20913 # Keep paths in /bin as-is, but remove trailing .exe if any 20914 new_path="${new_path/%.exe/}" 20915 # Do not save /bin paths to all_fixpath_prefixes! 20916 else 20917 # Not in mixed or Windows style, start by that. 20918 new_path=`cmd //c echo $new_path` 20919 20920 input_path="$new_path" 20921 # Check if we need to convert this using DOS-style short mode. If the path 20922 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20923 # take no chances and rewrite it. 20924 # Note: m4 eats our [], so we need to use [ and ] instead. 20925 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20926 if test "x$has_forbidden_chars" != x; then 20927 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20928 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20929 fi 20930 20931 # Output is in $new_path 20932 20933 windows_path="$new_path" 20934 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20935 unix_path=`$CYGPATH -u "$windows_path"` 20936 new_path="$unix_path" 20937 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20938 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20939 new_path="$unix_path" 20940 fi 20941 20942 # remove trailing .exe if any 20943 new_path="${new_path/%.exe/}" 20944 20945 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20946 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20947 fi 20948 20949 else 20950 # We're on a unix platform. Hooray! :) 20951 # First separate the path from the arguments. This will split at the first 20952 # space. 20953 complete="$FOUND_MAKE" 20954 path="${complete%% *}" 20955 tmp="$complete EOL" 20956 arguments="${tmp#* }" 20957 20958 # Cannot rely on the command "which" here since it doesn't always work. 20959 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20960 if test -z "$is_absolute_path"; then 20961 # Path to executable is not absolute. Find it. 20962 IFS_save="$IFS" 20963 IFS=: 20964 for p in $PATH; do 20965 if test -f "$p/$path" && test -x "$p/$path"; then 20966 new_path="$p/$path" 20967 break 20968 fi 20969 done 20970 IFS="$IFS_save" 20971 else 20972 # This is an absolute path, we can use it without further modifications. 20973 new_path="$path" 20974 fi 20975 20976 if test "x$new_path" = x; then 20977 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20978 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20979 has_space=`$ECHO "$complete" | $GREP " "` 20980 if test "x$has_space" != x; then 20981 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20982 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20983 fi 20984 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20985 fi 20986 fi 20987 20988 # Now join together the path and the arguments once again 20989 if test "x$arguments" != xEOL; then 20990 new_complete="$new_path ${arguments% *}" 20991 else 20992 new_complete="$new_path" 20993 fi 20994 20995 if test "x$complete" != "x$new_complete"; then 20996 FOUND_MAKE="$new_complete" 20997 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20998 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20999 fi 21000 fi 21001 21002 fi 21003 fi 21004 fi 21005 fi 21006 21007 fi 21008 PATH=$OLD_PATH 21009 fi 21010 fi 21011 21012 if test "x$FOUND_MAKE" = x; then 21013 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 21014 fi 21015 21016 else 21017 # If it succeeded, then it was overridden by the user. We will use it 21018 # for the tool. 21019 21020 # First remove it from the list of overridden variables, so we can test 21021 # for unknown variables in the end. 21022 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21023 21024 # Check if we try to supply an empty value 21025 if test "x$MAKE" = x; then 21026 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5 21027 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;} 21028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 21029 $as_echo_n "checking for MAKE... " >&6; } 21030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21031 $as_echo "disabled" >&6; } 21032 else 21033 # Check if the provided tool contains a complete path. 21034 tool_specified="$MAKE" 21035 tool_basename="${tool_specified##*/}" 21036 if test "x$tool_basename" = "x$tool_specified"; then 21037 # A command without a complete path is provided, search $PATH. 21038 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5 21039 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;} 21040 # Extract the first word of "$tool_basename", so it can be a program name with args. 21041 set dummy $tool_basename; ac_word=$2 21042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21043 $as_echo_n "checking for $ac_word... " >&6; } 21044 if ${ac_cv_path_MAKE+:} false; then : 21045 $as_echo_n "(cached) " >&6 21046 else 21047 case $MAKE in 21048 [\\/]* | ?:[\\/]*) 21049 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path. 21050 ;; 21051 *) 21052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21053 for as_dir in $PATH 21054 do 21055 IFS=$as_save_IFS 21056 test -z "$as_dir" && as_dir=. 21057 for ac_exec_ext in '' $ac_executable_extensions; do 21058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21059 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext" 21060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21061 break 2 21062 fi 21063 done 21064 done 21065 IFS=$as_save_IFS 21066 21067 ;; 21068 esac 21069 fi 21070 MAKE=$ac_cv_path_MAKE 21071 if test -n "$MAKE"; then 21072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 21073 $as_echo "$MAKE" >&6; } 21074 else 21075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21076 $as_echo "no" >&6; } 21077 fi 21078 21079 21080 if test "x$MAKE" = x; then 21081 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21082 fi 21083 else 21084 # Otherwise we believe it is a complete path. Use it as it is. 21085 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5 21086 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;} 21087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 21088 $as_echo_n "checking for MAKE... " >&6; } 21089 if test ! -x "$tool_specified"; then 21090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21091 $as_echo "not found" >&6; } 21092 as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5 21093 fi 21094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21095 $as_echo "$tool_specified" >&6; } 21096 fi 21097 fi 21098 fi 21099 21100 # If MAKE was set by user, verify the version 21101 21102 MAKE_CANDIDATE=""$MAKE"" 21103 DESCRIPTION="user supplied MAKE=$MAKE" 21104 21105 # On Cygwin, we require a newer version of make than on other platforms 21106 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21107 MAKE_VERSION_EXPR="-e 4\." 21108 MAKE_REQUIRED_VERSION="4.0" 21109 else 21110 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 21111 MAKE_REQUIRED_VERSION="3.81" 21112 fi 21113 21114 if test "x$MAKE_CANDIDATE" != x; then 21115 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 21116 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 21117 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 21118 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 21119 if test "x$IS_GNU_MAKE" = x; then 21120 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 21121 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 21122 else 21123 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 21124 if test "x$IS_MODERN_MAKE" = x; then 21125 { $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 21126 $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;} 21127 else 21128 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 21129 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21130 MAKE_EXPECTED_ENV='cygwin' 21131 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21132 MAKE_EXPECTED_ENV='msys' 21133 else 21134 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 21135 fi 21136 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 21137 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 21138 else 21139 # Not relevant for non-Windows 21140 IS_MAKE_CORRECT_ENV=true 21141 fi 21142 if test "x$IS_MAKE_CORRECT_ENV" = x; then 21143 { $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 21144 $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;} 21145 else 21146 FOUND_MAKE=$MAKE_CANDIDATE 21147 21148 # Only process if variable expands to non-empty 21149 21150 if test "x$FOUND_MAKE" != x; then 21151 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21152 21153 # First separate the path from the arguments. This will split at the first 21154 # space. 21155 complete="$FOUND_MAKE" 21156 path="${complete%% *}" 21157 tmp="$complete EOL" 21158 arguments="${tmp#* }" 21159 21160 # Input might be given as Windows format, start by converting to 21161 # unix format. 21162 new_path=`$CYGPATH -u "$path"` 21163 21164 # Now try to locate executable using which 21165 new_path=`$WHICH "$new_path" 2> /dev/null` 21166 # bat and cmd files are not always considered executable in cygwin causing which 21167 # to not find them 21168 if test "x$new_path" = x \ 21169 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21170 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21171 new_path=`$CYGPATH -u "$path"` 21172 fi 21173 if test "x$new_path" = x; then 21174 # Oops. Which didn't find the executable. 21175 # The splitting of arguments from the executable at a space might have been incorrect, 21176 # since paths with space are more likely in Windows. Give it another try with the whole 21177 # argument. 21178 path="$complete" 21179 arguments="EOL" 21180 new_path=`$CYGPATH -u "$path"` 21181 new_path=`$WHICH "$new_path" 2> /dev/null` 21182 # bat and cmd files are not always considered executable in cygwin causing which 21183 # to not find them 21184 if test "x$new_path" = x \ 21185 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21186 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21187 new_path=`$CYGPATH -u "$path"` 21188 fi 21189 if test "x$new_path" = x; then 21190 # It's still not found. Now this is an unrecoverable error. 21191 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21192 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21193 has_space=`$ECHO "$complete" | $GREP " "` 21194 if test "x$has_space" != x; then 21195 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 21196 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 21197 fi 21198 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21199 fi 21200 fi 21201 21202 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21203 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21204 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21205 # "foo.exe" is OK but "foo" is an error. 21206 # 21207 # This test is therefore slightly more accurate than "test -f" to check for file presence. 21208 # It is also a way to make sure we got the proper file name for the real test later on. 21209 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21210 if test "x$test_shortpath" = x; then 21211 # Short path failed, file does not exist as specified. 21212 # Try adding .exe or .cmd 21213 if test -f "${new_path}.exe"; then 21214 input_to_shortpath="${new_path}.exe" 21215 elif test -f "${new_path}.cmd"; then 21216 input_to_shortpath="${new_path}.cmd" 21217 else 21218 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 21219 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 21220 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 21221 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 21222 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21223 fi 21224 else 21225 input_to_shortpath="$new_path" 21226 fi 21227 21228 # Call helper function which possibly converts this using DOS-style short mode. 21229 # If so, the updated path is stored in $new_path. 21230 new_path="$input_to_shortpath" 21231 21232 input_path="$input_to_shortpath" 21233 # Check if we need to convert this using DOS-style short mode. If the path 21234 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21235 # take no chances and rewrite it. 21236 # Note: m4 eats our [], so we need to use [ and ] instead. 21237 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21238 if test "x$has_forbidden_chars" != x; then 21239 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21240 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21241 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21242 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21243 # Going to short mode and back again did indeed matter. Since short mode is 21244 # case insensitive, let's make it lowercase to improve readability. 21245 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21246 # Now convert it back to Unix-style (cygpath) 21247 input_path=`$CYGPATH -u "$shortmode_path"` 21248 new_path="$input_path" 21249 fi 21250 fi 21251 21252 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21253 if test "x$test_cygdrive_prefix" = x; then 21254 # As a simple fix, exclude /usr/bin since it's not a real path. 21255 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 21256 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21257 # a path prefixed by /cygdrive for fixpath to work. 21258 new_path="$CYGWIN_ROOT_PATH$input_path" 21259 fi 21260 fi 21261 21262 # remove trailing .exe if any 21263 new_path="${new_path/%.exe/}" 21264 21265 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21266 21267 # First separate the path from the arguments. This will split at the first 21268 # space. 21269 complete="$FOUND_MAKE" 21270 path="${complete%% *}" 21271 tmp="$complete EOL" 21272 arguments="${tmp#* }" 21273 21274 # Input might be given as Windows format, start by converting to 21275 # unix format. 21276 new_path="$path" 21277 21278 windows_path="$new_path" 21279 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21280 unix_path=`$CYGPATH -u "$windows_path"` 21281 new_path="$unix_path" 21282 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21283 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21284 new_path="$unix_path" 21285 fi 21286 21287 21288 # Now try to locate executable using which 21289 new_path=`$WHICH "$new_path" 2> /dev/null` 21290 21291 if test "x$new_path" = x; then 21292 # Oops. Which didn't find the executable. 21293 # The splitting of arguments from the executable at a space might have been incorrect, 21294 # since paths with space are more likely in Windows. Give it another try with the whole 21295 # argument. 21296 path="$complete" 21297 arguments="EOL" 21298 new_path="$path" 21299 21300 windows_path="$new_path" 21301 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21302 unix_path=`$CYGPATH -u "$windows_path"` 21303 new_path="$unix_path" 21304 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21305 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21306 new_path="$unix_path" 21307 fi 21308 21309 21310 new_path=`$WHICH "$new_path" 2> /dev/null` 21311 # bat and cmd files are not always considered executable in MSYS causing which 21312 # to not find them 21313 if test "x$new_path" = x \ 21314 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21315 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21316 new_path="$path" 21317 21318 windows_path="$new_path" 21319 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21320 unix_path=`$CYGPATH -u "$windows_path"` 21321 new_path="$unix_path" 21322 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21323 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21324 new_path="$unix_path" 21325 fi 21326 21327 fi 21328 21329 if test "x$new_path" = x; then 21330 # It's still not found. Now this is an unrecoverable error. 21331 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21332 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21333 has_space=`$ECHO "$complete" | $GREP " "` 21334 if test "x$has_space" != x; then 21335 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 21336 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 21337 fi 21338 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21339 fi 21340 fi 21341 21342 # Now new_path has a complete unix path to the binary 21343 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 21344 # Keep paths in /bin as-is, but remove trailing .exe if any 21345 new_path="${new_path/%.exe/}" 21346 # Do not save /bin paths to all_fixpath_prefixes! 21347 else 21348 # Not in mixed or Windows style, start by that. 21349 new_path=`cmd //c echo $new_path` 21350 21351 input_path="$new_path" 21352 # Check if we need to convert this using DOS-style short mode. If the path 21353 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21354 # take no chances and rewrite it. 21355 # Note: m4 eats our [], so we need to use [ and ] instead. 21356 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21357 if test "x$has_forbidden_chars" != x; then 21358 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21359 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21360 fi 21361 21362 # Output is in $new_path 21363 21364 windows_path="$new_path" 21365 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21366 unix_path=`$CYGPATH -u "$windows_path"` 21367 new_path="$unix_path" 21368 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21369 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21370 new_path="$unix_path" 21371 fi 21372 21373 # remove trailing .exe if any 21374 new_path="${new_path/%.exe/}" 21375 21376 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21377 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21378 fi 21379 21380 else 21381 # We're on a unix platform. Hooray! :) 21382 # First separate the path from the arguments. This will split at the first 21383 # space. 21384 complete="$FOUND_MAKE" 21385 path="${complete%% *}" 21386 tmp="$complete EOL" 21387 arguments="${tmp#* }" 21388 21389 # Cannot rely on the command "which" here since it doesn't always work. 21390 is_absolute_path=`$ECHO "$path" | $GREP ^/` 21391 if test -z "$is_absolute_path"; then 21392 # Path to executable is not absolute. Find it. 21393 IFS_save="$IFS" 21394 IFS=: 21395 for p in $PATH; do 21396 if test -f "$p/$path" && test -x "$p/$path"; then 21397 new_path="$p/$path" 21398 break 21399 fi 21400 done 21401 IFS="$IFS_save" 21402 else 21403 # This is an absolute path, we can use it without further modifications. 21404 new_path="$path" 21405 fi 21406 21407 if test "x$new_path" = x; then 21408 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21409 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21410 has_space=`$ECHO "$complete" | $GREP " "` 21411 if test "x$has_space" != x; then 21412 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 21413 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 21414 fi 21415 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21416 fi 21417 fi 21418 21419 # Now join together the path and the arguments once again 21420 if test "x$arguments" != xEOL; then 21421 new_complete="$new_path ${arguments% *}" 21422 else 21423 new_complete="$new_path" 21424 fi 21425 21426 if test "x$complete" != "x$new_complete"; then 21427 FOUND_MAKE="$new_complete" 21428 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 21429 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 21430 fi 21431 fi 21432 21433 fi 21434 fi 21435 fi 21436 fi 21437 21438 if test "x$FOUND_MAKE" = x; then 21439 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5 21440 fi 21441 21442 fi 21443 21444 21445 MAKE=$FOUND_MAKE 21446 21447 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 21448 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 21449 21450 21451 # Check if make supports the output sync option and if so, setup using it. 21452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5 21453 $as_echo_n "checking if make --output-sync is supported... " >&6; } 21454 if $MAKE --version -O > /dev/null 2>&1; then 21455 OUTPUT_SYNC_SUPPORTED=true 21456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21457 $as_echo "yes" >&6; } 21458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5 21459 $as_echo_n "checking for output-sync value... " >&6; } 21460 21461 # Check whether --with-output-sync was given. 21462 if test "${with_output_sync+set}" = set; then : 21463 withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync 21464 fi 21465 21466 if test "x$OUTPUT_SYNC" = "x"; then 21467 OUTPUT_SYNC=none 21468 fi 21469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5 21470 $as_echo "$OUTPUT_SYNC" >&6; } 21471 if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then 21472 as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5 21473 fi 21474 else 21475 OUTPUT_SYNC_SUPPORTED=false 21476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21477 $as_echo "no" >&6; } 21478 fi 21479 21480 21481 21482 21483 21484 21485 # Test if find supports -delete 21486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 21487 $as_echo_n "checking if find supports -delete... " >&6; } 21488 FIND_DELETE="-delete" 21489 21490 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 21491 21492 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 21493 21494 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 21495 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 21496 # No, it does not. 21497 $RM $DELETEDIR/TestIfFindSupportsDelete 21498 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 21499 # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list 21500 FIND_DELETE="-print | $XARGS $RM" 21501 else 21502 FIND_DELETE="-exec $RM \{\} \+" 21503 fi 21504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21505 $as_echo "no" >&6; } 21506 else 21507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21508 $as_echo "yes" >&6; } 21509 fi 21510 $RMDIR $DELETEDIR 21511 21512 21513 21514 # Test which kind of tar was found 21515 if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then 21516 TAR_TYPE="gnu" 21517 elif test "x$($TAR --version | $GREP "bsdtar")" != "x"; then 21518 TAR_TYPE="bsd" 21519 elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then 21520 TAR_TYPE="bsd" 21521 elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 21522 TAR_TYPE="solaris" 21523 fi 21524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of tar was found" >&5 21525 $as_echo_n "checking what type of tar was found... " >&6; } 21526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_TYPE" >&5 21527 $as_echo "$TAR_TYPE" >&6; } 21528 21529 TAR_CREATE_FILE_PARAM="" 21530 21531 if test "x$TAR_TYPE" = "xgnu"; then 21532 TAR_INCLUDE_PARAM="T" 21533 TAR_SUPPORTS_TRANSFORM="true" 21534 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 21535 # When using gnu tar for Solaris targets, need to use compatibility mode 21536 TAR_CREATE_EXTRA_PARAM="--format=ustar" 21537 fi 21538 else 21539 TAR_INCLUDE_PARAM="I" 21540 TAR_SUPPORTS_TRANSFORM="false" 21541 fi 21542 21543 21544 21545 21546 21547 21548 # Test that grep supports -Fx with a list of pattern which includes null pattern. 21549 # This is a problem for the grep resident on AIX. 21550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly" >&5 21551 $as_echo_n "checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly... " >&6; } 21552 # Multiple subsequent spaces.. 21553 STACK_SPACES='aaa bbb ccc' 21554 # ..converted to subsequent newlines, causes STACK_LIST to be a list with some empty 21555 # patterns in it. 21556 STACK_LIST=${STACK_SPACES// /$'\n'} 21557 NEEDLE_SPACES='ccc bbb aaa' 21558 NEEDLE_LIST=${NEEDLE_SPACES// /$'\n'} 21559 RESULT="$($GREP -Fvx "$STACK_LIST" <<< "$NEEDLE_LIST")" 21560 if test "x$RESULT" == "x"; then 21561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21562 $as_echo "yes" >&6; } 21563 else 21564 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 21565 ADDINFO="Please make sure you use GNU grep, usually found at /opt/freeware/bin." 21566 fi 21567 as_fn_error $? "grep does not handle -Fx correctly. ${ADDINFO}" "$LINENO" 5 21568 fi 21569 21570 21571 # These tools might not be installed by default, 21572 # need hint on how to install them. 21573 21574 21575 21576 # Publish this variable in the help. 21577 21578 21579 if [ -z "${UNZIP+x}" ]; then 21580 # The variable is not set by user, try to locate tool using the code snippet 21581 for ac_prog in unzip 21582 do 21583 # Extract the first word of "$ac_prog", so it can be a program name with args. 21584 set dummy $ac_prog; ac_word=$2 21585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21586 $as_echo_n "checking for $ac_word... " >&6; } 21587 if ${ac_cv_path_UNZIP+:} false; then : 21588 $as_echo_n "(cached) " >&6 21589 else 21590 case $UNZIP in 21591 [\\/]* | ?:[\\/]*) 21592 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21593 ;; 21594 *) 21595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21596 for as_dir in $PATH 21597 do 21598 IFS=$as_save_IFS 21599 test -z "$as_dir" && as_dir=. 21600 for ac_exec_ext in '' $ac_executable_extensions; do 21601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21602 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21604 break 2 21605 fi 21606 done 21607 done 21608 IFS=$as_save_IFS 21609 21610 ;; 21611 esac 21612 fi 21613 UNZIP=$ac_cv_path_UNZIP 21614 if test -n "$UNZIP"; then 21615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21616 $as_echo "$UNZIP" >&6; } 21617 else 21618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21619 $as_echo "no" >&6; } 21620 fi 21621 21622 21623 test -n "$UNZIP" && break 21624 done 21625 21626 else 21627 # The variable is set, but is it from the command line or the environment? 21628 21629 # Try to remove the string !UNZIP! from our list. 21630 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 21631 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21632 # If it failed, the variable was not from the command line. Ignore it, 21633 # but warn the user (except for BASH, which is always set by the calling BASH). 21634 if test "xUNZIP" != xBASH; then 21635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 21636 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 21637 fi 21638 # Try to locate tool using the code snippet 21639 for ac_prog in unzip 21640 do 21641 # Extract the first word of "$ac_prog", so it can be a program name with args. 21642 set dummy $ac_prog; ac_word=$2 21643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21644 $as_echo_n "checking for $ac_word... " >&6; } 21645 if ${ac_cv_path_UNZIP+:} false; then : 21646 $as_echo_n "(cached) " >&6 21647 else 21648 case $UNZIP in 21649 [\\/]* | ?:[\\/]*) 21650 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21651 ;; 21652 *) 21653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21654 for as_dir in $PATH 21655 do 21656 IFS=$as_save_IFS 21657 test -z "$as_dir" && as_dir=. 21658 for ac_exec_ext in '' $ac_executable_extensions; do 21659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21660 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21662 break 2 21663 fi 21664 done 21665 done 21666 IFS=$as_save_IFS 21667 21668 ;; 21669 esac 21670 fi 21671 UNZIP=$ac_cv_path_UNZIP 21672 if test -n "$UNZIP"; then 21673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21674 $as_echo "$UNZIP" >&6; } 21675 else 21676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21677 $as_echo "no" >&6; } 21678 fi 21679 21680 21681 test -n "$UNZIP" && break 21682 done 21683 21684 else 21685 # If it succeeded, then it was overridden by the user. We will use it 21686 # for the tool. 21687 21688 # First remove it from the list of overridden variables, so we can test 21689 # for unknown variables in the end. 21690 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21691 21692 # Check if we try to supply an empty value 21693 if test "x$UNZIP" = x; then 21694 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5 21695 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;} 21696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 21697 $as_echo_n "checking for UNZIP... " >&6; } 21698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21699 $as_echo "disabled" >&6; } 21700 else 21701 # Check if the provided tool contains a complete path. 21702 tool_specified="$UNZIP" 21703 tool_basename="${tool_specified##*/}" 21704 if test "x$tool_basename" = "x$tool_specified"; then 21705 # A command without a complete path is provided, search $PATH. 21706 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 21707 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 21708 # Extract the first word of "$tool_basename", so it can be a program name with args. 21709 set dummy $tool_basename; ac_word=$2 21710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21711 $as_echo_n "checking for $ac_word... " >&6; } 21712 if ${ac_cv_path_UNZIP+:} false; then : 21713 $as_echo_n "(cached) " >&6 21714 else 21715 case $UNZIP in 21716 [\\/]* | ?:[\\/]*) 21717 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21718 ;; 21719 *) 21720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21721 for as_dir in $PATH 21722 do 21723 IFS=$as_save_IFS 21724 test -z "$as_dir" && as_dir=. 21725 for ac_exec_ext in '' $ac_executable_extensions; do 21726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21727 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21729 break 2 21730 fi 21731 done 21732 done 21733 IFS=$as_save_IFS 21734 21735 ;; 21736 esac 21737 fi 21738 UNZIP=$ac_cv_path_UNZIP 21739 if test -n "$UNZIP"; then 21740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21741 $as_echo "$UNZIP" >&6; } 21742 else 21743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21744 $as_echo "no" >&6; } 21745 fi 21746 21747 21748 if test "x$UNZIP" = x; then 21749 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21750 fi 21751 else 21752 # Otherwise we believe it is a complete path. Use it as it is. 21753 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 21754 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 21755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 21756 $as_echo_n "checking for UNZIP... " >&6; } 21757 if test ! -x "$tool_specified"; then 21758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21759 $as_echo "not found" >&6; } 21760 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 21761 fi 21762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21763 $as_echo "$tool_specified" >&6; } 21764 fi 21765 fi 21766 fi 21767 21768 fi 21769 21770 21771 21772 if test "x$UNZIP" = x; then 21773 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 21774 fi 21775 21776 21777 # Since zip uses "ZIP" as a environment variable for passing options, we need 21778 # to name our variable differently, hence ZIPEXE. 21779 21780 21781 21782 # Publish this variable in the help. 21783 21784 21785 if [ -z "${ZIPEXE+x}" ]; then 21786 # The variable is not set by user, try to locate tool using the code snippet 21787 for ac_prog in zip 21788 do 21789 # Extract the first word of "$ac_prog", so it can be a program name with args. 21790 set dummy $ac_prog; ac_word=$2 21791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21792 $as_echo_n "checking for $ac_word... " >&6; } 21793 if ${ac_cv_path_ZIPEXE+:} false; then : 21794 $as_echo_n "(cached) " >&6 21795 else 21796 case $ZIPEXE in 21797 [\\/]* | ?:[\\/]*) 21798 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21799 ;; 21800 *) 21801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21802 for as_dir in $PATH 21803 do 21804 IFS=$as_save_IFS 21805 test -z "$as_dir" && as_dir=. 21806 for ac_exec_ext in '' $ac_executable_extensions; do 21807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21808 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21810 break 2 21811 fi 21812 done 21813 done 21814 IFS=$as_save_IFS 21815 21816 ;; 21817 esac 21818 fi 21819 ZIPEXE=$ac_cv_path_ZIPEXE 21820 if test -n "$ZIPEXE"; then 21821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21822 $as_echo "$ZIPEXE" >&6; } 21823 else 21824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21825 $as_echo "no" >&6; } 21826 fi 21827 21828 21829 test -n "$ZIPEXE" && break 21830 done 21831 21832 else 21833 # The variable is set, but is it from the command line or the environment? 21834 21835 # Try to remove the string !ZIPEXE! from our list. 21836 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIPEXE!/} 21837 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21838 # If it failed, the variable was not from the command line. Ignore it, 21839 # but warn the user (except for BASH, which is always set by the calling BASH). 21840 if test "xZIPEXE" != xBASH; then 21841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&5 21842 $as_echo "$as_me: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&2;} 21843 fi 21844 # Try to locate tool using the code snippet 21845 for ac_prog in zip 21846 do 21847 # Extract the first word of "$ac_prog", so it can be a program name with args. 21848 set dummy $ac_prog; ac_word=$2 21849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21850 $as_echo_n "checking for $ac_word... " >&6; } 21851 if ${ac_cv_path_ZIPEXE+:} false; then : 21852 $as_echo_n "(cached) " >&6 21853 else 21854 case $ZIPEXE in 21855 [\\/]* | ?:[\\/]*) 21856 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21857 ;; 21858 *) 21859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21860 for as_dir in $PATH 21861 do 21862 IFS=$as_save_IFS 21863 test -z "$as_dir" && as_dir=. 21864 for ac_exec_ext in '' $ac_executable_extensions; do 21865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21866 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21868 break 2 21869 fi 21870 done 21871 done 21872 IFS=$as_save_IFS 21873 21874 ;; 21875 esac 21876 fi 21877 ZIPEXE=$ac_cv_path_ZIPEXE 21878 if test -n "$ZIPEXE"; then 21879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21880 $as_echo "$ZIPEXE" >&6; } 21881 else 21882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21883 $as_echo "no" >&6; } 21884 fi 21885 21886 21887 test -n "$ZIPEXE" && break 21888 done 21889 21890 else 21891 # If it succeeded, then it was overridden by the user. We will use it 21892 # for the tool. 21893 21894 # First remove it from the list of overridden variables, so we can test 21895 # for unknown variables in the end. 21896 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21897 21898 # Check if we try to supply an empty value 21899 if test "x$ZIPEXE" = x; then 21900 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIPEXE= (no value)" >&5 21901 $as_echo "$as_me: Setting user supplied tool ZIPEXE= (no value)" >&6;} 21902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5 21903 $as_echo_n "checking for ZIPEXE... " >&6; } 21904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21905 $as_echo "disabled" >&6; } 21906 else 21907 # Check if the provided tool contains a complete path. 21908 tool_specified="$ZIPEXE" 21909 tool_basename="${tool_specified##*/}" 21910 if test "x$tool_basename" = "x$tool_specified"; then 21911 # A command without a complete path is provided, search $PATH. 21912 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIPEXE=$tool_basename" >&5 21913 $as_echo "$as_me: Will search for user supplied tool ZIPEXE=$tool_basename" >&6;} 21914 # Extract the first word of "$tool_basename", so it can be a program name with args. 21915 set dummy $tool_basename; ac_word=$2 21916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21917 $as_echo_n "checking for $ac_word... " >&6; } 21918 if ${ac_cv_path_ZIPEXE+:} false; then : 21919 $as_echo_n "(cached) " >&6 21920 else 21921 case $ZIPEXE in 21922 [\\/]* | ?:[\\/]*) 21923 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21924 ;; 21925 *) 21926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21927 for as_dir in $PATH 21928 do 21929 IFS=$as_save_IFS 21930 test -z "$as_dir" && as_dir=. 21931 for ac_exec_ext in '' $ac_executable_extensions; do 21932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21933 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21935 break 2 21936 fi 21937 done 21938 done 21939 IFS=$as_save_IFS 21940 21941 ;; 21942 esac 21943 fi 21944 ZIPEXE=$ac_cv_path_ZIPEXE 21945 if test -n "$ZIPEXE"; then 21946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21947 $as_echo "$ZIPEXE" >&6; } 21948 else 21949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21950 $as_echo "no" >&6; } 21951 fi 21952 21953 21954 if test "x$ZIPEXE" = x; then 21955 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21956 fi 21957 else 21958 # Otherwise we believe it is a complete path. Use it as it is. 21959 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIPEXE=$tool_specified" >&5 21960 $as_echo "$as_me: Will use user supplied tool ZIPEXE=$tool_specified" >&6;} 21961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5 21962 $as_echo_n "checking for ZIPEXE... " >&6; } 21963 if test ! -x "$tool_specified"; then 21964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21965 $as_echo "not found" >&6; } 21966 as_fn_error $? "User supplied tool ZIPEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 21967 fi 21968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21969 $as_echo "$tool_specified" >&6; } 21970 fi 21971 fi 21972 fi 21973 21974 fi 21975 21976 21977 21978 if test "x$ZIPEXE" = x; then 21979 as_fn_error $? "Could not find required tool for ZIPEXE" "$LINENO" 5 21980 fi 21981 21982 21983 21984 # Non-required basic tools 21985 21986 21987 21988 # Publish this variable in the help. 21989 21990 21991 if [ -z "${LDD+x}" ]; then 21992 # The variable is not set by user, try to locate tool using the code snippet 21993 for ac_prog in ldd 21994 do 21995 # Extract the first word of "$ac_prog", so it can be a program name with args. 21996 set dummy $ac_prog; ac_word=$2 21997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21998 $as_echo_n "checking for $ac_word... " >&6; } 21999 if ${ac_cv_path_LDD+:} false; then : 22000 $as_echo_n "(cached) " >&6 22001 else 22002 case $LDD in 22003 [\\/]* | ?:[\\/]*) 22004 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 22005 ;; 22006 *) 22007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22008 for as_dir in $PATH 22009 do 22010 IFS=$as_save_IFS 22011 test -z "$as_dir" && as_dir=. 22012 for ac_exec_ext in '' $ac_executable_extensions; do 22013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22014 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 22015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22016 break 2 22017 fi 22018 done 22019 done 22020 IFS=$as_save_IFS 22021 22022 ;; 22023 esac 22024 fi 22025 LDD=$ac_cv_path_LDD 22026 if test -n "$LDD"; then 22027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 22028 $as_echo "$LDD" >&6; } 22029 else 22030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22031 $as_echo "no" >&6; } 22032 fi 22033 22034 22035 test -n "$LDD" && break 22036 done 22037 22038 else 22039 # The variable is set, but is it from the command line or the environment? 22040 22041 # Try to remove the string !LDD! from our list. 22042 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 22043 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22044 # If it failed, the variable was not from the command line. Ignore it, 22045 # but warn the user (except for BASH, which is always set by the calling BASH). 22046 if test "xLDD" != xBASH; then 22047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 22048 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 22049 fi 22050 # Try to locate tool using the code snippet 22051 for ac_prog in ldd 22052 do 22053 # Extract the first word of "$ac_prog", so it can be a program name with args. 22054 set dummy $ac_prog; ac_word=$2 22055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22056 $as_echo_n "checking for $ac_word... " >&6; } 22057 if ${ac_cv_path_LDD+:} false; then : 22058 $as_echo_n "(cached) " >&6 22059 else 22060 case $LDD in 22061 [\\/]* | ?:[\\/]*) 22062 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 22063 ;; 22064 *) 22065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22066 for as_dir in $PATH 22067 do 22068 IFS=$as_save_IFS 22069 test -z "$as_dir" && as_dir=. 22070 for ac_exec_ext in '' $ac_executable_extensions; do 22071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22072 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 22073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22074 break 2 22075 fi 22076 done 22077 done 22078 IFS=$as_save_IFS 22079 22080 ;; 22081 esac 22082 fi 22083 LDD=$ac_cv_path_LDD 22084 if test -n "$LDD"; then 22085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 22086 $as_echo "$LDD" >&6; } 22087 else 22088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22089 $as_echo "no" >&6; } 22090 fi 22091 22092 22093 test -n "$LDD" && break 22094 done 22095 22096 else 22097 # If it succeeded, then it was overridden by the user. We will use it 22098 # for the tool. 22099 22100 # First remove it from the list of overridden variables, so we can test 22101 # for unknown variables in the end. 22102 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22103 22104 # Check if we try to supply an empty value 22105 if test "x$LDD" = x; then 22106 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5 22107 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;} 22108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 22109 $as_echo_n "checking for LDD... " >&6; } 22110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22111 $as_echo "disabled" >&6; } 22112 else 22113 # Check if the provided tool contains a complete path. 22114 tool_specified="$LDD" 22115 tool_basename="${tool_specified##*/}" 22116 if test "x$tool_basename" = "x$tool_specified"; then 22117 # A command without a complete path is provided, search $PATH. 22118 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 22119 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 22120 # Extract the first word of "$tool_basename", so it can be a program name with args. 22121 set dummy $tool_basename; ac_word=$2 22122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22123 $as_echo_n "checking for $ac_word... " >&6; } 22124 if ${ac_cv_path_LDD+:} false; then : 22125 $as_echo_n "(cached) " >&6 22126 else 22127 case $LDD in 22128 [\\/]* | ?:[\\/]*) 22129 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 22130 ;; 22131 *) 22132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22133 for as_dir in $PATH 22134 do 22135 IFS=$as_save_IFS 22136 test -z "$as_dir" && as_dir=. 22137 for ac_exec_ext in '' $ac_executable_extensions; do 22138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22139 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 22140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22141 break 2 22142 fi 22143 done 22144 done 22145 IFS=$as_save_IFS 22146 22147 ;; 22148 esac 22149 fi 22150 LDD=$ac_cv_path_LDD 22151 if test -n "$LDD"; then 22152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 22153 $as_echo "$LDD" >&6; } 22154 else 22155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22156 $as_echo "no" >&6; } 22157 fi 22158 22159 22160 if test "x$LDD" = x; then 22161 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22162 fi 22163 else 22164 # Otherwise we believe it is a complete path. Use it as it is. 22165 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 22166 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 22167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 22168 $as_echo_n "checking for LDD... " >&6; } 22169 if test ! -x "$tool_specified"; then 22170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22171 $as_echo "not found" >&6; } 22172 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 22173 fi 22174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22175 $as_echo "$tool_specified" >&6; } 22176 fi 22177 fi 22178 fi 22179 22180 fi 22181 22182 22183 if test "x$LDD" = "x"; then 22184 # List shared lib dependencies is used for 22185 # debug output and checking for forbidden dependencies. 22186 # We can build without it. 22187 LDD="true" 22188 fi 22189 22190 22191 # Publish this variable in the help. 22192 22193 22194 if [ -z "${OTOOL+x}" ]; then 22195 # The variable is not set by user, try to locate tool using the code snippet 22196 for ac_prog in otool 22197 do 22198 # Extract the first word of "$ac_prog", so it can be a program name with args. 22199 set dummy $ac_prog; ac_word=$2 22200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22201 $as_echo_n "checking for $ac_word... " >&6; } 22202 if ${ac_cv_path_OTOOL+:} false; then : 22203 $as_echo_n "(cached) " >&6 22204 else 22205 case $OTOOL in 22206 [\\/]* | ?:[\\/]*) 22207 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 22208 ;; 22209 *) 22210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22211 for as_dir in $PATH 22212 do 22213 IFS=$as_save_IFS 22214 test -z "$as_dir" && as_dir=. 22215 for ac_exec_ext in '' $ac_executable_extensions; do 22216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22217 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 22218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22219 break 2 22220 fi 22221 done 22222 done 22223 IFS=$as_save_IFS 22224 22225 ;; 22226 esac 22227 fi 22228 OTOOL=$ac_cv_path_OTOOL 22229 if test -n "$OTOOL"; then 22230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 22231 $as_echo "$OTOOL" >&6; } 22232 else 22233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22234 $as_echo "no" >&6; } 22235 fi 22236 22237 22238 test -n "$OTOOL" && break 22239 done 22240 22241 else 22242 # The variable is set, but is it from the command line or the environment? 22243 22244 # Try to remove the string !OTOOL! from our list. 22245 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 22246 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22247 # If it failed, the variable was not from the command line. Ignore it, 22248 # but warn the user (except for BASH, which is always set by the calling BASH). 22249 if test "xOTOOL" != xBASH; then 22250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 22251 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 22252 fi 22253 # Try to locate tool using the code snippet 22254 for ac_prog in otool 22255 do 22256 # Extract the first word of "$ac_prog", so it can be a program name with args. 22257 set dummy $ac_prog; ac_word=$2 22258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22259 $as_echo_n "checking for $ac_word... " >&6; } 22260 if ${ac_cv_path_OTOOL+:} false; then : 22261 $as_echo_n "(cached) " >&6 22262 else 22263 case $OTOOL in 22264 [\\/]* | ?:[\\/]*) 22265 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 22266 ;; 22267 *) 22268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22269 for as_dir in $PATH 22270 do 22271 IFS=$as_save_IFS 22272 test -z "$as_dir" && as_dir=. 22273 for ac_exec_ext in '' $ac_executable_extensions; do 22274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22275 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 22276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22277 break 2 22278 fi 22279 done 22280 done 22281 IFS=$as_save_IFS 22282 22283 ;; 22284 esac 22285 fi 22286 OTOOL=$ac_cv_path_OTOOL 22287 if test -n "$OTOOL"; then 22288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 22289 $as_echo "$OTOOL" >&6; } 22290 else 22291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22292 $as_echo "no" >&6; } 22293 fi 22294 22295 22296 test -n "$OTOOL" && break 22297 done 22298 22299 else 22300 # If it succeeded, then it was overridden by the user. We will use it 22301 # for the tool. 22302 22303 # First remove it from the list of overridden variables, so we can test 22304 # for unknown variables in the end. 22305 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22306 22307 # Check if we try to supply an empty value 22308 if test "x$OTOOL" = x; then 22309 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5 22310 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;} 22311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 22312 $as_echo_n "checking for OTOOL... " >&6; } 22313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22314 $as_echo "disabled" >&6; } 22315 else 22316 # Check if the provided tool contains a complete path. 22317 tool_specified="$OTOOL" 22318 tool_basename="${tool_specified##*/}" 22319 if test "x$tool_basename" = "x$tool_specified"; then 22320 # A command without a complete path is provided, search $PATH. 22321 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 22322 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 22323 # Extract the first word of "$tool_basename", so it can be a program name with args. 22324 set dummy $tool_basename; ac_word=$2 22325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22326 $as_echo_n "checking for $ac_word... " >&6; } 22327 if ${ac_cv_path_OTOOL+:} false; then : 22328 $as_echo_n "(cached) " >&6 22329 else 22330 case $OTOOL in 22331 [\\/]* | ?:[\\/]*) 22332 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 22333 ;; 22334 *) 22335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22336 for as_dir in $PATH 22337 do 22338 IFS=$as_save_IFS 22339 test -z "$as_dir" && as_dir=. 22340 for ac_exec_ext in '' $ac_executable_extensions; do 22341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22342 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 22343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22344 break 2 22345 fi 22346 done 22347 done 22348 IFS=$as_save_IFS 22349 22350 ;; 22351 esac 22352 fi 22353 OTOOL=$ac_cv_path_OTOOL 22354 if test -n "$OTOOL"; then 22355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 22356 $as_echo "$OTOOL" >&6; } 22357 else 22358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22359 $as_echo "no" >&6; } 22360 fi 22361 22362 22363 if test "x$OTOOL" = x; then 22364 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22365 fi 22366 else 22367 # Otherwise we believe it is a complete path. Use it as it is. 22368 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 22369 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 22370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 22371 $as_echo_n "checking for OTOOL... " >&6; } 22372 if test ! -x "$tool_specified"; then 22373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22374 $as_echo "not found" >&6; } 22375 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 22376 fi 22377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22378 $as_echo "$tool_specified" >&6; } 22379 fi 22380 fi 22381 fi 22382 22383 fi 22384 22385 22386 if test "x$OTOOL" = "x"; then 22387 OTOOL="true" 22388 fi 22389 22390 22391 # Publish this variable in the help. 22392 22393 22394 if [ -z "${READELF+x}" ]; then 22395 # The variable is not set by user, try to locate tool using the code snippet 22396 for ac_prog in greadelf readelf 22397 do 22398 # Extract the first word of "$ac_prog", so it can be a program name with args. 22399 set dummy $ac_prog; ac_word=$2 22400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22401 $as_echo_n "checking for $ac_word... " >&6; } 22402 if ${ac_cv_path_READELF+:} false; then : 22403 $as_echo_n "(cached) " >&6 22404 else 22405 case $READELF in 22406 [\\/]* | ?:[\\/]*) 22407 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22408 ;; 22409 *) 22410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22411 for as_dir in $PATH 22412 do 22413 IFS=$as_save_IFS 22414 test -z "$as_dir" && as_dir=. 22415 for ac_exec_ext in '' $ac_executable_extensions; do 22416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22417 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22419 break 2 22420 fi 22421 done 22422 done 22423 IFS=$as_save_IFS 22424 22425 ;; 22426 esac 22427 fi 22428 READELF=$ac_cv_path_READELF 22429 if test -n "$READELF"; then 22430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22431 $as_echo "$READELF" >&6; } 22432 else 22433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22434 $as_echo "no" >&6; } 22435 fi 22436 22437 22438 test -n "$READELF" && break 22439 done 22440 22441 else 22442 # The variable is set, but is it from the command line or the environment? 22443 22444 # Try to remove the string !READELF! from our list. 22445 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 22446 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22447 # If it failed, the variable was not from the command line. Ignore it, 22448 # but warn the user (except for BASH, which is always set by the calling BASH). 22449 if test "xREADELF" != xBASH; then 22450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 22451 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 22452 fi 22453 # Try to locate tool using the code snippet 22454 for ac_prog in greadelf readelf 22455 do 22456 # Extract the first word of "$ac_prog", so it can be a program name with args. 22457 set dummy $ac_prog; ac_word=$2 22458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22459 $as_echo_n "checking for $ac_word... " >&6; } 22460 if ${ac_cv_path_READELF+:} false; then : 22461 $as_echo_n "(cached) " >&6 22462 else 22463 case $READELF in 22464 [\\/]* | ?:[\\/]*) 22465 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22466 ;; 22467 *) 22468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22469 for as_dir in $PATH 22470 do 22471 IFS=$as_save_IFS 22472 test -z "$as_dir" && as_dir=. 22473 for ac_exec_ext in '' $ac_executable_extensions; do 22474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22475 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22477 break 2 22478 fi 22479 done 22480 done 22481 IFS=$as_save_IFS 22482 22483 ;; 22484 esac 22485 fi 22486 READELF=$ac_cv_path_READELF 22487 if test -n "$READELF"; then 22488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22489 $as_echo "$READELF" >&6; } 22490 else 22491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22492 $as_echo "no" >&6; } 22493 fi 22494 22495 22496 test -n "$READELF" && break 22497 done 22498 22499 else 22500 # If it succeeded, then it was overridden by the user. We will use it 22501 # for the tool. 22502 22503 # First remove it from the list of overridden variables, so we can test 22504 # for unknown variables in the end. 22505 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22506 22507 # Check if we try to supply an empty value 22508 if test "x$READELF" = x; then 22509 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5 22510 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;} 22511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 22512 $as_echo_n "checking for READELF... " >&6; } 22513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22514 $as_echo "disabled" >&6; } 22515 else 22516 # Check if the provided tool contains a complete path. 22517 tool_specified="$READELF" 22518 tool_basename="${tool_specified##*/}" 22519 if test "x$tool_basename" = "x$tool_specified"; then 22520 # A command without a complete path is provided, search $PATH. 22521 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 22522 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 22523 # Extract the first word of "$tool_basename", so it can be a program name with args. 22524 set dummy $tool_basename; ac_word=$2 22525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22526 $as_echo_n "checking for $ac_word... " >&6; } 22527 if ${ac_cv_path_READELF+:} false; then : 22528 $as_echo_n "(cached) " >&6 22529 else 22530 case $READELF in 22531 [\\/]* | ?:[\\/]*) 22532 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22533 ;; 22534 *) 22535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22536 for as_dir in $PATH 22537 do 22538 IFS=$as_save_IFS 22539 test -z "$as_dir" && as_dir=. 22540 for ac_exec_ext in '' $ac_executable_extensions; do 22541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22542 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22544 break 2 22545 fi 22546 done 22547 done 22548 IFS=$as_save_IFS 22549 22550 ;; 22551 esac 22552 fi 22553 READELF=$ac_cv_path_READELF 22554 if test -n "$READELF"; then 22555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22556 $as_echo "$READELF" >&6; } 22557 else 22558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22559 $as_echo "no" >&6; } 22560 fi 22561 22562 22563 if test "x$READELF" = x; then 22564 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22565 fi 22566 else 22567 # Otherwise we believe it is a complete path. Use it as it is. 22568 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 22569 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 22570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 22571 $as_echo_n "checking for READELF... " >&6; } 22572 if test ! -x "$tool_specified"; then 22573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22574 $as_echo "not found" >&6; } 22575 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 22576 fi 22577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22578 $as_echo "$tool_specified" >&6; } 22579 fi 22580 fi 22581 fi 22582 22583 fi 22584 22585 22586 22587 22588 # Publish this variable in the help. 22589 22590 22591 if [ -z "${DOT+x}" ]; then 22592 # The variable is not set by user, try to locate tool using the code snippet 22593 for ac_prog in dot 22594 do 22595 # Extract the first word of "$ac_prog", so it can be a program name with args. 22596 set dummy $ac_prog; ac_word=$2 22597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22598 $as_echo_n "checking for $ac_word... " >&6; } 22599 if ${ac_cv_path_DOT+:} false; then : 22600 $as_echo_n "(cached) " >&6 22601 else 22602 case $DOT in 22603 [\\/]* | ?:[\\/]*) 22604 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 22605 ;; 22606 *) 22607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22608 for as_dir in $PATH 22609 do 22610 IFS=$as_save_IFS 22611 test -z "$as_dir" && as_dir=. 22612 for ac_exec_ext in '' $ac_executable_extensions; do 22613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22614 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 22615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22616 break 2 22617 fi 22618 done 22619 done 22620 IFS=$as_save_IFS 22621 22622 ;; 22623 esac 22624 fi 22625 DOT=$ac_cv_path_DOT 22626 if test -n "$DOT"; then 22627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 22628 $as_echo "$DOT" >&6; } 22629 else 22630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22631 $as_echo "no" >&6; } 22632 fi 22633 22634 22635 test -n "$DOT" && break 22636 done 22637 22638 else 22639 # The variable is set, but is it from the command line or the environment? 22640 22641 # Try to remove the string !DOT! from our list. 22642 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DOT!/} 22643 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22644 # If it failed, the variable was not from the command line. Ignore it, 22645 # but warn the user (except for BASH, which is always set by the calling BASH). 22646 if test "xDOT" != xBASH; then 22647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&5 22648 $as_echo "$as_me: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&2;} 22649 fi 22650 # Try to locate tool using the code snippet 22651 for ac_prog in dot 22652 do 22653 # Extract the first word of "$ac_prog", so it can be a program name with args. 22654 set dummy $ac_prog; ac_word=$2 22655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22656 $as_echo_n "checking for $ac_word... " >&6; } 22657 if ${ac_cv_path_DOT+:} false; then : 22658 $as_echo_n "(cached) " >&6 22659 else 22660 case $DOT in 22661 [\\/]* | ?:[\\/]*) 22662 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 22663 ;; 22664 *) 22665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22666 for as_dir in $PATH 22667 do 22668 IFS=$as_save_IFS 22669 test -z "$as_dir" && as_dir=. 22670 for ac_exec_ext in '' $ac_executable_extensions; do 22671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22672 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 22673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22674 break 2 22675 fi 22676 done 22677 done 22678 IFS=$as_save_IFS 22679 22680 ;; 22681 esac 22682 fi 22683 DOT=$ac_cv_path_DOT 22684 if test -n "$DOT"; then 22685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 22686 $as_echo "$DOT" >&6; } 22687 else 22688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22689 $as_echo "no" >&6; } 22690 fi 22691 22692 22693 test -n "$DOT" && break 22694 done 22695 22696 else 22697 # If it succeeded, then it was overridden by the user. We will use it 22698 # for the tool. 22699 22700 # First remove it from the list of overridden variables, so we can test 22701 # for unknown variables in the end. 22702 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22703 22704 # Check if we try to supply an empty value 22705 if test "x$DOT" = x; then 22706 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DOT= (no value)" >&5 22707 $as_echo "$as_me: Setting user supplied tool DOT= (no value)" >&6;} 22708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5 22709 $as_echo_n "checking for DOT... " >&6; } 22710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22711 $as_echo "disabled" >&6; } 22712 else 22713 # Check if the provided tool contains a complete path. 22714 tool_specified="$DOT" 22715 tool_basename="${tool_specified##*/}" 22716 if test "x$tool_basename" = "x$tool_specified"; then 22717 # A command without a complete path is provided, search $PATH. 22718 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DOT=$tool_basename" >&5 22719 $as_echo "$as_me: Will search for user supplied tool DOT=$tool_basename" >&6;} 22720 # Extract the first word of "$tool_basename", so it can be a program name with args. 22721 set dummy $tool_basename; ac_word=$2 22722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22723 $as_echo_n "checking for $ac_word... " >&6; } 22724 if ${ac_cv_path_DOT+:} false; then : 22725 $as_echo_n "(cached) " >&6 22726 else 22727 case $DOT in 22728 [\\/]* | ?:[\\/]*) 22729 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 22730 ;; 22731 *) 22732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22733 for as_dir in $PATH 22734 do 22735 IFS=$as_save_IFS 22736 test -z "$as_dir" && as_dir=. 22737 for ac_exec_ext in '' $ac_executable_extensions; do 22738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22739 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 22740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22741 break 2 22742 fi 22743 done 22744 done 22745 IFS=$as_save_IFS 22746 22747 ;; 22748 esac 22749 fi 22750 DOT=$ac_cv_path_DOT 22751 if test -n "$DOT"; then 22752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 22753 $as_echo "$DOT" >&6; } 22754 else 22755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22756 $as_echo "no" >&6; } 22757 fi 22758 22759 22760 if test "x$DOT" = x; then 22761 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22762 fi 22763 else 22764 # Otherwise we believe it is a complete path. Use it as it is. 22765 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DOT=$tool_specified" >&5 22766 $as_echo "$as_me: Will use user supplied tool DOT=$tool_specified" >&6;} 22767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5 22768 $as_echo_n "checking for DOT... " >&6; } 22769 if test ! -x "$tool_specified"; then 22770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22771 $as_echo "not found" >&6; } 22772 as_fn_error $? "User supplied tool DOT=$tool_specified does not exist or is not executable" "$LINENO" 5 22773 fi 22774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22775 $as_echo "$tool_specified" >&6; } 22776 fi 22777 fi 22778 fi 22779 22780 fi 22781 22782 22783 22784 22785 # Publish this variable in the help. 22786 22787 22788 if [ -z "${HG+x}" ]; then 22789 # The variable is not set by user, try to locate tool using the code snippet 22790 for ac_prog in hg 22791 do 22792 # Extract the first word of "$ac_prog", so it can be a program name with args. 22793 set dummy $ac_prog; ac_word=$2 22794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22795 $as_echo_n "checking for $ac_word... " >&6; } 22796 if ${ac_cv_path_HG+:} false; then : 22797 $as_echo_n "(cached) " >&6 22798 else 22799 case $HG in 22800 [\\/]* | ?:[\\/]*) 22801 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22802 ;; 22803 *) 22804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22805 for as_dir in $PATH 22806 do 22807 IFS=$as_save_IFS 22808 test -z "$as_dir" && as_dir=. 22809 for ac_exec_ext in '' $ac_executable_extensions; do 22810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22811 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22813 break 2 22814 fi 22815 done 22816 done 22817 IFS=$as_save_IFS 22818 22819 ;; 22820 esac 22821 fi 22822 HG=$ac_cv_path_HG 22823 if test -n "$HG"; then 22824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22825 $as_echo "$HG" >&6; } 22826 else 22827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22828 $as_echo "no" >&6; } 22829 fi 22830 22831 22832 test -n "$HG" && break 22833 done 22834 22835 else 22836 # The variable is set, but is it from the command line or the environment? 22837 22838 # Try to remove the string !HG! from our list. 22839 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 22840 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22841 # If it failed, the variable was not from the command line. Ignore it, 22842 # but warn the user (except for BASH, which is always set by the calling BASH). 22843 if test "xHG" != xBASH; then 22844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 22845 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 22846 fi 22847 # Try to locate tool using the code snippet 22848 for ac_prog in hg 22849 do 22850 # Extract the first word of "$ac_prog", so it can be a program name with args. 22851 set dummy $ac_prog; ac_word=$2 22852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22853 $as_echo_n "checking for $ac_word... " >&6; } 22854 if ${ac_cv_path_HG+:} false; then : 22855 $as_echo_n "(cached) " >&6 22856 else 22857 case $HG in 22858 [\\/]* | ?:[\\/]*) 22859 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22860 ;; 22861 *) 22862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22863 for as_dir in $PATH 22864 do 22865 IFS=$as_save_IFS 22866 test -z "$as_dir" && as_dir=. 22867 for ac_exec_ext in '' $ac_executable_extensions; do 22868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22869 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22871 break 2 22872 fi 22873 done 22874 done 22875 IFS=$as_save_IFS 22876 22877 ;; 22878 esac 22879 fi 22880 HG=$ac_cv_path_HG 22881 if test -n "$HG"; then 22882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22883 $as_echo "$HG" >&6; } 22884 else 22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22886 $as_echo "no" >&6; } 22887 fi 22888 22889 22890 test -n "$HG" && break 22891 done 22892 22893 else 22894 # If it succeeded, then it was overridden by the user. We will use it 22895 # for the tool. 22896 22897 # First remove it from the list of overridden variables, so we can test 22898 # for unknown variables in the end. 22899 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22900 22901 # Check if we try to supply an empty value 22902 if test "x$HG" = x; then 22903 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5 22904 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;} 22905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 22906 $as_echo_n "checking for HG... " >&6; } 22907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22908 $as_echo "disabled" >&6; } 22909 else 22910 # Check if the provided tool contains a complete path. 22911 tool_specified="$HG" 22912 tool_basename="${tool_specified##*/}" 22913 if test "x$tool_basename" = "x$tool_specified"; then 22914 # A command without a complete path is provided, search $PATH. 22915 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 22916 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 22917 # Extract the first word of "$tool_basename", so it can be a program name with args. 22918 set dummy $tool_basename; ac_word=$2 22919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22920 $as_echo_n "checking for $ac_word... " >&6; } 22921 if ${ac_cv_path_HG+:} false; then : 22922 $as_echo_n "(cached) " >&6 22923 else 22924 case $HG in 22925 [\\/]* | ?:[\\/]*) 22926 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22927 ;; 22928 *) 22929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22930 for as_dir in $PATH 22931 do 22932 IFS=$as_save_IFS 22933 test -z "$as_dir" && as_dir=. 22934 for ac_exec_ext in '' $ac_executable_extensions; do 22935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22936 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22938 break 2 22939 fi 22940 done 22941 done 22942 IFS=$as_save_IFS 22943 22944 ;; 22945 esac 22946 fi 22947 HG=$ac_cv_path_HG 22948 if test -n "$HG"; then 22949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22950 $as_echo "$HG" >&6; } 22951 else 22952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22953 $as_echo "no" >&6; } 22954 fi 22955 22956 22957 if test "x$HG" = x; then 22958 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22959 fi 22960 else 22961 # Otherwise we believe it is a complete path. Use it as it is. 22962 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 22963 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 22964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 22965 $as_echo_n "checking for HG... " >&6; } 22966 if test ! -x "$tool_specified"; then 22967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22968 $as_echo "not found" >&6; } 22969 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 22970 fi 22971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22972 $as_echo "$tool_specified" >&6; } 22973 fi 22974 fi 22975 fi 22976 22977 fi 22978 22979 22980 22981 22982 # Publish this variable in the help. 22983 22984 22985 if [ -z "${STAT+x}" ]; then 22986 # The variable is not set by user, try to locate tool using the code snippet 22987 for ac_prog in stat 22988 do 22989 # Extract the first word of "$ac_prog", so it can be a program name with args. 22990 set dummy $ac_prog; ac_word=$2 22991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22992 $as_echo_n "checking for $ac_word... " >&6; } 22993 if ${ac_cv_path_STAT+:} false; then : 22994 $as_echo_n "(cached) " >&6 22995 else 22996 case $STAT in 22997 [\\/]* | ?:[\\/]*) 22998 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22999 ;; 23000 *) 23001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23002 for as_dir in $PATH 23003 do 23004 IFS=$as_save_IFS 23005 test -z "$as_dir" && as_dir=. 23006 for ac_exec_ext in '' $ac_executable_extensions; do 23007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23008 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 23009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23010 break 2 23011 fi 23012 done 23013 done 23014 IFS=$as_save_IFS 23015 23016 ;; 23017 esac 23018 fi 23019 STAT=$ac_cv_path_STAT 23020 if test -n "$STAT"; then 23021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 23022 $as_echo "$STAT" >&6; } 23023 else 23024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23025 $as_echo "no" >&6; } 23026 fi 23027 23028 23029 test -n "$STAT" && break 23030 done 23031 23032 else 23033 # The variable is set, but is it from the command line or the environment? 23034 23035 # Try to remove the string !STAT! from our list. 23036 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 23037 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23038 # If it failed, the variable was not from the command line. Ignore it, 23039 # but warn the user (except for BASH, which is always set by the calling BASH). 23040 if test "xSTAT" != xBASH; then 23041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 23042 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 23043 fi 23044 # Try to locate tool using the code snippet 23045 for ac_prog in stat 23046 do 23047 # Extract the first word of "$ac_prog", so it can be a program name with args. 23048 set dummy $ac_prog; ac_word=$2 23049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23050 $as_echo_n "checking for $ac_word... " >&6; } 23051 if ${ac_cv_path_STAT+:} false; then : 23052 $as_echo_n "(cached) " >&6 23053 else 23054 case $STAT in 23055 [\\/]* | ?:[\\/]*) 23056 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 23057 ;; 23058 *) 23059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23060 for as_dir in $PATH 23061 do 23062 IFS=$as_save_IFS 23063 test -z "$as_dir" && as_dir=. 23064 for ac_exec_ext in '' $ac_executable_extensions; do 23065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23066 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 23067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23068 break 2 23069 fi 23070 done 23071 done 23072 IFS=$as_save_IFS 23073 23074 ;; 23075 esac 23076 fi 23077 STAT=$ac_cv_path_STAT 23078 if test -n "$STAT"; then 23079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 23080 $as_echo "$STAT" >&6; } 23081 else 23082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23083 $as_echo "no" >&6; } 23084 fi 23085 23086 23087 test -n "$STAT" && break 23088 done 23089 23090 else 23091 # If it succeeded, then it was overridden by the user. We will use it 23092 # for the tool. 23093 23094 # First remove it from the list of overridden variables, so we can test 23095 # for unknown variables in the end. 23096 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23097 23098 # Check if we try to supply an empty value 23099 if test "x$STAT" = x; then 23100 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5 23101 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;} 23102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 23103 $as_echo_n "checking for STAT... " >&6; } 23104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23105 $as_echo "disabled" >&6; } 23106 else 23107 # Check if the provided tool contains a complete path. 23108 tool_specified="$STAT" 23109 tool_basename="${tool_specified##*/}" 23110 if test "x$tool_basename" = "x$tool_specified"; then 23111 # A command without a complete path is provided, search $PATH. 23112 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 23113 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 23114 # Extract the first word of "$tool_basename", so it can be a program name with args. 23115 set dummy $tool_basename; ac_word=$2 23116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23117 $as_echo_n "checking for $ac_word... " >&6; } 23118 if ${ac_cv_path_STAT+:} false; then : 23119 $as_echo_n "(cached) " >&6 23120 else 23121 case $STAT in 23122 [\\/]* | ?:[\\/]*) 23123 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 23124 ;; 23125 *) 23126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23127 for as_dir in $PATH 23128 do 23129 IFS=$as_save_IFS 23130 test -z "$as_dir" && as_dir=. 23131 for ac_exec_ext in '' $ac_executable_extensions; do 23132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23133 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 23134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23135 break 2 23136 fi 23137 done 23138 done 23139 IFS=$as_save_IFS 23140 23141 ;; 23142 esac 23143 fi 23144 STAT=$ac_cv_path_STAT 23145 if test -n "$STAT"; then 23146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 23147 $as_echo "$STAT" >&6; } 23148 else 23149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23150 $as_echo "no" >&6; } 23151 fi 23152 23153 23154 if test "x$STAT" = x; then 23155 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23156 fi 23157 else 23158 # Otherwise we believe it is a complete path. Use it as it is. 23159 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 23160 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 23161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 23162 $as_echo_n "checking for STAT... " >&6; } 23163 if test ! -x "$tool_specified"; then 23164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23165 $as_echo "not found" >&6; } 23166 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 23167 fi 23168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23169 $as_echo "$tool_specified" >&6; } 23170 fi 23171 fi 23172 fi 23173 23174 fi 23175 23176 23177 23178 23179 # Publish this variable in the help. 23180 23181 23182 if [ -z "${TIME+x}" ]; then 23183 # The variable is not set by user, try to locate tool using the code snippet 23184 for ac_prog in time 23185 do 23186 # Extract the first word of "$ac_prog", so it can be a program name with args. 23187 set dummy $ac_prog; ac_word=$2 23188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23189 $as_echo_n "checking for $ac_word... " >&6; } 23190 if ${ac_cv_path_TIME+:} false; then : 23191 $as_echo_n "(cached) " >&6 23192 else 23193 case $TIME in 23194 [\\/]* | ?:[\\/]*) 23195 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 23196 ;; 23197 *) 23198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23199 for as_dir in $PATH 23200 do 23201 IFS=$as_save_IFS 23202 test -z "$as_dir" && as_dir=. 23203 for ac_exec_ext in '' $ac_executable_extensions; do 23204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23205 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 23206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23207 break 2 23208 fi 23209 done 23210 done 23211 IFS=$as_save_IFS 23212 23213 ;; 23214 esac 23215 fi 23216 TIME=$ac_cv_path_TIME 23217 if test -n "$TIME"; then 23218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 23219 $as_echo "$TIME" >&6; } 23220 else 23221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23222 $as_echo "no" >&6; } 23223 fi 23224 23225 23226 test -n "$TIME" && break 23227 done 23228 23229 else 23230 # The variable is set, but is it from the command line or the environment? 23231 23232 # Try to remove the string !TIME! from our list. 23233 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 23234 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23235 # If it failed, the variable was not from the command line. Ignore it, 23236 # but warn the user (except for BASH, which is always set by the calling BASH). 23237 if test "xTIME" != xBASH; then 23238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 23239 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 23240 fi 23241 # Try to locate tool using the code snippet 23242 for ac_prog in time 23243 do 23244 # Extract the first word of "$ac_prog", so it can be a program name with args. 23245 set dummy $ac_prog; ac_word=$2 23246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23247 $as_echo_n "checking for $ac_word... " >&6; } 23248 if ${ac_cv_path_TIME+:} false; then : 23249 $as_echo_n "(cached) " >&6 23250 else 23251 case $TIME in 23252 [\\/]* | ?:[\\/]*) 23253 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 23254 ;; 23255 *) 23256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23257 for as_dir in $PATH 23258 do 23259 IFS=$as_save_IFS 23260 test -z "$as_dir" && as_dir=. 23261 for ac_exec_ext in '' $ac_executable_extensions; do 23262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23263 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 23264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23265 break 2 23266 fi 23267 done 23268 done 23269 IFS=$as_save_IFS 23270 23271 ;; 23272 esac 23273 fi 23274 TIME=$ac_cv_path_TIME 23275 if test -n "$TIME"; then 23276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 23277 $as_echo "$TIME" >&6; } 23278 else 23279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23280 $as_echo "no" >&6; } 23281 fi 23282 23283 23284 test -n "$TIME" && break 23285 done 23286 23287 else 23288 # If it succeeded, then it was overridden by the user. We will use it 23289 # for the tool. 23290 23291 # First remove it from the list of overridden variables, so we can test 23292 # for unknown variables in the end. 23293 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23294 23295 # Check if we try to supply an empty value 23296 if test "x$TIME" = x; then 23297 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5 23298 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;} 23299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 23300 $as_echo_n "checking for TIME... " >&6; } 23301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23302 $as_echo "disabled" >&6; } 23303 else 23304 # Check if the provided tool contains a complete path. 23305 tool_specified="$TIME" 23306 tool_basename="${tool_specified##*/}" 23307 if test "x$tool_basename" = "x$tool_specified"; then 23308 # A command without a complete path is provided, search $PATH. 23309 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 23310 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 23311 # Extract the first word of "$tool_basename", so it can be a program name with args. 23312 set dummy $tool_basename; ac_word=$2 23313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23314 $as_echo_n "checking for $ac_word... " >&6; } 23315 if ${ac_cv_path_TIME+:} false; then : 23316 $as_echo_n "(cached) " >&6 23317 else 23318 case $TIME in 23319 [\\/]* | ?:[\\/]*) 23320 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 23321 ;; 23322 *) 23323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23324 for as_dir in $PATH 23325 do 23326 IFS=$as_save_IFS 23327 test -z "$as_dir" && as_dir=. 23328 for ac_exec_ext in '' $ac_executable_extensions; do 23329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23330 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 23331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23332 break 2 23333 fi 23334 done 23335 done 23336 IFS=$as_save_IFS 23337 23338 ;; 23339 esac 23340 fi 23341 TIME=$ac_cv_path_TIME 23342 if test -n "$TIME"; then 23343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 23344 $as_echo "$TIME" >&6; } 23345 else 23346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23347 $as_echo "no" >&6; } 23348 fi 23349 23350 23351 if test "x$TIME" = x; then 23352 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23353 fi 23354 else 23355 # Otherwise we believe it is a complete path. Use it as it is. 23356 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 23357 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 23358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 23359 $as_echo_n "checking for TIME... " >&6; } 23360 if test ! -x "$tool_specified"; then 23361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23362 $as_echo "not found" >&6; } 23363 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 23364 fi 23365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23366 $as_echo "$tool_specified" >&6; } 23367 fi 23368 fi 23369 fi 23370 23371 fi 23372 23373 23374 23375 23376 # Publish this variable in the help. 23377 23378 23379 if [ -z "${FLOCK+x}" ]; then 23380 # The variable is not set by user, try to locate tool using the code snippet 23381 for ac_prog in flock 23382 do 23383 # Extract the first word of "$ac_prog", so it can be a program name with args. 23384 set dummy $ac_prog; ac_word=$2 23385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23386 $as_echo_n "checking for $ac_word... " >&6; } 23387 if ${ac_cv_path_FLOCK+:} false; then : 23388 $as_echo_n "(cached) " >&6 23389 else 23390 case $FLOCK in 23391 [\\/]* | ?:[\\/]*) 23392 ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path. 23393 ;; 23394 *) 23395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23396 for as_dir in $PATH 23397 do 23398 IFS=$as_save_IFS 23399 test -z "$as_dir" && as_dir=. 23400 for ac_exec_ext in '' $ac_executable_extensions; do 23401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23402 ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext" 23403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23404 break 2 23405 fi 23406 done 23407 done 23408 IFS=$as_save_IFS 23409 23410 ;; 23411 esac 23412 fi 23413 FLOCK=$ac_cv_path_FLOCK 23414 if test -n "$FLOCK"; then 23415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5 23416 $as_echo "$FLOCK" >&6; } 23417 else 23418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23419 $as_echo "no" >&6; } 23420 fi 23421 23422 23423 test -n "$FLOCK" && break 23424 done 23425 23426 else 23427 # The variable is set, but is it from the command line or the environment? 23428 23429 # Try to remove the string !FLOCK! from our list. 23430 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FLOCK!/} 23431 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23432 # If it failed, the variable was not from the command line. Ignore it, 23433 # but warn the user (except for BASH, which is always set by the calling BASH). 23434 if test "xFLOCK" != xBASH; then 23435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&5 23436 $as_echo "$as_me: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&2;} 23437 fi 23438 # Try to locate tool using the code snippet 23439 for ac_prog in flock 23440 do 23441 # Extract the first word of "$ac_prog", so it can be a program name with args. 23442 set dummy $ac_prog; ac_word=$2 23443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23444 $as_echo_n "checking for $ac_word... " >&6; } 23445 if ${ac_cv_path_FLOCK+:} false; then : 23446 $as_echo_n "(cached) " >&6 23447 else 23448 case $FLOCK in 23449 [\\/]* | ?:[\\/]*) 23450 ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path. 23451 ;; 23452 *) 23453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23454 for as_dir in $PATH 23455 do 23456 IFS=$as_save_IFS 23457 test -z "$as_dir" && as_dir=. 23458 for ac_exec_ext in '' $ac_executable_extensions; do 23459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23460 ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext" 23461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23462 break 2 23463 fi 23464 done 23465 done 23466 IFS=$as_save_IFS 23467 23468 ;; 23469 esac 23470 fi 23471 FLOCK=$ac_cv_path_FLOCK 23472 if test -n "$FLOCK"; then 23473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5 23474 $as_echo "$FLOCK" >&6; } 23475 else 23476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23477 $as_echo "no" >&6; } 23478 fi 23479 23480 23481 test -n "$FLOCK" && break 23482 done 23483 23484 else 23485 # If it succeeded, then it was overridden by the user. We will use it 23486 # for the tool. 23487 23488 # First remove it from the list of overridden variables, so we can test 23489 # for unknown variables in the end. 23490 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23491 23492 # Check if we try to supply an empty value 23493 if test "x$FLOCK" = x; then 23494 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FLOCK= (no value)" >&5 23495 $as_echo "$as_me: Setting user supplied tool FLOCK= (no value)" >&6;} 23496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5 23497 $as_echo_n "checking for FLOCK... " >&6; } 23498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23499 $as_echo "disabled" >&6; } 23500 else 23501 # Check if the provided tool contains a complete path. 23502 tool_specified="$FLOCK" 23503 tool_basename="${tool_specified##*/}" 23504 if test "x$tool_basename" = "x$tool_specified"; then 23505 # A command without a complete path is provided, search $PATH. 23506 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FLOCK=$tool_basename" >&5 23507 $as_echo "$as_me: Will search for user supplied tool FLOCK=$tool_basename" >&6;} 23508 # Extract the first word of "$tool_basename", so it can be a program name with args. 23509 set dummy $tool_basename; ac_word=$2 23510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23511 $as_echo_n "checking for $ac_word... " >&6; } 23512 if ${ac_cv_path_FLOCK+:} false; then : 23513 $as_echo_n "(cached) " >&6 23514 else 23515 case $FLOCK in 23516 [\\/]* | ?:[\\/]*) 23517 ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path. 23518 ;; 23519 *) 23520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23521 for as_dir in $PATH 23522 do 23523 IFS=$as_save_IFS 23524 test -z "$as_dir" && as_dir=. 23525 for ac_exec_ext in '' $ac_executable_extensions; do 23526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23527 ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext" 23528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23529 break 2 23530 fi 23531 done 23532 done 23533 IFS=$as_save_IFS 23534 23535 ;; 23536 esac 23537 fi 23538 FLOCK=$ac_cv_path_FLOCK 23539 if test -n "$FLOCK"; then 23540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5 23541 $as_echo "$FLOCK" >&6; } 23542 else 23543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23544 $as_echo "no" >&6; } 23545 fi 23546 23547 23548 if test "x$FLOCK" = x; then 23549 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23550 fi 23551 else 23552 # Otherwise we believe it is a complete path. Use it as it is. 23553 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FLOCK=$tool_specified" >&5 23554 $as_echo "$as_me: Will use user supplied tool FLOCK=$tool_specified" >&6;} 23555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5 23556 $as_echo_n "checking for FLOCK... " >&6; } 23557 if test ! -x "$tool_specified"; then 23558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23559 $as_echo "not found" >&6; } 23560 as_fn_error $? "User supplied tool FLOCK=$tool_specified does not exist or is not executable" "$LINENO" 5 23561 fi 23562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23563 $as_echo "$tool_specified" >&6; } 23564 fi 23565 fi 23566 fi 23567 23568 fi 23569 23570 23571 # Dtrace is usually found in /usr/sbin on Solaris, but that directory may not 23572 # be in the user path. 23573 23574 23575 # Publish this variable in the help. 23576 23577 23578 if [ -z "${DTRACE+x}" ]; then 23579 # The variable is not set by user, try to locate tool using the code snippet 23580 for ac_prog in dtrace 23581 do 23582 # Extract the first word of "$ac_prog", so it can be a program name with args. 23583 set dummy $ac_prog; ac_word=$2 23584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23585 $as_echo_n "checking for $ac_word... " >&6; } 23586 if ${ac_cv_path_DTRACE+:} false; then : 23587 $as_echo_n "(cached) " >&6 23588 else 23589 case $DTRACE in 23590 [\\/]* | ?:[\\/]*) 23591 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23592 ;; 23593 *) 23594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23595 as_dummy="$PATH:/usr/sbin" 23596 for as_dir in $as_dummy 23597 do 23598 IFS=$as_save_IFS 23599 test -z "$as_dir" && as_dir=. 23600 for ac_exec_ext in '' $ac_executable_extensions; do 23601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23602 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 23603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23604 break 2 23605 fi 23606 done 23607 done 23608 IFS=$as_save_IFS 23609 23610 ;; 23611 esac 23612 fi 23613 DTRACE=$ac_cv_path_DTRACE 23614 if test -n "$DTRACE"; then 23615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23616 $as_echo "$DTRACE" >&6; } 23617 else 23618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23619 $as_echo "no" >&6; } 23620 fi 23621 23622 23623 test -n "$DTRACE" && break 23624 done 23625 23626 else 23627 # The variable is set, but is it from the command line or the environment? 23628 23629 # Try to remove the string !DTRACE! from our list. 23630 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/} 23631 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23632 # If it failed, the variable was not from the command line. Ignore it, 23633 # but warn the user (except for BASH, which is always set by the calling BASH). 23634 if test "xDTRACE" != xBASH; then 23635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5 23636 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;} 23637 fi 23638 # Try to locate tool using the code snippet 23639 for ac_prog in dtrace 23640 do 23641 # Extract the first word of "$ac_prog", so it can be a program name with args. 23642 set dummy $ac_prog; ac_word=$2 23643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23644 $as_echo_n "checking for $ac_word... " >&6; } 23645 if ${ac_cv_path_DTRACE+:} false; then : 23646 $as_echo_n "(cached) " >&6 23647 else 23648 case $DTRACE in 23649 [\\/]* | ?:[\\/]*) 23650 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23651 ;; 23652 *) 23653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23654 as_dummy="$PATH:/usr/sbin" 23655 for as_dir in $as_dummy 23656 do 23657 IFS=$as_save_IFS 23658 test -z "$as_dir" && as_dir=. 23659 for ac_exec_ext in '' $ac_executable_extensions; do 23660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23661 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 23662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23663 break 2 23664 fi 23665 done 23666 done 23667 IFS=$as_save_IFS 23668 23669 ;; 23670 esac 23671 fi 23672 DTRACE=$ac_cv_path_DTRACE 23673 if test -n "$DTRACE"; then 23674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23675 $as_echo "$DTRACE" >&6; } 23676 else 23677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23678 $as_echo "no" >&6; } 23679 fi 23680 23681 23682 test -n "$DTRACE" && break 23683 done 23684 23685 else 23686 # If it succeeded, then it was overridden by the user. We will use it 23687 # for the tool. 23688 23689 # First remove it from the list of overridden variables, so we can test 23690 # for unknown variables in the end. 23691 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23692 23693 # Check if we try to supply an empty value 23694 if test "x$DTRACE" = x; then 23695 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5 23696 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;} 23697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 23698 $as_echo_n "checking for DTRACE... " >&6; } 23699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23700 $as_echo "disabled" >&6; } 23701 else 23702 # Check if the provided tool contains a complete path. 23703 tool_specified="$DTRACE" 23704 tool_basename="${tool_specified##*/}" 23705 if test "x$tool_basename" = "x$tool_specified"; then 23706 # A command without a complete path is provided, search $PATH. 23707 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5 23708 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;} 23709 # Extract the first word of "$tool_basename", so it can be a program name with args. 23710 set dummy $tool_basename; ac_word=$2 23711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23712 $as_echo_n "checking for $ac_word... " >&6; } 23713 if ${ac_cv_path_DTRACE+:} false; then : 23714 $as_echo_n "(cached) " >&6 23715 else 23716 case $DTRACE in 23717 [\\/]* | ?:[\\/]*) 23718 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23719 ;; 23720 *) 23721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23722 for as_dir in $PATH 23723 do 23724 IFS=$as_save_IFS 23725 test -z "$as_dir" && as_dir=. 23726 for ac_exec_ext in '' $ac_executable_extensions; do 23727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23728 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 23729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23730 break 2 23731 fi 23732 done 23733 done 23734 IFS=$as_save_IFS 23735 23736 ;; 23737 esac 23738 fi 23739 DTRACE=$ac_cv_path_DTRACE 23740 if test -n "$DTRACE"; then 23741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23742 $as_echo "$DTRACE" >&6; } 23743 else 23744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23745 $as_echo "no" >&6; } 23746 fi 23747 23748 23749 if test "x$DTRACE" = x; then 23750 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23751 fi 23752 else 23753 # Otherwise we believe it is a complete path. Use it as it is. 23754 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5 23755 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;} 23756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 23757 $as_echo_n "checking for DTRACE... " >&6; } 23758 if test ! -x "$tool_specified"; then 23759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23760 $as_echo "not found" >&6; } 23761 as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5 23762 fi 23763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23764 $as_echo "$tool_specified" >&6; } 23765 fi 23766 fi 23767 fi 23768 23769 fi 23770 23771 23772 23773 23774 # Publish this variable in the help. 23775 23776 23777 if [ -z "${PATCH+x}" ]; then 23778 # The variable is not set by user, try to locate tool using the code snippet 23779 for ac_prog in gpatch patch 23780 do 23781 # Extract the first word of "$ac_prog", so it can be a program name with args. 23782 set dummy $ac_prog; ac_word=$2 23783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23784 $as_echo_n "checking for $ac_word... " >&6; } 23785 if ${ac_cv_path_PATCH+:} false; then : 23786 $as_echo_n "(cached) " >&6 23787 else 23788 case $PATCH in 23789 [\\/]* | ?:[\\/]*) 23790 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23791 ;; 23792 *) 23793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23794 for as_dir in $PATH 23795 do 23796 IFS=$as_save_IFS 23797 test -z "$as_dir" && as_dir=. 23798 for ac_exec_ext in '' $ac_executable_extensions; do 23799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23800 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23802 break 2 23803 fi 23804 done 23805 done 23806 IFS=$as_save_IFS 23807 23808 ;; 23809 esac 23810 fi 23811 PATCH=$ac_cv_path_PATCH 23812 if test -n "$PATCH"; then 23813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23814 $as_echo "$PATCH" >&6; } 23815 else 23816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23817 $as_echo "no" >&6; } 23818 fi 23819 23820 23821 test -n "$PATCH" && break 23822 done 23823 23824 else 23825 # The variable is set, but is it from the command line or the environment? 23826 23827 # Try to remove the string !PATCH! from our list. 23828 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/} 23829 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23830 # If it failed, the variable was not from the command line. Ignore it, 23831 # but warn the user (except for BASH, which is always set by the calling BASH). 23832 if test "xPATCH" != xBASH; then 23833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5 23834 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;} 23835 fi 23836 # Try to locate tool using the code snippet 23837 for ac_prog in gpatch patch 23838 do 23839 # Extract the first word of "$ac_prog", so it can be a program name with args. 23840 set dummy $ac_prog; ac_word=$2 23841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23842 $as_echo_n "checking for $ac_word... " >&6; } 23843 if ${ac_cv_path_PATCH+:} false; then : 23844 $as_echo_n "(cached) " >&6 23845 else 23846 case $PATCH in 23847 [\\/]* | ?:[\\/]*) 23848 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23849 ;; 23850 *) 23851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23852 for as_dir in $PATH 23853 do 23854 IFS=$as_save_IFS 23855 test -z "$as_dir" && as_dir=. 23856 for ac_exec_ext in '' $ac_executable_extensions; do 23857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23858 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23860 break 2 23861 fi 23862 done 23863 done 23864 IFS=$as_save_IFS 23865 23866 ;; 23867 esac 23868 fi 23869 PATCH=$ac_cv_path_PATCH 23870 if test -n "$PATCH"; then 23871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23872 $as_echo "$PATCH" >&6; } 23873 else 23874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23875 $as_echo "no" >&6; } 23876 fi 23877 23878 23879 test -n "$PATCH" && break 23880 done 23881 23882 else 23883 # If it succeeded, then it was overridden by the user. We will use it 23884 # for the tool. 23885 23886 # First remove it from the list of overridden variables, so we can test 23887 # for unknown variables in the end. 23888 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23889 23890 # Check if we try to supply an empty value 23891 if test "x$PATCH" = x; then 23892 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5 23893 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;} 23894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 23895 $as_echo_n "checking for PATCH... " >&6; } 23896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23897 $as_echo "disabled" >&6; } 23898 else 23899 # Check if the provided tool contains a complete path. 23900 tool_specified="$PATCH" 23901 tool_basename="${tool_specified##*/}" 23902 if test "x$tool_basename" = "x$tool_specified"; then 23903 # A command without a complete path is provided, search $PATH. 23904 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5 23905 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;} 23906 # Extract the first word of "$tool_basename", so it can be a program name with args. 23907 set dummy $tool_basename; ac_word=$2 23908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23909 $as_echo_n "checking for $ac_word... " >&6; } 23910 if ${ac_cv_path_PATCH+:} false; then : 23911 $as_echo_n "(cached) " >&6 23912 else 23913 case $PATCH in 23914 [\\/]* | ?:[\\/]*) 23915 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23916 ;; 23917 *) 23918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23919 for as_dir in $PATH 23920 do 23921 IFS=$as_save_IFS 23922 test -z "$as_dir" && as_dir=. 23923 for ac_exec_ext in '' $ac_executable_extensions; do 23924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23925 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23927 break 2 23928 fi 23929 done 23930 done 23931 IFS=$as_save_IFS 23932 23933 ;; 23934 esac 23935 fi 23936 PATCH=$ac_cv_path_PATCH 23937 if test -n "$PATCH"; then 23938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23939 $as_echo "$PATCH" >&6; } 23940 else 23941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23942 $as_echo "no" >&6; } 23943 fi 23944 23945 23946 if test "x$PATCH" = x; then 23947 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23948 fi 23949 else 23950 # Otherwise we believe it is a complete path. Use it as it is. 23951 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5 23952 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;} 23953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 23954 $as_echo_n "checking for PATCH... " >&6; } 23955 if test ! -x "$tool_specified"; then 23956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23957 $as_echo "not found" >&6; } 23958 as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5 23959 fi 23960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23961 $as_echo "$tool_specified" >&6; } 23962 fi 23963 fi 23964 fi 23965 23966 fi 23967 23968 23969 # Check if it's GNU time 23970 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 23971 if test "x$IS_GNU_TIME" != x; then 23972 IS_GNU_TIME=yes 23973 else 23974 IS_GNU_TIME=no 23975 fi 23976 23977 23978 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 23979 23980 23981 23982 # Publish this variable in the help. 23983 23984 23985 if [ -z "${DSYMUTIL+x}" ]; then 23986 # The variable is not set by user, try to locate tool using the code snippet 23987 for ac_prog in dsymutil 23988 do 23989 # Extract the first word of "$ac_prog", so it can be a program name with args. 23990 set dummy $ac_prog; ac_word=$2 23991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23992 $as_echo_n "checking for $ac_word... " >&6; } 23993 if ${ac_cv_path_DSYMUTIL+:} false; then : 23994 $as_echo_n "(cached) " >&6 23995 else 23996 case $DSYMUTIL in 23997 [\\/]* | ?:[\\/]*) 23998 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23999 ;; 24000 *) 24001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24002 for as_dir in $PATH 24003 do 24004 IFS=$as_save_IFS 24005 test -z "$as_dir" && as_dir=. 24006 for ac_exec_ext in '' $ac_executable_extensions; do 24007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24008 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 24009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24010 break 2 24011 fi 24012 done 24013 done 24014 IFS=$as_save_IFS 24015 24016 ;; 24017 esac 24018 fi 24019 DSYMUTIL=$ac_cv_path_DSYMUTIL 24020 if test -n "$DSYMUTIL"; then 24021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 24022 $as_echo "$DSYMUTIL" >&6; } 24023 else 24024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24025 $as_echo "no" >&6; } 24026 fi 24027 24028 24029 test -n "$DSYMUTIL" && break 24030 done 24031 24032 else 24033 # The variable is set, but is it from the command line or the environment? 24034 24035 # Try to remove the string !DSYMUTIL! from our list. 24036 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 24037 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 24038 # If it failed, the variable was not from the command line. Ignore it, 24039 # but warn the user (except for BASH, which is always set by the calling BASH). 24040 if test "xDSYMUTIL" != xBASH; then 24041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 24042 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 24043 fi 24044 # Try to locate tool using the code snippet 24045 for ac_prog in dsymutil 24046 do 24047 # Extract the first word of "$ac_prog", so it can be a program name with args. 24048 set dummy $ac_prog; ac_word=$2 24049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24050 $as_echo_n "checking for $ac_word... " >&6; } 24051 if ${ac_cv_path_DSYMUTIL+:} false; then : 24052 $as_echo_n "(cached) " >&6 24053 else 24054 case $DSYMUTIL in 24055 [\\/]* | ?:[\\/]*) 24056 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 24057 ;; 24058 *) 24059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24060 for as_dir in $PATH 24061 do 24062 IFS=$as_save_IFS 24063 test -z "$as_dir" && as_dir=. 24064 for ac_exec_ext in '' $ac_executable_extensions; do 24065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24066 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 24067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24068 break 2 24069 fi 24070 done 24071 done 24072 IFS=$as_save_IFS 24073 24074 ;; 24075 esac 24076 fi 24077 DSYMUTIL=$ac_cv_path_DSYMUTIL 24078 if test -n "$DSYMUTIL"; then 24079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 24080 $as_echo "$DSYMUTIL" >&6; } 24081 else 24082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24083 $as_echo "no" >&6; } 24084 fi 24085 24086 24087 test -n "$DSYMUTIL" && break 24088 done 24089 24090 else 24091 # If it succeeded, then it was overridden by the user. We will use it 24092 # for the tool. 24093 24094 # First remove it from the list of overridden variables, so we can test 24095 # for unknown variables in the end. 24096 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24097 24098 # Check if we try to supply an empty value 24099 if test "x$DSYMUTIL" = x; then 24100 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5 24101 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;} 24102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 24103 $as_echo_n "checking for DSYMUTIL... " >&6; } 24104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24105 $as_echo "disabled" >&6; } 24106 else 24107 # Check if the provided tool contains a complete path. 24108 tool_specified="$DSYMUTIL" 24109 tool_basename="${tool_specified##*/}" 24110 if test "x$tool_basename" = "x$tool_specified"; then 24111 # A command without a complete path is provided, search $PATH. 24112 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 24113 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 24114 # Extract the first word of "$tool_basename", so it can be a program name with args. 24115 set dummy $tool_basename; ac_word=$2 24116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24117 $as_echo_n "checking for $ac_word... " >&6; } 24118 if ${ac_cv_path_DSYMUTIL+:} false; then : 24119 $as_echo_n "(cached) " >&6 24120 else 24121 case $DSYMUTIL in 24122 [\\/]* | ?:[\\/]*) 24123 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 24124 ;; 24125 *) 24126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24127 for as_dir in $PATH 24128 do 24129 IFS=$as_save_IFS 24130 test -z "$as_dir" && as_dir=. 24131 for ac_exec_ext in '' $ac_executable_extensions; do 24132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24133 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 24134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24135 break 2 24136 fi 24137 done 24138 done 24139 IFS=$as_save_IFS 24140 24141 ;; 24142 esac 24143 fi 24144 DSYMUTIL=$ac_cv_path_DSYMUTIL 24145 if test -n "$DSYMUTIL"; then 24146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 24147 $as_echo "$DSYMUTIL" >&6; } 24148 else 24149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24150 $as_echo "no" >&6; } 24151 fi 24152 24153 24154 if test "x$DSYMUTIL" = x; then 24155 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24156 fi 24157 else 24158 # Otherwise we believe it is a complete path. Use it as it is. 24159 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 24160 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 24161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 24162 $as_echo_n "checking for DSYMUTIL... " >&6; } 24163 if test ! -x "$tool_specified"; then 24164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24165 $as_echo "not found" >&6; } 24166 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 24167 fi 24168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24169 $as_echo "$tool_specified" >&6; } 24170 fi 24171 fi 24172 fi 24173 24174 fi 24175 24176 24177 24178 if test "x$DSYMUTIL" = x; then 24179 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 24180 fi 24181 24182 24183 24184 24185 24186 # Publish this variable in the help. 24187 24188 24189 if [ -z "${XATTR+x}" ]; then 24190 # The variable is not set by user, try to locate tool using the code snippet 24191 for ac_prog in xattr 24192 do 24193 # Extract the first word of "$ac_prog", so it can be a program name with args. 24194 set dummy $ac_prog; ac_word=$2 24195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24196 $as_echo_n "checking for $ac_word... " >&6; } 24197 if ${ac_cv_path_XATTR+:} false; then : 24198 $as_echo_n "(cached) " >&6 24199 else 24200 case $XATTR in 24201 [\\/]* | ?:[\\/]*) 24202 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 24203 ;; 24204 *) 24205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24206 for as_dir in $PATH 24207 do 24208 IFS=$as_save_IFS 24209 test -z "$as_dir" && as_dir=. 24210 for ac_exec_ext in '' $ac_executable_extensions; do 24211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24212 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 24213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24214 break 2 24215 fi 24216 done 24217 done 24218 IFS=$as_save_IFS 24219 24220 ;; 24221 esac 24222 fi 24223 XATTR=$ac_cv_path_XATTR 24224 if test -n "$XATTR"; then 24225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 24226 $as_echo "$XATTR" >&6; } 24227 else 24228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24229 $as_echo "no" >&6; } 24230 fi 24231 24232 24233 test -n "$XATTR" && break 24234 done 24235 24236 else 24237 # The variable is set, but is it from the command line or the environment? 24238 24239 # Try to remove the string !XATTR! from our list. 24240 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 24241 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 24242 # If it failed, the variable was not from the command line. Ignore it, 24243 # but warn the user (except for BASH, which is always set by the calling BASH). 24244 if test "xXATTR" != xBASH; then 24245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 24246 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 24247 fi 24248 # Try to locate tool using the code snippet 24249 for ac_prog in xattr 24250 do 24251 # Extract the first word of "$ac_prog", so it can be a program name with args. 24252 set dummy $ac_prog; ac_word=$2 24253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24254 $as_echo_n "checking for $ac_word... " >&6; } 24255 if ${ac_cv_path_XATTR+:} false; then : 24256 $as_echo_n "(cached) " >&6 24257 else 24258 case $XATTR in 24259 [\\/]* | ?:[\\/]*) 24260 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 24261 ;; 24262 *) 24263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24264 for as_dir in $PATH 24265 do 24266 IFS=$as_save_IFS 24267 test -z "$as_dir" && as_dir=. 24268 for ac_exec_ext in '' $ac_executable_extensions; do 24269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24270 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 24271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24272 break 2 24273 fi 24274 done 24275 done 24276 IFS=$as_save_IFS 24277 24278 ;; 24279 esac 24280 fi 24281 XATTR=$ac_cv_path_XATTR 24282 if test -n "$XATTR"; then 24283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 24284 $as_echo "$XATTR" >&6; } 24285 else 24286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24287 $as_echo "no" >&6; } 24288 fi 24289 24290 24291 test -n "$XATTR" && break 24292 done 24293 24294 else 24295 # If it succeeded, then it was overridden by the user. We will use it 24296 # for the tool. 24297 24298 # First remove it from the list of overridden variables, so we can test 24299 # for unknown variables in the end. 24300 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24301 24302 # Check if we try to supply an empty value 24303 if test "x$XATTR" = x; then 24304 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5 24305 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;} 24306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 24307 $as_echo_n "checking for XATTR... " >&6; } 24308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24309 $as_echo "disabled" >&6; } 24310 else 24311 # Check if the provided tool contains a complete path. 24312 tool_specified="$XATTR" 24313 tool_basename="${tool_specified##*/}" 24314 if test "x$tool_basename" = "x$tool_specified"; then 24315 # A command without a complete path is provided, search $PATH. 24316 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 24317 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 24318 # Extract the first word of "$tool_basename", so it can be a program name with args. 24319 set dummy $tool_basename; ac_word=$2 24320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24321 $as_echo_n "checking for $ac_word... " >&6; } 24322 if ${ac_cv_path_XATTR+:} false; then : 24323 $as_echo_n "(cached) " >&6 24324 else 24325 case $XATTR in 24326 [\\/]* | ?:[\\/]*) 24327 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 24328 ;; 24329 *) 24330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24331 for as_dir in $PATH 24332 do 24333 IFS=$as_save_IFS 24334 test -z "$as_dir" && as_dir=. 24335 for ac_exec_ext in '' $ac_executable_extensions; do 24336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24337 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 24338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24339 break 2 24340 fi 24341 done 24342 done 24343 IFS=$as_save_IFS 24344 24345 ;; 24346 esac 24347 fi 24348 XATTR=$ac_cv_path_XATTR 24349 if test -n "$XATTR"; then 24350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 24351 $as_echo "$XATTR" >&6; } 24352 else 24353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24354 $as_echo "no" >&6; } 24355 fi 24356 24357 24358 if test "x$XATTR" = x; then 24359 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24360 fi 24361 else 24362 # Otherwise we believe it is a complete path. Use it as it is. 24363 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 24364 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 24365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 24366 $as_echo_n "checking for XATTR... " >&6; } 24367 if test ! -x "$tool_specified"; then 24368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24369 $as_echo "not found" >&6; } 24370 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 24371 fi 24372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24373 $as_echo "$tool_specified" >&6; } 24374 fi 24375 fi 24376 fi 24377 24378 fi 24379 24380 24381 24382 if test "x$XATTR" = x; then 24383 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 24384 fi 24385 24386 24387 24388 24389 # Publish this variable in the help. 24390 24391 24392 if [ -z "${CODESIGN+x}" ]; then 24393 # The variable is not set by user, try to locate tool using the code snippet 24394 for ac_prog in codesign 24395 do 24396 # Extract the first word of "$ac_prog", so it can be a program name with args. 24397 set dummy $ac_prog; ac_word=$2 24398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24399 $as_echo_n "checking for $ac_word... " >&6; } 24400 if ${ac_cv_path_CODESIGN+:} false; then : 24401 $as_echo_n "(cached) " >&6 24402 else 24403 case $CODESIGN in 24404 [\\/]* | ?:[\\/]*) 24405 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 24406 ;; 24407 *) 24408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24409 for as_dir in $PATH 24410 do 24411 IFS=$as_save_IFS 24412 test -z "$as_dir" && as_dir=. 24413 for ac_exec_ext in '' $ac_executable_extensions; do 24414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24415 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 24416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24417 break 2 24418 fi 24419 done 24420 done 24421 IFS=$as_save_IFS 24422 24423 ;; 24424 esac 24425 fi 24426 CODESIGN=$ac_cv_path_CODESIGN 24427 if test -n "$CODESIGN"; then 24428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 24429 $as_echo "$CODESIGN" >&6; } 24430 else 24431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24432 $as_echo "no" >&6; } 24433 fi 24434 24435 24436 test -n "$CODESIGN" && break 24437 done 24438 24439 else 24440 # The variable is set, but is it from the command line or the environment? 24441 24442 # Try to remove the string !CODESIGN! from our list. 24443 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 24444 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 24445 # If it failed, the variable was not from the command line. Ignore it, 24446 # but warn the user (except for BASH, which is always set by the calling BASH). 24447 if test "xCODESIGN" != xBASH; then 24448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 24449 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 24450 fi 24451 # Try to locate tool using the code snippet 24452 for ac_prog in codesign 24453 do 24454 # Extract the first word of "$ac_prog", so it can be a program name with args. 24455 set dummy $ac_prog; ac_word=$2 24456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24457 $as_echo_n "checking for $ac_word... " >&6; } 24458 if ${ac_cv_path_CODESIGN+:} false; then : 24459 $as_echo_n "(cached) " >&6 24460 else 24461 case $CODESIGN in 24462 [\\/]* | ?:[\\/]*) 24463 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 24464 ;; 24465 *) 24466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24467 for as_dir in $PATH 24468 do 24469 IFS=$as_save_IFS 24470 test -z "$as_dir" && as_dir=. 24471 for ac_exec_ext in '' $ac_executable_extensions; do 24472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24473 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 24474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24475 break 2 24476 fi 24477 done 24478 done 24479 IFS=$as_save_IFS 24480 24481 ;; 24482 esac 24483 fi 24484 CODESIGN=$ac_cv_path_CODESIGN 24485 if test -n "$CODESIGN"; then 24486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 24487 $as_echo "$CODESIGN" >&6; } 24488 else 24489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24490 $as_echo "no" >&6; } 24491 fi 24492 24493 24494 test -n "$CODESIGN" && break 24495 done 24496 24497 else 24498 # If it succeeded, then it was overridden by the user. We will use it 24499 # for the tool. 24500 24501 # First remove it from the list of overridden variables, so we can test 24502 # for unknown variables in the end. 24503 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24504 24505 # Check if we try to supply an empty value 24506 if test "x$CODESIGN" = x; then 24507 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5 24508 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;} 24509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 24510 $as_echo_n "checking for CODESIGN... " >&6; } 24511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24512 $as_echo "disabled" >&6; } 24513 else 24514 # Check if the provided tool contains a complete path. 24515 tool_specified="$CODESIGN" 24516 tool_basename="${tool_specified##*/}" 24517 if test "x$tool_basename" = "x$tool_specified"; then 24518 # A command without a complete path is provided, search $PATH. 24519 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 24520 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 24521 # Extract the first word of "$tool_basename", so it can be a program name with args. 24522 set dummy $tool_basename; ac_word=$2 24523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24524 $as_echo_n "checking for $ac_word... " >&6; } 24525 if ${ac_cv_path_CODESIGN+:} false; then : 24526 $as_echo_n "(cached) " >&6 24527 else 24528 case $CODESIGN in 24529 [\\/]* | ?:[\\/]*) 24530 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 24531 ;; 24532 *) 24533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24534 for as_dir in $PATH 24535 do 24536 IFS=$as_save_IFS 24537 test -z "$as_dir" && as_dir=. 24538 for ac_exec_ext in '' $ac_executable_extensions; do 24539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24540 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 24541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24542 break 2 24543 fi 24544 done 24545 done 24546 IFS=$as_save_IFS 24547 24548 ;; 24549 esac 24550 fi 24551 CODESIGN=$ac_cv_path_CODESIGN 24552 if test -n "$CODESIGN"; then 24553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 24554 $as_echo "$CODESIGN" >&6; } 24555 else 24556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24557 $as_echo "no" >&6; } 24558 fi 24559 24560 24561 if test "x$CODESIGN" = x; then 24562 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24563 fi 24564 else 24565 # Otherwise we believe it is a complete path. Use it as it is. 24566 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 24567 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 24568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 24569 $as_echo_n "checking for CODESIGN... " >&6; } 24570 if test ! -x "$tool_specified"; then 24571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24572 $as_echo "not found" >&6; } 24573 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 24574 fi 24575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24576 $as_echo "$tool_specified" >&6; } 24577 fi 24578 fi 24579 fi 24580 24581 fi 24582 24583 24584 if test "x$CODESIGN" != "x"; then 24585 # Verify that the openjdk_codesign certificate is present 24586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 24587 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 24588 $RM codesign-testfile 24589 $TOUCH codesign-testfile 24590 $CODESIGN -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 24591 $RM codesign-testfile 24592 if test "x$CODESIGN" = x; then 24593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24594 $as_echo "no" >&6; } 24595 else 24596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24597 $as_echo "yes" >&6; } 24598 fi 24599 fi 24600 24601 24602 24603 # Publish this variable in the help. 24604 24605 24606 if [ -z "${SETFILE+x}" ]; then 24607 # The variable is not set by user, try to locate tool using the code snippet 24608 for ac_prog in SetFile 24609 do 24610 # Extract the first word of "$ac_prog", so it can be a program name with args. 24611 set dummy $ac_prog; ac_word=$2 24612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24613 $as_echo_n "checking for $ac_word... " >&6; } 24614 if ${ac_cv_path_SETFILE+:} false; then : 24615 $as_echo_n "(cached) " >&6 24616 else 24617 case $SETFILE in 24618 [\\/]* | ?:[\\/]*) 24619 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24620 ;; 24621 *) 24622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24623 for as_dir in $PATH 24624 do 24625 IFS=$as_save_IFS 24626 test -z "$as_dir" && as_dir=. 24627 for ac_exec_ext in '' $ac_executable_extensions; do 24628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24629 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24631 break 2 24632 fi 24633 done 24634 done 24635 IFS=$as_save_IFS 24636 24637 ;; 24638 esac 24639 fi 24640 SETFILE=$ac_cv_path_SETFILE 24641 if test -n "$SETFILE"; then 24642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24643 $as_echo "$SETFILE" >&6; } 24644 else 24645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24646 $as_echo "no" >&6; } 24647 fi 24648 24649 24650 test -n "$SETFILE" && break 24651 done 24652 24653 else 24654 # The variable is set, but is it from the command line or the environment? 24655 24656 # Try to remove the string !SETFILE! from our list. 24657 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 24658 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 24659 # If it failed, the variable was not from the command line. Ignore it, 24660 # but warn the user (except for BASH, which is always set by the calling BASH). 24661 if test "xSETFILE" != xBASH; then 24662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 24663 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 24664 fi 24665 # Try to locate tool using the code snippet 24666 for ac_prog in SetFile 24667 do 24668 # Extract the first word of "$ac_prog", so it can be a program name with args. 24669 set dummy $ac_prog; ac_word=$2 24670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24671 $as_echo_n "checking for $ac_word... " >&6; } 24672 if ${ac_cv_path_SETFILE+:} false; then : 24673 $as_echo_n "(cached) " >&6 24674 else 24675 case $SETFILE in 24676 [\\/]* | ?:[\\/]*) 24677 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24678 ;; 24679 *) 24680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24681 for as_dir in $PATH 24682 do 24683 IFS=$as_save_IFS 24684 test -z "$as_dir" && as_dir=. 24685 for ac_exec_ext in '' $ac_executable_extensions; do 24686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24687 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24689 break 2 24690 fi 24691 done 24692 done 24693 IFS=$as_save_IFS 24694 24695 ;; 24696 esac 24697 fi 24698 SETFILE=$ac_cv_path_SETFILE 24699 if test -n "$SETFILE"; then 24700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24701 $as_echo "$SETFILE" >&6; } 24702 else 24703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24704 $as_echo "no" >&6; } 24705 fi 24706 24707 24708 test -n "$SETFILE" && break 24709 done 24710 24711 else 24712 # If it succeeded, then it was overridden by the user. We will use it 24713 # for the tool. 24714 24715 # First remove it from the list of overridden variables, so we can test 24716 # for unknown variables in the end. 24717 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24718 24719 # Check if we try to supply an empty value 24720 if test "x$SETFILE" = x; then 24721 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5 24722 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;} 24723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 24724 $as_echo_n "checking for SETFILE... " >&6; } 24725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24726 $as_echo "disabled" >&6; } 24727 else 24728 # Check if the provided tool contains a complete path. 24729 tool_specified="$SETFILE" 24730 tool_basename="${tool_specified##*/}" 24731 if test "x$tool_basename" = "x$tool_specified"; then 24732 # A command without a complete path is provided, search $PATH. 24733 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 24734 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 24735 # Extract the first word of "$tool_basename", so it can be a program name with args. 24736 set dummy $tool_basename; ac_word=$2 24737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24738 $as_echo_n "checking for $ac_word... " >&6; } 24739 if ${ac_cv_path_SETFILE+:} false; then : 24740 $as_echo_n "(cached) " >&6 24741 else 24742 case $SETFILE in 24743 [\\/]* | ?:[\\/]*) 24744 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24745 ;; 24746 *) 24747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24748 for as_dir in $PATH 24749 do 24750 IFS=$as_save_IFS 24751 test -z "$as_dir" && as_dir=. 24752 for ac_exec_ext in '' $ac_executable_extensions; do 24753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24754 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24756 break 2 24757 fi 24758 done 24759 done 24760 IFS=$as_save_IFS 24761 24762 ;; 24763 esac 24764 fi 24765 SETFILE=$ac_cv_path_SETFILE 24766 if test -n "$SETFILE"; then 24767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24768 $as_echo "$SETFILE" >&6; } 24769 else 24770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24771 $as_echo "no" >&6; } 24772 fi 24773 24774 24775 if test "x$SETFILE" = x; then 24776 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24777 fi 24778 else 24779 # Otherwise we believe it is a complete path. Use it as it is. 24780 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 24781 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 24782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 24783 $as_echo_n "checking for SETFILE... " >&6; } 24784 if test ! -x "$tool_specified"; then 24785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24786 $as_echo "not found" >&6; } 24787 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 24788 fi 24789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24790 $as_echo "$tool_specified" >&6; } 24791 fi 24792 fi 24793 fi 24794 24795 fi 24796 24797 24798 24799 if test "x$SETFILE" = x; then 24800 as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5 24801 fi 24802 24803 24804 fi 24805 24806 24807 # Check bash version 24808 # Extra [ ] to stop m4 mangling 24809 BASH_VER=`$BASH --version | $SED -n -e 's/^.*bash.*ersion *\([0-9.]*\).*$/\1/ p'` 24810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking bash version" >&5 24811 $as_echo_n "checking bash version... " >&6; } 24812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_VER" >&5 24813 $as_echo "$BASH_VER" >&6; } 24814 24815 BASH_MAJOR=`$ECHO $BASH_VER | $CUT -d . -f 1` 24816 BASH_MINOR=`$ECHO $BASH_VER | $CUT -d . -f 2` 24817 if test $BASH_MAJOR -lt 3 || (test $BASH_MAJOR -eq 3 && test $BASH_MINOR -lt 2); then 24818 as_fn_error $? "bash version 3.2 or better is required" "$LINENO" 5 24819 fi 24820 24821 # Test if bash supports pipefail. 24822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5 24823 $as_echo_n "checking if bash supports pipefail... " >&6; } 24824 if ${BASH} -c 'set -o pipefail'; then 24825 BASH_ARGS="$BASH_ARGS -o pipefail" 24826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24827 $as_echo "yes" >&6; } 24828 else 24829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24830 $as_echo "no" >&6; } 24831 fi 24832 24833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5 24834 $as_echo_n "checking if bash supports errexit (-e)... " >&6; } 24835 if ${BASH} -e -c 'true'; then 24836 BASH_ARGS="$BASH_ARGS -e" 24837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24838 $as_echo "yes" >&6; } 24839 else 24840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24841 $as_echo "no" >&6; } 24842 fi 24843 24844 24845 24846 24847 # Check if pkg-config is available. 24848 24849 24850 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 24851 if test -n "$ac_tool_prefix"; then 24852 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 24853 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 24854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24855 $as_echo_n "checking for $ac_word... " >&6; } 24856 if ${ac_cv_path_PKG_CONFIG+:} false; then : 24857 $as_echo_n "(cached) " >&6 24858 else 24859 case $PKG_CONFIG in 24860 [\\/]* | ?:[\\/]*) 24861 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 24862 ;; 24863 *) 24864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24865 for as_dir in $PATH 24866 do 24867 IFS=$as_save_IFS 24868 test -z "$as_dir" && as_dir=. 24869 for ac_exec_ext in '' $ac_executable_extensions; do 24870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24871 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24873 break 2 24874 fi 24875 done 24876 done 24877 IFS=$as_save_IFS 24878 24879 ;; 24880 esac 24881 fi 24882 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 24883 if test -n "$PKG_CONFIG"; then 24884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 24885 $as_echo "$PKG_CONFIG" >&6; } 24886 else 24887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24888 $as_echo "no" >&6; } 24889 fi 24890 24891 24892 fi 24893 if test -z "$ac_cv_path_PKG_CONFIG"; then 24894 ac_pt_PKG_CONFIG=$PKG_CONFIG 24895 # Extract the first word of "pkg-config", so it can be a program name with args. 24896 set dummy pkg-config; ac_word=$2 24897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24898 $as_echo_n "checking for $ac_word... " >&6; } 24899 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 24900 $as_echo_n "(cached) " >&6 24901 else 24902 case $ac_pt_PKG_CONFIG in 24903 [\\/]* | ?:[\\/]*) 24904 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 24905 ;; 24906 *) 24907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24908 for as_dir in $PATH 24909 do 24910 IFS=$as_save_IFS 24911 test -z "$as_dir" && as_dir=. 24912 for ac_exec_ext in '' $ac_executable_extensions; do 24913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24914 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24916 break 2 24917 fi 24918 done 24919 done 24920 IFS=$as_save_IFS 24921 24922 ;; 24923 esac 24924 fi 24925 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 24926 if test -n "$ac_pt_PKG_CONFIG"; then 24927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 24928 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 24929 else 24930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24931 $as_echo "no" >&6; } 24932 fi 24933 24934 if test "x$ac_pt_PKG_CONFIG" = x; then 24935 PKG_CONFIG="" 24936 else 24937 case $cross_compiling:$ac_tool_warned in 24938 yes:) 24939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24941 ac_tool_warned=yes ;; 24942 esac 24943 PKG_CONFIG=$ac_pt_PKG_CONFIG 24944 fi 24945 else 24946 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 24947 fi 24948 24949 fi 24950 if test -n "$PKG_CONFIG"; then 24951 _pkg_min_version=0.9.0 24952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 24953 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 24954 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 24955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24956 $as_echo "yes" >&6; } 24957 else 24958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24959 $as_echo "no" >&6; } 24960 PKG_CONFIG="" 24961 fi 24962 24963 fi 24964 24965 # After basic tools have been setup, we can check build os specific details. 24966 24967 ############################################################################### 24968 24969 # Note that this is the build platform OS version! 24970 24971 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 24972 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 24973 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 24974 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 24975 24976 24977 24978 24979 24980 # Misc basic settings 24981 24982 24983 # Check whether --with-default-make-target was given. 24984 if test "${with_default_make_target+set}" = set; then : 24985 withval=$with_default_make_target; 24986 fi 24987 24988 if test "x$with_default_make_target" = "x" \ 24989 || test "x$with_default_make_target" = "xyes"; then 24990 DEFAULT_MAKE_TARGET="exploded-image" 24991 elif test "x$with_default_make_target" = "xno"; then 24992 as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5 24993 else 24994 DEFAULT_MAKE_TARGET="$with_default_make_target" 24995 fi 24996 24997 24998 24999 25000 ############################################################################### 25001 # 25002 # Determine OpenJDK variants, options and version numbers. 25003 # 25004 ############################################################################### 25005 25006 # We need build & target for this. 25007 25008 # Should we build a JDK without a graphical UI? 25009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headless only" >&5 25010 $as_echo_n "checking headless only... " >&6; } 25011 # Check whether --enable-headless-only was given. 25012 if test "${enable_headless_only+set}" = set; then : 25013 enableval=$enable_headless_only; 25014 fi 25015 25016 25017 if test "x$enable_headless_only" = "xyes"; then 25018 ENABLE_HEADLESS_ONLY="true" 25019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25020 $as_echo "yes" >&6; } 25021 elif test "x$enable_headless_only" = "xno"; then 25022 ENABLE_HEADLESS_ONLY="false" 25023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25024 $as_echo "no" >&6; } 25025 elif test "x$enable_headless_only" = "x"; then 25026 ENABLE_HEADLESS_ONLY="false" 25027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25028 $as_echo "no" >&6; } 25029 else 25030 as_fn_error $? "--enable-headless-only can only take yes or no" "$LINENO" 5 25031 fi 25032 25033 25034 25035 # Should we build the complete docs, or just a lightweight version? 25036 # Check whether --enable-full-docs was given. 25037 if test "${enable_full_docs+set}" = set; then : 25038 enableval=$enable_full_docs; 25039 fi 25040 25041 25042 # Verify dependencies 25043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for graphviz dot" >&5 25044 $as_echo_n "checking for graphviz dot... " >&6; } 25045 if test "x$DOT" != "x"; then 25046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25047 $as_echo "yes" >&6; } 25048 else 25049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5 25050 $as_echo "no, cannot generate full docs" >&6; } 25051 FULL_DOCS_DEP_MISSING=true 25052 fi 25053 25054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pandoc" >&5 25055 $as_echo_n "checking for pandoc... " >&6; } 25056 if test "x$PANDOC" != "x"; then 25057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25058 $as_echo "yes" >&6; } 25059 else 25060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5 25061 $as_echo "no, cannot generate full docs" >&6; } 25062 FULL_DOCS_DEP_MISSING=true 25063 fi 25064 25065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking full docs" >&5 25066 $as_echo_n "checking full docs... " >&6; } 25067 if test "x$enable_full_docs" = xyes; then 25068 if test "x$FULL_DOCS_DEP_MISSING" = "xtrue"; then 25069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 25070 $as_echo "no, missing dependencies" >&6; } 25071 25072 # Print a helpful message on how to acquire the necessary build dependency. 25073 # dot is the help tag: freetype, cups, alsa etc 25074 MISSING_DEPENDENCY=dot 25075 25076 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25077 cygwin_help $MISSING_DEPENDENCY 25078 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25079 msys_help $MISSING_DEPENDENCY 25080 else 25081 PKGHANDLER_COMMAND= 25082 25083 case $PKGHANDLER in 25084 apt-get) 25085 apt_help $MISSING_DEPENDENCY ;; 25086 yum) 25087 yum_help $MISSING_DEPENDENCY ;; 25088 brew) 25089 brew_help $MISSING_DEPENDENCY ;; 25090 port) 25091 port_help $MISSING_DEPENDENCY ;; 25092 pkgutil) 25093 pkgutil_help $MISSING_DEPENDENCY ;; 25094 pkgadd) 25095 pkgadd_help $MISSING_DEPENDENCY ;; 25096 esac 25097 25098 if test "x$PKGHANDLER_COMMAND" != x; then 25099 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 25100 fi 25101 fi 25102 25103 as_fn_error $? "Cannot enable full docs with missing dependencies. See above. $HELP_MSG" "$LINENO" 5 25104 else 25105 ENABLE_FULL_DOCS=true 25106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 25107 $as_echo "yes, forced" >&6; } 25108 fi 25109 elif test "x$enable_full_docs" = xno; then 25110 ENABLE_FULL_DOCS=false 25111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 25112 $as_echo "no, forced" >&6; } 25113 elif test "x$enable_full_docs" = x; then 25114 # Check for prerequisites 25115 if test "x$FULL_DOCS_DEP_MISSING" = xtrue; then 25116 ENABLE_FULL_DOCS=false 25117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 25118 $as_echo "no, missing dependencies" >&6; } 25119 else 25120 ENABLE_FULL_DOCS=true 25121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5 25122 $as_echo "yes, dependencies present" >&6; } 25123 fi 25124 else 25125 as_fn_error $? "--enable-full-docs can only take yes or no" "$LINENO" 5 25126 fi 25127 25128 25129 25130 # Choose cacerts source file 25131 25132 # Check whether --with-cacerts-file was given. 25133 if test "${with_cacerts_file+set}" = set; then : 25134 withval=$with_cacerts_file; 25135 fi 25136 25137 if test "x$with_cacerts_file" != x; then 25138 CACERTS_FILE=$with_cacerts_file 25139 fi 25140 25141 25142 # Enable or disable unlimited crypto 25143 # Check whether --enable-unlimited-crypto was given. 25144 if test "${enable_unlimited_crypto+set}" = set; then : 25145 enableval=$enable_unlimited_crypto; 25146 else 25147 enable_unlimited_crypto=yes 25148 fi 25149 25150 if test "x$enable_unlimited_crypto" = "xyes"; then 25151 UNLIMITED_CRYPTO=true 25152 else 25153 UNLIMITED_CRYPTO=false 25154 fi 25155 25156 25157 # Should we build the serviceability agent (SA)? 25158 INCLUDE_SA=true 25159 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 25160 INCLUDE_SA=false 25161 fi 25162 if test "x$OPENJDK_TARGET_OS" = xaix ; then 25163 INCLUDE_SA=false 25164 fi 25165 25166 25167 # Compress jars 25168 COMPRESS_JARS=false 25169 25170 25171 25172 # Setup default copyright year. Mostly overridden when building close to a new year. 25173 25174 # Check whether --with-copyright-year was given. 25175 if test "${with_copyright_year+set}" = set; then : 25176 withval=$with_copyright_year; 25177 fi 25178 25179 if test "x$with_copyright_year" = xyes; then 25180 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 25181 elif test "x$with_copyright_year" != x; then 25182 COPYRIGHT_YEAR="$with_copyright_year" 25183 else 25184 COPYRIGHT_YEAR=`$DATE +'%Y'` 25185 fi 25186 25187 25188 25189 # Check whether --enable-keep-packaged-modules was given. 25190 if test "${enable_keep_packaged_modules+set}" = set; then : 25191 enableval=$enable_keep_packaged_modules; 25192 fi 25193 25194 25195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5 25196 $as_echo_n "checking if packaged modules are kept... " >&6; } 25197 if test "x$enable_keep_packaged_modules" = "xyes"; then 25198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25199 $as_echo "yes" >&6; } 25200 JLINK_KEEP_PACKAGED_MODULES=true 25201 elif test "x$enable_keep_packaged_modules" = "xno"; then 25202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25203 $as_echo "no" >&6; } 25204 JLINK_KEEP_PACKAGED_MODULES=false 25205 elif test "x$enable_keep_packaged_modules" = "x"; then 25206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 25207 $as_echo "yes (default)" >&6; } 25208 JLINK_KEEP_PACKAGED_MODULES=true 25209 else 25210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5 25211 $as_echo "error" >&6; } 25212 as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5 25213 fi 25214 25215 25216 25217 25218 # Warn user that old version arguments are deprecated. 25219 25220 25221 # Check whether --with-milestone was given. 25222 if test "${with_milestone+set}" = set; then : 25223 withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5 25224 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;} 25225 fi 25226 25227 25228 25229 25230 # Check whether --with-update-version was given. 25231 if test "${with_update_version+set}" = set; then : 25232 withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5 25233 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;} 25234 fi 25235 25236 25237 25238 25239 # Check whether --with-user-release-suffix was given. 25240 if test "${with_user_release_suffix+set}" = set; then : 25241 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 25242 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;} 25243 fi 25244 25245 25246 25247 25248 # Check whether --with-build-number was given. 25249 if test "${with_build_number+set}" = set; then : 25250 withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5 25251 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;} 25252 fi 25253 25254 25255 25256 # Source the version numbers file 25257 . $AUTOCONF_DIR/version-numbers 25258 25259 # Some non-version number information is set in that file 25260 25261 25262 25263 25264 25265 25266 25267 25268 25269 # Override version from arguments 25270 25271 # If --with-version-string is set, process it first. It is possible to 25272 # override parts with more specific flags, since these are processed later. 25273 25274 # Check whether --with-version-string was given. 25275 if test "${with_version_string+set}" = set; then : 25276 withval=$with_version_string; 25277 fi 25278 25279 if test "x$with_version_string" = xyes; then 25280 as_fn_error $? "--with-version-string must have a value" "$LINENO" 5 25281 elif test "x$with_version_string" != x; then 25282 # Additional [] needed to keep m4 from mangling shell constructs. 25283 if [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then 25284 VERSION_MAJOR=${BASH_REMATCH[1]} 25285 VERSION_MINOR=${BASH_REMATCH[3]} 25286 VERSION_SECURITY=${BASH_REMATCH[5]} 25287 VERSION_PATCH=${BASH_REMATCH[7]} 25288 VERSION_PRE=${BASH_REMATCH[9]} 25289 version_plus_separator=${BASH_REMATCH[11]} 25290 VERSION_BUILD=${BASH_REMATCH[12]} 25291 VERSION_OPT=${BASH_REMATCH[14]} 25292 # Unspecified numerical fields are interpreted as 0. 25293 if test "x$VERSION_MINOR" = x; then 25294 VERSION_MINOR=0 25295 fi 25296 if test "x$VERSION_SECURITY" = x; then 25297 VERSION_SECURITY=0 25298 fi 25299 if test "x$VERSION_PATCH" = x; then 25300 VERSION_PATCH=0 25301 fi 25302 if test "x$version_plus_separator" != x \ 25303 && test "x$VERSION_BUILD$VERSION_OPT" = x; then 25304 as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5 25305 fi 25306 # Stop the version part process from setting default values. 25307 # We still allow them to explicitly override though. 25308 NO_DEFAULT_VERSION_PARTS=true 25309 else 25310 as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5 25311 fi 25312 fi 25313 25314 25315 # Check whether --with-version-pre was given. 25316 if test "${with_version_pre+set}" = set; then : 25317 withval=$with_version_pre; with_version_pre_present=true 25318 else 25319 with_version_pre_present=false 25320 fi 25321 25322 25323 if test "x$with_version_pre_present" = xtrue; then 25324 if test "x$with_version_pre" = xyes; then 25325 as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5 25326 elif test "x$with_version_pre" = xno; then 25327 # Interpret --without-* as empty string instead of the literal "no" 25328 VERSION_PRE= 25329 else 25330 # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4. 25331 VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'` 25332 if test "x$VERSION_PRE" != "x$with_version_pre"; then 25333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5 25334 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;} 25335 fi 25336 fi 25337 else 25338 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25339 # Default is to use "internal" as pre 25340 VERSION_PRE="internal" 25341 fi 25342 fi 25343 25344 25345 # Check whether --with-version-opt was given. 25346 if test "${with_version_opt+set}" = set; then : 25347 withval=$with_version_opt; with_version_opt_present=true 25348 else 25349 with_version_opt_present=false 25350 fi 25351 25352 25353 if test "x$with_version_opt_present" = xtrue; then 25354 if test "x$with_version_opt" = xyes; then 25355 as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5 25356 elif test "x$with_version_opt" = xno; then 25357 # Interpret --without-* as empty string instead of the literal "no" 25358 VERSION_OPT= 25359 else 25360 # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4. 25361 VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'` 25362 if test "x$VERSION_OPT" != "x$with_version_opt"; then 25363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5 25364 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;} 25365 fi 25366 fi 25367 else 25368 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25369 # Default is to calculate a string like this 'adhoc.<username>.<base dir name>' 25370 # Outer [ ] to quote m4. 25371 basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'` 25372 VERSION_OPT="adhoc.$USERNAME.$basedirname" 25373 fi 25374 fi 25375 25376 25377 # Check whether --with-version-build was given. 25378 if test "${with_version_build+set}" = set; then : 25379 withval=$with_version_build; with_version_build_present=true 25380 else 25381 with_version_build_present=false 25382 fi 25383 25384 25385 if test "x$with_version_build_present" = xtrue; then 25386 if test "x$with_version_build" = xyes; then 25387 as_fn_error $? "--with-version-build must have a value" "$LINENO" 5 25388 elif test "x$with_version_build" = xno; then 25389 # Interpret --without-* as empty string instead of the literal "no" 25390 VERSION_BUILD= 25391 elif test "x$with_version_build" = x; then 25392 VERSION_BUILD= 25393 else 25394 25395 # Additional [] needed to keep m4 from mangling shell constructs. 25396 if ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25397 as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5 25398 fi 25399 # Extract the version number without leading zeros. 25400 cleaned_value=${BASH_REMATCH[1]} 25401 if test "x$cleaned_value" = x; then 25402 # Special case for zero 25403 cleaned_value=${BASH_REMATCH[2]} 25404 fi 25405 25406 if test $cleaned_value -gt 255; then 25407 as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5 25408 fi 25409 if test "x$cleaned_value" != "x$with_version_build"; then 25410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5 25411 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;} 25412 fi 25413 VERSION_BUILD=$cleaned_value 25414 25415 fi 25416 else 25417 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25418 # Default is to not have a build number. 25419 VERSION_BUILD="" 25420 # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0. 25421 VERSION_BUILD=0 25422 fi 25423 fi 25424 25425 25426 # Check whether --with-version-major was given. 25427 if test "${with_version_major+set}" = set; then : 25428 withval=$with_version_major; with_version_major_present=true 25429 else 25430 with_version_major_present=false 25431 fi 25432 25433 25434 if test "x$with_version_major_present" = xtrue; then 25435 if test "x$with_version_major" = xyes; then 25436 as_fn_error $? "--with-version-major must have a value" "$LINENO" 5 25437 else 25438 25439 # Additional [] needed to keep m4 from mangling shell constructs. 25440 if ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25441 as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5 25442 fi 25443 # Extract the version number without leading zeros. 25444 cleaned_value=${BASH_REMATCH[1]} 25445 if test "x$cleaned_value" = x; then 25446 # Special case for zero 25447 cleaned_value=${BASH_REMATCH[2]} 25448 fi 25449 25450 if test $cleaned_value -gt 255; then 25451 as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5 25452 fi 25453 if test "x$cleaned_value" != "x$with_version_major"; then 25454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5 25455 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;} 25456 fi 25457 VERSION_MAJOR=$cleaned_value 25458 25459 fi 25460 else 25461 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25462 # Default is to get value from version-numbers 25463 VERSION_MAJOR="$DEFAULT_VERSION_MAJOR" 25464 fi 25465 fi 25466 25467 25468 # Check whether --with-version-minor was given. 25469 if test "${with_version_minor+set}" = set; then : 25470 withval=$with_version_minor; with_version_minor_present=true 25471 else 25472 with_version_minor_present=false 25473 fi 25474 25475 25476 if test "x$with_version_minor_present" = xtrue; then 25477 if test "x$with_version_minor" = xyes; then 25478 as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5 25479 elif test "x$with_version_minor" = xno; then 25480 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 25481 VERSION_MINOR=0 25482 elif test "x$with_version_minor" = x; then 25483 VERSION_MINOR=0 25484 else 25485 25486 # Additional [] needed to keep m4 from mangling shell constructs. 25487 if ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25488 as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5 25489 fi 25490 # Extract the version number without leading zeros. 25491 cleaned_value=${BASH_REMATCH[1]} 25492 if test "x$cleaned_value" = x; then 25493 # Special case for zero 25494 cleaned_value=${BASH_REMATCH[2]} 25495 fi 25496 25497 if test $cleaned_value -gt 255; then 25498 as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5 25499 fi 25500 if test "x$cleaned_value" != "x$with_version_minor"; then 25501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5 25502 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;} 25503 fi 25504 VERSION_MINOR=$cleaned_value 25505 25506 fi 25507 else 25508 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25509 # Default is 0, if unspecified 25510 VERSION_MINOR=$DEFAULT_VERSION_MINOR 25511 fi 25512 fi 25513 25514 25515 # Check whether --with-version-security was given. 25516 if test "${with_version_security+set}" = set; then : 25517 withval=$with_version_security; with_version_security_present=true 25518 else 25519 with_version_security_present=false 25520 fi 25521 25522 25523 if test "x$with_version_security_present" = xtrue; then 25524 if test "x$with_version_security" = xyes; then 25525 as_fn_error $? "--with-version-security must have a value" "$LINENO" 5 25526 elif test "x$with_version_security" = xno; then 25527 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 25528 VERSION_SECURITY=0 25529 elif test "x$with_version_security" = x; then 25530 VERSION_SECURITY=0 25531 else 25532 25533 # Additional [] needed to keep m4 from mangling shell constructs. 25534 if ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25535 as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5 25536 fi 25537 # Extract the version number without leading zeros. 25538 cleaned_value=${BASH_REMATCH[1]} 25539 if test "x$cleaned_value" = x; then 25540 # Special case for zero 25541 cleaned_value=${BASH_REMATCH[2]} 25542 fi 25543 25544 if test $cleaned_value -gt 255; then 25545 as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5 25546 fi 25547 if test "x$cleaned_value" != "x$with_version_security"; then 25548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5 25549 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;} 25550 fi 25551 VERSION_SECURITY=$cleaned_value 25552 25553 fi 25554 else 25555 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25556 # Default is 0, if unspecified 25557 VERSION_SECURITY=$DEFAULT_VERSION_SECURITY 25558 fi 25559 fi 25560 25561 25562 # Check whether --with-version-patch was given. 25563 if test "${with_version_patch+set}" = set; then : 25564 withval=$with_version_patch; with_version_patch_present=true 25565 else 25566 with_version_patch_present=false 25567 fi 25568 25569 25570 if test "x$with_version_patch_present" = xtrue; then 25571 if test "x$with_version_patch" = xyes; then 25572 as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5 25573 elif test "x$with_version_patch" = xno; then 25574 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 25575 VERSION_PATCH=0 25576 elif test "x$with_version_patch" = x; then 25577 VERSION_PATCH=0 25578 else 25579 25580 # Additional [] needed to keep m4 from mangling shell constructs. 25581 if ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25582 as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5 25583 fi 25584 # Extract the version number without leading zeros. 25585 cleaned_value=${BASH_REMATCH[1]} 25586 if test "x$cleaned_value" = x; then 25587 # Special case for zero 25588 cleaned_value=${BASH_REMATCH[2]} 25589 fi 25590 25591 if test $cleaned_value -gt 255; then 25592 as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5 25593 fi 25594 if test "x$cleaned_value" != "x$with_version_patch"; then 25595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5 25596 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;} 25597 fi 25598 VERSION_PATCH=$cleaned_value 25599 25600 fi 25601 else 25602 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25603 # Default is 0, if unspecified 25604 VERSION_PATCH=$DEFAULT_VERSION_PATCH 25605 fi 25606 fi 25607 25608 # Calculate derived version properties 25609 25610 # Set VERSION_IS_GA based on if VERSION_PRE has a value 25611 if test "x$VERSION_PRE" = x; then 25612 VERSION_IS_GA=true 25613 else 25614 VERSION_IS_GA=false 25615 fi 25616 25617 # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions. 25618 VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH 25619 25620 stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS 25621 # Strip trailing zeroes from stripped_version_number 25622 for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done 25623 VERSION_NUMBER=$stripped_version_number 25624 25625 # The complete version string, with additional build information 25626 if test "x$VERSION_BUILD$VERSION_OPT" = x; then 25627 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 25628 else 25629 # If either build or opt is set, we need a + separator 25630 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT} 25631 fi 25632 25633 # The short version string, just VERSION_NUMBER and PRE, if present. 25634 VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 25635 25636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5 25637 $as_echo_n "checking for version string... " >&6; } 25638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5 25639 $as_echo "$VERSION_STRING" >&6; } 25640 25641 25642 25643 25644 25645 25646 25647 25648 25649 25650 25651 25652 25653 25654 25655 ############################################################################### 25656 # 25657 # Setup BootJDK, used to bootstrap the build. 25658 # 25659 ############################################################################### 25660 25661 25662 BOOT_JDK_FOUND=no 25663 25664 # Check whether --with-boot-jdk was given. 25665 if test "${with_boot_jdk+set}" = set; then : 25666 withval=$with_boot_jdk; 25667 fi 25668 25669 25670 # We look for the Boot JDK through various means, going from more certain to 25671 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 25672 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 25673 # must check if this is indeed valid; otherwise we'll continue looking. 25674 25675 # Test: Is bootjdk explicitly set by command line arguments? 25676 25677 if test "x$BOOT_JDK_FOUND" = xno; then 25678 # Now execute the test 25679 25680 if test "x$with_boot_jdk" != x; then 25681 BOOT_JDK=$with_boot_jdk 25682 BOOT_JDK_FOUND=maybe 25683 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 25684 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 25685 fi 25686 25687 25688 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25689 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25690 # Do we have a bin/java? 25691 if test ! -x "$BOOT_JDK/bin/java"; then 25692 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25693 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25694 BOOT_JDK_FOUND=no 25695 else 25696 # Do we have a bin/javac? 25697 if test ! -x "$BOOT_JDK/bin/javac"; then 25698 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25699 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25700 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25701 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25702 BOOT_JDK_FOUND=no 25703 else 25704 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25705 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25706 25707 # Extra M4 quote needed to protect [] in grep expression. 25708 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25709 if test "x$FOUND_CORRECT_VERSION" = x; then 25710 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25711 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25712 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25713 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25714 BOOT_JDK_FOUND=no 25715 else 25716 # We're done! :-) 25717 BOOT_JDK_FOUND=yes 25718 25719 # Only process if variable expands to non-empty 25720 25721 if test "x$BOOT_JDK" != x; then 25722 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25723 25724 # Input might be given as Windows format, start by converting to 25725 # unix format. 25726 path="$BOOT_JDK" 25727 new_path=`$CYGPATH -u "$path"` 25728 25729 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25730 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25731 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25732 # "foo.exe" is OK but "foo" is an error. 25733 # 25734 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25735 # It is also a way to make sure we got the proper file name for the real test later on. 25736 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25737 if test "x$test_shortpath" = x; then 25738 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25739 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25740 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25741 fi 25742 25743 # Call helper function which possibly converts this using DOS-style short mode. 25744 # If so, the updated path is stored in $new_path. 25745 25746 input_path="$new_path" 25747 # Check if we need to convert this using DOS-style short mode. If the path 25748 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25749 # take no chances and rewrite it. 25750 # Note: m4 eats our [], so we need to use [ and ] instead. 25751 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25752 if test "x$has_forbidden_chars" != x; then 25753 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25754 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25755 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25756 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25757 # Going to short mode and back again did indeed matter. Since short mode is 25758 # case insensitive, let's make it lowercase to improve readability. 25759 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25760 # Now convert it back to Unix-style (cygpath) 25761 input_path=`$CYGPATH -u "$shortmode_path"` 25762 new_path="$input_path" 25763 fi 25764 fi 25765 25766 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25767 if test "x$test_cygdrive_prefix" = x; then 25768 # As a simple fix, exclude /usr/bin since it's not a real path. 25769 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25770 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25771 # a path prefixed by /cygdrive for fixpath to work. 25772 new_path="$CYGWIN_ROOT_PATH$input_path" 25773 fi 25774 fi 25775 25776 25777 if test "x$path" != "x$new_path"; then 25778 BOOT_JDK="$new_path" 25779 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25780 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25781 fi 25782 25783 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25784 25785 path="$BOOT_JDK" 25786 has_colon=`$ECHO $path | $GREP ^.:` 25787 new_path="$path" 25788 if test "x$has_colon" = x; then 25789 # Not in mixed or Windows style, start by that. 25790 new_path=`cmd //c echo $path` 25791 fi 25792 25793 25794 input_path="$new_path" 25795 # Check if we need to convert this using DOS-style short mode. If the path 25796 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25797 # take no chances and rewrite it. 25798 # Note: m4 eats our [], so we need to use [ and ] instead. 25799 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25800 if test "x$has_forbidden_chars" != x; then 25801 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25802 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25803 fi 25804 25805 25806 windows_path="$new_path" 25807 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25808 unix_path=`$CYGPATH -u "$windows_path"` 25809 new_path="$unix_path" 25810 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25811 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25812 new_path="$unix_path" 25813 fi 25814 25815 if test "x$path" != "x$new_path"; then 25816 BOOT_JDK="$new_path" 25817 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25818 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25819 fi 25820 25821 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25822 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25823 25824 else 25825 # We're on a unix platform. Hooray! :) 25826 path="$BOOT_JDK" 25827 has_space=`$ECHO "$path" | $GREP " "` 25828 if test "x$has_space" != x; then 25829 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25830 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25831 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25832 fi 25833 25834 # Use eval to expand a potential ~ 25835 eval path="$path" 25836 if test ! -f "$path" && test ! -d "$path"; then 25837 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25838 fi 25839 25840 if test -d "$path"; then 25841 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25842 else 25843 dir="`$DIRNAME "$path"`" 25844 base="`$BASENAME "$path"`" 25845 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25846 fi 25847 fi 25848 fi 25849 25850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25851 $as_echo_n "checking for Boot JDK... " >&6; } 25852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25853 $as_echo "$BOOT_JDK" >&6; } 25854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25855 $as_echo_n "checking Boot JDK version... " >&6; } 25856 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25858 $as_echo "$BOOT_JDK_VERSION" >&6; } 25859 fi # end check jdk version 25860 fi # end check javac 25861 fi # end check java 25862 fi # end check boot jdk found 25863 fi 25864 25865 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 25866 # Having specified an argument which is incorrect will produce an instant failure; 25867 # we should not go on looking 25868 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 25869 fi 25870 25871 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 25872 25873 if test "x$BOOT_JDK_FOUND" = xno; then 25874 # Now execute the test 25875 25876 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 25877 # First check at user selected default 25878 25879 if test "x$BOOT_JDK_FOUND" = xno; then 25880 # Now execute the test 25881 25882 if test -x /usr/libexec/java_home; then 25883 BOOT_JDK=`/usr/libexec/java_home ` 25884 BOOT_JDK_FOUND=maybe 25885 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 25886 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 25887 fi 25888 25889 25890 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25891 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25892 # Do we have a bin/java? 25893 if test ! -x "$BOOT_JDK/bin/java"; then 25894 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25895 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25896 BOOT_JDK_FOUND=no 25897 else 25898 # Do we have a bin/javac? 25899 if test ! -x "$BOOT_JDK/bin/javac"; then 25900 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25901 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25902 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25903 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25904 BOOT_JDK_FOUND=no 25905 else 25906 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25907 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25908 25909 # Extra M4 quote needed to protect [] in grep expression. 25910 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25911 if test "x$FOUND_CORRECT_VERSION" = x; then 25912 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25913 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25914 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25915 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25916 BOOT_JDK_FOUND=no 25917 else 25918 # We're done! :-) 25919 BOOT_JDK_FOUND=yes 25920 25921 # Only process if variable expands to non-empty 25922 25923 if test "x$BOOT_JDK" != x; then 25924 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25925 25926 # Input might be given as Windows format, start by converting to 25927 # unix format. 25928 path="$BOOT_JDK" 25929 new_path=`$CYGPATH -u "$path"` 25930 25931 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25932 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25933 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25934 # "foo.exe" is OK but "foo" is an error. 25935 # 25936 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25937 # It is also a way to make sure we got the proper file name for the real test later on. 25938 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25939 if test "x$test_shortpath" = x; then 25940 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25941 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25942 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25943 fi 25944 25945 # Call helper function which possibly converts this using DOS-style short mode. 25946 # If so, the updated path is stored in $new_path. 25947 25948 input_path="$new_path" 25949 # Check if we need to convert this using DOS-style short mode. If the path 25950 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25951 # take no chances and rewrite it. 25952 # Note: m4 eats our [], so we need to use [ and ] instead. 25953 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25954 if test "x$has_forbidden_chars" != x; then 25955 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25956 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25957 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25958 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25959 # Going to short mode and back again did indeed matter. Since short mode is 25960 # case insensitive, let's make it lowercase to improve readability. 25961 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25962 # Now convert it back to Unix-style (cygpath) 25963 input_path=`$CYGPATH -u "$shortmode_path"` 25964 new_path="$input_path" 25965 fi 25966 fi 25967 25968 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25969 if test "x$test_cygdrive_prefix" = x; then 25970 # As a simple fix, exclude /usr/bin since it's not a real path. 25971 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25972 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25973 # a path prefixed by /cygdrive for fixpath to work. 25974 new_path="$CYGWIN_ROOT_PATH$input_path" 25975 fi 25976 fi 25977 25978 25979 if test "x$path" != "x$new_path"; then 25980 BOOT_JDK="$new_path" 25981 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25982 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25983 fi 25984 25985 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25986 25987 path="$BOOT_JDK" 25988 has_colon=`$ECHO $path | $GREP ^.:` 25989 new_path="$path" 25990 if test "x$has_colon" = x; then 25991 # Not in mixed or Windows style, start by that. 25992 new_path=`cmd //c echo $path` 25993 fi 25994 25995 25996 input_path="$new_path" 25997 # Check if we need to convert this using DOS-style short mode. If the path 25998 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25999 # take no chances and rewrite it. 26000 # Note: m4 eats our [], so we need to use [ and ] instead. 26001 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26002 if test "x$has_forbidden_chars" != x; then 26003 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26004 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26005 fi 26006 26007 26008 windows_path="$new_path" 26009 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26010 unix_path=`$CYGPATH -u "$windows_path"` 26011 new_path="$unix_path" 26012 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26013 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26014 new_path="$unix_path" 26015 fi 26016 26017 if test "x$path" != "x$new_path"; then 26018 BOOT_JDK="$new_path" 26019 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26020 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26021 fi 26022 26023 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26024 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26025 26026 else 26027 # We're on a unix platform. Hooray! :) 26028 path="$BOOT_JDK" 26029 has_space=`$ECHO "$path" | $GREP " "` 26030 if test "x$has_space" != x; then 26031 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26032 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26033 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26034 fi 26035 26036 # Use eval to expand a potential ~ 26037 eval path="$path" 26038 if test ! -f "$path" && test ! -d "$path"; then 26039 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26040 fi 26041 26042 if test -d "$path"; then 26043 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26044 else 26045 dir="`$DIRNAME "$path"`" 26046 base="`$BASENAME "$path"`" 26047 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26048 fi 26049 fi 26050 fi 26051 26052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26053 $as_echo_n "checking for Boot JDK... " >&6; } 26054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26055 $as_echo "$BOOT_JDK" >&6; } 26056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26057 $as_echo_n "checking Boot JDK version... " >&6; } 26058 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26060 $as_echo "$BOOT_JDK_VERSION" >&6; } 26061 fi # end check jdk version 26062 fi # end check javac 26063 fi # end check java 26064 fi # end check boot jdk found 26065 fi 26066 26067 # If that did not work out (e.g. too old), try explicit versions instead 26068 26069 if test "x$BOOT_JDK_FOUND" = xno; then 26070 # Now execute the test 26071 26072 if test -x /usr/libexec/java_home; then 26073 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 26074 BOOT_JDK_FOUND=maybe 26075 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 26076 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 26077 fi 26078 26079 26080 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26081 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26082 # Do we have a bin/java? 26083 if test ! -x "$BOOT_JDK/bin/java"; then 26084 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26085 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26086 BOOT_JDK_FOUND=no 26087 else 26088 # Do we have a bin/javac? 26089 if test ! -x "$BOOT_JDK/bin/javac"; then 26090 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26091 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26092 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26093 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26094 BOOT_JDK_FOUND=no 26095 else 26096 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26097 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26098 26099 # Extra M4 quote needed to protect [] in grep expression. 26100 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26101 if test "x$FOUND_CORRECT_VERSION" = x; then 26102 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26103 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26104 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26105 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26106 BOOT_JDK_FOUND=no 26107 else 26108 # We're done! :-) 26109 BOOT_JDK_FOUND=yes 26110 26111 # Only process if variable expands to non-empty 26112 26113 if test "x$BOOT_JDK" != x; then 26114 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26115 26116 # Input might be given as Windows format, start by converting to 26117 # unix format. 26118 path="$BOOT_JDK" 26119 new_path=`$CYGPATH -u "$path"` 26120 26121 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26122 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26123 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26124 # "foo.exe" is OK but "foo" is an error. 26125 # 26126 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26127 # It is also a way to make sure we got the proper file name for the real test later on. 26128 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26129 if test "x$test_shortpath" = x; then 26130 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26131 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26132 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26133 fi 26134 26135 # Call helper function which possibly converts this using DOS-style short mode. 26136 # If so, the updated path is stored in $new_path. 26137 26138 input_path="$new_path" 26139 # Check if we need to convert this using DOS-style short mode. If the path 26140 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26141 # take no chances and rewrite it. 26142 # Note: m4 eats our [], so we need to use [ and ] instead. 26143 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26144 if test "x$has_forbidden_chars" != x; then 26145 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26146 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26147 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26148 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26149 # Going to short mode and back again did indeed matter. Since short mode is 26150 # case insensitive, let's make it lowercase to improve readability. 26151 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26152 # Now convert it back to Unix-style (cygpath) 26153 input_path=`$CYGPATH -u "$shortmode_path"` 26154 new_path="$input_path" 26155 fi 26156 fi 26157 26158 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26159 if test "x$test_cygdrive_prefix" = x; then 26160 # As a simple fix, exclude /usr/bin since it's not a real path. 26161 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26162 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26163 # a path prefixed by /cygdrive for fixpath to work. 26164 new_path="$CYGWIN_ROOT_PATH$input_path" 26165 fi 26166 fi 26167 26168 26169 if test "x$path" != "x$new_path"; then 26170 BOOT_JDK="$new_path" 26171 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26172 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26173 fi 26174 26175 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26176 26177 path="$BOOT_JDK" 26178 has_colon=`$ECHO $path | $GREP ^.:` 26179 new_path="$path" 26180 if test "x$has_colon" = x; then 26181 # Not in mixed or Windows style, start by that. 26182 new_path=`cmd //c echo $path` 26183 fi 26184 26185 26186 input_path="$new_path" 26187 # Check if we need to convert this using DOS-style short mode. If the path 26188 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26189 # take no chances and rewrite it. 26190 # Note: m4 eats our [], so we need to use [ and ] instead. 26191 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26192 if test "x$has_forbidden_chars" != x; then 26193 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26194 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26195 fi 26196 26197 26198 windows_path="$new_path" 26199 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26200 unix_path=`$CYGPATH -u "$windows_path"` 26201 new_path="$unix_path" 26202 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26203 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26204 new_path="$unix_path" 26205 fi 26206 26207 if test "x$path" != "x$new_path"; then 26208 BOOT_JDK="$new_path" 26209 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26210 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26211 fi 26212 26213 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26214 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26215 26216 else 26217 # We're on a unix platform. Hooray! :) 26218 path="$BOOT_JDK" 26219 has_space=`$ECHO "$path" | $GREP " "` 26220 if test "x$has_space" != x; then 26221 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26222 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26223 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26224 fi 26225 26226 # Use eval to expand a potential ~ 26227 eval path="$path" 26228 if test ! -f "$path" && test ! -d "$path"; then 26229 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26230 fi 26231 26232 if test -d "$path"; then 26233 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26234 else 26235 dir="`$DIRNAME "$path"`" 26236 base="`$BASENAME "$path"`" 26237 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26238 fi 26239 fi 26240 fi 26241 26242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26243 $as_echo_n "checking for Boot JDK... " >&6; } 26244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26245 $as_echo "$BOOT_JDK" >&6; } 26246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26247 $as_echo_n "checking Boot JDK version... " >&6; } 26248 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26250 $as_echo "$BOOT_JDK_VERSION" >&6; } 26251 fi # end check jdk version 26252 fi # end check javac 26253 fi # end check java 26254 fi # end check boot jdk found 26255 fi 26256 26257 26258 if test "x$BOOT_JDK_FOUND" = xno; then 26259 # Now execute the test 26260 26261 if test -x /usr/libexec/java_home; then 26262 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 26263 BOOT_JDK_FOUND=maybe 26264 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 26265 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 26266 fi 26267 26268 26269 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26270 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26271 # Do we have a bin/java? 26272 if test ! -x "$BOOT_JDK/bin/java"; then 26273 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26274 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26275 BOOT_JDK_FOUND=no 26276 else 26277 # Do we have a bin/javac? 26278 if test ! -x "$BOOT_JDK/bin/javac"; then 26279 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26280 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26281 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26282 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26283 BOOT_JDK_FOUND=no 26284 else 26285 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26286 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26287 26288 # Extra M4 quote needed to protect [] in grep expression. 26289 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26290 if test "x$FOUND_CORRECT_VERSION" = x; then 26291 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26292 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26293 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26294 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26295 BOOT_JDK_FOUND=no 26296 else 26297 # We're done! :-) 26298 BOOT_JDK_FOUND=yes 26299 26300 # Only process if variable expands to non-empty 26301 26302 if test "x$BOOT_JDK" != x; then 26303 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26304 26305 # Input might be given as Windows format, start by converting to 26306 # unix format. 26307 path="$BOOT_JDK" 26308 new_path=`$CYGPATH -u "$path"` 26309 26310 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26311 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26312 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26313 # "foo.exe" is OK but "foo" is an error. 26314 # 26315 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26316 # It is also a way to make sure we got the proper file name for the real test later on. 26317 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26318 if test "x$test_shortpath" = x; then 26319 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26320 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26321 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26322 fi 26323 26324 # Call helper function which possibly converts this using DOS-style short mode. 26325 # If so, the updated path is stored in $new_path. 26326 26327 input_path="$new_path" 26328 # Check if we need to convert this using DOS-style short mode. If the path 26329 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26330 # take no chances and rewrite it. 26331 # Note: m4 eats our [], so we need to use [ and ] instead. 26332 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26333 if test "x$has_forbidden_chars" != x; then 26334 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26335 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26336 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26337 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26338 # Going to short mode and back again did indeed matter. Since short mode is 26339 # case insensitive, let's make it lowercase to improve readability. 26340 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26341 # Now convert it back to Unix-style (cygpath) 26342 input_path=`$CYGPATH -u "$shortmode_path"` 26343 new_path="$input_path" 26344 fi 26345 fi 26346 26347 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26348 if test "x$test_cygdrive_prefix" = x; then 26349 # As a simple fix, exclude /usr/bin since it's not a real path. 26350 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26351 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26352 # a path prefixed by /cygdrive for fixpath to work. 26353 new_path="$CYGWIN_ROOT_PATH$input_path" 26354 fi 26355 fi 26356 26357 26358 if test "x$path" != "x$new_path"; then 26359 BOOT_JDK="$new_path" 26360 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26361 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26362 fi 26363 26364 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26365 26366 path="$BOOT_JDK" 26367 has_colon=`$ECHO $path | $GREP ^.:` 26368 new_path="$path" 26369 if test "x$has_colon" = x; then 26370 # Not in mixed or Windows style, start by that. 26371 new_path=`cmd //c echo $path` 26372 fi 26373 26374 26375 input_path="$new_path" 26376 # Check if we need to convert this using DOS-style short mode. If the path 26377 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26378 # take no chances and rewrite it. 26379 # Note: m4 eats our [], so we need to use [ and ] instead. 26380 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26381 if test "x$has_forbidden_chars" != x; then 26382 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26383 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26384 fi 26385 26386 26387 windows_path="$new_path" 26388 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26389 unix_path=`$CYGPATH -u "$windows_path"` 26390 new_path="$unix_path" 26391 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26392 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26393 new_path="$unix_path" 26394 fi 26395 26396 if test "x$path" != "x$new_path"; then 26397 BOOT_JDK="$new_path" 26398 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26399 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26400 fi 26401 26402 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26403 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26404 26405 else 26406 # We're on a unix platform. Hooray! :) 26407 path="$BOOT_JDK" 26408 has_space=`$ECHO "$path" | $GREP " "` 26409 if test "x$has_space" != x; then 26410 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26411 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26412 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26413 fi 26414 26415 # Use eval to expand a potential ~ 26416 eval path="$path" 26417 if test ! -f "$path" && test ! -d "$path"; then 26418 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26419 fi 26420 26421 if test -d "$path"; then 26422 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26423 else 26424 dir="`$DIRNAME "$path"`" 26425 base="`$BASENAME "$path"`" 26426 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26427 fi 26428 fi 26429 fi 26430 26431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26432 $as_echo_n "checking for Boot JDK... " >&6; } 26433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26434 $as_echo "$BOOT_JDK" >&6; } 26435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26436 $as_echo_n "checking Boot JDK version... " >&6; } 26437 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26439 $as_echo "$BOOT_JDK_VERSION" >&6; } 26440 fi # end check jdk version 26441 fi # end check javac 26442 fi # end check java 26443 fi # end check boot jdk found 26444 fi 26445 26446 26447 if test "x$BOOT_JDK_FOUND" = xno; then 26448 # Now execute the test 26449 26450 if test -x /usr/libexec/java_home; then 26451 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 26452 BOOT_JDK_FOUND=maybe 26453 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 26454 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 26455 fi 26456 26457 26458 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26459 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26460 # Do we have a bin/java? 26461 if test ! -x "$BOOT_JDK/bin/java"; then 26462 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26463 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26464 BOOT_JDK_FOUND=no 26465 else 26466 # Do we have a bin/javac? 26467 if test ! -x "$BOOT_JDK/bin/javac"; then 26468 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26469 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26470 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26471 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26472 BOOT_JDK_FOUND=no 26473 else 26474 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26475 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26476 26477 # Extra M4 quote needed to protect [] in grep expression. 26478 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26479 if test "x$FOUND_CORRECT_VERSION" = x; then 26480 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26481 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26482 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26483 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26484 BOOT_JDK_FOUND=no 26485 else 26486 # We're done! :-) 26487 BOOT_JDK_FOUND=yes 26488 26489 # Only process if variable expands to non-empty 26490 26491 if test "x$BOOT_JDK" != x; then 26492 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26493 26494 # Input might be given as Windows format, start by converting to 26495 # unix format. 26496 path="$BOOT_JDK" 26497 new_path=`$CYGPATH -u "$path"` 26498 26499 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26500 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26501 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26502 # "foo.exe" is OK but "foo" is an error. 26503 # 26504 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26505 # It is also a way to make sure we got the proper file name for the real test later on. 26506 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26507 if test "x$test_shortpath" = x; then 26508 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26509 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26510 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26511 fi 26512 26513 # Call helper function which possibly converts this using DOS-style short mode. 26514 # If so, the updated path is stored in $new_path. 26515 26516 input_path="$new_path" 26517 # Check if we need to convert this using DOS-style short mode. If the path 26518 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26519 # take no chances and rewrite it. 26520 # Note: m4 eats our [], so we need to use [ and ] instead. 26521 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26522 if test "x$has_forbidden_chars" != x; then 26523 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26524 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26525 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26526 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26527 # Going to short mode and back again did indeed matter. Since short mode is 26528 # case insensitive, let's make it lowercase to improve readability. 26529 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26530 # Now convert it back to Unix-style (cygpath) 26531 input_path=`$CYGPATH -u "$shortmode_path"` 26532 new_path="$input_path" 26533 fi 26534 fi 26535 26536 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26537 if test "x$test_cygdrive_prefix" = x; then 26538 # As a simple fix, exclude /usr/bin since it's not a real path. 26539 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26540 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26541 # a path prefixed by /cygdrive for fixpath to work. 26542 new_path="$CYGWIN_ROOT_PATH$input_path" 26543 fi 26544 fi 26545 26546 26547 if test "x$path" != "x$new_path"; then 26548 BOOT_JDK="$new_path" 26549 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26550 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26551 fi 26552 26553 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26554 26555 path="$BOOT_JDK" 26556 has_colon=`$ECHO $path | $GREP ^.:` 26557 new_path="$path" 26558 if test "x$has_colon" = x; then 26559 # Not in mixed or Windows style, start by that. 26560 new_path=`cmd //c echo $path` 26561 fi 26562 26563 26564 input_path="$new_path" 26565 # Check if we need to convert this using DOS-style short mode. If the path 26566 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26567 # take no chances and rewrite it. 26568 # Note: m4 eats our [], so we need to use [ and ] instead. 26569 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26570 if test "x$has_forbidden_chars" != x; then 26571 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26572 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26573 fi 26574 26575 26576 windows_path="$new_path" 26577 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26578 unix_path=`$CYGPATH -u "$windows_path"` 26579 new_path="$unix_path" 26580 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26581 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26582 new_path="$unix_path" 26583 fi 26584 26585 if test "x$path" != "x$new_path"; then 26586 BOOT_JDK="$new_path" 26587 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26588 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26589 fi 26590 26591 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26592 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26593 26594 else 26595 # We're on a unix platform. Hooray! :) 26596 path="$BOOT_JDK" 26597 has_space=`$ECHO "$path" | $GREP " "` 26598 if test "x$has_space" != x; then 26599 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26600 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26601 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26602 fi 26603 26604 # Use eval to expand a potential ~ 26605 eval path="$path" 26606 if test ! -f "$path" && test ! -d "$path"; then 26607 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26608 fi 26609 26610 if test -d "$path"; then 26611 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26612 else 26613 dir="`$DIRNAME "$path"`" 26614 base="`$BASENAME "$path"`" 26615 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26616 fi 26617 fi 26618 fi 26619 26620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26621 $as_echo_n "checking for Boot JDK... " >&6; } 26622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26623 $as_echo "$BOOT_JDK" >&6; } 26624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26625 $as_echo_n "checking Boot JDK version... " >&6; } 26626 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26628 $as_echo "$BOOT_JDK_VERSION" >&6; } 26629 fi # end check jdk version 26630 fi # end check javac 26631 fi # end check java 26632 fi # end check boot jdk found 26633 fi 26634 26635 fi 26636 26637 26638 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26639 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26640 # Do we have a bin/java? 26641 if test ! -x "$BOOT_JDK/bin/java"; then 26642 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26643 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26644 BOOT_JDK_FOUND=no 26645 else 26646 # Do we have a bin/javac? 26647 if test ! -x "$BOOT_JDK/bin/javac"; then 26648 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26649 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26650 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26651 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26652 BOOT_JDK_FOUND=no 26653 else 26654 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26655 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26656 26657 # Extra M4 quote needed to protect [] in grep expression. 26658 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26659 if test "x$FOUND_CORRECT_VERSION" = x; then 26660 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26661 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26662 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26663 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26664 BOOT_JDK_FOUND=no 26665 else 26666 # We're done! :-) 26667 BOOT_JDK_FOUND=yes 26668 26669 # Only process if variable expands to non-empty 26670 26671 if test "x$BOOT_JDK" != x; then 26672 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26673 26674 # Input might be given as Windows format, start by converting to 26675 # unix format. 26676 path="$BOOT_JDK" 26677 new_path=`$CYGPATH -u "$path"` 26678 26679 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26680 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26681 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26682 # "foo.exe" is OK but "foo" is an error. 26683 # 26684 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26685 # It is also a way to make sure we got the proper file name for the real test later on. 26686 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26687 if test "x$test_shortpath" = x; then 26688 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26689 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26690 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26691 fi 26692 26693 # Call helper function which possibly converts this using DOS-style short mode. 26694 # If so, the updated path is stored in $new_path. 26695 26696 input_path="$new_path" 26697 # Check if we need to convert this using DOS-style short mode. If the path 26698 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26699 # take no chances and rewrite it. 26700 # Note: m4 eats our [], so we need to use [ and ] instead. 26701 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26702 if test "x$has_forbidden_chars" != x; then 26703 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26704 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26705 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26706 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26707 # Going to short mode and back again did indeed matter. Since short mode is 26708 # case insensitive, let's make it lowercase to improve readability. 26709 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26710 # Now convert it back to Unix-style (cygpath) 26711 input_path=`$CYGPATH -u "$shortmode_path"` 26712 new_path="$input_path" 26713 fi 26714 fi 26715 26716 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26717 if test "x$test_cygdrive_prefix" = x; then 26718 # As a simple fix, exclude /usr/bin since it's not a real path. 26719 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26720 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26721 # a path prefixed by /cygdrive for fixpath to work. 26722 new_path="$CYGWIN_ROOT_PATH$input_path" 26723 fi 26724 fi 26725 26726 26727 if test "x$path" != "x$new_path"; then 26728 BOOT_JDK="$new_path" 26729 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26730 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26731 fi 26732 26733 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26734 26735 path="$BOOT_JDK" 26736 has_colon=`$ECHO $path | $GREP ^.:` 26737 new_path="$path" 26738 if test "x$has_colon" = x; then 26739 # Not in mixed or Windows style, start by that. 26740 new_path=`cmd //c echo $path` 26741 fi 26742 26743 26744 input_path="$new_path" 26745 # Check if we need to convert this using DOS-style short mode. If the path 26746 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26747 # take no chances and rewrite it. 26748 # Note: m4 eats our [], so we need to use [ and ] instead. 26749 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26750 if test "x$has_forbidden_chars" != x; then 26751 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26752 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26753 fi 26754 26755 26756 windows_path="$new_path" 26757 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26758 unix_path=`$CYGPATH -u "$windows_path"` 26759 new_path="$unix_path" 26760 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26761 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26762 new_path="$unix_path" 26763 fi 26764 26765 if test "x$path" != "x$new_path"; then 26766 BOOT_JDK="$new_path" 26767 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26768 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26769 fi 26770 26771 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26772 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26773 26774 else 26775 # We're on a unix platform. Hooray! :) 26776 path="$BOOT_JDK" 26777 has_space=`$ECHO "$path" | $GREP " "` 26778 if test "x$has_space" != x; then 26779 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26780 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26781 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26782 fi 26783 26784 # Use eval to expand a potential ~ 26785 eval path="$path" 26786 if test ! -f "$path" && test ! -d "$path"; then 26787 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26788 fi 26789 26790 if test -d "$path"; then 26791 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26792 else 26793 dir="`$DIRNAME "$path"`" 26794 base="`$BASENAME "$path"`" 26795 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26796 fi 26797 fi 26798 fi 26799 26800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26801 $as_echo_n "checking for Boot JDK... " >&6; } 26802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26803 $as_echo "$BOOT_JDK" >&6; } 26804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26805 $as_echo_n "checking Boot JDK version... " >&6; } 26806 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26808 $as_echo "$BOOT_JDK_VERSION" >&6; } 26809 fi # end check jdk version 26810 fi # end check javac 26811 fi # end check java 26812 fi # end check boot jdk found 26813 fi 26814 26815 26816 # Test: Is $JAVA_HOME set? 26817 26818 if test "x$BOOT_JDK_FOUND" = xno; then 26819 # Now execute the test 26820 26821 if test "x$JAVA_HOME" != x; then 26822 JAVA_HOME_PROCESSED="$JAVA_HOME" 26823 26824 # Only process if variable expands to non-empty 26825 26826 if test "x$JAVA_HOME_PROCESSED" != x; then 26827 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26828 26829 # Input might be given as Windows format, start by converting to 26830 # unix format. 26831 path="$JAVA_HOME_PROCESSED" 26832 new_path=`$CYGPATH -u "$path"` 26833 26834 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26835 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26836 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26837 # "foo.exe" is OK but "foo" is an error. 26838 # 26839 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26840 # It is also a way to make sure we got the proper file name for the real test later on. 26841 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26842 if test "x$test_shortpath" = x; then 26843 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 26844 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 26845 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 26846 fi 26847 26848 # Call helper function which possibly converts this using DOS-style short mode. 26849 # If so, the updated path is stored in $new_path. 26850 26851 input_path="$new_path" 26852 # Check if we need to convert this using DOS-style short mode. If the path 26853 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26854 # take no chances and rewrite it. 26855 # Note: m4 eats our [], so we need to use [ and ] instead. 26856 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26857 if test "x$has_forbidden_chars" != x; then 26858 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26859 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26860 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26861 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26862 # Going to short mode and back again did indeed matter. Since short mode is 26863 # case insensitive, let's make it lowercase to improve readability. 26864 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26865 # Now convert it back to Unix-style (cygpath) 26866 input_path=`$CYGPATH -u "$shortmode_path"` 26867 new_path="$input_path" 26868 fi 26869 fi 26870 26871 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26872 if test "x$test_cygdrive_prefix" = x; then 26873 # As a simple fix, exclude /usr/bin since it's not a real path. 26874 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26875 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26876 # a path prefixed by /cygdrive for fixpath to work. 26877 new_path="$CYGWIN_ROOT_PATH$input_path" 26878 fi 26879 fi 26880 26881 26882 if test "x$path" != "x$new_path"; then 26883 JAVA_HOME_PROCESSED="$new_path" 26884 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 26885 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 26886 fi 26887 26888 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26889 26890 path="$JAVA_HOME_PROCESSED" 26891 has_colon=`$ECHO $path | $GREP ^.:` 26892 new_path="$path" 26893 if test "x$has_colon" = x; then 26894 # Not in mixed or Windows style, start by that. 26895 new_path=`cmd //c echo $path` 26896 fi 26897 26898 26899 input_path="$new_path" 26900 # Check if we need to convert this using DOS-style short mode. If the path 26901 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26902 # take no chances and rewrite it. 26903 # Note: m4 eats our [], so we need to use [ and ] instead. 26904 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26905 if test "x$has_forbidden_chars" != x; then 26906 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26907 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26908 fi 26909 26910 26911 windows_path="$new_path" 26912 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26913 unix_path=`$CYGPATH -u "$windows_path"` 26914 new_path="$unix_path" 26915 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26916 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26917 new_path="$unix_path" 26918 fi 26919 26920 if test "x$path" != "x$new_path"; then 26921 JAVA_HOME_PROCESSED="$new_path" 26922 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 26923 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 26924 fi 26925 26926 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26927 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26928 26929 else 26930 # We're on a unix platform. Hooray! :) 26931 path="$JAVA_HOME_PROCESSED" 26932 has_space=`$ECHO "$path" | $GREP " "` 26933 if test "x$has_space" != x; then 26934 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 26935 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 26936 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26937 fi 26938 26939 # Use eval to expand a potential ~ 26940 eval path="$path" 26941 if test ! -f "$path" && test ! -d "$path"; then 26942 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 26943 fi 26944 26945 if test -d "$path"; then 26946 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 26947 else 26948 dir="`$DIRNAME "$path"`" 26949 base="`$BASENAME "$path"`" 26950 JAVA_HOME_PROCESSED="`cd "$dir"; $THEPWDCMD -L`/$base" 26951 fi 26952 fi 26953 fi 26954 26955 if test ! -d "$JAVA_HOME_PROCESSED"; then 26956 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 26957 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 26958 else 26959 # Aha, the user has set a JAVA_HOME 26960 # let us use that as the Boot JDK. 26961 BOOT_JDK="$JAVA_HOME_PROCESSED" 26962 BOOT_JDK_FOUND=maybe 26963 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 26964 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 26965 fi 26966 fi 26967 26968 26969 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26970 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26971 # Do we have a bin/java? 26972 if test ! -x "$BOOT_JDK/bin/java"; then 26973 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26974 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26975 BOOT_JDK_FOUND=no 26976 else 26977 # Do we have a bin/javac? 26978 if test ! -x "$BOOT_JDK/bin/javac"; then 26979 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26980 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26981 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26982 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26983 BOOT_JDK_FOUND=no 26984 else 26985 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26986 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26987 26988 # Extra M4 quote needed to protect [] in grep expression. 26989 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26990 if test "x$FOUND_CORRECT_VERSION" = x; then 26991 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26992 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26993 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26994 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26995 BOOT_JDK_FOUND=no 26996 else 26997 # We're done! :-) 26998 BOOT_JDK_FOUND=yes 26999 27000 # Only process if variable expands to non-empty 27001 27002 if test "x$BOOT_JDK" != x; then 27003 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27004 27005 # Input might be given as Windows format, start by converting to 27006 # unix format. 27007 path="$BOOT_JDK" 27008 new_path=`$CYGPATH -u "$path"` 27009 27010 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27011 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27012 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27013 # "foo.exe" is OK but "foo" is an error. 27014 # 27015 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27016 # It is also a way to make sure we got the proper file name for the real test later on. 27017 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27018 if test "x$test_shortpath" = x; then 27019 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27020 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27021 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27022 fi 27023 27024 # Call helper function which possibly converts this using DOS-style short mode. 27025 # If so, the updated path is stored in $new_path. 27026 27027 input_path="$new_path" 27028 # Check if we need to convert this using DOS-style short mode. If the path 27029 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27030 # take no chances and rewrite it. 27031 # Note: m4 eats our [], so we need to use [ and ] instead. 27032 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27033 if test "x$has_forbidden_chars" != x; then 27034 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27035 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27036 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27037 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27038 # Going to short mode and back again did indeed matter. Since short mode is 27039 # case insensitive, let's make it lowercase to improve readability. 27040 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27041 # Now convert it back to Unix-style (cygpath) 27042 input_path=`$CYGPATH -u "$shortmode_path"` 27043 new_path="$input_path" 27044 fi 27045 fi 27046 27047 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27048 if test "x$test_cygdrive_prefix" = x; then 27049 # As a simple fix, exclude /usr/bin since it's not a real path. 27050 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27051 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27052 # a path prefixed by /cygdrive for fixpath to work. 27053 new_path="$CYGWIN_ROOT_PATH$input_path" 27054 fi 27055 fi 27056 27057 27058 if test "x$path" != "x$new_path"; then 27059 BOOT_JDK="$new_path" 27060 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27061 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27062 fi 27063 27064 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27065 27066 path="$BOOT_JDK" 27067 has_colon=`$ECHO $path | $GREP ^.:` 27068 new_path="$path" 27069 if test "x$has_colon" = x; then 27070 # Not in mixed or Windows style, start by that. 27071 new_path=`cmd //c echo $path` 27072 fi 27073 27074 27075 input_path="$new_path" 27076 # Check if we need to convert this using DOS-style short mode. If the path 27077 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27078 # take no chances and rewrite it. 27079 # Note: m4 eats our [], so we need to use [ and ] instead. 27080 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27081 if test "x$has_forbidden_chars" != x; then 27082 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27083 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27084 fi 27085 27086 27087 windows_path="$new_path" 27088 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27089 unix_path=`$CYGPATH -u "$windows_path"` 27090 new_path="$unix_path" 27091 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27092 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27093 new_path="$unix_path" 27094 fi 27095 27096 if test "x$path" != "x$new_path"; then 27097 BOOT_JDK="$new_path" 27098 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27099 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27100 fi 27101 27102 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27103 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27104 27105 else 27106 # We're on a unix platform. Hooray! :) 27107 path="$BOOT_JDK" 27108 has_space=`$ECHO "$path" | $GREP " "` 27109 if test "x$has_space" != x; then 27110 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27111 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27112 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27113 fi 27114 27115 # Use eval to expand a potential ~ 27116 eval path="$path" 27117 if test ! -f "$path" && test ! -d "$path"; then 27118 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27119 fi 27120 27121 if test -d "$path"; then 27122 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27123 else 27124 dir="`$DIRNAME "$path"`" 27125 base="`$BASENAME "$path"`" 27126 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27127 fi 27128 fi 27129 fi 27130 27131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27132 $as_echo_n "checking for Boot JDK... " >&6; } 27133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27134 $as_echo "$BOOT_JDK" >&6; } 27135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27136 $as_echo_n "checking Boot JDK version... " >&6; } 27137 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27139 $as_echo "$BOOT_JDK_VERSION" >&6; } 27140 fi # end check jdk version 27141 fi # end check javac 27142 fi # end check java 27143 fi # end check boot jdk found 27144 fi 27145 27146 27147 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 27148 27149 if test "x$BOOT_JDK_FOUND" = xno; then 27150 # Now execute the test 27151 27152 # Extract the first word of "javac", so it can be a program name with args. 27153 set dummy javac; ac_word=$2 27154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27155 $as_echo_n "checking for $ac_word... " >&6; } 27156 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 27157 $as_echo_n "(cached) " >&6 27158 else 27159 case $JAVAC_CHECK in 27160 [\\/]* | ?:[\\/]*) 27161 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 27162 ;; 27163 *) 27164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27165 for as_dir in $PATH 27166 do 27167 IFS=$as_save_IFS 27168 test -z "$as_dir" && as_dir=. 27169 for ac_exec_ext in '' $ac_executable_extensions; do 27170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27171 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 27172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27173 break 2 27174 fi 27175 done 27176 done 27177 IFS=$as_save_IFS 27178 27179 ;; 27180 esac 27181 fi 27182 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 27183 if test -n "$JAVAC_CHECK"; then 27184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 27185 $as_echo "$JAVAC_CHECK" >&6; } 27186 else 27187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27188 $as_echo "no" >&6; } 27189 fi 27190 27191 27192 # Extract the first word of "java", so it can be a program name with args. 27193 set dummy java; ac_word=$2 27194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27195 $as_echo_n "checking for $ac_word... " >&6; } 27196 if ${ac_cv_path_JAVA_CHECK+:} false; then : 27197 $as_echo_n "(cached) " >&6 27198 else 27199 case $JAVA_CHECK in 27200 [\\/]* | ?:[\\/]*) 27201 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 27202 ;; 27203 *) 27204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27205 for as_dir in $PATH 27206 do 27207 IFS=$as_save_IFS 27208 test -z "$as_dir" && as_dir=. 27209 for ac_exec_ext in '' $ac_executable_extensions; do 27210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27211 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 27212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27213 break 2 27214 fi 27215 done 27216 done 27217 IFS=$as_save_IFS 27218 27219 ;; 27220 esac 27221 fi 27222 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 27223 if test -n "$JAVA_CHECK"; then 27224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 27225 $as_echo "$JAVA_CHECK" >&6; } 27226 else 27227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27228 $as_echo "no" >&6; } 27229 fi 27230 27231 27232 BINARY="$JAVAC_CHECK" 27233 if test "x$JAVAC_CHECK" = x; then 27234 BINARY="$JAVA_CHECK" 27235 fi 27236 if test "x$BINARY" != x; then 27237 # So there is a java(c) binary, it might be part of a JDK. 27238 # Lets find the JDK/JRE directory by following symbolic links. 27239 # Linux/GNU systems often have links from /usr/bin/java to 27240 # /etc/alternatives/java to the real JDK binary. 27241 27242 if test "x$OPENJDK_BUILD_OS" != xwindows; then 27243 # Follow a chain of symbolic links. Use readlink 27244 # where it exists, else fall back to horribly 27245 # complicated shell code. 27246 if test "x$READLINK_TESTED" != yes; then 27247 # On MacOSX there is a readlink tool with a different 27248 # purpose than the GNU readlink tool. Check the found readlink. 27249 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 27250 if test "x$ISGNU" = x; then 27251 # A readlink that we do not know how to use. 27252 # Are there other non-GNU readlinks out there? 27253 READLINK_TESTED=yes 27254 READLINK= 27255 fi 27256 fi 27257 27258 if test "x$READLINK" != x; then 27259 BINARY=`$READLINK -f $BINARY` 27260 else 27261 # Save the current directory for restoring afterwards 27262 STARTDIR=$PWD 27263 COUNTER=0 27264 sym_link_dir=`$DIRNAME $BINARY` 27265 sym_link_file=`$BASENAME $BINARY` 27266 cd $sym_link_dir 27267 # Use -P flag to resolve symlinks in directories. 27268 cd `$THEPWDCMD -P` 27269 sym_link_dir=`$THEPWDCMD -P` 27270 # Resolve file symlinks 27271 while test $COUNTER -lt 20; do 27272 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 27273 if test "x$ISLINK" == x; then 27274 # This is not a symbolic link! We are done! 27275 break 27276 fi 27277 # Again resolve directory symlinks since the target of the just found 27278 # link could be in a different directory 27279 cd `$DIRNAME $ISLINK` 27280 sym_link_dir=`$THEPWDCMD -P` 27281 sym_link_file=`$BASENAME $ISLINK` 27282 let COUNTER=COUNTER+1 27283 done 27284 cd $STARTDIR 27285 BINARY=$sym_link_dir/$sym_link_file 27286 fi 27287 fi 27288 27289 BOOT_JDK=`dirname "$BINARY"` 27290 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 27291 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 27292 # Looks like we found ourselves an JDK 27293 BOOT_JDK_FOUND=maybe 27294 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 27295 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 27296 fi 27297 fi 27298 27299 27300 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27301 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27302 # Do we have a bin/java? 27303 if test ! -x "$BOOT_JDK/bin/java"; then 27304 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27305 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27306 BOOT_JDK_FOUND=no 27307 else 27308 # Do we have a bin/javac? 27309 if test ! -x "$BOOT_JDK/bin/javac"; then 27310 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27311 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27312 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27313 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27314 BOOT_JDK_FOUND=no 27315 else 27316 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27317 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27318 27319 # Extra M4 quote needed to protect [] in grep expression. 27320 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27321 if test "x$FOUND_CORRECT_VERSION" = x; then 27322 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27323 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27324 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27325 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27326 BOOT_JDK_FOUND=no 27327 else 27328 # We're done! :-) 27329 BOOT_JDK_FOUND=yes 27330 27331 # Only process if variable expands to non-empty 27332 27333 if test "x$BOOT_JDK" != x; then 27334 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27335 27336 # Input might be given as Windows format, start by converting to 27337 # unix format. 27338 path="$BOOT_JDK" 27339 new_path=`$CYGPATH -u "$path"` 27340 27341 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27342 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27343 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27344 # "foo.exe" is OK but "foo" is an error. 27345 # 27346 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27347 # It is also a way to make sure we got the proper file name for the real test later on. 27348 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27349 if test "x$test_shortpath" = x; then 27350 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27351 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27352 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27353 fi 27354 27355 # Call helper function which possibly converts this using DOS-style short mode. 27356 # If so, the updated path is stored in $new_path. 27357 27358 input_path="$new_path" 27359 # Check if we need to convert this using DOS-style short mode. If the path 27360 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27361 # take no chances and rewrite it. 27362 # Note: m4 eats our [], so we need to use [ and ] instead. 27363 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27364 if test "x$has_forbidden_chars" != x; then 27365 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27366 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27367 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27368 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27369 # Going to short mode and back again did indeed matter. Since short mode is 27370 # case insensitive, let's make it lowercase to improve readability. 27371 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27372 # Now convert it back to Unix-style (cygpath) 27373 input_path=`$CYGPATH -u "$shortmode_path"` 27374 new_path="$input_path" 27375 fi 27376 fi 27377 27378 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27379 if test "x$test_cygdrive_prefix" = x; then 27380 # As a simple fix, exclude /usr/bin since it's not a real path. 27381 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27382 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27383 # a path prefixed by /cygdrive for fixpath to work. 27384 new_path="$CYGWIN_ROOT_PATH$input_path" 27385 fi 27386 fi 27387 27388 27389 if test "x$path" != "x$new_path"; then 27390 BOOT_JDK="$new_path" 27391 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27392 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27393 fi 27394 27395 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27396 27397 path="$BOOT_JDK" 27398 has_colon=`$ECHO $path | $GREP ^.:` 27399 new_path="$path" 27400 if test "x$has_colon" = x; then 27401 # Not in mixed or Windows style, start by that. 27402 new_path=`cmd //c echo $path` 27403 fi 27404 27405 27406 input_path="$new_path" 27407 # Check if we need to convert this using DOS-style short mode. If the path 27408 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27409 # take no chances and rewrite it. 27410 # Note: m4 eats our [], so we need to use [ and ] instead. 27411 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27412 if test "x$has_forbidden_chars" != x; then 27413 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27414 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27415 fi 27416 27417 27418 windows_path="$new_path" 27419 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27420 unix_path=`$CYGPATH -u "$windows_path"` 27421 new_path="$unix_path" 27422 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27423 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27424 new_path="$unix_path" 27425 fi 27426 27427 if test "x$path" != "x$new_path"; then 27428 BOOT_JDK="$new_path" 27429 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27430 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27431 fi 27432 27433 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27434 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27435 27436 else 27437 # We're on a unix platform. Hooray! :) 27438 path="$BOOT_JDK" 27439 has_space=`$ECHO "$path" | $GREP " "` 27440 if test "x$has_space" != x; then 27441 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27442 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27443 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27444 fi 27445 27446 # Use eval to expand a potential ~ 27447 eval path="$path" 27448 if test ! -f "$path" && test ! -d "$path"; then 27449 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27450 fi 27451 27452 if test -d "$path"; then 27453 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27454 else 27455 dir="`$DIRNAME "$path"`" 27456 base="`$BASENAME "$path"`" 27457 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27458 fi 27459 fi 27460 fi 27461 27462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27463 $as_echo_n "checking for Boot JDK... " >&6; } 27464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27465 $as_echo "$BOOT_JDK" >&6; } 27466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27467 $as_echo_n "checking Boot JDK version... " >&6; } 27468 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27470 $as_echo "$BOOT_JDK_VERSION" >&6; } 27471 fi # end check jdk version 27472 fi # end check javac 27473 fi # end check java 27474 fi # end check boot jdk found 27475 fi 27476 27477 27478 # Test: Is there a JDK installed in default, well-known locations? 27479 27480 if test "x$BOOT_JDK_FOUND" = xno; then 27481 # Now execute the test 27482 27483 if test "x$OPENJDK_TARGET_OS" = xwindows; then 27484 27485 if test "x$BOOT_JDK_FOUND" = xno; then 27486 # Now execute the test 27487 27488 if test "x$ProgramW6432" != x; then 27489 VIRTUAL_DIR="$ProgramW6432/Java" 27490 27491 windows_path="$VIRTUAL_DIR" 27492 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27493 unix_path=`$CYGPATH -u "$windows_path"` 27494 VIRTUAL_DIR="$unix_path" 27495 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27496 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27497 VIRTUAL_DIR="$unix_path" 27498 fi 27499 27500 27501 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27502 BOOT_JDK_SUFFIX="" 27503 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27504 if test "x$ALL_JDKS_FOUND" != x; then 27505 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27506 27507 if test "x$BOOT_JDK_FOUND" = xno; then 27508 # Now execute the test 27509 27510 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27511 if test -d "$BOOT_JDK"; then 27512 BOOT_JDK_FOUND=maybe 27513 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27514 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27515 fi 27516 27517 27518 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27519 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27520 # Do we have a bin/java? 27521 if test ! -x "$BOOT_JDK/bin/java"; then 27522 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27523 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27524 BOOT_JDK_FOUND=no 27525 else 27526 # Do we have a bin/javac? 27527 if test ! -x "$BOOT_JDK/bin/javac"; then 27528 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27529 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27530 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27531 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27532 BOOT_JDK_FOUND=no 27533 else 27534 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27535 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27536 27537 # Extra M4 quote needed to protect [] in grep expression. 27538 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27539 if test "x$FOUND_CORRECT_VERSION" = x; then 27540 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27541 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27542 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27543 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27544 BOOT_JDK_FOUND=no 27545 else 27546 # We're done! :-) 27547 BOOT_JDK_FOUND=yes 27548 27549 # Only process if variable expands to non-empty 27550 27551 if test "x$BOOT_JDK" != x; then 27552 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27553 27554 # Input might be given as Windows format, start by converting to 27555 # unix format. 27556 path="$BOOT_JDK" 27557 new_path=`$CYGPATH -u "$path"` 27558 27559 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27560 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27561 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27562 # "foo.exe" is OK but "foo" is an error. 27563 # 27564 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27565 # It is also a way to make sure we got the proper file name for the real test later on. 27566 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27567 if test "x$test_shortpath" = x; then 27568 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27569 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27570 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27571 fi 27572 27573 # Call helper function which possibly converts this using DOS-style short mode. 27574 # If so, the updated path is stored in $new_path. 27575 27576 input_path="$new_path" 27577 # Check if we need to convert this using DOS-style short mode. If the path 27578 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27579 # take no chances and rewrite it. 27580 # Note: m4 eats our [], so we need to use [ and ] instead. 27581 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27582 if test "x$has_forbidden_chars" != x; then 27583 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27584 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27585 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27586 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27587 # Going to short mode and back again did indeed matter. Since short mode is 27588 # case insensitive, let's make it lowercase to improve readability. 27589 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27590 # Now convert it back to Unix-style (cygpath) 27591 input_path=`$CYGPATH -u "$shortmode_path"` 27592 new_path="$input_path" 27593 fi 27594 fi 27595 27596 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27597 if test "x$test_cygdrive_prefix" = x; then 27598 # As a simple fix, exclude /usr/bin since it's not a real path. 27599 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27600 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27601 # a path prefixed by /cygdrive for fixpath to work. 27602 new_path="$CYGWIN_ROOT_PATH$input_path" 27603 fi 27604 fi 27605 27606 27607 if test "x$path" != "x$new_path"; then 27608 BOOT_JDK="$new_path" 27609 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27610 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27611 fi 27612 27613 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27614 27615 path="$BOOT_JDK" 27616 has_colon=`$ECHO $path | $GREP ^.:` 27617 new_path="$path" 27618 if test "x$has_colon" = x; then 27619 # Not in mixed or Windows style, start by that. 27620 new_path=`cmd //c echo $path` 27621 fi 27622 27623 27624 input_path="$new_path" 27625 # Check if we need to convert this using DOS-style short mode. If the path 27626 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27627 # take no chances and rewrite it. 27628 # Note: m4 eats our [], so we need to use [ and ] instead. 27629 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27630 if test "x$has_forbidden_chars" != x; then 27631 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27632 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27633 fi 27634 27635 27636 windows_path="$new_path" 27637 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27638 unix_path=`$CYGPATH -u "$windows_path"` 27639 new_path="$unix_path" 27640 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27641 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27642 new_path="$unix_path" 27643 fi 27644 27645 if test "x$path" != "x$new_path"; then 27646 BOOT_JDK="$new_path" 27647 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27648 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27649 fi 27650 27651 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27652 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27653 27654 else 27655 # We're on a unix platform. Hooray! :) 27656 path="$BOOT_JDK" 27657 has_space=`$ECHO "$path" | $GREP " "` 27658 if test "x$has_space" != x; then 27659 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27660 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27661 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27662 fi 27663 27664 # Use eval to expand a potential ~ 27665 eval path="$path" 27666 if test ! -f "$path" && test ! -d "$path"; then 27667 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27668 fi 27669 27670 if test -d "$path"; then 27671 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27672 else 27673 dir="`$DIRNAME "$path"`" 27674 base="`$BASENAME "$path"`" 27675 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27676 fi 27677 fi 27678 fi 27679 27680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27681 $as_echo_n "checking for Boot JDK... " >&6; } 27682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27683 $as_echo "$BOOT_JDK" >&6; } 27684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27685 $as_echo_n "checking Boot JDK version... " >&6; } 27686 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27688 $as_echo "$BOOT_JDK_VERSION" >&6; } 27689 fi # end check jdk version 27690 fi # end check javac 27691 fi # end check java 27692 fi # end check boot jdk found 27693 fi 27694 27695 done 27696 fi 27697 27698 fi 27699 27700 27701 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27702 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27703 # Do we have a bin/java? 27704 if test ! -x "$BOOT_JDK/bin/java"; then 27705 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27706 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27707 BOOT_JDK_FOUND=no 27708 else 27709 # Do we have a bin/javac? 27710 if test ! -x "$BOOT_JDK/bin/javac"; then 27711 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27712 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27713 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27714 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27715 BOOT_JDK_FOUND=no 27716 else 27717 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27718 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27719 27720 # Extra M4 quote needed to protect [] in grep expression. 27721 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27722 if test "x$FOUND_CORRECT_VERSION" = x; then 27723 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27724 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27725 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27726 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27727 BOOT_JDK_FOUND=no 27728 else 27729 # We're done! :-) 27730 BOOT_JDK_FOUND=yes 27731 27732 # Only process if variable expands to non-empty 27733 27734 if test "x$BOOT_JDK" != x; then 27735 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27736 27737 # Input might be given as Windows format, start by converting to 27738 # unix format. 27739 path="$BOOT_JDK" 27740 new_path=`$CYGPATH -u "$path"` 27741 27742 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27743 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27744 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27745 # "foo.exe" is OK but "foo" is an error. 27746 # 27747 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27748 # It is also a way to make sure we got the proper file name for the real test later on. 27749 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27750 if test "x$test_shortpath" = x; then 27751 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27752 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27753 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27754 fi 27755 27756 # Call helper function which possibly converts this using DOS-style short mode. 27757 # If so, the updated path is stored in $new_path. 27758 27759 input_path="$new_path" 27760 # Check if we need to convert this using DOS-style short mode. If the path 27761 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27762 # take no chances and rewrite it. 27763 # Note: m4 eats our [], so we need to use [ and ] instead. 27764 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27765 if test "x$has_forbidden_chars" != x; then 27766 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27767 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27768 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27769 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27770 # Going to short mode and back again did indeed matter. Since short mode is 27771 # case insensitive, let's make it lowercase to improve readability. 27772 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27773 # Now convert it back to Unix-style (cygpath) 27774 input_path=`$CYGPATH -u "$shortmode_path"` 27775 new_path="$input_path" 27776 fi 27777 fi 27778 27779 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27780 if test "x$test_cygdrive_prefix" = x; then 27781 # As a simple fix, exclude /usr/bin since it's not a real path. 27782 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27783 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27784 # a path prefixed by /cygdrive for fixpath to work. 27785 new_path="$CYGWIN_ROOT_PATH$input_path" 27786 fi 27787 fi 27788 27789 27790 if test "x$path" != "x$new_path"; then 27791 BOOT_JDK="$new_path" 27792 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27793 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27794 fi 27795 27796 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27797 27798 path="$BOOT_JDK" 27799 has_colon=`$ECHO $path | $GREP ^.:` 27800 new_path="$path" 27801 if test "x$has_colon" = x; then 27802 # Not in mixed or Windows style, start by that. 27803 new_path=`cmd //c echo $path` 27804 fi 27805 27806 27807 input_path="$new_path" 27808 # Check if we need to convert this using DOS-style short mode. If the path 27809 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27810 # take no chances and rewrite it. 27811 # Note: m4 eats our [], so we need to use [ and ] instead. 27812 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27813 if test "x$has_forbidden_chars" != x; then 27814 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27815 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27816 fi 27817 27818 27819 windows_path="$new_path" 27820 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27821 unix_path=`$CYGPATH -u "$windows_path"` 27822 new_path="$unix_path" 27823 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27824 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27825 new_path="$unix_path" 27826 fi 27827 27828 if test "x$path" != "x$new_path"; then 27829 BOOT_JDK="$new_path" 27830 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27831 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27832 fi 27833 27834 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27835 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27836 27837 else 27838 # We're on a unix platform. Hooray! :) 27839 path="$BOOT_JDK" 27840 has_space=`$ECHO "$path" | $GREP " "` 27841 if test "x$has_space" != x; then 27842 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27843 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27844 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27845 fi 27846 27847 # Use eval to expand a potential ~ 27848 eval path="$path" 27849 if test ! -f "$path" && test ! -d "$path"; then 27850 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27851 fi 27852 27853 if test -d "$path"; then 27854 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27855 else 27856 dir="`$DIRNAME "$path"`" 27857 base="`$BASENAME "$path"`" 27858 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27859 fi 27860 fi 27861 fi 27862 27863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27864 $as_echo_n "checking for Boot JDK... " >&6; } 27865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27866 $as_echo "$BOOT_JDK" >&6; } 27867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27868 $as_echo_n "checking Boot JDK version... " >&6; } 27869 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27871 $as_echo "$BOOT_JDK_VERSION" >&6; } 27872 fi # end check jdk version 27873 fi # end check javac 27874 fi # end check java 27875 fi # end check boot jdk found 27876 fi 27877 27878 27879 if test "x$BOOT_JDK_FOUND" = xno; then 27880 # Now execute the test 27881 27882 if test "x$PROGRAMW6432" != x; then 27883 VIRTUAL_DIR="$PROGRAMW6432/Java" 27884 27885 windows_path="$VIRTUAL_DIR" 27886 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27887 unix_path=`$CYGPATH -u "$windows_path"` 27888 VIRTUAL_DIR="$unix_path" 27889 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27890 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27891 VIRTUAL_DIR="$unix_path" 27892 fi 27893 27894 27895 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27896 BOOT_JDK_SUFFIX="" 27897 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27898 if test "x$ALL_JDKS_FOUND" != x; then 27899 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27900 27901 if test "x$BOOT_JDK_FOUND" = xno; then 27902 # Now execute the test 27903 27904 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27905 if test -d "$BOOT_JDK"; then 27906 BOOT_JDK_FOUND=maybe 27907 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27908 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27909 fi 27910 27911 27912 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27913 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27914 # Do we have a bin/java? 27915 if test ! -x "$BOOT_JDK/bin/java"; then 27916 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27917 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27918 BOOT_JDK_FOUND=no 27919 else 27920 # Do we have a bin/javac? 27921 if test ! -x "$BOOT_JDK/bin/javac"; then 27922 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27923 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27924 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27925 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27926 BOOT_JDK_FOUND=no 27927 else 27928 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27929 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27930 27931 # Extra M4 quote needed to protect [] in grep expression. 27932 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27933 if test "x$FOUND_CORRECT_VERSION" = x; then 27934 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27935 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27936 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27937 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27938 BOOT_JDK_FOUND=no 27939 else 27940 # We're done! :-) 27941 BOOT_JDK_FOUND=yes 27942 27943 # Only process if variable expands to non-empty 27944 27945 if test "x$BOOT_JDK" != x; then 27946 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27947 27948 # Input might be given as Windows format, start by converting to 27949 # unix format. 27950 path="$BOOT_JDK" 27951 new_path=`$CYGPATH -u "$path"` 27952 27953 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27954 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27955 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27956 # "foo.exe" is OK but "foo" is an error. 27957 # 27958 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27959 # It is also a way to make sure we got the proper file name for the real test later on. 27960 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27961 if test "x$test_shortpath" = x; then 27962 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27963 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27964 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27965 fi 27966 27967 # Call helper function which possibly converts this using DOS-style short mode. 27968 # If so, the updated path is stored in $new_path. 27969 27970 input_path="$new_path" 27971 # Check if we need to convert this using DOS-style short mode. If the path 27972 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27973 # take no chances and rewrite it. 27974 # Note: m4 eats our [], so we need to use [ and ] instead. 27975 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27976 if test "x$has_forbidden_chars" != x; then 27977 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27978 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27979 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27980 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27981 # Going to short mode and back again did indeed matter. Since short mode is 27982 # case insensitive, let's make it lowercase to improve readability. 27983 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27984 # Now convert it back to Unix-style (cygpath) 27985 input_path=`$CYGPATH -u "$shortmode_path"` 27986 new_path="$input_path" 27987 fi 27988 fi 27989 27990 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27991 if test "x$test_cygdrive_prefix" = x; then 27992 # As a simple fix, exclude /usr/bin since it's not a real path. 27993 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27994 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27995 # a path prefixed by /cygdrive for fixpath to work. 27996 new_path="$CYGWIN_ROOT_PATH$input_path" 27997 fi 27998 fi 27999 28000 28001 if test "x$path" != "x$new_path"; then 28002 BOOT_JDK="$new_path" 28003 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28004 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28005 fi 28006 28007 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28008 28009 path="$BOOT_JDK" 28010 has_colon=`$ECHO $path | $GREP ^.:` 28011 new_path="$path" 28012 if test "x$has_colon" = x; then 28013 # Not in mixed or Windows style, start by that. 28014 new_path=`cmd //c echo $path` 28015 fi 28016 28017 28018 input_path="$new_path" 28019 # Check if we need to convert this using DOS-style short mode. If the path 28020 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28021 # take no chances and rewrite it. 28022 # Note: m4 eats our [], so we need to use [ and ] instead. 28023 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28024 if test "x$has_forbidden_chars" != x; then 28025 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28026 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28027 fi 28028 28029 28030 windows_path="$new_path" 28031 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28032 unix_path=`$CYGPATH -u "$windows_path"` 28033 new_path="$unix_path" 28034 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28035 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28036 new_path="$unix_path" 28037 fi 28038 28039 if test "x$path" != "x$new_path"; then 28040 BOOT_JDK="$new_path" 28041 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28042 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28043 fi 28044 28045 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28046 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28047 28048 else 28049 # We're on a unix platform. Hooray! :) 28050 path="$BOOT_JDK" 28051 has_space=`$ECHO "$path" | $GREP " "` 28052 if test "x$has_space" != x; then 28053 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28054 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28055 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28056 fi 28057 28058 # Use eval to expand a potential ~ 28059 eval path="$path" 28060 if test ! -f "$path" && test ! -d "$path"; then 28061 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28062 fi 28063 28064 if test -d "$path"; then 28065 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28066 else 28067 dir="`$DIRNAME "$path"`" 28068 base="`$BASENAME "$path"`" 28069 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28070 fi 28071 fi 28072 fi 28073 28074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28075 $as_echo_n "checking for Boot JDK... " >&6; } 28076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28077 $as_echo "$BOOT_JDK" >&6; } 28078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28079 $as_echo_n "checking Boot JDK version... " >&6; } 28080 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28082 $as_echo "$BOOT_JDK_VERSION" >&6; } 28083 fi # end check jdk version 28084 fi # end check javac 28085 fi # end check java 28086 fi # end check boot jdk found 28087 fi 28088 28089 done 28090 fi 28091 28092 fi 28093 28094 28095 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28096 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28097 # Do we have a bin/java? 28098 if test ! -x "$BOOT_JDK/bin/java"; then 28099 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28100 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28101 BOOT_JDK_FOUND=no 28102 else 28103 # Do we have a bin/javac? 28104 if test ! -x "$BOOT_JDK/bin/javac"; then 28105 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28106 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28107 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28108 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28109 BOOT_JDK_FOUND=no 28110 else 28111 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28112 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28113 28114 # Extra M4 quote needed to protect [] in grep expression. 28115 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28116 if test "x$FOUND_CORRECT_VERSION" = x; then 28117 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28118 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28119 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28120 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28121 BOOT_JDK_FOUND=no 28122 else 28123 # We're done! :-) 28124 BOOT_JDK_FOUND=yes 28125 28126 # Only process if variable expands to non-empty 28127 28128 if test "x$BOOT_JDK" != x; then 28129 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28130 28131 # Input might be given as Windows format, start by converting to 28132 # unix format. 28133 path="$BOOT_JDK" 28134 new_path=`$CYGPATH -u "$path"` 28135 28136 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28137 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28138 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28139 # "foo.exe" is OK but "foo" is an error. 28140 # 28141 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28142 # It is also a way to make sure we got the proper file name for the real test later on. 28143 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28144 if test "x$test_shortpath" = x; then 28145 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28146 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28147 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28148 fi 28149 28150 # Call helper function which possibly converts this using DOS-style short mode. 28151 # If so, the updated path is stored in $new_path. 28152 28153 input_path="$new_path" 28154 # Check if we need to convert this using DOS-style short mode. If the path 28155 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28156 # take no chances and rewrite it. 28157 # Note: m4 eats our [], so we need to use [ and ] instead. 28158 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28159 if test "x$has_forbidden_chars" != x; then 28160 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28161 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28162 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28163 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28164 # Going to short mode and back again did indeed matter. Since short mode is 28165 # case insensitive, let's make it lowercase to improve readability. 28166 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28167 # Now convert it back to Unix-style (cygpath) 28168 input_path=`$CYGPATH -u "$shortmode_path"` 28169 new_path="$input_path" 28170 fi 28171 fi 28172 28173 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28174 if test "x$test_cygdrive_prefix" = x; then 28175 # As a simple fix, exclude /usr/bin since it's not a real path. 28176 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28177 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28178 # a path prefixed by /cygdrive for fixpath to work. 28179 new_path="$CYGWIN_ROOT_PATH$input_path" 28180 fi 28181 fi 28182 28183 28184 if test "x$path" != "x$new_path"; then 28185 BOOT_JDK="$new_path" 28186 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28187 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28188 fi 28189 28190 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28191 28192 path="$BOOT_JDK" 28193 has_colon=`$ECHO $path | $GREP ^.:` 28194 new_path="$path" 28195 if test "x$has_colon" = x; then 28196 # Not in mixed or Windows style, start by that. 28197 new_path=`cmd //c echo $path` 28198 fi 28199 28200 28201 input_path="$new_path" 28202 # Check if we need to convert this using DOS-style short mode. If the path 28203 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28204 # take no chances and rewrite it. 28205 # Note: m4 eats our [], so we need to use [ and ] instead. 28206 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28207 if test "x$has_forbidden_chars" != x; then 28208 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28209 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28210 fi 28211 28212 28213 windows_path="$new_path" 28214 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28215 unix_path=`$CYGPATH -u "$windows_path"` 28216 new_path="$unix_path" 28217 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28218 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28219 new_path="$unix_path" 28220 fi 28221 28222 if test "x$path" != "x$new_path"; then 28223 BOOT_JDK="$new_path" 28224 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28225 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28226 fi 28227 28228 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28229 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28230 28231 else 28232 # We're on a unix platform. Hooray! :) 28233 path="$BOOT_JDK" 28234 has_space=`$ECHO "$path" | $GREP " "` 28235 if test "x$has_space" != x; then 28236 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28237 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28238 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28239 fi 28240 28241 # Use eval to expand a potential ~ 28242 eval path="$path" 28243 if test ! -f "$path" && test ! -d "$path"; then 28244 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28245 fi 28246 28247 if test -d "$path"; then 28248 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28249 else 28250 dir="`$DIRNAME "$path"`" 28251 base="`$BASENAME "$path"`" 28252 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28253 fi 28254 fi 28255 fi 28256 28257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28258 $as_echo_n "checking for Boot JDK... " >&6; } 28259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28260 $as_echo "$BOOT_JDK" >&6; } 28261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28262 $as_echo_n "checking Boot JDK version... " >&6; } 28263 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28265 $as_echo "$BOOT_JDK_VERSION" >&6; } 28266 fi # end check jdk version 28267 fi # end check javac 28268 fi # end check java 28269 fi # end check boot jdk found 28270 fi 28271 28272 28273 if test "x$BOOT_JDK_FOUND" = xno; then 28274 # Now execute the test 28275 28276 if test "x$PROGRAMFILES" != x; then 28277 VIRTUAL_DIR="$PROGRAMFILES/Java" 28278 28279 windows_path="$VIRTUAL_DIR" 28280 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28281 unix_path=`$CYGPATH -u "$windows_path"` 28282 VIRTUAL_DIR="$unix_path" 28283 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28284 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28285 VIRTUAL_DIR="$unix_path" 28286 fi 28287 28288 28289 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 28290 BOOT_JDK_SUFFIX="" 28291 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28292 if test "x$ALL_JDKS_FOUND" != x; then 28293 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28294 28295 if test "x$BOOT_JDK_FOUND" = xno; then 28296 # Now execute the test 28297 28298 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28299 if test -d "$BOOT_JDK"; then 28300 BOOT_JDK_FOUND=maybe 28301 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28302 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28303 fi 28304 28305 28306 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28307 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28308 # Do we have a bin/java? 28309 if test ! -x "$BOOT_JDK/bin/java"; then 28310 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28311 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28312 BOOT_JDK_FOUND=no 28313 else 28314 # Do we have a bin/javac? 28315 if test ! -x "$BOOT_JDK/bin/javac"; then 28316 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28317 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28318 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28319 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28320 BOOT_JDK_FOUND=no 28321 else 28322 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28323 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28324 28325 # Extra M4 quote needed to protect [] in grep expression. 28326 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28327 if test "x$FOUND_CORRECT_VERSION" = x; then 28328 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28329 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28330 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28331 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28332 BOOT_JDK_FOUND=no 28333 else 28334 # We're done! :-) 28335 BOOT_JDK_FOUND=yes 28336 28337 # Only process if variable expands to non-empty 28338 28339 if test "x$BOOT_JDK" != x; then 28340 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28341 28342 # Input might be given as Windows format, start by converting to 28343 # unix format. 28344 path="$BOOT_JDK" 28345 new_path=`$CYGPATH -u "$path"` 28346 28347 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28348 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28349 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28350 # "foo.exe" is OK but "foo" is an error. 28351 # 28352 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28353 # It is also a way to make sure we got the proper file name for the real test later on. 28354 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28355 if test "x$test_shortpath" = x; then 28356 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28357 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28358 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28359 fi 28360 28361 # Call helper function which possibly converts this using DOS-style short mode. 28362 # If so, the updated path is stored in $new_path. 28363 28364 input_path="$new_path" 28365 # Check if we need to convert this using DOS-style short mode. If the path 28366 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28367 # take no chances and rewrite it. 28368 # Note: m4 eats our [], so we need to use [ and ] instead. 28369 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28370 if test "x$has_forbidden_chars" != x; then 28371 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28372 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28373 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28374 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28375 # Going to short mode and back again did indeed matter. Since short mode is 28376 # case insensitive, let's make it lowercase to improve readability. 28377 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28378 # Now convert it back to Unix-style (cygpath) 28379 input_path=`$CYGPATH -u "$shortmode_path"` 28380 new_path="$input_path" 28381 fi 28382 fi 28383 28384 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28385 if test "x$test_cygdrive_prefix" = x; then 28386 # As a simple fix, exclude /usr/bin since it's not a real path. 28387 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28388 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28389 # a path prefixed by /cygdrive for fixpath to work. 28390 new_path="$CYGWIN_ROOT_PATH$input_path" 28391 fi 28392 fi 28393 28394 28395 if test "x$path" != "x$new_path"; then 28396 BOOT_JDK="$new_path" 28397 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28398 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28399 fi 28400 28401 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28402 28403 path="$BOOT_JDK" 28404 has_colon=`$ECHO $path | $GREP ^.:` 28405 new_path="$path" 28406 if test "x$has_colon" = x; then 28407 # Not in mixed or Windows style, start by that. 28408 new_path=`cmd //c echo $path` 28409 fi 28410 28411 28412 input_path="$new_path" 28413 # Check if we need to convert this using DOS-style short mode. If the path 28414 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28415 # take no chances and rewrite it. 28416 # Note: m4 eats our [], so we need to use [ and ] instead. 28417 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28418 if test "x$has_forbidden_chars" != x; then 28419 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28420 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28421 fi 28422 28423 28424 windows_path="$new_path" 28425 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28426 unix_path=`$CYGPATH -u "$windows_path"` 28427 new_path="$unix_path" 28428 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28429 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28430 new_path="$unix_path" 28431 fi 28432 28433 if test "x$path" != "x$new_path"; then 28434 BOOT_JDK="$new_path" 28435 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28436 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28437 fi 28438 28439 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28440 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28441 28442 else 28443 # We're on a unix platform. Hooray! :) 28444 path="$BOOT_JDK" 28445 has_space=`$ECHO "$path" | $GREP " "` 28446 if test "x$has_space" != x; then 28447 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28448 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28449 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28450 fi 28451 28452 # Use eval to expand a potential ~ 28453 eval path="$path" 28454 if test ! -f "$path" && test ! -d "$path"; then 28455 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28456 fi 28457 28458 if test -d "$path"; then 28459 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28460 else 28461 dir="`$DIRNAME "$path"`" 28462 base="`$BASENAME "$path"`" 28463 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28464 fi 28465 fi 28466 fi 28467 28468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28469 $as_echo_n "checking for Boot JDK... " >&6; } 28470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28471 $as_echo "$BOOT_JDK" >&6; } 28472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28473 $as_echo_n "checking Boot JDK version... " >&6; } 28474 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28476 $as_echo "$BOOT_JDK_VERSION" >&6; } 28477 fi # end check jdk version 28478 fi # end check javac 28479 fi # end check java 28480 fi # end check boot jdk found 28481 fi 28482 28483 done 28484 fi 28485 28486 fi 28487 28488 28489 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28490 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28491 # Do we have a bin/java? 28492 if test ! -x "$BOOT_JDK/bin/java"; then 28493 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28494 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28495 BOOT_JDK_FOUND=no 28496 else 28497 # Do we have a bin/javac? 28498 if test ! -x "$BOOT_JDK/bin/javac"; then 28499 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28500 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28501 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28502 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28503 BOOT_JDK_FOUND=no 28504 else 28505 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28506 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28507 28508 # Extra M4 quote needed to protect [] in grep expression. 28509 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28510 if test "x$FOUND_CORRECT_VERSION" = x; then 28511 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28512 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28513 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28514 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28515 BOOT_JDK_FOUND=no 28516 else 28517 # We're done! :-) 28518 BOOT_JDK_FOUND=yes 28519 28520 # Only process if variable expands to non-empty 28521 28522 if test "x$BOOT_JDK" != x; then 28523 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28524 28525 # Input might be given as Windows format, start by converting to 28526 # unix format. 28527 path="$BOOT_JDK" 28528 new_path=`$CYGPATH -u "$path"` 28529 28530 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28531 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28532 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28533 # "foo.exe" is OK but "foo" is an error. 28534 # 28535 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28536 # It is also a way to make sure we got the proper file name for the real test later on. 28537 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28538 if test "x$test_shortpath" = x; then 28539 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28540 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28541 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28542 fi 28543 28544 # Call helper function which possibly converts this using DOS-style short mode. 28545 # If so, the updated path is stored in $new_path. 28546 28547 input_path="$new_path" 28548 # Check if we need to convert this using DOS-style short mode. If the path 28549 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28550 # take no chances and rewrite it. 28551 # Note: m4 eats our [], so we need to use [ and ] instead. 28552 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28553 if test "x$has_forbidden_chars" != x; then 28554 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28555 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28556 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28557 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28558 # Going to short mode and back again did indeed matter. Since short mode is 28559 # case insensitive, let's make it lowercase to improve readability. 28560 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28561 # Now convert it back to Unix-style (cygpath) 28562 input_path=`$CYGPATH -u "$shortmode_path"` 28563 new_path="$input_path" 28564 fi 28565 fi 28566 28567 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28568 if test "x$test_cygdrive_prefix" = x; then 28569 # As a simple fix, exclude /usr/bin since it's not a real path. 28570 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28571 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28572 # a path prefixed by /cygdrive for fixpath to work. 28573 new_path="$CYGWIN_ROOT_PATH$input_path" 28574 fi 28575 fi 28576 28577 28578 if test "x$path" != "x$new_path"; then 28579 BOOT_JDK="$new_path" 28580 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28581 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28582 fi 28583 28584 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28585 28586 path="$BOOT_JDK" 28587 has_colon=`$ECHO $path | $GREP ^.:` 28588 new_path="$path" 28589 if test "x$has_colon" = x; then 28590 # Not in mixed or Windows style, start by that. 28591 new_path=`cmd //c echo $path` 28592 fi 28593 28594 28595 input_path="$new_path" 28596 # Check if we need to convert this using DOS-style short mode. If the path 28597 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28598 # take no chances and rewrite it. 28599 # Note: m4 eats our [], so we need to use [ and ] instead. 28600 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28601 if test "x$has_forbidden_chars" != x; then 28602 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28603 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28604 fi 28605 28606 28607 windows_path="$new_path" 28608 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28609 unix_path=`$CYGPATH -u "$windows_path"` 28610 new_path="$unix_path" 28611 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28612 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28613 new_path="$unix_path" 28614 fi 28615 28616 if test "x$path" != "x$new_path"; then 28617 BOOT_JDK="$new_path" 28618 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28619 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28620 fi 28621 28622 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28623 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28624 28625 else 28626 # We're on a unix platform. Hooray! :) 28627 path="$BOOT_JDK" 28628 has_space=`$ECHO "$path" | $GREP " "` 28629 if test "x$has_space" != x; then 28630 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28631 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28632 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28633 fi 28634 28635 # Use eval to expand a potential ~ 28636 eval path="$path" 28637 if test ! -f "$path" && test ! -d "$path"; then 28638 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28639 fi 28640 28641 if test -d "$path"; then 28642 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28643 else 28644 dir="`$DIRNAME "$path"`" 28645 base="`$BASENAME "$path"`" 28646 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28647 fi 28648 fi 28649 fi 28650 28651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28652 $as_echo_n "checking for Boot JDK... " >&6; } 28653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28654 $as_echo "$BOOT_JDK" >&6; } 28655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28656 $as_echo_n "checking Boot JDK version... " >&6; } 28657 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28659 $as_echo "$BOOT_JDK_VERSION" >&6; } 28660 fi # end check jdk version 28661 fi # end check javac 28662 fi # end check java 28663 fi # end check boot jdk found 28664 fi 28665 28666 28667 if test "x$BOOT_JDK_FOUND" = xno; then 28668 # Now execute the test 28669 28670 if test "x$ProgramFiles" != x; then 28671 VIRTUAL_DIR="$ProgramFiles/Java" 28672 28673 windows_path="$VIRTUAL_DIR" 28674 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28675 unix_path=`$CYGPATH -u "$windows_path"` 28676 VIRTUAL_DIR="$unix_path" 28677 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28678 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28679 VIRTUAL_DIR="$unix_path" 28680 fi 28681 28682 28683 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 28684 BOOT_JDK_SUFFIX="" 28685 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28686 if test "x$ALL_JDKS_FOUND" != x; then 28687 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28688 28689 if test "x$BOOT_JDK_FOUND" = xno; then 28690 # Now execute the test 28691 28692 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28693 if test -d "$BOOT_JDK"; then 28694 BOOT_JDK_FOUND=maybe 28695 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28696 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28697 fi 28698 28699 28700 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28701 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28702 # Do we have a bin/java? 28703 if test ! -x "$BOOT_JDK/bin/java"; then 28704 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28705 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28706 BOOT_JDK_FOUND=no 28707 else 28708 # Do we have a bin/javac? 28709 if test ! -x "$BOOT_JDK/bin/javac"; then 28710 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28711 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28712 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28713 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28714 BOOT_JDK_FOUND=no 28715 else 28716 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28717 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28718 28719 # Extra M4 quote needed to protect [] in grep expression. 28720 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28721 if test "x$FOUND_CORRECT_VERSION" = x; then 28722 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28723 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28724 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28725 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28726 BOOT_JDK_FOUND=no 28727 else 28728 # We're done! :-) 28729 BOOT_JDK_FOUND=yes 28730 28731 # Only process if variable expands to non-empty 28732 28733 if test "x$BOOT_JDK" != x; then 28734 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28735 28736 # Input might be given as Windows format, start by converting to 28737 # unix format. 28738 path="$BOOT_JDK" 28739 new_path=`$CYGPATH -u "$path"` 28740 28741 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28742 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28743 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28744 # "foo.exe" is OK but "foo" is an error. 28745 # 28746 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28747 # It is also a way to make sure we got the proper file name for the real test later on. 28748 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28749 if test "x$test_shortpath" = x; then 28750 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28751 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28752 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28753 fi 28754 28755 # Call helper function which possibly converts this using DOS-style short mode. 28756 # If so, the updated path is stored in $new_path. 28757 28758 input_path="$new_path" 28759 # Check if we need to convert this using DOS-style short mode. If the path 28760 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28761 # take no chances and rewrite it. 28762 # Note: m4 eats our [], so we need to use [ and ] instead. 28763 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28764 if test "x$has_forbidden_chars" != x; then 28765 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28766 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28767 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28768 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28769 # Going to short mode and back again did indeed matter. Since short mode is 28770 # case insensitive, let's make it lowercase to improve readability. 28771 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28772 # Now convert it back to Unix-style (cygpath) 28773 input_path=`$CYGPATH -u "$shortmode_path"` 28774 new_path="$input_path" 28775 fi 28776 fi 28777 28778 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28779 if test "x$test_cygdrive_prefix" = x; then 28780 # As a simple fix, exclude /usr/bin since it's not a real path. 28781 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28782 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28783 # a path prefixed by /cygdrive for fixpath to work. 28784 new_path="$CYGWIN_ROOT_PATH$input_path" 28785 fi 28786 fi 28787 28788 28789 if test "x$path" != "x$new_path"; then 28790 BOOT_JDK="$new_path" 28791 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28792 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28793 fi 28794 28795 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28796 28797 path="$BOOT_JDK" 28798 has_colon=`$ECHO $path | $GREP ^.:` 28799 new_path="$path" 28800 if test "x$has_colon" = x; then 28801 # Not in mixed or Windows style, start by that. 28802 new_path=`cmd //c echo $path` 28803 fi 28804 28805 28806 input_path="$new_path" 28807 # Check if we need to convert this using DOS-style short mode. If the path 28808 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28809 # take no chances and rewrite it. 28810 # Note: m4 eats our [], so we need to use [ and ] instead. 28811 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28812 if test "x$has_forbidden_chars" != x; then 28813 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28814 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28815 fi 28816 28817 28818 windows_path="$new_path" 28819 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28820 unix_path=`$CYGPATH -u "$windows_path"` 28821 new_path="$unix_path" 28822 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28823 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28824 new_path="$unix_path" 28825 fi 28826 28827 if test "x$path" != "x$new_path"; then 28828 BOOT_JDK="$new_path" 28829 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28830 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28831 fi 28832 28833 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28834 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28835 28836 else 28837 # We're on a unix platform. Hooray! :) 28838 path="$BOOT_JDK" 28839 has_space=`$ECHO "$path" | $GREP " "` 28840 if test "x$has_space" != x; then 28841 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28842 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28843 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28844 fi 28845 28846 # Use eval to expand a potential ~ 28847 eval path="$path" 28848 if test ! -f "$path" && test ! -d "$path"; then 28849 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28850 fi 28851 28852 if test -d "$path"; then 28853 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28854 else 28855 dir="`$DIRNAME "$path"`" 28856 base="`$BASENAME "$path"`" 28857 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28858 fi 28859 fi 28860 fi 28861 28862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28863 $as_echo_n "checking for Boot JDK... " >&6; } 28864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28865 $as_echo "$BOOT_JDK" >&6; } 28866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28867 $as_echo_n "checking Boot JDK version... " >&6; } 28868 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28870 $as_echo "$BOOT_JDK_VERSION" >&6; } 28871 fi # end check jdk version 28872 fi # end check javac 28873 fi # end check java 28874 fi # end check boot jdk found 28875 fi 28876 28877 done 28878 fi 28879 28880 fi 28881 28882 28883 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28884 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28885 # Do we have a bin/java? 28886 if test ! -x "$BOOT_JDK/bin/java"; then 28887 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28888 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28889 BOOT_JDK_FOUND=no 28890 else 28891 # Do we have a bin/javac? 28892 if test ! -x "$BOOT_JDK/bin/javac"; then 28893 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28894 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28895 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28896 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28897 BOOT_JDK_FOUND=no 28898 else 28899 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28900 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28901 28902 # Extra M4 quote needed to protect [] in grep expression. 28903 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28904 if test "x$FOUND_CORRECT_VERSION" = x; then 28905 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28906 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28907 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28908 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28909 BOOT_JDK_FOUND=no 28910 else 28911 # We're done! :-) 28912 BOOT_JDK_FOUND=yes 28913 28914 # Only process if variable expands to non-empty 28915 28916 if test "x$BOOT_JDK" != x; then 28917 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28918 28919 # Input might be given as Windows format, start by converting to 28920 # unix format. 28921 path="$BOOT_JDK" 28922 new_path=`$CYGPATH -u "$path"` 28923 28924 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28925 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28926 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28927 # "foo.exe" is OK but "foo" is an error. 28928 # 28929 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28930 # It is also a way to make sure we got the proper file name for the real test later on. 28931 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28932 if test "x$test_shortpath" = x; then 28933 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28934 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28935 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28936 fi 28937 28938 # Call helper function which possibly converts this using DOS-style short mode. 28939 # If so, the updated path is stored in $new_path. 28940 28941 input_path="$new_path" 28942 # Check if we need to convert this using DOS-style short mode. If the path 28943 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28944 # take no chances and rewrite it. 28945 # Note: m4 eats our [], so we need to use [ and ] instead. 28946 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28947 if test "x$has_forbidden_chars" != x; then 28948 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28949 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28950 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28951 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28952 # Going to short mode and back again did indeed matter. Since short mode is 28953 # case insensitive, let's make it lowercase to improve readability. 28954 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28955 # Now convert it back to Unix-style (cygpath) 28956 input_path=`$CYGPATH -u "$shortmode_path"` 28957 new_path="$input_path" 28958 fi 28959 fi 28960 28961 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28962 if test "x$test_cygdrive_prefix" = x; then 28963 # As a simple fix, exclude /usr/bin since it's not a real path. 28964 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28965 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28966 # a path prefixed by /cygdrive for fixpath to work. 28967 new_path="$CYGWIN_ROOT_PATH$input_path" 28968 fi 28969 fi 28970 28971 28972 if test "x$path" != "x$new_path"; then 28973 BOOT_JDK="$new_path" 28974 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28975 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28976 fi 28977 28978 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28979 28980 path="$BOOT_JDK" 28981 has_colon=`$ECHO $path | $GREP ^.:` 28982 new_path="$path" 28983 if test "x$has_colon" = x; then 28984 # Not in mixed or Windows style, start by that. 28985 new_path=`cmd //c echo $path` 28986 fi 28987 28988 28989 input_path="$new_path" 28990 # Check if we need to convert this using DOS-style short mode. If the path 28991 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28992 # take no chances and rewrite it. 28993 # Note: m4 eats our [], so we need to use [ and ] instead. 28994 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28995 if test "x$has_forbidden_chars" != x; then 28996 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28997 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28998 fi 28999 29000 29001 windows_path="$new_path" 29002 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29003 unix_path=`$CYGPATH -u "$windows_path"` 29004 new_path="$unix_path" 29005 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29006 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29007 new_path="$unix_path" 29008 fi 29009 29010 if test "x$path" != "x$new_path"; then 29011 BOOT_JDK="$new_path" 29012 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29013 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29014 fi 29015 29016 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29017 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29018 29019 else 29020 # We're on a unix platform. Hooray! :) 29021 path="$BOOT_JDK" 29022 has_space=`$ECHO "$path" | $GREP " "` 29023 if test "x$has_space" != x; then 29024 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29025 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29026 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29027 fi 29028 29029 # Use eval to expand a potential ~ 29030 eval path="$path" 29031 if test ! -f "$path" && test ! -d "$path"; then 29032 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29033 fi 29034 29035 if test -d "$path"; then 29036 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29037 else 29038 dir="`$DIRNAME "$path"`" 29039 base="`$BASENAME "$path"`" 29040 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29041 fi 29042 fi 29043 fi 29044 29045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29046 $as_echo_n "checking for Boot JDK... " >&6; } 29047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29048 $as_echo "$BOOT_JDK" >&6; } 29049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29050 $as_echo_n "checking Boot JDK version... " >&6; } 29051 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29053 $as_echo "$BOOT_JDK_VERSION" >&6; } 29054 fi # end check jdk version 29055 fi # end check javac 29056 fi # end check java 29057 fi # end check boot jdk found 29058 fi 29059 29060 29061 if test "x$BOOT_JDK_FOUND" = xno; then 29062 # Now execute the test 29063 29064 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 29065 BOOT_JDK_SUFFIX="" 29066 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 29067 if test "x$ALL_JDKS_FOUND" != x; then 29068 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 29069 29070 if test "x$BOOT_JDK_FOUND" = xno; then 29071 # Now execute the test 29072 29073 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 29074 if test -d "$BOOT_JDK"; then 29075 BOOT_JDK_FOUND=maybe 29076 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 29077 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 29078 fi 29079 29080 29081 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29082 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29083 # Do we have a bin/java? 29084 if test ! -x "$BOOT_JDK/bin/java"; then 29085 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29086 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29087 BOOT_JDK_FOUND=no 29088 else 29089 # Do we have a bin/javac? 29090 if test ! -x "$BOOT_JDK/bin/javac"; then 29091 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29092 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29093 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29094 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29095 BOOT_JDK_FOUND=no 29096 else 29097 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29098 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29099 29100 # Extra M4 quote needed to protect [] in grep expression. 29101 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29102 if test "x$FOUND_CORRECT_VERSION" = x; then 29103 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29104 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29105 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29106 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29107 BOOT_JDK_FOUND=no 29108 else 29109 # We're done! :-) 29110 BOOT_JDK_FOUND=yes 29111 29112 # Only process if variable expands to non-empty 29113 29114 if test "x$BOOT_JDK" != x; then 29115 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29116 29117 # Input might be given as Windows format, start by converting to 29118 # unix format. 29119 path="$BOOT_JDK" 29120 new_path=`$CYGPATH -u "$path"` 29121 29122 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29123 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29124 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29125 # "foo.exe" is OK but "foo" is an error. 29126 # 29127 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29128 # It is also a way to make sure we got the proper file name for the real test later on. 29129 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29130 if test "x$test_shortpath" = x; then 29131 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29132 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29133 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29134 fi 29135 29136 # Call helper function which possibly converts this using DOS-style short mode. 29137 # If so, the updated path is stored in $new_path. 29138 29139 input_path="$new_path" 29140 # Check if we need to convert this using DOS-style short mode. If the path 29141 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29142 # take no chances and rewrite it. 29143 # Note: m4 eats our [], so we need to use [ and ] instead. 29144 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29145 if test "x$has_forbidden_chars" != x; then 29146 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29147 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29148 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29149 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29150 # Going to short mode and back again did indeed matter. Since short mode is 29151 # case insensitive, let's make it lowercase to improve readability. 29152 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29153 # Now convert it back to Unix-style (cygpath) 29154 input_path=`$CYGPATH -u "$shortmode_path"` 29155 new_path="$input_path" 29156 fi 29157 fi 29158 29159 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29160 if test "x$test_cygdrive_prefix" = x; then 29161 # As a simple fix, exclude /usr/bin since it's not a real path. 29162 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29163 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29164 # a path prefixed by /cygdrive for fixpath to work. 29165 new_path="$CYGWIN_ROOT_PATH$input_path" 29166 fi 29167 fi 29168 29169 29170 if test "x$path" != "x$new_path"; then 29171 BOOT_JDK="$new_path" 29172 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29173 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29174 fi 29175 29176 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29177 29178 path="$BOOT_JDK" 29179 has_colon=`$ECHO $path | $GREP ^.:` 29180 new_path="$path" 29181 if test "x$has_colon" = x; then 29182 # Not in mixed or Windows style, start by that. 29183 new_path=`cmd //c echo $path` 29184 fi 29185 29186 29187 input_path="$new_path" 29188 # Check if we need to convert this using DOS-style short mode. If the path 29189 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29190 # take no chances and rewrite it. 29191 # Note: m4 eats our [], so we need to use [ and ] instead. 29192 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29193 if test "x$has_forbidden_chars" != x; then 29194 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29195 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29196 fi 29197 29198 29199 windows_path="$new_path" 29200 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29201 unix_path=`$CYGPATH -u "$windows_path"` 29202 new_path="$unix_path" 29203 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29204 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29205 new_path="$unix_path" 29206 fi 29207 29208 if test "x$path" != "x$new_path"; then 29209 BOOT_JDK="$new_path" 29210 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29211 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29212 fi 29213 29214 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29215 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29216 29217 else 29218 # We're on a unix platform. Hooray! :) 29219 path="$BOOT_JDK" 29220 has_space=`$ECHO "$path" | $GREP " "` 29221 if test "x$has_space" != x; then 29222 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29223 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29224 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29225 fi 29226 29227 # Use eval to expand a potential ~ 29228 eval path="$path" 29229 if test ! -f "$path" && test ! -d "$path"; then 29230 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29231 fi 29232 29233 if test -d "$path"; then 29234 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29235 else 29236 dir="`$DIRNAME "$path"`" 29237 base="`$BASENAME "$path"`" 29238 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29239 fi 29240 fi 29241 fi 29242 29243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29244 $as_echo_n "checking for Boot JDK... " >&6; } 29245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29246 $as_echo "$BOOT_JDK" >&6; } 29247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29248 $as_echo_n "checking Boot JDK version... " >&6; } 29249 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29251 $as_echo "$BOOT_JDK_VERSION" >&6; } 29252 fi # end check jdk version 29253 fi # end check javac 29254 fi # end check java 29255 fi # end check boot jdk found 29256 fi 29257 29258 done 29259 fi 29260 29261 29262 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29263 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29264 # Do we have a bin/java? 29265 if test ! -x "$BOOT_JDK/bin/java"; then 29266 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29267 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29268 BOOT_JDK_FOUND=no 29269 else 29270 # Do we have a bin/javac? 29271 if test ! -x "$BOOT_JDK/bin/javac"; then 29272 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29273 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29274 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29275 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29276 BOOT_JDK_FOUND=no 29277 else 29278 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29279 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29280 29281 # Extra M4 quote needed to protect [] in grep expression. 29282 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29283 if test "x$FOUND_CORRECT_VERSION" = x; then 29284 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29285 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29286 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29287 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29288 BOOT_JDK_FOUND=no 29289 else 29290 # We're done! :-) 29291 BOOT_JDK_FOUND=yes 29292 29293 # Only process if variable expands to non-empty 29294 29295 if test "x$BOOT_JDK" != x; then 29296 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29297 29298 # Input might be given as Windows format, start by converting to 29299 # unix format. 29300 path="$BOOT_JDK" 29301 new_path=`$CYGPATH -u "$path"` 29302 29303 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29304 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29305 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29306 # "foo.exe" is OK but "foo" is an error. 29307 # 29308 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29309 # It is also a way to make sure we got the proper file name for the real test later on. 29310 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29311 if test "x$test_shortpath" = x; then 29312 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29313 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29314 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29315 fi 29316 29317 # Call helper function which possibly converts this using DOS-style short mode. 29318 # If so, the updated path is stored in $new_path. 29319 29320 input_path="$new_path" 29321 # Check if we need to convert this using DOS-style short mode. If the path 29322 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29323 # take no chances and rewrite it. 29324 # Note: m4 eats our [], so we need to use [ and ] instead. 29325 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29326 if test "x$has_forbidden_chars" != x; then 29327 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29328 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29329 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29330 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29331 # Going to short mode and back again did indeed matter. Since short mode is 29332 # case insensitive, let's make it lowercase to improve readability. 29333 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29334 # Now convert it back to Unix-style (cygpath) 29335 input_path=`$CYGPATH -u "$shortmode_path"` 29336 new_path="$input_path" 29337 fi 29338 fi 29339 29340 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29341 if test "x$test_cygdrive_prefix" = x; then 29342 # As a simple fix, exclude /usr/bin since it's not a real path. 29343 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29344 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29345 # a path prefixed by /cygdrive for fixpath to work. 29346 new_path="$CYGWIN_ROOT_PATH$input_path" 29347 fi 29348 fi 29349 29350 29351 if test "x$path" != "x$new_path"; then 29352 BOOT_JDK="$new_path" 29353 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29354 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29355 fi 29356 29357 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29358 29359 path="$BOOT_JDK" 29360 has_colon=`$ECHO $path | $GREP ^.:` 29361 new_path="$path" 29362 if test "x$has_colon" = x; then 29363 # Not in mixed or Windows style, start by that. 29364 new_path=`cmd //c echo $path` 29365 fi 29366 29367 29368 input_path="$new_path" 29369 # Check if we need to convert this using DOS-style short mode. If the path 29370 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29371 # take no chances and rewrite it. 29372 # Note: m4 eats our [], so we need to use [ and ] instead. 29373 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29374 if test "x$has_forbidden_chars" != x; then 29375 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29376 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29377 fi 29378 29379 29380 windows_path="$new_path" 29381 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29382 unix_path=`$CYGPATH -u "$windows_path"` 29383 new_path="$unix_path" 29384 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29385 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29386 new_path="$unix_path" 29387 fi 29388 29389 if test "x$path" != "x$new_path"; then 29390 BOOT_JDK="$new_path" 29391 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29392 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29393 fi 29394 29395 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29396 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29397 29398 else 29399 # We're on a unix platform. Hooray! :) 29400 path="$BOOT_JDK" 29401 has_space=`$ECHO "$path" | $GREP " "` 29402 if test "x$has_space" != x; then 29403 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29404 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29405 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29406 fi 29407 29408 # Use eval to expand a potential ~ 29409 eval path="$path" 29410 if test ! -f "$path" && test ! -d "$path"; then 29411 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29412 fi 29413 29414 if test -d "$path"; then 29415 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29416 else 29417 dir="`$DIRNAME "$path"`" 29418 base="`$BASENAME "$path"`" 29419 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29420 fi 29421 fi 29422 fi 29423 29424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29425 $as_echo_n "checking for Boot JDK... " >&6; } 29426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29427 $as_echo "$BOOT_JDK" >&6; } 29428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29429 $as_echo_n "checking Boot JDK version... " >&6; } 29430 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29432 $as_echo "$BOOT_JDK_VERSION" >&6; } 29433 fi # end check jdk version 29434 fi # end check javac 29435 fi # end check java 29436 fi # end check boot jdk found 29437 fi 29438 29439 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 29440 29441 if test "x$BOOT_JDK_FOUND" = xno; then 29442 # Now execute the test 29443 29444 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 29445 BOOT_JDK_SUFFIX="/Contents/Home" 29446 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 29447 if test "x$ALL_JDKS_FOUND" != x; then 29448 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 29449 29450 if test "x$BOOT_JDK_FOUND" = xno; then 29451 # Now execute the test 29452 29453 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 29454 if test -d "$BOOT_JDK"; then 29455 BOOT_JDK_FOUND=maybe 29456 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 29457 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 29458 fi 29459 29460 29461 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29462 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29463 # Do we have a bin/java? 29464 if test ! -x "$BOOT_JDK/bin/java"; then 29465 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29466 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29467 BOOT_JDK_FOUND=no 29468 else 29469 # Do we have a bin/javac? 29470 if test ! -x "$BOOT_JDK/bin/javac"; then 29471 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29472 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29473 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29474 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29475 BOOT_JDK_FOUND=no 29476 else 29477 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29478 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29479 29480 # Extra M4 quote needed to protect [] in grep expression. 29481 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29482 if test "x$FOUND_CORRECT_VERSION" = x; then 29483 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29484 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29485 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29486 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29487 BOOT_JDK_FOUND=no 29488 else 29489 # We're done! :-) 29490 BOOT_JDK_FOUND=yes 29491 29492 # Only process if variable expands to non-empty 29493 29494 if test "x$BOOT_JDK" != x; then 29495 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29496 29497 # Input might be given as Windows format, start by converting to 29498 # unix format. 29499 path="$BOOT_JDK" 29500 new_path=`$CYGPATH -u "$path"` 29501 29502 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29503 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29504 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29505 # "foo.exe" is OK but "foo" is an error. 29506 # 29507 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29508 # It is also a way to make sure we got the proper file name for the real test later on. 29509 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29510 if test "x$test_shortpath" = x; then 29511 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29512 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29513 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29514 fi 29515 29516 # Call helper function which possibly converts this using DOS-style short mode. 29517 # If so, the updated path is stored in $new_path. 29518 29519 input_path="$new_path" 29520 # Check if we need to convert this using DOS-style short mode. If the path 29521 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29522 # take no chances and rewrite it. 29523 # Note: m4 eats our [], so we need to use [ and ] instead. 29524 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29525 if test "x$has_forbidden_chars" != x; then 29526 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29527 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29528 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29529 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29530 # Going to short mode and back again did indeed matter. Since short mode is 29531 # case insensitive, let's make it lowercase to improve readability. 29532 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29533 # Now convert it back to Unix-style (cygpath) 29534 input_path=`$CYGPATH -u "$shortmode_path"` 29535 new_path="$input_path" 29536 fi 29537 fi 29538 29539 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29540 if test "x$test_cygdrive_prefix" = x; then 29541 # As a simple fix, exclude /usr/bin since it's not a real path. 29542 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29543 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29544 # a path prefixed by /cygdrive for fixpath to work. 29545 new_path="$CYGWIN_ROOT_PATH$input_path" 29546 fi 29547 fi 29548 29549 29550 if test "x$path" != "x$new_path"; then 29551 BOOT_JDK="$new_path" 29552 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29553 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29554 fi 29555 29556 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29557 29558 path="$BOOT_JDK" 29559 has_colon=`$ECHO $path | $GREP ^.:` 29560 new_path="$path" 29561 if test "x$has_colon" = x; then 29562 # Not in mixed or Windows style, start by that. 29563 new_path=`cmd //c echo $path` 29564 fi 29565 29566 29567 input_path="$new_path" 29568 # Check if we need to convert this using DOS-style short mode. If the path 29569 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29570 # take no chances and rewrite it. 29571 # Note: m4 eats our [], so we need to use [ and ] instead. 29572 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29573 if test "x$has_forbidden_chars" != x; then 29574 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29575 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29576 fi 29577 29578 29579 windows_path="$new_path" 29580 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29581 unix_path=`$CYGPATH -u "$windows_path"` 29582 new_path="$unix_path" 29583 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29584 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29585 new_path="$unix_path" 29586 fi 29587 29588 if test "x$path" != "x$new_path"; then 29589 BOOT_JDK="$new_path" 29590 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29591 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29592 fi 29593 29594 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29595 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29596 29597 else 29598 # We're on a unix platform. Hooray! :) 29599 path="$BOOT_JDK" 29600 has_space=`$ECHO "$path" | $GREP " "` 29601 if test "x$has_space" != x; then 29602 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29603 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29604 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29605 fi 29606 29607 # Use eval to expand a potential ~ 29608 eval path="$path" 29609 if test ! -f "$path" && test ! -d "$path"; then 29610 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29611 fi 29612 29613 if test -d "$path"; then 29614 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29615 else 29616 dir="`$DIRNAME "$path"`" 29617 base="`$BASENAME "$path"`" 29618 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29619 fi 29620 fi 29621 fi 29622 29623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29624 $as_echo_n "checking for Boot JDK... " >&6; } 29625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29626 $as_echo "$BOOT_JDK" >&6; } 29627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29628 $as_echo_n "checking Boot JDK version... " >&6; } 29629 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29631 $as_echo "$BOOT_JDK_VERSION" >&6; } 29632 fi # end check jdk version 29633 fi # end check javac 29634 fi # end check java 29635 fi # end check boot jdk found 29636 fi 29637 29638 done 29639 fi 29640 29641 29642 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29643 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29644 # Do we have a bin/java? 29645 if test ! -x "$BOOT_JDK/bin/java"; then 29646 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29647 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29648 BOOT_JDK_FOUND=no 29649 else 29650 # Do we have a bin/javac? 29651 if test ! -x "$BOOT_JDK/bin/javac"; then 29652 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29653 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29654 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29655 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29656 BOOT_JDK_FOUND=no 29657 else 29658 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29659 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29660 29661 # Extra M4 quote needed to protect [] in grep expression. 29662 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29663 if test "x$FOUND_CORRECT_VERSION" = x; then 29664 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29665 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29666 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29667 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29668 BOOT_JDK_FOUND=no 29669 else 29670 # We're done! :-) 29671 BOOT_JDK_FOUND=yes 29672 29673 # Only process if variable expands to non-empty 29674 29675 if test "x$BOOT_JDK" != x; then 29676 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29677 29678 # Input might be given as Windows format, start by converting to 29679 # unix format. 29680 path="$BOOT_JDK" 29681 new_path=`$CYGPATH -u "$path"` 29682 29683 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29684 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29685 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29686 # "foo.exe" is OK but "foo" is an error. 29687 # 29688 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29689 # It is also a way to make sure we got the proper file name for the real test later on. 29690 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29691 if test "x$test_shortpath" = x; then 29692 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29693 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29694 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29695 fi 29696 29697 # Call helper function which possibly converts this using DOS-style short mode. 29698 # If so, the updated path is stored in $new_path. 29699 29700 input_path="$new_path" 29701 # Check if we need to convert this using DOS-style short mode. If the path 29702 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29703 # take no chances and rewrite it. 29704 # Note: m4 eats our [], so we need to use [ and ] instead. 29705 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29706 if test "x$has_forbidden_chars" != x; then 29707 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29708 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29709 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29710 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29711 # Going to short mode and back again did indeed matter. Since short mode is 29712 # case insensitive, let's make it lowercase to improve readability. 29713 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29714 # Now convert it back to Unix-style (cygpath) 29715 input_path=`$CYGPATH -u "$shortmode_path"` 29716 new_path="$input_path" 29717 fi 29718 fi 29719 29720 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29721 if test "x$test_cygdrive_prefix" = x; then 29722 # As a simple fix, exclude /usr/bin since it's not a real path. 29723 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29724 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29725 # a path prefixed by /cygdrive for fixpath to work. 29726 new_path="$CYGWIN_ROOT_PATH$input_path" 29727 fi 29728 fi 29729 29730 29731 if test "x$path" != "x$new_path"; then 29732 BOOT_JDK="$new_path" 29733 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29734 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29735 fi 29736 29737 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29738 29739 path="$BOOT_JDK" 29740 has_colon=`$ECHO $path | $GREP ^.:` 29741 new_path="$path" 29742 if test "x$has_colon" = x; then 29743 # Not in mixed or Windows style, start by that. 29744 new_path=`cmd //c echo $path` 29745 fi 29746 29747 29748 input_path="$new_path" 29749 # Check if we need to convert this using DOS-style short mode. If the path 29750 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29751 # take no chances and rewrite it. 29752 # Note: m4 eats our [], so we need to use [ and ] instead. 29753 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29754 if test "x$has_forbidden_chars" != x; then 29755 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29756 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29757 fi 29758 29759 29760 windows_path="$new_path" 29761 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29762 unix_path=`$CYGPATH -u "$windows_path"` 29763 new_path="$unix_path" 29764 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29765 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29766 new_path="$unix_path" 29767 fi 29768 29769 if test "x$path" != "x$new_path"; then 29770 BOOT_JDK="$new_path" 29771 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29772 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29773 fi 29774 29775 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29776 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29777 29778 else 29779 # We're on a unix platform. Hooray! :) 29780 path="$BOOT_JDK" 29781 has_space=`$ECHO "$path" | $GREP " "` 29782 if test "x$has_space" != x; then 29783 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29784 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29785 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29786 fi 29787 29788 # Use eval to expand a potential ~ 29789 eval path="$path" 29790 if test ! -f "$path" && test ! -d "$path"; then 29791 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29792 fi 29793 29794 if test -d "$path"; then 29795 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29796 else 29797 dir="`$DIRNAME "$path"`" 29798 base="`$BASENAME "$path"`" 29799 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29800 fi 29801 fi 29802 fi 29803 29804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29805 $as_echo_n "checking for Boot JDK... " >&6; } 29806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29807 $as_echo "$BOOT_JDK" >&6; } 29808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29809 $as_echo_n "checking Boot JDK version... " >&6; } 29810 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29812 $as_echo "$BOOT_JDK_VERSION" >&6; } 29813 fi # end check jdk version 29814 fi # end check javac 29815 fi # end check java 29816 fi # end check boot jdk found 29817 fi 29818 29819 29820 if test "x$BOOT_JDK_FOUND" = xno; then 29821 # Now execute the test 29822 29823 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 29824 BOOT_JDK_SUFFIX="/Contents/Home" 29825 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 29826 if test "x$ALL_JDKS_FOUND" != x; then 29827 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 29828 29829 if test "x$BOOT_JDK_FOUND" = xno; then 29830 # Now execute the test 29831 29832 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 29833 if test -d "$BOOT_JDK"; then 29834 BOOT_JDK_FOUND=maybe 29835 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 29836 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 29837 fi 29838 29839 29840 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29841 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29842 # Do we have a bin/java? 29843 if test ! -x "$BOOT_JDK/bin/java"; then 29844 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29845 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29846 BOOT_JDK_FOUND=no 29847 else 29848 # Do we have a bin/javac? 29849 if test ! -x "$BOOT_JDK/bin/javac"; then 29850 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29851 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29852 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29853 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29854 BOOT_JDK_FOUND=no 29855 else 29856 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29857 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29858 29859 # Extra M4 quote needed to protect [] in grep expression. 29860 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29861 if test "x$FOUND_CORRECT_VERSION" = x; then 29862 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29863 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29864 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29865 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29866 BOOT_JDK_FOUND=no 29867 else 29868 # We're done! :-) 29869 BOOT_JDK_FOUND=yes 29870 29871 # Only process if variable expands to non-empty 29872 29873 if test "x$BOOT_JDK" != x; then 29874 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29875 29876 # Input might be given as Windows format, start by converting to 29877 # unix format. 29878 path="$BOOT_JDK" 29879 new_path=`$CYGPATH -u "$path"` 29880 29881 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29882 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29883 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29884 # "foo.exe" is OK but "foo" is an error. 29885 # 29886 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29887 # It is also a way to make sure we got the proper file name for the real test later on. 29888 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29889 if test "x$test_shortpath" = x; then 29890 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29891 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29892 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29893 fi 29894 29895 # Call helper function which possibly converts this using DOS-style short mode. 29896 # If so, the updated path is stored in $new_path. 29897 29898 input_path="$new_path" 29899 # Check if we need to convert this using DOS-style short mode. If the path 29900 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29901 # take no chances and rewrite it. 29902 # Note: m4 eats our [], so we need to use [ and ] instead. 29903 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29904 if test "x$has_forbidden_chars" != x; then 29905 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29906 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29907 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29908 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29909 # Going to short mode and back again did indeed matter. Since short mode is 29910 # case insensitive, let's make it lowercase to improve readability. 29911 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29912 # Now convert it back to Unix-style (cygpath) 29913 input_path=`$CYGPATH -u "$shortmode_path"` 29914 new_path="$input_path" 29915 fi 29916 fi 29917 29918 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29919 if test "x$test_cygdrive_prefix" = x; then 29920 # As a simple fix, exclude /usr/bin since it's not a real path. 29921 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29922 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29923 # a path prefixed by /cygdrive for fixpath to work. 29924 new_path="$CYGWIN_ROOT_PATH$input_path" 29925 fi 29926 fi 29927 29928 29929 if test "x$path" != "x$new_path"; then 29930 BOOT_JDK="$new_path" 29931 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29932 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29933 fi 29934 29935 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29936 29937 path="$BOOT_JDK" 29938 has_colon=`$ECHO $path | $GREP ^.:` 29939 new_path="$path" 29940 if test "x$has_colon" = x; then 29941 # Not in mixed or Windows style, start by that. 29942 new_path=`cmd //c echo $path` 29943 fi 29944 29945 29946 input_path="$new_path" 29947 # Check if we need to convert this using DOS-style short mode. If the path 29948 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29949 # take no chances and rewrite it. 29950 # Note: m4 eats our [], so we need to use [ and ] instead. 29951 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29952 if test "x$has_forbidden_chars" != x; then 29953 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29954 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29955 fi 29956 29957 29958 windows_path="$new_path" 29959 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29960 unix_path=`$CYGPATH -u "$windows_path"` 29961 new_path="$unix_path" 29962 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29963 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29964 new_path="$unix_path" 29965 fi 29966 29967 if test "x$path" != "x$new_path"; then 29968 BOOT_JDK="$new_path" 29969 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29970 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29971 fi 29972 29973 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29974 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29975 29976 else 29977 # We're on a unix platform. Hooray! :) 29978 path="$BOOT_JDK" 29979 has_space=`$ECHO "$path" | $GREP " "` 29980 if test "x$has_space" != x; then 29981 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29982 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29983 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29984 fi 29985 29986 # Use eval to expand a potential ~ 29987 eval path="$path" 29988 if test ! -f "$path" && test ! -d "$path"; then 29989 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29990 fi 29991 29992 if test -d "$path"; then 29993 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29994 else 29995 dir="`$DIRNAME "$path"`" 29996 base="`$BASENAME "$path"`" 29997 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29998 fi 29999 fi 30000 fi 30001 30002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30003 $as_echo_n "checking for Boot JDK... " >&6; } 30004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30005 $as_echo "$BOOT_JDK" >&6; } 30006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30007 $as_echo_n "checking Boot JDK version... " >&6; } 30008 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30010 $as_echo "$BOOT_JDK_VERSION" >&6; } 30011 fi # end check jdk version 30012 fi # end check javac 30013 fi # end check java 30014 fi # end check boot jdk found 30015 fi 30016 30017 done 30018 fi 30019 30020 30021 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30022 if test "x$BOOT_JDK_FOUND" = xmaybe; then 30023 # Do we have a bin/java? 30024 if test ! -x "$BOOT_JDK/bin/java"; then 30025 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 30026 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 30027 BOOT_JDK_FOUND=no 30028 else 30029 # Do we have a bin/javac? 30030 if test ! -x "$BOOT_JDK/bin/javac"; then 30031 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 30032 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 30033 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 30034 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 30035 BOOT_JDK_FOUND=no 30036 else 30037 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30038 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30039 30040 # Extra M4 quote needed to protect [] in grep expression. 30041 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 30042 if test "x$FOUND_CORRECT_VERSION" = x; then 30043 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 30044 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 30045 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 30046 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 30047 BOOT_JDK_FOUND=no 30048 else 30049 # We're done! :-) 30050 BOOT_JDK_FOUND=yes 30051 30052 # Only process if variable expands to non-empty 30053 30054 if test "x$BOOT_JDK" != x; then 30055 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30056 30057 # Input might be given as Windows format, start by converting to 30058 # unix format. 30059 path="$BOOT_JDK" 30060 new_path=`$CYGPATH -u "$path"` 30061 30062 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30063 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30064 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30065 # "foo.exe" is OK but "foo" is an error. 30066 # 30067 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30068 # It is also a way to make sure we got the proper file name for the real test later on. 30069 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30070 if test "x$test_shortpath" = x; then 30071 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30072 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30073 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 30074 fi 30075 30076 # Call helper function which possibly converts this using DOS-style short mode. 30077 # If so, the updated path is stored in $new_path. 30078 30079 input_path="$new_path" 30080 # Check if we need to convert this using DOS-style short mode. If the path 30081 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30082 # take no chances and rewrite it. 30083 # Note: m4 eats our [], so we need to use [ and ] instead. 30084 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30085 if test "x$has_forbidden_chars" != x; then 30086 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30087 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30088 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30089 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30090 # Going to short mode and back again did indeed matter. Since short mode is 30091 # case insensitive, let's make it lowercase to improve readability. 30092 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30093 # Now convert it back to Unix-style (cygpath) 30094 input_path=`$CYGPATH -u "$shortmode_path"` 30095 new_path="$input_path" 30096 fi 30097 fi 30098 30099 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30100 if test "x$test_cygdrive_prefix" = x; then 30101 # As a simple fix, exclude /usr/bin since it's not a real path. 30102 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30103 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30104 # a path prefixed by /cygdrive for fixpath to work. 30105 new_path="$CYGWIN_ROOT_PATH$input_path" 30106 fi 30107 fi 30108 30109 30110 if test "x$path" != "x$new_path"; then 30111 BOOT_JDK="$new_path" 30112 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30113 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30114 fi 30115 30116 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30117 30118 path="$BOOT_JDK" 30119 has_colon=`$ECHO $path | $GREP ^.:` 30120 new_path="$path" 30121 if test "x$has_colon" = x; then 30122 # Not in mixed or Windows style, start by that. 30123 new_path=`cmd //c echo $path` 30124 fi 30125 30126 30127 input_path="$new_path" 30128 # Check if we need to convert this using DOS-style short mode. If the path 30129 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30130 # take no chances and rewrite it. 30131 # Note: m4 eats our [], so we need to use [ and ] instead. 30132 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30133 if test "x$has_forbidden_chars" != x; then 30134 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30135 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30136 fi 30137 30138 30139 windows_path="$new_path" 30140 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30141 unix_path=`$CYGPATH -u "$windows_path"` 30142 new_path="$unix_path" 30143 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30144 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30145 new_path="$unix_path" 30146 fi 30147 30148 if test "x$path" != "x$new_path"; then 30149 BOOT_JDK="$new_path" 30150 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30151 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30152 fi 30153 30154 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30155 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30156 30157 else 30158 # We're on a unix platform. Hooray! :) 30159 path="$BOOT_JDK" 30160 has_space=`$ECHO "$path" | $GREP " "` 30161 if test "x$has_space" != x; then 30162 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30163 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30164 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30165 fi 30166 30167 # Use eval to expand a potential ~ 30168 eval path="$path" 30169 if test ! -f "$path" && test ! -d "$path"; then 30170 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30171 fi 30172 30173 if test -d "$path"; then 30174 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30175 else 30176 dir="`$DIRNAME "$path"`" 30177 base="`$BASENAME "$path"`" 30178 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30179 fi 30180 fi 30181 fi 30182 30183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30184 $as_echo_n "checking for Boot JDK... " >&6; } 30185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30186 $as_echo "$BOOT_JDK" >&6; } 30187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30188 $as_echo_n "checking Boot JDK version... " >&6; } 30189 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30191 $as_echo "$BOOT_JDK_VERSION" >&6; } 30192 fi # end check jdk version 30193 fi # end check javac 30194 fi # end check java 30195 fi # end check boot jdk found 30196 fi 30197 30198 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 30199 30200 if test "x$BOOT_JDK_FOUND" = xno; then 30201 # Now execute the test 30202 30203 BOOT_JDK_PREFIX="/usr/lib/jvm" 30204 BOOT_JDK_SUFFIX="" 30205 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 30206 if test "x$ALL_JDKS_FOUND" != x; then 30207 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 30208 30209 if test "x$BOOT_JDK_FOUND" = xno; then 30210 # Now execute the test 30211 30212 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 30213 if test -d "$BOOT_JDK"; then 30214 BOOT_JDK_FOUND=maybe 30215 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 30216 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 30217 fi 30218 30219 30220 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30221 if test "x$BOOT_JDK_FOUND" = xmaybe; then 30222 # Do we have a bin/java? 30223 if test ! -x "$BOOT_JDK/bin/java"; then 30224 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 30225 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 30226 BOOT_JDK_FOUND=no 30227 else 30228 # Do we have a bin/javac? 30229 if test ! -x "$BOOT_JDK/bin/javac"; then 30230 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 30231 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 30232 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 30233 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 30234 BOOT_JDK_FOUND=no 30235 else 30236 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30237 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30238 30239 # Extra M4 quote needed to protect [] in grep expression. 30240 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 30241 if test "x$FOUND_CORRECT_VERSION" = x; then 30242 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 30243 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 30244 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 30245 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 30246 BOOT_JDK_FOUND=no 30247 else 30248 # We're done! :-) 30249 BOOT_JDK_FOUND=yes 30250 30251 # Only process if variable expands to non-empty 30252 30253 if test "x$BOOT_JDK" != x; then 30254 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30255 30256 # Input might be given as Windows format, start by converting to 30257 # unix format. 30258 path="$BOOT_JDK" 30259 new_path=`$CYGPATH -u "$path"` 30260 30261 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30262 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30263 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30264 # "foo.exe" is OK but "foo" is an error. 30265 # 30266 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30267 # It is also a way to make sure we got the proper file name for the real test later on. 30268 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30269 if test "x$test_shortpath" = x; then 30270 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30271 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30272 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 30273 fi 30274 30275 # Call helper function which possibly converts this using DOS-style short mode. 30276 # If so, the updated path is stored in $new_path. 30277 30278 input_path="$new_path" 30279 # Check if we need to convert this using DOS-style short mode. If the path 30280 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30281 # take no chances and rewrite it. 30282 # Note: m4 eats our [], so we need to use [ and ] instead. 30283 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30284 if test "x$has_forbidden_chars" != x; then 30285 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30286 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30287 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30288 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30289 # Going to short mode and back again did indeed matter. Since short mode is 30290 # case insensitive, let's make it lowercase to improve readability. 30291 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30292 # Now convert it back to Unix-style (cygpath) 30293 input_path=`$CYGPATH -u "$shortmode_path"` 30294 new_path="$input_path" 30295 fi 30296 fi 30297 30298 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30299 if test "x$test_cygdrive_prefix" = x; then 30300 # As a simple fix, exclude /usr/bin since it's not a real path. 30301 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30302 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30303 # a path prefixed by /cygdrive for fixpath to work. 30304 new_path="$CYGWIN_ROOT_PATH$input_path" 30305 fi 30306 fi 30307 30308 30309 if test "x$path" != "x$new_path"; then 30310 BOOT_JDK="$new_path" 30311 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30312 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30313 fi 30314 30315 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30316 30317 path="$BOOT_JDK" 30318 has_colon=`$ECHO $path | $GREP ^.:` 30319 new_path="$path" 30320 if test "x$has_colon" = x; then 30321 # Not in mixed or Windows style, start by that. 30322 new_path=`cmd //c echo $path` 30323 fi 30324 30325 30326 input_path="$new_path" 30327 # Check if we need to convert this using DOS-style short mode. If the path 30328 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30329 # take no chances and rewrite it. 30330 # Note: m4 eats our [], so we need to use [ and ] instead. 30331 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30332 if test "x$has_forbidden_chars" != x; then 30333 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30334 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30335 fi 30336 30337 30338 windows_path="$new_path" 30339 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30340 unix_path=`$CYGPATH -u "$windows_path"` 30341 new_path="$unix_path" 30342 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30343 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30344 new_path="$unix_path" 30345 fi 30346 30347 if test "x$path" != "x$new_path"; then 30348 BOOT_JDK="$new_path" 30349 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30350 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30351 fi 30352 30353 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30354 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30355 30356 else 30357 # We're on a unix platform. Hooray! :) 30358 path="$BOOT_JDK" 30359 has_space=`$ECHO "$path" | $GREP " "` 30360 if test "x$has_space" != x; then 30361 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30362 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30363 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30364 fi 30365 30366 # Use eval to expand a potential ~ 30367 eval path="$path" 30368 if test ! -f "$path" && test ! -d "$path"; then 30369 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30370 fi 30371 30372 if test -d "$path"; then 30373 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30374 else 30375 dir="`$DIRNAME "$path"`" 30376 base="`$BASENAME "$path"`" 30377 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30378 fi 30379 fi 30380 fi 30381 30382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30383 $as_echo_n "checking for Boot JDK... " >&6; } 30384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30385 $as_echo "$BOOT_JDK" >&6; } 30386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30387 $as_echo_n "checking Boot JDK version... " >&6; } 30388 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30390 $as_echo "$BOOT_JDK_VERSION" >&6; } 30391 fi # end check jdk version 30392 fi # end check javac 30393 fi # end check java 30394 fi # end check boot jdk found 30395 fi 30396 30397 done 30398 fi 30399 30400 30401 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30402 if test "x$BOOT_JDK_FOUND" = xmaybe; then 30403 # Do we have a bin/java? 30404 if test ! -x "$BOOT_JDK/bin/java"; then 30405 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 30406 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 30407 BOOT_JDK_FOUND=no 30408 else 30409 # Do we have a bin/javac? 30410 if test ! -x "$BOOT_JDK/bin/javac"; then 30411 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 30412 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 30413 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 30414 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 30415 BOOT_JDK_FOUND=no 30416 else 30417 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30418 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30419 30420 # Extra M4 quote needed to protect [] in grep expression. 30421 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 30422 if test "x$FOUND_CORRECT_VERSION" = x; then 30423 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 30424 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 30425 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 30426 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 30427 BOOT_JDK_FOUND=no 30428 else 30429 # We're done! :-) 30430 BOOT_JDK_FOUND=yes 30431 30432 # Only process if variable expands to non-empty 30433 30434 if test "x$BOOT_JDK" != x; then 30435 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30436 30437 # Input might be given as Windows format, start by converting to 30438 # unix format. 30439 path="$BOOT_JDK" 30440 new_path=`$CYGPATH -u "$path"` 30441 30442 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30443 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30444 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30445 # "foo.exe" is OK but "foo" is an error. 30446 # 30447 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30448 # It is also a way to make sure we got the proper file name for the real test later on. 30449 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30450 if test "x$test_shortpath" = x; then 30451 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30452 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30453 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 30454 fi 30455 30456 # Call helper function which possibly converts this using DOS-style short mode. 30457 # If so, the updated path is stored in $new_path. 30458 30459 input_path="$new_path" 30460 # Check if we need to convert this using DOS-style short mode. If the path 30461 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30462 # take no chances and rewrite it. 30463 # Note: m4 eats our [], so we need to use [ and ] instead. 30464 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30465 if test "x$has_forbidden_chars" != x; then 30466 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30467 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30468 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30469 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30470 # Going to short mode and back again did indeed matter. Since short mode is 30471 # case insensitive, let's make it lowercase to improve readability. 30472 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30473 # Now convert it back to Unix-style (cygpath) 30474 input_path=`$CYGPATH -u "$shortmode_path"` 30475 new_path="$input_path" 30476 fi 30477 fi 30478 30479 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30480 if test "x$test_cygdrive_prefix" = x; then 30481 # As a simple fix, exclude /usr/bin since it's not a real path. 30482 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30483 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30484 # a path prefixed by /cygdrive for fixpath to work. 30485 new_path="$CYGWIN_ROOT_PATH$input_path" 30486 fi 30487 fi 30488 30489 30490 if test "x$path" != "x$new_path"; then 30491 BOOT_JDK="$new_path" 30492 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30493 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30494 fi 30495 30496 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30497 30498 path="$BOOT_JDK" 30499 has_colon=`$ECHO $path | $GREP ^.:` 30500 new_path="$path" 30501 if test "x$has_colon" = x; then 30502 # Not in mixed or Windows style, start by that. 30503 new_path=`cmd //c echo $path` 30504 fi 30505 30506 30507 input_path="$new_path" 30508 # Check if we need to convert this using DOS-style short mode. If the path 30509 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30510 # take no chances and rewrite it. 30511 # Note: m4 eats our [], so we need to use [ and ] instead. 30512 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30513 if test "x$has_forbidden_chars" != x; then 30514 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30515 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30516 fi 30517 30518 30519 windows_path="$new_path" 30520 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30521 unix_path=`$CYGPATH -u "$windows_path"` 30522 new_path="$unix_path" 30523 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30524 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30525 new_path="$unix_path" 30526 fi 30527 30528 if test "x$path" != "x$new_path"; then 30529 BOOT_JDK="$new_path" 30530 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30531 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30532 fi 30533 30534 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30535 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30536 30537 else 30538 # We're on a unix platform. Hooray! :) 30539 path="$BOOT_JDK" 30540 has_space=`$ECHO "$path" | $GREP " "` 30541 if test "x$has_space" != x; then 30542 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30543 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30544 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30545 fi 30546 30547 # Use eval to expand a potential ~ 30548 eval path="$path" 30549 if test ! -f "$path" && test ! -d "$path"; then 30550 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30551 fi 30552 30553 if test -d "$path"; then 30554 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30555 else 30556 dir="`$DIRNAME "$path"`" 30557 base="`$BASENAME "$path"`" 30558 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30559 fi 30560 fi 30561 fi 30562 30563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30564 $as_echo_n "checking for Boot JDK... " >&6; } 30565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30566 $as_echo "$BOOT_JDK" >&6; } 30567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30568 $as_echo_n "checking Boot JDK version... " >&6; } 30569 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30571 $as_echo "$BOOT_JDK_VERSION" >&6; } 30572 fi # end check jdk version 30573 fi # end check javac 30574 fi # end check java 30575 fi # end check boot jdk found 30576 fi 30577 30578 fi 30579 30580 30581 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30582 if test "x$BOOT_JDK_FOUND" = xmaybe; then 30583 # Do we have a bin/java? 30584 if test ! -x "$BOOT_JDK/bin/java"; then 30585 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 30586 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 30587 BOOT_JDK_FOUND=no 30588 else 30589 # Do we have a bin/javac? 30590 if test ! -x "$BOOT_JDK/bin/javac"; then 30591 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 30592 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 30593 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 30594 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 30595 BOOT_JDK_FOUND=no 30596 else 30597 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30598 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30599 30600 # Extra M4 quote needed to protect [] in grep expression. 30601 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 30602 if test "x$FOUND_CORRECT_VERSION" = x; then 30603 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 30604 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 30605 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 30606 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 30607 BOOT_JDK_FOUND=no 30608 else 30609 # We're done! :-) 30610 BOOT_JDK_FOUND=yes 30611 30612 # Only process if variable expands to non-empty 30613 30614 if test "x$BOOT_JDK" != x; then 30615 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30616 30617 # Input might be given as Windows format, start by converting to 30618 # unix format. 30619 path="$BOOT_JDK" 30620 new_path=`$CYGPATH -u "$path"` 30621 30622 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30623 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30624 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30625 # "foo.exe" is OK but "foo" is an error. 30626 # 30627 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30628 # It is also a way to make sure we got the proper file name for the real test later on. 30629 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30630 if test "x$test_shortpath" = x; then 30631 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30632 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30633 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 30634 fi 30635 30636 # Call helper function which possibly converts this using DOS-style short mode. 30637 # If so, the updated path is stored in $new_path. 30638 30639 input_path="$new_path" 30640 # Check if we need to convert this using DOS-style short mode. If the path 30641 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30642 # take no chances and rewrite it. 30643 # Note: m4 eats our [], so we need to use [ and ] instead. 30644 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30645 if test "x$has_forbidden_chars" != x; then 30646 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30647 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30648 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30649 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30650 # Going to short mode and back again did indeed matter. Since short mode is 30651 # case insensitive, let's make it lowercase to improve readability. 30652 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30653 # Now convert it back to Unix-style (cygpath) 30654 input_path=`$CYGPATH -u "$shortmode_path"` 30655 new_path="$input_path" 30656 fi 30657 fi 30658 30659 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30660 if test "x$test_cygdrive_prefix" = x; then 30661 # As a simple fix, exclude /usr/bin since it's not a real path. 30662 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30663 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30664 # a path prefixed by /cygdrive for fixpath to work. 30665 new_path="$CYGWIN_ROOT_PATH$input_path" 30666 fi 30667 fi 30668 30669 30670 if test "x$path" != "x$new_path"; then 30671 BOOT_JDK="$new_path" 30672 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30673 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30674 fi 30675 30676 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30677 30678 path="$BOOT_JDK" 30679 has_colon=`$ECHO $path | $GREP ^.:` 30680 new_path="$path" 30681 if test "x$has_colon" = x; then 30682 # Not in mixed or Windows style, start by that. 30683 new_path=`cmd //c echo $path` 30684 fi 30685 30686 30687 input_path="$new_path" 30688 # Check if we need to convert this using DOS-style short mode. If the path 30689 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30690 # take no chances and rewrite it. 30691 # Note: m4 eats our [], so we need to use [ and ] instead. 30692 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30693 if test "x$has_forbidden_chars" != x; then 30694 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30695 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30696 fi 30697 30698 30699 windows_path="$new_path" 30700 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30701 unix_path=`$CYGPATH -u "$windows_path"` 30702 new_path="$unix_path" 30703 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30704 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30705 new_path="$unix_path" 30706 fi 30707 30708 if test "x$path" != "x$new_path"; then 30709 BOOT_JDK="$new_path" 30710 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30711 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30712 fi 30713 30714 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30715 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30716 30717 else 30718 # We're on a unix platform. Hooray! :) 30719 path="$BOOT_JDK" 30720 has_space=`$ECHO "$path" | $GREP " "` 30721 if test "x$has_space" != x; then 30722 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30723 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30724 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30725 fi 30726 30727 # Use eval to expand a potential ~ 30728 eval path="$path" 30729 if test ! -f "$path" && test ! -d "$path"; then 30730 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30731 fi 30732 30733 if test -d "$path"; then 30734 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30735 else 30736 dir="`$DIRNAME "$path"`" 30737 base="`$BASENAME "$path"`" 30738 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30739 fi 30740 fi 30741 fi 30742 30743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30744 $as_echo_n "checking for Boot JDK... " >&6; } 30745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30746 $as_echo "$BOOT_JDK" >&6; } 30747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30748 $as_echo_n "checking Boot JDK version... " >&6; } 30749 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30751 $as_echo "$BOOT_JDK_VERSION" >&6; } 30752 fi # end check jdk version 30753 fi # end check javac 30754 fi # end check java 30755 fi # end check boot jdk found 30756 fi 30757 30758 30759 # If we haven't found anything yet, we've truly lost. Give up. 30760 if test "x$BOOT_JDK_FOUND" = xno; then 30761 30762 # Print a helpful message on how to acquire the necessary build dependency. 30763 # openjdk is the help tag: freetype, cups, alsa etc 30764 MISSING_DEPENDENCY=openjdk 30765 30766 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30767 cygwin_help $MISSING_DEPENDENCY 30768 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30769 msys_help $MISSING_DEPENDENCY 30770 else 30771 PKGHANDLER_COMMAND= 30772 30773 case $PKGHANDLER in 30774 apt-get) 30775 apt_help $MISSING_DEPENDENCY ;; 30776 yum) 30777 yum_help $MISSING_DEPENDENCY ;; 30778 brew) 30779 brew_help $MISSING_DEPENDENCY ;; 30780 port) 30781 port_help $MISSING_DEPENDENCY ;; 30782 pkgutil) 30783 pkgutil_help $MISSING_DEPENDENCY ;; 30784 pkgadd) 30785 pkgadd_help $MISSING_DEPENDENCY ;; 30786 esac 30787 30788 if test "x$PKGHANDLER_COMMAND" != x; then 30789 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 30790 fi 30791 fi 30792 30793 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 30794 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 30795 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitly setting --with-boot-jdk" >&5 30796 $as_echo "$as_me: This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30797 as_fn_error $? "Cannot continue" "$LINENO" 5 30798 fi 30799 30800 30801 30802 # Setup tools from the Boot JDK. 30803 30804 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30805 30806 # Publish this variable in the help. 30807 30808 30809 if [ -z "${JAVA+x}" ]; then 30810 # The variable is not set by user, try to locate tool using the code snippet 30811 30812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 30813 $as_echo_n "checking for java in Boot JDK... " >&6; } 30814 JAVA=$BOOT_JDK/bin/java 30815 if test ! -x $JAVA; then 30816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30817 $as_echo "not found" >&6; } 30818 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30819 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30820 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 30821 fi 30822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30823 $as_echo "ok" >&6; } 30824 30825 30826 else 30827 # The variable is set, but is it from the command line or the environment? 30828 30829 # Try to remove the string !JAVA! from our list. 30830 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 30831 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30832 # If it failed, the variable was not from the command line. Ignore it, 30833 # but warn the user (except for BASH, which is always set by the calling BASH). 30834 if test "xJAVA" != xBASH; then 30835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 30836 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 30837 fi 30838 # Try to locate tool using the code snippet 30839 30840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 30841 $as_echo_n "checking for java in Boot JDK... " >&6; } 30842 JAVA=$BOOT_JDK/bin/java 30843 if test ! -x $JAVA; then 30844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30845 $as_echo "not found" >&6; } 30846 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30847 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30848 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 30849 fi 30850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30851 $as_echo "ok" >&6; } 30852 30853 30854 else 30855 # If it succeeded, then it was overridden by the user. We will use it 30856 # for the tool. 30857 30858 # First remove it from the list of overridden variables, so we can test 30859 # for unknown variables in the end. 30860 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30861 30862 # Check if we try to supply an empty value 30863 if test "x$JAVA" = x; then 30864 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVA= (no value)" >&5 30865 $as_echo "$as_me: Setting user supplied tool JAVA= (no value)" >&6;} 30866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 30867 $as_echo_n "checking for JAVA... " >&6; } 30868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30869 $as_echo "disabled" >&6; } 30870 else 30871 # Check if the provided tool contains a complete path. 30872 tool_specified="$JAVA" 30873 tool_basename="${tool_specified##*/}" 30874 if test "x$tool_basename" = "x$tool_specified"; then 30875 # A command without a complete path is provided, search $PATH. 30876 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 30877 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 30878 # Extract the first word of "$tool_basename", so it can be a program name with args. 30879 set dummy $tool_basename; ac_word=$2 30880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30881 $as_echo_n "checking for $ac_word... " >&6; } 30882 if ${ac_cv_path_JAVA+:} false; then : 30883 $as_echo_n "(cached) " >&6 30884 else 30885 case $JAVA in 30886 [\\/]* | ?:[\\/]*) 30887 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 30888 ;; 30889 *) 30890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30891 for as_dir in $PATH 30892 do 30893 IFS=$as_save_IFS 30894 test -z "$as_dir" && as_dir=. 30895 for ac_exec_ext in '' $ac_executable_extensions; do 30896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30897 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 30898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30899 break 2 30900 fi 30901 done 30902 done 30903 IFS=$as_save_IFS 30904 30905 ;; 30906 esac 30907 fi 30908 JAVA=$ac_cv_path_JAVA 30909 if test -n "$JAVA"; then 30910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 30911 $as_echo "$JAVA" >&6; } 30912 else 30913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30914 $as_echo "no" >&6; } 30915 fi 30916 30917 30918 if test "x$JAVA" = x; then 30919 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30920 fi 30921 else 30922 # Otherwise we believe it is a complete path. Use it as it is. 30923 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 30924 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 30925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 30926 $as_echo_n "checking for JAVA... " >&6; } 30927 if test ! -x "$tool_specified"; then 30928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30929 $as_echo "not found" >&6; } 30930 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 30931 fi 30932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30933 $as_echo "$tool_specified" >&6; } 30934 fi 30935 fi 30936 fi 30937 30938 fi 30939 30940 30941 30942 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30943 30944 # Publish this variable in the help. 30945 30946 30947 if [ -z "${JAVAC+x}" ]; then 30948 # The variable is not set by user, try to locate tool using the code snippet 30949 30950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 30951 $as_echo_n "checking for javac in Boot JDK... " >&6; } 30952 JAVAC=$BOOT_JDK/bin/javac 30953 if test ! -x $JAVAC; then 30954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30955 $as_echo "not found" >&6; } 30956 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30957 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30958 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 30959 fi 30960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30961 $as_echo "ok" >&6; } 30962 30963 30964 else 30965 # The variable is set, but is it from the command line or the environment? 30966 30967 # Try to remove the string !JAVAC! from our list. 30968 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 30969 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30970 # If it failed, the variable was not from the command line. Ignore it, 30971 # but warn the user (except for BASH, which is always set by the calling BASH). 30972 if test "xJAVAC" != xBASH; then 30973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 30974 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 30975 fi 30976 # Try to locate tool using the code snippet 30977 30978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 30979 $as_echo_n "checking for javac in Boot JDK... " >&6; } 30980 JAVAC=$BOOT_JDK/bin/javac 30981 if test ! -x $JAVAC; then 30982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30983 $as_echo "not found" >&6; } 30984 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30985 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30986 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 30987 fi 30988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30989 $as_echo "ok" >&6; } 30990 30991 30992 else 30993 # If it succeeded, then it was overridden by the user. We will use it 30994 # for the tool. 30995 30996 # First remove it from the list of overridden variables, so we can test 30997 # for unknown variables in the end. 30998 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30999 31000 # Check if we try to supply an empty value 31001 if test "x$JAVAC" = x; then 31002 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAC= (no value)" >&5 31003 $as_echo "$as_me: Setting user supplied tool JAVAC= (no value)" >&6;} 31004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 31005 $as_echo_n "checking for JAVAC... " >&6; } 31006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 31007 $as_echo "disabled" >&6; } 31008 else 31009 # Check if the provided tool contains a complete path. 31010 tool_specified="$JAVAC" 31011 tool_basename="${tool_specified##*/}" 31012 if test "x$tool_basename" = "x$tool_specified"; then 31013 # A command without a complete path is provided, search $PATH. 31014 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 31015 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 31016 # Extract the first word of "$tool_basename", so it can be a program name with args. 31017 set dummy $tool_basename; ac_word=$2 31018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31019 $as_echo_n "checking for $ac_word... " >&6; } 31020 if ${ac_cv_path_JAVAC+:} false; then : 31021 $as_echo_n "(cached) " >&6 31022 else 31023 case $JAVAC in 31024 [\\/]* | ?:[\\/]*) 31025 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 31026 ;; 31027 *) 31028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31029 for as_dir in $PATH 31030 do 31031 IFS=$as_save_IFS 31032 test -z "$as_dir" && as_dir=. 31033 for ac_exec_ext in '' $ac_executable_extensions; do 31034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31035 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 31036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31037 break 2 31038 fi 31039 done 31040 done 31041 IFS=$as_save_IFS 31042 31043 ;; 31044 esac 31045 fi 31046 JAVAC=$ac_cv_path_JAVAC 31047 if test -n "$JAVAC"; then 31048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 31049 $as_echo "$JAVAC" >&6; } 31050 else 31051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31052 $as_echo "no" >&6; } 31053 fi 31054 31055 31056 if test "x$JAVAC" = x; then 31057 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31058 fi 31059 else 31060 # Otherwise we believe it is a complete path. Use it as it is. 31061 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 31062 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 31063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 31064 $as_echo_n "checking for JAVAC... " >&6; } 31065 if test ! -x "$tool_specified"; then 31066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31067 $as_echo "not found" >&6; } 31068 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 31069 fi 31070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31071 $as_echo "$tool_specified" >&6; } 31072 fi 31073 fi 31074 fi 31075 31076 fi 31077 31078 31079 31080 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 31081 31082 # Publish this variable in the help. 31083 31084 31085 if [ -z "${JAVAH+x}" ]; then 31086 # The variable is not set by user, try to locate tool using the code snippet 31087 31088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 31089 $as_echo_n "checking for javah in Boot JDK... " >&6; } 31090 JAVAH=$BOOT_JDK/bin/javah 31091 if test ! -x $JAVAH; then 31092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31093 $as_echo "not found" >&6; } 31094 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31095 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31096 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 31097 fi 31098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31099 $as_echo "ok" >&6; } 31100 31101 31102 else 31103 # The variable is set, but is it from the command line or the environment? 31104 31105 # Try to remove the string !JAVAH! from our list. 31106 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 31107 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31108 # If it failed, the variable was not from the command line. Ignore it, 31109 # but warn the user (except for BASH, which is always set by the calling BASH). 31110 if test "xJAVAH" != xBASH; then 31111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 31112 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 31113 fi 31114 # Try to locate tool using the code snippet 31115 31116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 31117 $as_echo_n "checking for javah in Boot JDK... " >&6; } 31118 JAVAH=$BOOT_JDK/bin/javah 31119 if test ! -x $JAVAH; then 31120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31121 $as_echo "not found" >&6; } 31122 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31123 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31124 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 31125 fi 31126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31127 $as_echo "ok" >&6; } 31128 31129 31130 else 31131 # If it succeeded, then it was overridden by the user. We will use it 31132 # for the tool. 31133 31134 # First remove it from the list of overridden variables, so we can test 31135 # for unknown variables in the end. 31136 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31137 31138 # Check if we try to supply an empty value 31139 if test "x$JAVAH" = x; then 31140 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAH= (no value)" >&5 31141 $as_echo "$as_me: Setting user supplied tool JAVAH= (no value)" >&6;} 31142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 31143 $as_echo_n "checking for JAVAH... " >&6; } 31144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 31145 $as_echo "disabled" >&6; } 31146 else 31147 # Check if the provided tool contains a complete path. 31148 tool_specified="$JAVAH" 31149 tool_basename="${tool_specified##*/}" 31150 if test "x$tool_basename" = "x$tool_specified"; then 31151 # A command without a complete path is provided, search $PATH. 31152 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 31153 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 31154 # Extract the first word of "$tool_basename", so it can be a program name with args. 31155 set dummy $tool_basename; ac_word=$2 31156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31157 $as_echo_n "checking for $ac_word... " >&6; } 31158 if ${ac_cv_path_JAVAH+:} false; then : 31159 $as_echo_n "(cached) " >&6 31160 else 31161 case $JAVAH in 31162 [\\/]* | ?:[\\/]*) 31163 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 31164 ;; 31165 *) 31166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31167 for as_dir in $PATH 31168 do 31169 IFS=$as_save_IFS 31170 test -z "$as_dir" && as_dir=. 31171 for ac_exec_ext in '' $ac_executable_extensions; do 31172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31173 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 31174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31175 break 2 31176 fi 31177 done 31178 done 31179 IFS=$as_save_IFS 31180 31181 ;; 31182 esac 31183 fi 31184 JAVAH=$ac_cv_path_JAVAH 31185 if test -n "$JAVAH"; then 31186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 31187 $as_echo "$JAVAH" >&6; } 31188 else 31189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31190 $as_echo "no" >&6; } 31191 fi 31192 31193 31194 if test "x$JAVAH" = x; then 31195 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31196 fi 31197 else 31198 # Otherwise we believe it is a complete path. Use it as it is. 31199 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 31200 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 31201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 31202 $as_echo_n "checking for JAVAH... " >&6; } 31203 if test ! -x "$tool_specified"; then 31204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31205 $as_echo "not found" >&6; } 31206 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 31207 fi 31208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31209 $as_echo "$tool_specified" >&6; } 31210 fi 31211 fi 31212 fi 31213 31214 fi 31215 31216 31217 31218 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 31219 31220 # Publish this variable in the help. 31221 31222 31223 if [ -z "${JAR+x}" ]; then 31224 # The variable is not set by user, try to locate tool using the code snippet 31225 31226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 31227 $as_echo_n "checking for jar in Boot JDK... " >&6; } 31228 JAR=$BOOT_JDK/bin/jar 31229 if test ! -x $JAR; then 31230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31231 $as_echo "not found" >&6; } 31232 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31233 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31234 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 31235 fi 31236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31237 $as_echo "ok" >&6; } 31238 31239 31240 else 31241 # The variable is set, but is it from the command line or the environment? 31242 31243 # Try to remove the string !JAR! from our list. 31244 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 31245 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31246 # If it failed, the variable was not from the command line. Ignore it, 31247 # but warn the user (except for BASH, which is always set by the calling BASH). 31248 if test "xJAR" != xBASH; then 31249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 31250 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 31251 fi 31252 # Try to locate tool using the code snippet 31253 31254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 31255 $as_echo_n "checking for jar in Boot JDK... " >&6; } 31256 JAR=$BOOT_JDK/bin/jar 31257 if test ! -x $JAR; then 31258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31259 $as_echo "not found" >&6; } 31260 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31261 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31262 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 31263 fi 31264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31265 $as_echo "ok" >&6; } 31266 31267 31268 else 31269 # If it succeeded, then it was overridden by the user. We will use it 31270 # for the tool. 31271 31272 # First remove it from the list of overridden variables, so we can test 31273 # for unknown variables in the end. 31274 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31275 31276 # Check if we try to supply an empty value 31277 if test "x$JAR" = x; then 31278 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAR= (no value)" >&5 31279 $as_echo "$as_me: Setting user supplied tool JAR= (no value)" >&6;} 31280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 31281 $as_echo_n "checking for JAR... " >&6; } 31282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 31283 $as_echo "disabled" >&6; } 31284 else 31285 # Check if the provided tool contains a complete path. 31286 tool_specified="$JAR" 31287 tool_basename="${tool_specified##*/}" 31288 if test "x$tool_basename" = "x$tool_specified"; then 31289 # A command without a complete path is provided, search $PATH. 31290 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 31291 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 31292 # Extract the first word of "$tool_basename", so it can be a program name with args. 31293 set dummy $tool_basename; ac_word=$2 31294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31295 $as_echo_n "checking for $ac_word... " >&6; } 31296 if ${ac_cv_path_JAR+:} false; then : 31297 $as_echo_n "(cached) " >&6 31298 else 31299 case $JAR in 31300 [\\/]* | ?:[\\/]*) 31301 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 31302 ;; 31303 *) 31304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31305 for as_dir in $PATH 31306 do 31307 IFS=$as_save_IFS 31308 test -z "$as_dir" && as_dir=. 31309 for ac_exec_ext in '' $ac_executable_extensions; do 31310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31311 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 31312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31313 break 2 31314 fi 31315 done 31316 done 31317 IFS=$as_save_IFS 31318 31319 ;; 31320 esac 31321 fi 31322 JAR=$ac_cv_path_JAR 31323 if test -n "$JAR"; then 31324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 31325 $as_echo "$JAR" >&6; } 31326 else 31327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31328 $as_echo "no" >&6; } 31329 fi 31330 31331 31332 if test "x$JAR" = x; then 31333 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31334 fi 31335 else 31336 # Otherwise we believe it is a complete path. Use it as it is. 31337 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 31338 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 31339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 31340 $as_echo_n "checking for JAR... " >&6; } 31341 if test ! -x "$tool_specified"; then 31342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31343 $as_echo "not found" >&6; } 31344 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 31345 fi 31346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31347 $as_echo "$tool_specified" >&6; } 31348 fi 31349 fi 31350 fi 31351 31352 fi 31353 31354 31355 31356 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 31357 31358 # Publish this variable in the help. 31359 31360 31361 if [ -z "${JARSIGNER+x}" ]; then 31362 # The variable is not set by user, try to locate tool using the code snippet 31363 31364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 31365 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 31366 JARSIGNER=$BOOT_JDK/bin/jarsigner 31367 if test ! -x $JARSIGNER; then 31368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31369 $as_echo "not found" >&6; } 31370 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31371 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31372 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 31373 fi 31374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31375 $as_echo "ok" >&6; } 31376 31377 31378 else 31379 # The variable is set, but is it from the command line or the environment? 31380 31381 # Try to remove the string !JARSIGNER! from our list. 31382 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 31383 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31384 # If it failed, the variable was not from the command line. Ignore it, 31385 # but warn the user (except for BASH, which is always set by the calling BASH). 31386 if test "xJARSIGNER" != xBASH; then 31387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 31388 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 31389 fi 31390 # Try to locate tool using the code snippet 31391 31392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 31393 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 31394 JARSIGNER=$BOOT_JDK/bin/jarsigner 31395 if test ! -x $JARSIGNER; then 31396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31397 $as_echo "not found" >&6; } 31398 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31399 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31400 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 31401 fi 31402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31403 $as_echo "ok" >&6; } 31404 31405 31406 else 31407 # If it succeeded, then it was overridden by the user. We will use it 31408 # for the tool. 31409 31410 # First remove it from the list of overridden variables, so we can test 31411 # for unknown variables in the end. 31412 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31413 31414 # Check if we try to supply an empty value 31415 if test "x$JARSIGNER" = x; then 31416 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JARSIGNER= (no value)" >&5 31417 $as_echo "$as_me: Setting user supplied tool JARSIGNER= (no value)" >&6;} 31418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 31419 $as_echo_n "checking for JARSIGNER... " >&6; } 31420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 31421 $as_echo "disabled" >&6; } 31422 else 31423 # Check if the provided tool contains a complete path. 31424 tool_specified="$JARSIGNER" 31425 tool_basename="${tool_specified##*/}" 31426 if test "x$tool_basename" = "x$tool_specified"; then 31427 # A command without a complete path is provided, search $PATH. 31428 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 31429 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 31430 # Extract the first word of "$tool_basename", so it can be a program name with args. 31431 set dummy $tool_basename; ac_word=$2 31432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31433 $as_echo_n "checking for $ac_word... " >&6; } 31434 if ${ac_cv_path_JARSIGNER+:} false; then : 31435 $as_echo_n "(cached) " >&6 31436 else 31437 case $JARSIGNER in 31438 [\\/]* | ?:[\\/]*) 31439 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 31440 ;; 31441 *) 31442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31443 for as_dir in $PATH 31444 do 31445 IFS=$as_save_IFS 31446 test -z "$as_dir" && as_dir=. 31447 for ac_exec_ext in '' $ac_executable_extensions; do 31448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31449 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 31450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31451 break 2 31452 fi 31453 done 31454 done 31455 IFS=$as_save_IFS 31456 31457 ;; 31458 esac 31459 fi 31460 JARSIGNER=$ac_cv_path_JARSIGNER 31461 if test -n "$JARSIGNER"; then 31462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 31463 $as_echo "$JARSIGNER" >&6; } 31464 else 31465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31466 $as_echo "no" >&6; } 31467 fi 31468 31469 31470 if test "x$JARSIGNER" = x; then 31471 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31472 fi 31473 else 31474 # Otherwise we believe it is a complete path. Use it as it is. 31475 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 31476 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 31477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 31478 $as_echo_n "checking for JARSIGNER... " >&6; } 31479 if test ! -x "$tool_specified"; then 31480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31481 $as_echo "not found" >&6; } 31482 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 31483 fi 31484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31485 $as_echo "$tool_specified" >&6; } 31486 fi 31487 fi 31488 fi 31489 31490 fi 31491 31492 31493 31494 # Finally, set some other options... 31495 31496 # When compiling code to be executed by the Boot JDK, force jdk8 compatibility. 31497 BOOT_JDK_SOURCETARGET="-source 8 -target 8" 31498 31499 31500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK supports modules" >&5 31501 $as_echo_n "checking if Boot JDK supports modules... " >&6; } 31502 if "$JAVA" --list-modules > /dev/null 2>&1; then 31503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31504 $as_echo "yes" >&6; } 31505 BOOT_JDK_MODULAR="true" 31506 else 31507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31508 $as_echo "no" >&6; } 31509 BOOT_JDK_MODULAR="false" 31510 fi 31511 31512 31513 31514 31515 # Check if the boot jdk is 32 or 64 bit 31516 if "$JAVA" -version 2>&1 | $GREP -q "64-Bit"; then 31517 BOOT_JDK_BITS="64" 31518 else 31519 BOOT_JDK_BITS="32" 31520 fi 31521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5 31522 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; } 31523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5 31524 $as_echo "$BOOT_JDK_BITS" >&6; } 31525 31526 31527 31528 # Check whether --with-build-jdk was given. 31529 if test "${with_build_jdk+set}" = set; then : 31530 withval=$with_build_jdk; 31531 fi 31532 31533 31534 CREATE_BUILDJDK=false 31535 EXTERNAL_BUILDJDK=false 31536 BUILD_JDK_FOUND="no" 31537 if test "x$with_build_jdk" != "x"; then 31538 31539 if test "x$BUILD_JDK_FOUND" = xno; then 31540 # Execute the test 31541 31542 if test "x$with_build_jdk" != x; then 31543 BUILD_JDK=$with_build_jdk 31544 BUILD_JDK_FOUND=maybe 31545 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Build JDK using configure arguments" >&5 31546 $as_echo "$as_me: Found potential Build JDK using configure arguments" >&6;} 31547 fi 31548 31549 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 31550 if test "x$BUILD_JDK_FOUND" = xmaybe; then 31551 # Do we have a bin/java? 31552 if test ! -x "$BUILD_JDK/bin/java"; then 31553 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&5 31554 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&6;} 31555 BUILD_JDK_FOUND=no 31556 elif test ! -x "$BUILD_JDK/bin/jlink"; then 31557 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/jlink; ignoring" >&5 31558 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/jlink; ignoring" >&6;} 31559 BUILD_JDK_FOUND=no 31560 elif test ! -x "$BUILD_JDK/bin/jmod"; then 31561 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/jmod; ignoring" >&5 31562 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/jmod; ignoring" >&6;} 31563 BUILD_JDK_FOUND=no 31564 elif test ! -x "$BUILD_JDK/bin/javac"; then 31565 # Do we have a bin/javac? 31566 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/javac; ignoring" >&5 31567 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/javac; ignoring" >&6;} 31568 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be a JRE instead of an JDK)" >&5 31569 $as_echo "$as_me: (This might be a JRE instead of an JDK)" >&6;} 31570 BUILD_JDK_FOUND=no 31571 else 31572 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 31573 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 31574 31575 # Extra M4 quote needed to protect [] in grep expression. 31576 FOUND_CORRECT_VERSION=`echo $BUILD_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"'` 31577 if test "x$FOUND_CORRECT_VERSION" = x; then 31578 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&5 31579 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&6;} 31580 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Build JDK must be version 9)" >&5 31581 $as_echo "$as_me: (Your Build JDK must be version 9)" >&6;} 31582 BUILD_JDK_FOUND=no 31583 else 31584 # We're done! 31585 BUILD_JDK_FOUND=yes 31586 31587 # Only process if variable expands to non-empty 31588 31589 if test "x$BUILD_JDK" != x; then 31590 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31591 31592 # Input might be given as Windows format, start by converting to 31593 # unix format. 31594 path="$BUILD_JDK" 31595 new_path=`$CYGPATH -u "$path"` 31596 31597 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31598 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31599 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31600 # "foo.exe" is OK but "foo" is an error. 31601 # 31602 # This test is therefore slightly more accurate than "test -f" to check for file precense. 31603 # It is also a way to make sure we got the proper file name for the real test later on. 31604 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31605 if test "x$test_shortpath" = x; then 31606 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&5 31607 $as_echo "$as_me: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&6;} 31608 as_fn_error $? "Cannot locate the the path of BUILD_JDK" "$LINENO" 5 31609 fi 31610 31611 # Call helper function which possibly converts this using DOS-style short mode. 31612 # If so, the updated path is stored in $new_path. 31613 31614 input_path="$new_path" 31615 # Check if we need to convert this using DOS-style short mode. If the path 31616 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31617 # take no chances and rewrite it. 31618 # Note: m4 eats our [], so we need to use [ and ] instead. 31619 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31620 if test "x$has_forbidden_chars" != x; then 31621 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31622 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31623 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31624 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31625 # Going to short mode and back again did indeed matter. Since short mode is 31626 # case insensitive, let's make it lowercase to improve readability. 31627 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31628 # Now convert it back to Unix-style (cygpath) 31629 input_path=`$CYGPATH -u "$shortmode_path"` 31630 new_path="$input_path" 31631 fi 31632 fi 31633 31634 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31635 if test "x$test_cygdrive_prefix" = x; then 31636 # As a simple fix, exclude /usr/bin since it's not a real path. 31637 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 31638 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31639 # a path prefixed by /cygdrive for fixpath to work. 31640 new_path="$CYGWIN_ROOT_PATH$input_path" 31641 fi 31642 fi 31643 31644 31645 if test "x$path" != "x$new_path"; then 31646 BUILD_JDK="$new_path" 31647 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_JDK to \"$new_path\"" >&5 31648 $as_echo "$as_me: Rewriting BUILD_JDK to \"$new_path\"" >&6;} 31649 fi 31650 31651 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31652 31653 path="$BUILD_JDK" 31654 has_colon=`$ECHO $path | $GREP ^.:` 31655 new_path="$path" 31656 if test "x$has_colon" = x; then 31657 # Not in mixed or Windows style, start by that. 31658 new_path=`cmd //c echo $path` 31659 fi 31660 31661 31662 input_path="$new_path" 31663 # Check if we need to convert this using DOS-style short mode. If the path 31664 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31665 # take no chances and rewrite it. 31666 # Note: m4 eats our [], so we need to use [ and ] instead. 31667 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31668 if test "x$has_forbidden_chars" != x; then 31669 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31670 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31671 fi 31672 31673 31674 windows_path="$new_path" 31675 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31676 unix_path=`$CYGPATH -u "$windows_path"` 31677 new_path="$unix_path" 31678 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31679 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31680 new_path="$unix_path" 31681 fi 31682 31683 if test "x$path" != "x$new_path"; then 31684 BUILD_JDK="$new_path" 31685 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_JDK to \"$new_path\"" >&5 31686 $as_echo "$as_me: Rewriting BUILD_JDK to \"$new_path\"" >&6;} 31687 fi 31688 31689 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31690 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31691 31692 else 31693 # We're on a unix platform. Hooray! :) 31694 path="$BUILD_JDK" 31695 has_space=`$ECHO "$path" | $GREP " "` 31696 if test "x$has_space" != x; then 31697 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&5 31698 $as_echo "$as_me: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&6;} 31699 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 31700 fi 31701 31702 # Use eval to expand a potential ~ 31703 eval path="$path" 31704 if test ! -f "$path" && test ! -d "$path"; then 31705 as_fn_error $? "The path of BUILD_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 31706 fi 31707 31708 if test -d "$path"; then 31709 BUILD_JDK="`cd "$path"; $THEPWDCMD -L`" 31710 else 31711 dir="`$DIRNAME "$path"`" 31712 base="`$BASENAME "$path"`" 31713 BUILD_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 31714 fi 31715 fi 31716 fi 31717 31718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31719 $as_echo_n "checking for Build JDK... " >&6; } 31720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK" >&5 31721 $as_echo "$BUILD_JDK" >&6; } 31722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build JDK version" >&5 31723 $as_echo_n "checking Build JDK version... " >&6; } 31724 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 31725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK_VERSION" >&5 31726 $as_echo "$BUILD_JDK_VERSION" >&6; } 31727 fi # end check jdk version 31728 fi # end check java 31729 fi # end check build jdk found 31730 fi 31731 31732 EXTERNAL_BUILDJDK=true 31733 else 31734 if test "x$COMPILE_TYPE" = "xcross"; then 31735 BUILD_JDK="\$(BUILDJDK_OUTPUTDIR)/jdk" 31736 BUILD_JDK_FOUND=yes 31737 CREATE_BUILDJDK=true 31738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31739 $as_echo_n "checking for Build JDK... " >&6; } 31740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will build it for the host platform" >&5 31741 $as_echo "yes, will build it for the host platform" >&6; } 31742 else 31743 BUILD_JDK="\$(JDK_OUTPUTDIR)" 31744 BUILD_JDK_FOUND=yes 31745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31746 $as_echo_n "checking for Build JDK... " >&6; } 31747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will use output dir" >&5 31748 $as_echo "yes, will use output dir" >&6; } 31749 fi 31750 fi 31751 31752 JMOD="$BUILD_JDK/bin/jmod" 31753 JLINK="$BUILD_JDK/bin/jlink" 31754 31755 31756 31757 if test "x$BUILD_JDK_FOUND" != "xyes"; then 31758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31759 $as_echo_n "checking for Build JDK... " >&6; } 31760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31761 $as_echo "no" >&6; } 31762 as_fn_error $? "Could not find a suitable Build JDK" "$LINENO" 5 31763 fi 31764 31765 31766 31767 31768 31769 31770 ############################################################################### 31771 # 31772 # Configure the sources to use. We can add or override individual directories. 31773 # 31774 ############################################################################### 31775 31776 31777 # Where are the sources. 31778 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 31779 CORBA_TOPDIR="$SRC_ROOT/corba" 31780 JAXP_TOPDIR="$SRC_ROOT/jaxp" 31781 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 31782 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 31783 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 31784 JDK_TOPDIR="$SRC_ROOT/jdk" 31785 31786 31787 31788 31789 31790 31791 31792 31793 31794 # This feature is no longer supported. 31795 31796 31797 31798 # Check whether --with-add-source-root was given. 31799 if test "${with_add_source_root+set}" = set; then : 31800 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 31801 $as_echo "$as_me: WARNING: Option --with-add-source-root is deprecated and will be ignored." >&2;} 31802 fi 31803 31804 31805 31806 31807 # Check whether --with-override-source-root was given. 31808 if test "${with_override_source_root+set}" = set; then : 31809 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 31810 $as_echo "$as_me: WARNING: Option --with-override-source-root is deprecated and will be ignored." >&2;} 31811 fi 31812 31813 31814 31815 31816 # Check whether --with-adds-and-overrides was given. 31817 if test "${with_adds_and_overrides+set}" = set; then : 31818 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 31819 $as_echo "$as_me: WARNING: Option --with-adds-and-overrides is deprecated and will be ignored." >&2;} 31820 fi 31821 31822 31823 31824 31825 # Check whether --with-override-langtools was given. 31826 if test "${with_override_langtools+set}" = set; then : 31827 withval=$with_override_langtools; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-langtools is deprecated and will be ignored." >&5 31828 $as_echo "$as_me: WARNING: Option --with-override-langtools is deprecated and will be ignored." >&2;} 31829 fi 31830 31831 31832 31833 31834 # Check whether --with-override-corba was given. 31835 if test "${with_override_corba+set}" = set; then : 31836 withval=$with_override_corba; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-corba is deprecated and will be ignored." >&5 31837 $as_echo "$as_me: WARNING: Option --with-override-corba is deprecated and will be ignored." >&2;} 31838 fi 31839 31840 31841 31842 31843 # Check whether --with-override-jaxp was given. 31844 if test "${with_override_jaxp+set}" = set; then : 31845 withval=$with_override_jaxp; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jaxp is deprecated and will be ignored." >&5 31846 $as_echo "$as_me: WARNING: Option --with-override-jaxp is deprecated and will be ignored." >&2;} 31847 fi 31848 31849 31850 31851 31852 # Check whether --with-override-jaxws was given. 31853 if test "${with_override_jaxws+set}" = set; then : 31854 withval=$with_override_jaxws; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jaxws is deprecated and will be ignored." >&5 31855 $as_echo "$as_me: WARNING: Option --with-override-jaxws is deprecated and will be ignored." >&2;} 31856 fi 31857 31858 31859 31860 31861 # Check whether --with-override-hotspot was given. 31862 if test "${with_override_hotspot+set}" = set; then : 31863 withval=$with_override_hotspot; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-hotspot is deprecated and will be ignored." >&5 31864 $as_echo "$as_me: WARNING: Option --with-override-hotspot is deprecated and will be ignored." >&2;} 31865 fi 31866 31867 31868 31869 31870 # Check whether --with-override-nashorn was given. 31871 if test "${with_override_nashorn+set}" = set; then : 31872 withval=$with_override_nashorn; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-nashorn is deprecated and will be ignored." >&5 31873 $as_echo "$as_me: WARNING: Option --with-override-nashorn is deprecated and will be ignored." >&2;} 31874 fi 31875 31876 31877 31878 31879 # Check whether --with-override-jdk was given. 31880 if test "${with_override_jdk+set}" = set; then : 31881 withval=$with_override_jdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jdk is deprecated and will be ignored." >&5 31882 $as_echo "$as_me: WARNING: Option --with-override-jdk is deprecated and will be ignored." >&2;} 31883 fi 31884 31885 31886 31887 31888 BUILD_OUTPUT="$OUTPUT_ROOT" 31889 31890 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 31891 31892 31893 31894 # Check whether --with-import_hotspot was given. 31895 if test "${with_import_hotspot+set}" = set; then : 31896 withval=$with_import_hotspot; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-import_hotspot is deprecated and will be ignored." >&5 31897 $as_echo "$as_me: WARNING: Option --with-import_hotspot is deprecated and will be ignored." >&2;} 31898 fi 31899 31900 31901 31902 31903 31904 31905 # Check whether --with-import-modules was given. 31906 if test "${with_import_modules+set}" = set; then : 31907 withval=$with_import_modules; 31908 fi 31909 31910 31911 if test "x$with_import_modules" != x \ 31912 && test "x$with_import_modules" != "xno"; then 31913 if test -d "$with_import_modules"; then 31914 IMPORT_MODULES_TOPDIR="$with_import_modules" 31915 31916 # Only process if variable expands to non-empty 31917 31918 if test "x$IMPORT_MODULES_TOPDIR" != x; then 31919 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31920 31921 # Input might be given as Windows format, start by converting to 31922 # unix format. 31923 path="$IMPORT_MODULES_TOPDIR" 31924 new_path=`$CYGPATH -u "$path"` 31925 31926 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31927 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31928 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31929 # "foo.exe" is OK but "foo" is an error. 31930 # 31931 # This test is therefore slightly more accurate than "test -f" to check for file precense. 31932 # It is also a way to make sure we got the proper file name for the real test later on. 31933 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31934 if test "x$test_shortpath" = x; then 31935 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&5 31936 $as_echo "$as_me: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&6;} 31937 as_fn_error $? "Cannot locate the the path of IMPORT_MODULES_TOPDIR" "$LINENO" 5 31938 fi 31939 31940 # Call helper function which possibly converts this using DOS-style short mode. 31941 # If so, the updated path is stored in $new_path. 31942 31943 input_path="$new_path" 31944 # Check if we need to convert this using DOS-style short mode. If the path 31945 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31946 # take no chances and rewrite it. 31947 # Note: m4 eats our [], so we need to use [ and ] instead. 31948 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31949 if test "x$has_forbidden_chars" != x; then 31950 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31951 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31952 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31953 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31954 # Going to short mode and back again did indeed matter. Since short mode is 31955 # case insensitive, let's make it lowercase to improve readability. 31956 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31957 # Now convert it back to Unix-style (cygpath) 31958 input_path=`$CYGPATH -u "$shortmode_path"` 31959 new_path="$input_path" 31960 fi 31961 fi 31962 31963 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31964 if test "x$test_cygdrive_prefix" = x; then 31965 # As a simple fix, exclude /usr/bin since it's not a real path. 31966 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 31967 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31968 # a path prefixed by /cygdrive for fixpath to work. 31969 new_path="$CYGWIN_ROOT_PATH$input_path" 31970 fi 31971 fi 31972 31973 31974 if test "x$path" != "x$new_path"; then 31975 IMPORT_MODULES_TOPDIR="$new_path" 31976 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&5 31977 $as_echo "$as_me: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&6;} 31978 fi 31979 31980 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31981 31982 path="$IMPORT_MODULES_TOPDIR" 31983 has_colon=`$ECHO $path | $GREP ^.:` 31984 new_path="$path" 31985 if test "x$has_colon" = x; then 31986 # Not in mixed or Windows style, start by that. 31987 new_path=`cmd //c echo $path` 31988 fi 31989 31990 31991 input_path="$new_path" 31992 # Check if we need to convert this using DOS-style short mode. If the path 31993 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31994 # take no chances and rewrite it. 31995 # Note: m4 eats our [], so we need to use [ and ] instead. 31996 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31997 if test "x$has_forbidden_chars" != x; then 31998 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31999 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32000 fi 32001 32002 32003 windows_path="$new_path" 32004 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32005 unix_path=`$CYGPATH -u "$windows_path"` 32006 new_path="$unix_path" 32007 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32008 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32009 new_path="$unix_path" 32010 fi 32011 32012 if test "x$path" != "x$new_path"; then 32013 IMPORT_MODULES_TOPDIR="$new_path" 32014 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&5 32015 $as_echo "$as_me: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&6;} 32016 fi 32017 32018 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32019 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32020 32021 else 32022 # We're on a unix platform. Hooray! :) 32023 path="$IMPORT_MODULES_TOPDIR" 32024 has_space=`$ECHO "$path" | $GREP " "` 32025 if test "x$has_space" != x; then 32026 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&5 32027 $as_echo "$as_me: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&6;} 32028 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 32029 fi 32030 32031 # Use eval to expand a potential ~ 32032 eval path="$path" 32033 if test ! -f "$path" && test ! -d "$path"; then 32034 as_fn_error $? "The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 32035 fi 32036 32037 if test -d "$path"; then 32038 IMPORT_MODULES_TOPDIR="`cd "$path"; $THEPWDCMD -L`" 32039 else 32040 dir="`$DIRNAME "$path"`" 32041 base="`$BASENAME "$path"`" 32042 IMPORT_MODULES_TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 32043 fi 32044 fi 32045 fi 32046 32047 elif test -e "$with_import_modules"; then 32048 IMPORT_MODULES_TOPDIR="$CONFIGURESUPPORT_OUTPUTDIR/import-modules" 32049 $RM -rf "$IMPORT_MODULES_TOPDIR" 32050 $MKDIR -p "$IMPORT_MODULES_TOPDIR" 32051 if ! $UNZIP -q "$with_import_modules" -d "$IMPORT_MODULES_TOPDIR"; then 32052 as_fn_error $? "--with-import-modules=\"$with_import_modules\" must point to a dir or a zip file" "$LINENO" 5 32053 fi 32054 else 32055 as_fn_error $? "--with-import-modules=\"$with_import_modules\" must point to a dir or a zip file" "$LINENO" 5 32056 fi 32057 fi 32058 32059 if test -d "$IMPORT_MODULES_TOPDIR/modules"; then 32060 IMPORT_MODULES_CLASSES="$IMPORT_MODULES_TOPDIR/modules" 32061 fi 32062 if test -d "$IMPORT_MODULES_TOPDIR/modules_cmds"; then 32063 IMPORT_MODULES_CMDS="$IMPORT_MODULES_TOPDIR/modules_cmds" 32064 fi 32065 if test -d "$IMPORT_MODULES_TOPDIR/modules_libs"; then 32066 IMPORT_MODULES_LIBS="$IMPORT_MODULES_TOPDIR/modules_libs" 32067 fi 32068 if test -d "$IMPORT_MODULES_TOPDIR/modules_conf"; then 32069 IMPORT_MODULES_CONF="$IMPORT_MODULES_TOPDIR/modules_conf" 32070 fi 32071 if test -d "$IMPORT_MODULES_TOPDIR/modules_legal"; then 32072 IMPORT_MODULES_LEGAL="$IMPORT_MODULES_TOPDIR/modules_legal" 32073 fi 32074 if test -d "$IMPORT_MODULES_TOPDIR/modules_man"; then 32075 IMPORT_MODULES_MAN="$IMPORT_MODULES_TOPDIR/modules_man" 32076 fi 32077 if test -d "$IMPORT_MODULES_TOPDIR/modules_src"; then 32078 IMPORT_MODULES_SRC="$IMPORT_MODULES_TOPDIR/modules_src" 32079 fi 32080 if test -d "$IMPORT_MODULES_TOPDIR/make"; then 32081 IMPORT_MODULES_MAKE="$IMPORT_MODULES_TOPDIR/make" 32082 fi 32083 32084 32085 32086 32087 32088 32089 32090 32091 32092 32093 32094 ############################################################################### 32095 # 32096 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 32097 # native code. 32098 # 32099 ############################################################################### 32100 32101 # See if we are doing a complete static build or not 32102 32103 # Check whether --enable-static-build was given. 32104 if test "${enable_static_build+set}" = set; then : 32105 enableval=$enable_static_build; 32106 fi 32107 32108 STATIC_BUILD=false 32109 if test "x$enable_static_build" = "xyes"; then 32110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 32111 $as_echo_n "checking if static build is enabled... " >&6; } 32112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32113 $as_echo "yes" >&6; } 32114 if test "x$OPENJDK_TARGET_OS" != "xmacosx"; then 32115 as_fn_error $? "--enable-static-build is only supported for macosx builds" "$LINENO" 5 32116 fi 32117 STATIC_BUILD_CFLAGS="-DSTATIC_BUILD=1" 32118 CFLAGS_JDKLIB_EXTRA="$CFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 32119 CXXFLAGS_JDKLIB_EXTRA="$CXXFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 32120 STATIC_BUILD=true 32121 elif test "x$enable_static_build" = "xno"; then 32122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 32123 $as_echo_n "checking if static build is enabled... " >&6; } 32124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32125 $as_echo "no" >&6; } 32126 elif test "x$enable_static_build" != "x"; then 32127 as_fn_error $? "--enable-static-build can only be assigned \"yes\" or \"no\"" "$LINENO" 5 32128 fi 32129 32130 32131 32132 32133 # First determine the toolchain type (compiler family) 32134 32135 32136 # Check whether --with-toolchain-type was given. 32137 if test "${with_toolchain_type+set}" = set; then : 32138 withval=$with_toolchain_type; 32139 fi 32140 32141 32142 # Use indirect variable referencing 32143 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 32144 VALID_TOOLCHAINS=${!toolchain_var_name} 32145 32146 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 32147 if test -n "$XCODEBUILD"; then 32148 # On Mac OS X, default toolchain to clang after Xcode 5 32149 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 32150 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 32151 if test $? -ne 0; then 32152 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 32153 fi 32154 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 32155 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 32156 $CUT -f 1 -d .` 32157 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 32158 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 32159 if test $XCODE_MAJOR_VERSION -ge 5; then 32160 DEFAULT_TOOLCHAIN="clang" 32161 else 32162 DEFAULT_TOOLCHAIN="gcc" 32163 fi 32164 else 32165 # If Xcode is not installed, but the command line tools are 32166 # then we can't run xcodebuild. On these systems we should 32167 # default to clang 32168 DEFAULT_TOOLCHAIN="clang" 32169 fi 32170 else 32171 # First toolchain type in the list is the default 32172 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 32173 fi 32174 32175 if test "x$with_toolchain_type" = xlist; then 32176 # List all toolchains 32177 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 32178 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 32179 for toolchain in $VALID_TOOLCHAINS; do 32180 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 32181 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 32182 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 32183 done 32184 32185 exit 0 32186 elif test "x$with_toolchain_type" != x; then 32187 # User override; check that it is valid 32188 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 32189 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 32190 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 32191 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 32192 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 32193 as_fn_error $? "Cannot continue." "$LINENO" 5 32194 fi 32195 TOOLCHAIN_TYPE=$with_toolchain_type 32196 else 32197 # No flag given, use default 32198 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 32199 fi 32200 32201 32202 TOOLCHAIN_CC_BINARY_clang="clang" 32203 TOOLCHAIN_CC_BINARY_gcc="gcc" 32204 TOOLCHAIN_CC_BINARY_microsoft="cl" 32205 TOOLCHAIN_CC_BINARY_solstudio="cc" 32206 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 32207 32208 TOOLCHAIN_CXX_BINARY_clang="clang++" 32209 TOOLCHAIN_CXX_BINARY_gcc="g++" 32210 TOOLCHAIN_CXX_BINARY_microsoft="cl" 32211 TOOLCHAIN_CXX_BINARY_solstudio="CC" 32212 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 32213 32214 # Use indirect variable referencing 32215 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 32216 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 32217 toolchain_var_name=TOOLCHAIN_MINIMUM_VERSION_$TOOLCHAIN_TYPE 32218 TOOLCHAIN_MINIMUM_VERSION=${!toolchain_var_name} 32219 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 32220 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 32221 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 32222 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 32223 32224 32225 # Define filename patterns 32226 if test "x$OPENJDK_TARGET_OS" = xwindows; then 32227 LIBRARY_PREFIX= 32228 SHARED_LIBRARY_SUFFIX='.dll' 32229 STATIC_LIBRARY_SUFFIX='.lib' 32230 SHARED_LIBRARY='$1.dll' 32231 STATIC_LIBRARY='$1.lib' 32232 OBJ_SUFFIX='.obj' 32233 EXE_SUFFIX='.exe' 32234 else 32235 LIBRARY_PREFIX=lib 32236 SHARED_LIBRARY_SUFFIX='.so' 32237 STATIC_LIBRARY_SUFFIX='.a' 32238 SHARED_LIBRARY='lib$1.so' 32239 STATIC_LIBRARY='lib$1.a' 32240 OBJ_SUFFIX='.o' 32241 EXE_SUFFIX='' 32242 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 32243 # For full static builds, we're overloading the SHARED_LIBRARY 32244 # variables in order to limit the amount of changes required. 32245 # It would be better to remove SHARED and just use LIBRARY and 32246 # LIBRARY_SUFFIX for libraries that can be built either 32247 # shared or static and use STATIC_* for libraries that are 32248 # always built statically. 32249 if test "x$STATIC_BUILD" = xtrue; then 32250 SHARED_LIBRARY='lib$1.a' 32251 SHARED_LIBRARY_SUFFIX='.a' 32252 else 32253 SHARED_LIBRARY='lib$1.dylib' 32254 SHARED_LIBRARY_SUFFIX='.dylib' 32255 fi 32256 fi 32257 fi 32258 32259 32260 32261 32262 32263 32264 32265 32266 32267 32268 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 32269 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 32270 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 32271 else 32272 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 32273 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 32274 fi 32275 32276 32277 # User supplied flags should be used when configure detects compilers 32278 32279 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 32280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 32281 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 32282 fi 32283 32284 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 32285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 32286 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 32287 fi 32288 32289 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 32290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 32291 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 32292 fi 32293 32294 32295 # Check whether --with-extra-cflags was given. 32296 if test "${with_extra_cflags+set}" = set; then : 32297 withval=$with_extra_cflags; 32298 fi 32299 32300 32301 32302 # Check whether --with-extra-cxxflags was given. 32303 if test "${with_extra_cxxflags+set}" = set; then : 32304 withval=$with_extra_cxxflags; 32305 fi 32306 32307 32308 32309 # Check whether --with-extra-ldflags was given. 32310 if test "${with_extra_ldflags+set}" = set; then : 32311 withval=$with_extra_ldflags; 32312 fi 32313 32314 32315 EXTRA_CFLAGS="$with_extra_cflags" 32316 EXTRA_CXXFLAGS="$with_extra_cxxflags" 32317 EXTRA_LDFLAGS="$with_extra_ldflags" 32318 32319 32320 32321 32322 32323 # The global CFLAGS and LDLAGS variables are used by configure tests and 32324 # should include the extra parameters 32325 CFLAGS="$EXTRA_CFLAGS" 32326 CXXFLAGS="$EXTRA_CXXFLAGS" 32327 LDFLAGS="$EXTRA_LDFLAGS" 32328 CPPFLAGS="" 32329 32330 # The sysroot cflags are needed for configure to be able to run the compilers 32331 32332 if test "x$SYSROOT" != "x"; then 32333 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 32334 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 32335 # Solaris Studio does not have a concept of sysroot. Instead we must 32336 # make sure the default include and lib dirs are appended to each 32337 # compile and link command line. Must also add -I-xbuiltin to enable 32338 # inlining of system functions and intrinsics. 32339 SYSROOT_CFLAGS="-I-xbuiltin -I$SYSROOT/usr/include" 32340 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 32341 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR" 32342 fi 32343 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 32344 SYSROOT_CFLAGS="--sysroot=$SYSROOT" 32345 SYSROOT_LDFLAGS="--sysroot=$SYSROOT" 32346 elif test "x$TOOLCHAIN_TYPE" = xclang; then 32347 SYSROOT_CFLAGS="-isysroot $SYSROOT" 32348 SYSROOT_LDFLAGS="-isysroot $SYSROOT" 32349 fi 32350 # The global CFLAGS and LDFLAGS variables need these for configure to function 32351 CFLAGS="$CFLAGS $SYSROOT_CFLAGS" 32352 CPPFLAGS="$CPPFLAGS $SYSROOT_CFLAGS" 32353 CXXFLAGS="$CXXFLAGS $SYSROOT_CFLAGS" 32354 LDFLAGS="$LDFLAGS $SYSROOT_LDFLAGS" 32355 fi 32356 32357 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 32358 # We also need -iframework<path>/System/Library/Frameworks 32359 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -iframework $SYSROOT/System/Library/Frameworks" 32360 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -iframework $SYSROOT/System/Library/Frameworks" 32361 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 32362 # set this here so it doesn't have to be peppered throughout the forest 32363 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 32364 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 32365 fi 32366 32367 32368 32369 32370 32371 # Then detect the actual binaries needed 32372 32373 # FIXME: Is this needed? 32374 ac_ext=cpp 32375 ac_cpp='$CXXCPP $CPPFLAGS' 32376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 32379 32380 32381 # Store the CFLAGS etc passed to the configure script. 32382 ORG_CFLAGS="$CFLAGS" 32383 ORG_CXXFLAGS="$CXXFLAGS" 32384 32385 # autoconf magic only relies on PATH, so update it if tools dir is specified 32386 OLD_PATH="$PATH" 32387 32388 # On Windows, we need to detect the visual studio installation first. 32389 # This will change the PATH, but we need to keep that new PATH even 32390 # after toolchain detection is done, since the compiler (on x86) uses 32391 # it for DLL resolution in runtime. 32392 if test "x$OPENJDK_BUILD_OS" = "xwindows" \ 32393 && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 32394 32395 # Store path to cygwin link.exe to help excluding it when searching for 32396 # VS linker. This must be done before changing the PATH when looking for VS. 32397 # Extract the first word of "link", so it can be a program name with args. 32398 set dummy link; ac_word=$2 32399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32400 $as_echo_n "checking for $ac_word... " >&6; } 32401 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 32402 $as_echo_n "(cached) " >&6 32403 else 32404 case $CYGWIN_LINK in 32405 [\\/]* | ?:[\\/]*) 32406 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 32407 ;; 32408 *) 32409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32410 for as_dir in $PATH 32411 do 32412 IFS=$as_save_IFS 32413 test -z "$as_dir" && as_dir=. 32414 for ac_exec_ext in '' $ac_executable_extensions; do 32415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32416 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 32417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32418 break 2 32419 fi 32420 done 32421 done 32422 IFS=$as_save_IFS 32423 32424 ;; 32425 esac 32426 fi 32427 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 32428 if test -n "$CYGWIN_LINK"; then 32429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 32430 $as_echo "$CYGWIN_LINK" >&6; } 32431 else 32432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32433 $as_echo "no" >&6; } 32434 fi 32435 32436 32437 if test "x$CYGWIN_LINK" != x; then 32438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 32439 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 32440 "$CYGWIN_LINK" --version > /dev/null 32441 if test $? -eq 0 ; then 32442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32443 $as_echo "yes" >&6; } 32444 else 32445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32446 $as_echo "no" >&6; } 32447 # This might be the VS linker. Don't exclude it later on. 32448 CYGWIN_LINK="" 32449 fi 32450 fi 32451 32452 # First-hand choice is to locate and run the vsvars bat file. 32453 32454 32455 # Check whether --with-toolchain-version was given. 32456 if test "${with_toolchain_version+set}" = set; then : 32457 withval=$with_toolchain_version; 32458 fi 32459 32460 32461 if test "x$with_toolchain_version" = xlist; then 32462 # List all toolchains 32463 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchain versions are valid on this platform:" >&5 32464 $as_echo "$as_me: The following toolchain versions are valid on this platform:" >&6;} 32465 for version in $VALID_VS_VERSIONS; do 32466 eval VS_DESCRIPTION=\${VS_DESCRIPTION_$version} 32467 $PRINTF " %-10s %s\n" $version "$VS_DESCRIPTION" 32468 done 32469 32470 exit 0 32471 elif test "x$DEVKIT_VS_VERSION" != x; then 32472 VS_VERSION=$DEVKIT_VS_VERSION 32473 TOOLCHAIN_VERSION=$VS_VERSION 32474 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 32475 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 32476 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 32477 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 32478 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32479 VS_PATH="$TOOLCHAIN_PATH:$PATH" 32480 32481 # Convert DEVKIT_VS_INCLUDE into windows style VS_INCLUDE so that it 32482 # can still be exported as INCLUDE for compiler invocations without 32483 # SYSROOT_CFLAGS 32484 OLDIFS="$IFS" 32485 IFS=";" 32486 for i in $DEVKIT_VS_INCLUDE; do 32487 ipath=$i 32488 32489 unix_path="$ipath" 32490 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32491 windows_path=`$CYGPATH -m "$unix_path"` 32492 ipath="$windows_path" 32493 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32494 windows_path=`cmd //c echo $unix_path` 32495 ipath="$windows_path" 32496 fi 32497 32498 VS_INCLUDE="$VS_INCLUDE;$ipath" 32499 done 32500 # Convert DEVKIT_VS_LIB into VS_LIB so that it can still be exported 32501 # as LIB for compiler invocations without SYSROOT_LDFLAGS 32502 for i in $DEVKIT_VS_LIB; do 32503 libpath=$i 32504 32505 unix_path="$libpath" 32506 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32507 windows_path=`$CYGPATH -m "$unix_path"` 32508 libpath="$windows_path" 32509 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32510 windows_path=`cmd //c echo $unix_path` 32511 libpath="$windows_path" 32512 fi 32513 32514 VS_LIB="$VS_LIB;$libpath" 32515 done 32516 IFS="$OLDIFS" 32517 32518 { $as_echo "$as_me:${as_lineno-$LINENO}: Found devkit $VS_DESCRIPTION" >&5 32519 $as_echo "$as_me: Found devkit $VS_DESCRIPTION" >&6;} 32520 32521 elif test "x$with_toolchain_version" != x; then 32522 # User override; check that it is valid 32523 if test "x${VALID_VS_VERSIONS/$with_toolchain_version/}" = "x${VALID_VS_VERSIONS}"; then 32524 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio version $with_toolchain_version is not valid." >&5 32525 $as_echo "$as_me: Visual Studio version $with_toolchain_version is not valid." >&6;} 32526 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&5 32527 $as_echo "$as_me: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&6;} 32528 as_fn_error $? "Cannot continue." "$LINENO" 5 32529 fi 32530 VS_VERSIONS_PROBE_LIST="$with_toolchain_version" 32531 else 32532 # No flag given, use default 32533 VS_VERSIONS_PROBE_LIST="$VALID_VS_VERSIONS" 32534 fi 32535 32536 for VS_VERSION in $VS_VERSIONS_PROBE_LIST; do 32537 32538 VS_VERSION="$VS_VERSION" 32539 eval VS_COMNTOOLS_VAR="\${VS_ENVVAR_${VS_VERSION}}" 32540 eval VS_COMNTOOLS="\$${VS_COMNTOOLS_VAR}" 32541 eval VS_INSTALL_DIR="\${VS_VS_INSTALLDIR_${VS_VERSION}}" 32542 eval SDK_INSTALL_DIR="\${VS_SDK_INSTALLDIR_${VS_VERSION}}" 32543 32544 # When using --with-tools-dir, assume it points to the correct and default 32545 # version of Visual Studio or that --with-toolchain-version was also set. 32546 if test "x$with_tools_dir" != x; then 32547 32548 if test "x$VS_ENV_CMD" = x; then 32549 VS_VERSION="${VS_VERSION}" 32550 VS_BASE="$with_tools_dir/../.." 32551 METHOD="--with-tools-dir" 32552 32553 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32554 VCVARSFILE="vc/bin/vcvars32.bat" 32555 else 32556 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32557 fi 32558 32559 32560 windows_path="$VS_BASE" 32561 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32562 unix_path=`$CYGPATH -u "$windows_path"` 32563 VS_BASE="$unix_path" 32564 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32565 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32566 VS_BASE="$unix_path" 32567 fi 32568 32569 if test -d "$VS_BASE"; then 32570 if test -f "$VS_BASE/$VCVARSFILE"; then 32571 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32572 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32573 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32574 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32575 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32576 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32577 else 32578 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32579 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32580 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32581 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32582 fi 32583 fi 32584 fi 32585 32586 32587 if test "x$VS_ENV_CMD" = x; then 32588 VS_VERSION="${VS_VERSION}" 32589 VS_BASE="$with_tools_dir/../../.." 32590 METHOD="--with-tools-dir" 32591 32592 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32593 VCVARSFILE="vc/bin/vcvars32.bat" 32594 else 32595 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32596 fi 32597 32598 32599 windows_path="$VS_BASE" 32600 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32601 unix_path=`$CYGPATH -u "$windows_path"` 32602 VS_BASE="$unix_path" 32603 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32604 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32605 VS_BASE="$unix_path" 32606 fi 32607 32608 if test -d "$VS_BASE"; then 32609 if test -f "$VS_BASE/$VCVARSFILE"; then 32610 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32611 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32612 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32613 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32614 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32615 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32616 else 32617 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32618 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32619 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32620 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32621 fi 32622 fi 32623 fi 32624 32625 if test "x$VS_ENV_CMD" = x; then 32626 # Having specified an argument which is incorrect will produce an instant failure; 32627 # we should not go on looking 32628 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5 32629 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;} 32630 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5 32631 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;} 32632 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5 32633 $as_echo "$as_me: directory within the Visual Studio installation" >&6;} 32634 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 32635 fi 32636 fi 32637 32638 VS_ENV_CMD="" 32639 VS_ENV_ARGS="" 32640 32641 if test "x$VS_COMNTOOLS" != x; then 32642 32643 if test "x$VS_ENV_CMD" = x; then 32644 VS_VERSION="${VS_VERSION}" 32645 VS_BASE="$VS_COMNTOOLS/../.." 32646 METHOD="$VS_COMNTOOLS_VAR variable" 32647 32648 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32649 VCVARSFILE="vc/bin/vcvars32.bat" 32650 else 32651 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32652 fi 32653 32654 32655 windows_path="$VS_BASE" 32656 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32657 unix_path=`$CYGPATH -u "$windows_path"` 32658 VS_BASE="$unix_path" 32659 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32660 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32661 VS_BASE="$unix_path" 32662 fi 32663 32664 if test -d "$VS_BASE"; then 32665 if test -f "$VS_BASE/$VCVARSFILE"; then 32666 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32667 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32668 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32669 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32670 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32671 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32672 else 32673 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32674 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32675 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32676 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32677 fi 32678 fi 32679 fi 32680 32681 fi 32682 if test "x$PROGRAMFILES" != x; then 32683 32684 if test "x$VS_ENV_CMD" = x; then 32685 VS_VERSION="${VS_VERSION}" 32686 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR" 32687 METHOD="well-known name" 32688 32689 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32690 VCVARSFILE="vc/bin/vcvars32.bat" 32691 else 32692 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32693 fi 32694 32695 32696 windows_path="$VS_BASE" 32697 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32698 unix_path=`$CYGPATH -u "$windows_path"` 32699 VS_BASE="$unix_path" 32700 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32701 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32702 VS_BASE="$unix_path" 32703 fi 32704 32705 if test -d "$VS_BASE"; then 32706 if test -f "$VS_BASE/$VCVARSFILE"; then 32707 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32708 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32709 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32710 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32711 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32712 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32713 else 32714 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32715 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32716 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32717 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32718 fi 32719 fi 32720 fi 32721 32722 fi 32723 # Work around the insanely named ProgramFiles(x86) env variable 32724 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`" 32725 if test "x$PROGRAMFILES_X86" != x; then 32726 32727 if test "x$VS_ENV_CMD" = x; then 32728 VS_VERSION="${VS_VERSION}" 32729 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR" 32730 METHOD="well-known name" 32731 32732 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32733 VCVARSFILE="vc/bin/vcvars32.bat" 32734 else 32735 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32736 fi 32737 32738 32739 windows_path="$VS_BASE" 32740 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32741 unix_path=`$CYGPATH -u "$windows_path"` 32742 VS_BASE="$unix_path" 32743 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32744 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32745 VS_BASE="$unix_path" 32746 fi 32747 32748 if test -d "$VS_BASE"; then 32749 if test -f "$VS_BASE/$VCVARSFILE"; then 32750 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32751 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32752 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32753 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32754 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32755 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32756 else 32757 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32758 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32759 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32760 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32761 fi 32762 fi 32763 fi 32764 32765 fi 32766 32767 if test "x$VS_ENV_CMD" = x; then 32768 VS_VERSION="${VS_VERSION}" 32769 VS_BASE="C:/Program Files/$VS_INSTALL_DIR" 32770 METHOD="well-known name" 32771 32772 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32773 VCVARSFILE="vc/bin/vcvars32.bat" 32774 else 32775 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32776 fi 32777 32778 32779 windows_path="$VS_BASE" 32780 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32781 unix_path=`$CYGPATH -u "$windows_path"` 32782 VS_BASE="$unix_path" 32783 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32784 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32785 VS_BASE="$unix_path" 32786 fi 32787 32788 if test -d "$VS_BASE"; then 32789 if test -f "$VS_BASE/$VCVARSFILE"; then 32790 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32791 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32792 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32793 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32794 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32795 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32796 else 32797 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32798 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32799 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32800 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32801 fi 32802 fi 32803 fi 32804 32805 32806 if test "x$VS_ENV_CMD" = x; then 32807 VS_VERSION="${VS_VERSION}" 32808 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR" 32809 METHOD="well-known name" 32810 32811 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32812 VCVARSFILE="vc/bin/vcvars32.bat" 32813 else 32814 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32815 fi 32816 32817 32818 windows_path="$VS_BASE" 32819 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32820 unix_path=`$CYGPATH -u "$windows_path"` 32821 VS_BASE="$unix_path" 32822 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32823 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32824 VS_BASE="$unix_path" 32825 fi 32826 32827 if test -d "$VS_BASE"; then 32828 if test -f "$VS_BASE/$VCVARSFILE"; then 32829 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32830 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32831 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32832 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32833 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32834 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32835 else 32836 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32837 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32838 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32839 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32840 fi 32841 fi 32842 fi 32843 32844 32845 if test "x$SDK_INSTALL_DIR" != x; then 32846 if test "x$ProgramW6432" != x; then 32847 32848 if test "x$VS_ENV_CMD" = x; then 32849 VS_VERSION="${VS_VERSION}" 32850 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR" 32851 METHOD="well-known name" 32852 32853 windows_path="$WIN_SDK_BASE" 32854 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32855 unix_path=`$CYGPATH -u "$windows_path"` 32856 WIN_SDK_BASE="$unix_path" 32857 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32858 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32859 WIN_SDK_BASE="$unix_path" 32860 fi 32861 32862 if test -d "$WIN_SDK_BASE"; then 32863 # There have been cases of partial or broken SDK installations. A missing 32864 # lib dir is not going to work. 32865 if test ! -d "$WIN_SDK_BASE/lib"; then 32866 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32867 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32868 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32869 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32870 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32871 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32872 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32873 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32874 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32875 VS_ENV_ARGS="/x86" 32876 else 32877 VS_ENV_ARGS="/x64" 32878 fi 32879 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32880 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32881 # TODO: improve detection for other versions of SDK 32882 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32883 else 32884 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32885 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32886 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32887 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32888 fi 32889 fi 32890 fi 32891 32892 fi 32893 if test "x$PROGRAMW6432" != x; then 32894 32895 if test "x$VS_ENV_CMD" = x; then 32896 VS_VERSION="${VS_VERSION}" 32897 WIN_SDK_BASE="$PROGRAMW6432/$SDK_INSTALL_DIR" 32898 METHOD="well-known name" 32899 32900 windows_path="$WIN_SDK_BASE" 32901 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32902 unix_path=`$CYGPATH -u "$windows_path"` 32903 WIN_SDK_BASE="$unix_path" 32904 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32905 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32906 WIN_SDK_BASE="$unix_path" 32907 fi 32908 32909 if test -d "$WIN_SDK_BASE"; then 32910 # There have been cases of partial or broken SDK installations. A missing 32911 # lib dir is not going to work. 32912 if test ! -d "$WIN_SDK_BASE/lib"; then 32913 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32914 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32915 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32916 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32917 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32918 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32919 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32920 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32921 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32922 VS_ENV_ARGS="/x86" 32923 else 32924 VS_ENV_ARGS="/x64" 32925 fi 32926 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32927 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32928 # TODO: improve detection for other versions of SDK 32929 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32930 else 32931 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32932 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32933 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32934 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32935 fi 32936 fi 32937 fi 32938 32939 fi 32940 if test "x$PROGRAMFILES" != x; then 32941 32942 if test "x$VS_ENV_CMD" = x; then 32943 VS_VERSION="${VS_VERSION}" 32944 WIN_SDK_BASE="$PROGRAMFILES/$SDK_INSTALL_DIR" 32945 METHOD="well-known name" 32946 32947 windows_path="$WIN_SDK_BASE" 32948 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32949 unix_path=`$CYGPATH -u "$windows_path"` 32950 WIN_SDK_BASE="$unix_path" 32951 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32952 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32953 WIN_SDK_BASE="$unix_path" 32954 fi 32955 32956 if test -d "$WIN_SDK_BASE"; then 32957 # There have been cases of partial or broken SDK installations. A missing 32958 # lib dir is not going to work. 32959 if test ! -d "$WIN_SDK_BASE/lib"; then 32960 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32961 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32962 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32963 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32964 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32965 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32966 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32967 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32968 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32969 VS_ENV_ARGS="/x86" 32970 else 32971 VS_ENV_ARGS="/x64" 32972 fi 32973 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32974 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32975 # TODO: improve detection for other versions of SDK 32976 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32977 else 32978 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32979 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32980 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32981 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32982 fi 32983 fi 32984 fi 32985 32986 fi 32987 32988 if test "x$VS_ENV_CMD" = x; then 32989 VS_VERSION="${VS_VERSION}" 32990 WIN_SDK_BASE="C:/Program Files/$SDK_INSTALL_DIR" 32991 METHOD="well-known name" 32992 32993 windows_path="$WIN_SDK_BASE" 32994 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32995 unix_path=`$CYGPATH -u "$windows_path"` 32996 WIN_SDK_BASE="$unix_path" 32997 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32998 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32999 WIN_SDK_BASE="$unix_path" 33000 fi 33001 33002 if test -d "$WIN_SDK_BASE"; then 33003 # There have been cases of partial or broken SDK installations. A missing 33004 # lib dir is not going to work. 33005 if test ! -d "$WIN_SDK_BASE/lib"; then 33006 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 33007 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 33008 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 33009 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 33010 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 33011 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 33012 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 33013 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 33014 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 33015 VS_ENV_ARGS="/x86" 33016 else 33017 VS_ENV_ARGS="/x64" 33018 fi 33019 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 33020 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 33021 # TODO: improve detection for other versions of SDK 33022 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 33023 else 33024 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 33025 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 33026 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 33027 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 33028 fi 33029 fi 33030 fi 33031 33032 33033 if test "x$VS_ENV_CMD" = x; then 33034 VS_VERSION="${VS_VERSION}" 33035 WIN_SDK_BASE="C:/Program Files (x86)/$SDK_INSTALL_DIR" 33036 METHOD="well-known name" 33037 33038 windows_path="$WIN_SDK_BASE" 33039 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33040 unix_path=`$CYGPATH -u "$windows_path"` 33041 WIN_SDK_BASE="$unix_path" 33042 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33043 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33044 WIN_SDK_BASE="$unix_path" 33045 fi 33046 33047 if test -d "$WIN_SDK_BASE"; then 33048 # There have been cases of partial or broken SDK installations. A missing 33049 # lib dir is not going to work. 33050 if test ! -d "$WIN_SDK_BASE/lib"; then 33051 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 33052 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 33053 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 33054 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 33055 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 33056 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 33057 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 33058 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 33059 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 33060 VS_ENV_ARGS="/x86" 33061 else 33062 VS_ENV_ARGS="/x64" 33063 fi 33064 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 33065 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 33066 # TODO: improve detection for other versions of SDK 33067 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 33068 else 33069 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 33070 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 33071 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 33072 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 33073 fi 33074 fi 33075 fi 33076 33077 fi 33078 33079 if test "x$VS_ENV_CMD" != x; then 33080 TOOLCHAIN_VERSION=$VS_VERSION 33081 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 33082 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 33083 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 33084 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 33085 # The rest of the variables are already evaled while probing 33086 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $VS_DESCRIPTION" >&5 33087 $as_echo "$as_me: Found $VS_DESCRIPTION" >&6;} 33088 break 33089 fi 33090 done 33091 33092 33093 # If we have a devkit, skip all of the below. 33094 if test "x$DEVKIT_VS_VERSION" = x; then 33095 if test "x$VS_ENV_CMD" != x; then 33096 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 33097 33098 # Only process if variable expands to non-empty 33099 33100 if test "x$VS_ENV_CMD" != x; then 33101 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33102 33103 # First separate the path from the arguments. This will split at the first 33104 # space. 33105 complete="$VS_ENV_CMD" 33106 path="${complete%% *}" 33107 tmp="$complete EOL" 33108 arguments="${tmp#* }" 33109 33110 # Input might be given as Windows format, start by converting to 33111 # unix format. 33112 new_path=`$CYGPATH -u "$path"` 33113 33114 # Now try to locate executable using which 33115 new_path=`$WHICH "$new_path" 2> /dev/null` 33116 # bat and cmd files are not always considered executable in cygwin causing which 33117 # to not find them 33118 if test "x$new_path" = x \ 33119 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33120 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33121 new_path=`$CYGPATH -u "$path"` 33122 fi 33123 if test "x$new_path" = x; then 33124 # Oops. Which didn't find the executable. 33125 # The splitting of arguments from the executable at a space might have been incorrect, 33126 # since paths with space are more likely in Windows. Give it another try with the whole 33127 # argument. 33128 path="$complete" 33129 arguments="EOL" 33130 new_path=`$CYGPATH -u "$path"` 33131 new_path=`$WHICH "$new_path" 2> /dev/null` 33132 # bat and cmd files are not always considered executable in cygwin causing which 33133 # to not find them 33134 if test "x$new_path" = x \ 33135 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33136 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33137 new_path=`$CYGPATH -u "$path"` 33138 fi 33139 if test "x$new_path" = x; then 33140 # It's still not found. Now this is an unrecoverable error. 33141 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 33142 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 33143 has_space=`$ECHO "$complete" | $GREP " "` 33144 if test "x$has_space" != x; then 33145 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33146 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33147 fi 33148 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 33149 fi 33150 fi 33151 33152 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33153 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33154 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33155 # "foo.exe" is OK but "foo" is an error. 33156 # 33157 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33158 # It is also a way to make sure we got the proper file name for the real test later on. 33159 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33160 if test "x$test_shortpath" = x; then 33161 # Short path failed, file does not exist as specified. 33162 # Try adding .exe or .cmd 33163 if test -f "${new_path}.exe"; then 33164 input_to_shortpath="${new_path}.exe" 33165 elif test -f "${new_path}.cmd"; then 33166 input_to_shortpath="${new_path}.cmd" 33167 else 33168 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 33169 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 33170 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33171 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33172 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 33173 fi 33174 else 33175 input_to_shortpath="$new_path" 33176 fi 33177 33178 # Call helper function which possibly converts this using DOS-style short mode. 33179 # If so, the updated path is stored in $new_path. 33180 new_path="$input_to_shortpath" 33181 33182 input_path="$input_to_shortpath" 33183 # Check if we need to convert this using DOS-style short mode. If the path 33184 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33185 # take no chances and rewrite it. 33186 # Note: m4 eats our [], so we need to use [ and ] instead. 33187 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33188 if test "x$has_forbidden_chars" != x; then 33189 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33190 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33191 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33192 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33193 # Going to short mode and back again did indeed matter. Since short mode is 33194 # case insensitive, let's make it lowercase to improve readability. 33195 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33196 # Now convert it back to Unix-style (cygpath) 33197 input_path=`$CYGPATH -u "$shortmode_path"` 33198 new_path="$input_path" 33199 fi 33200 fi 33201 33202 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33203 if test "x$test_cygdrive_prefix" = x; then 33204 # As a simple fix, exclude /usr/bin since it's not a real path. 33205 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33206 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33207 # a path prefixed by /cygdrive for fixpath to work. 33208 new_path="$CYGWIN_ROOT_PATH$input_path" 33209 fi 33210 fi 33211 33212 # remove trailing .exe if any 33213 new_path="${new_path/%.exe/}" 33214 33215 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33216 33217 # First separate the path from the arguments. This will split at the first 33218 # space. 33219 complete="$VS_ENV_CMD" 33220 path="${complete%% *}" 33221 tmp="$complete EOL" 33222 arguments="${tmp#* }" 33223 33224 # Input might be given as Windows format, start by converting to 33225 # unix format. 33226 new_path="$path" 33227 33228 windows_path="$new_path" 33229 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33230 unix_path=`$CYGPATH -u "$windows_path"` 33231 new_path="$unix_path" 33232 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33233 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33234 new_path="$unix_path" 33235 fi 33236 33237 33238 # Now try to locate executable using which 33239 new_path=`$WHICH "$new_path" 2> /dev/null` 33240 33241 if test "x$new_path" = x; then 33242 # Oops. Which didn't find the executable. 33243 # The splitting of arguments from the executable at a space might have been incorrect, 33244 # since paths with space are more likely in Windows. Give it another try with the whole 33245 # argument. 33246 path="$complete" 33247 arguments="EOL" 33248 new_path="$path" 33249 33250 windows_path="$new_path" 33251 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33252 unix_path=`$CYGPATH -u "$windows_path"` 33253 new_path="$unix_path" 33254 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33255 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33256 new_path="$unix_path" 33257 fi 33258 33259 33260 new_path=`$WHICH "$new_path" 2> /dev/null` 33261 # bat and cmd files are not always considered executable in MSYS causing which 33262 # to not find them 33263 if test "x$new_path" = x \ 33264 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33265 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33266 new_path="$path" 33267 33268 windows_path="$new_path" 33269 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33270 unix_path=`$CYGPATH -u "$windows_path"` 33271 new_path="$unix_path" 33272 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33273 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33274 new_path="$unix_path" 33275 fi 33276 33277 fi 33278 33279 if test "x$new_path" = x; then 33280 # It's still not found. Now this is an unrecoverable error. 33281 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 33282 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 33283 has_space=`$ECHO "$complete" | $GREP " "` 33284 if test "x$has_space" != x; then 33285 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33286 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33287 fi 33288 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 33289 fi 33290 fi 33291 33292 # Now new_path has a complete unix path to the binary 33293 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33294 # Keep paths in /bin as-is, but remove trailing .exe if any 33295 new_path="${new_path/%.exe/}" 33296 # Do not save /bin paths to all_fixpath_prefixes! 33297 else 33298 # Not in mixed or Windows style, start by that. 33299 new_path=`cmd //c echo $new_path` 33300 33301 input_path="$new_path" 33302 # Check if we need to convert this using DOS-style short mode. If the path 33303 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33304 # take no chances and rewrite it. 33305 # Note: m4 eats our [], so we need to use [ and ] instead. 33306 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33307 if test "x$has_forbidden_chars" != x; then 33308 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33309 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33310 fi 33311 33312 # Output is in $new_path 33313 33314 windows_path="$new_path" 33315 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33316 unix_path=`$CYGPATH -u "$windows_path"` 33317 new_path="$unix_path" 33318 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33319 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33320 new_path="$unix_path" 33321 fi 33322 33323 # remove trailing .exe if any 33324 new_path="${new_path/%.exe/}" 33325 33326 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33327 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33328 fi 33329 33330 else 33331 # We're on a unix platform. Hooray! :) 33332 # First separate the path from the arguments. This will split at the first 33333 # space. 33334 complete="$VS_ENV_CMD" 33335 path="${complete%% *}" 33336 tmp="$complete EOL" 33337 arguments="${tmp#* }" 33338 33339 # Cannot rely on the command "which" here since it doesn't always work. 33340 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33341 if test -z "$is_absolute_path"; then 33342 # Path to executable is not absolute. Find it. 33343 IFS_save="$IFS" 33344 IFS=: 33345 for p in $PATH; do 33346 if test -f "$p/$path" && test -x "$p/$path"; then 33347 new_path="$p/$path" 33348 break 33349 fi 33350 done 33351 IFS="$IFS_save" 33352 else 33353 # This is an absolute path, we can use it without further modifications. 33354 new_path="$path" 33355 fi 33356 33357 if test "x$new_path" = x; then 33358 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 33359 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 33360 has_space=`$ECHO "$complete" | $GREP " "` 33361 if test "x$has_space" != x; then 33362 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33363 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33364 fi 33365 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 33366 fi 33367 fi 33368 33369 # Now join together the path and the arguments once again 33370 if test "x$arguments" != xEOL; then 33371 new_complete="$new_path ${arguments% *}" 33372 else 33373 new_complete="$new_path" 33374 fi 33375 33376 if test "x$complete" != "x$new_complete"; then 33377 VS_ENV_CMD="$new_complete" 33378 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 33379 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 33380 fi 33381 fi 33382 33383 33384 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 33385 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 33386 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 33387 33388 # We need to create a couple of temporary files. 33389 VS_ENV_TMP_DIR="$CONFIGURESUPPORT_OUTPUTDIR/vs-env" 33390 $MKDIR -p $VS_ENV_TMP_DIR 33391 33392 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 33393 # Instead create a shell script which will set the relevant variables when run. 33394 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 33395 33396 unix_path="$WINPATH_VS_ENV_CMD" 33397 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33398 windows_path=`$CYGPATH -m "$unix_path"` 33399 WINPATH_VS_ENV_CMD="$windows_path" 33400 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33401 windows_path=`cmd //c echo $unix_path` 33402 WINPATH_VS_ENV_CMD="$windows_path" 33403 fi 33404 33405 WINPATH_BASH="$BASH" 33406 33407 unix_path="$WINPATH_BASH" 33408 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33409 windows_path=`$CYGPATH -m "$unix_path"` 33410 WINPATH_BASH="$windows_path" 33411 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33412 windows_path=`cmd //c echo $unix_path` 33413 WINPATH_BASH="$windows_path" 33414 fi 33415 33416 33417 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 33418 # script (executable by bash) that will setup the important variables. 33419 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 33420 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 33421 # This will end up something like: 33422 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 33423 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 33424 # These will end up something like: 33425 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 33426 # The trailing space for everyone except PATH is no typo, but is needed due 33427 # to trailing \ in the Windows paths. These will be stripped later. 33428 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' \ 33429 >> $EXTRACT_VC_ENV_BAT_FILE 33430 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE\;$include \" >> set-vs-env.sh' \ 33431 >> $EXTRACT_VC_ENV_BAT_FILE 33432 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB\;$lib \" >> set-vs-env.sh' \ 33433 >> $EXTRACT_VC_ENV_BAT_FILE 33434 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' \ 33435 >> $EXTRACT_VC_ENV_BAT_FILE 33436 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' \ 33437 >> $EXTRACT_VC_ENV_BAT_FILE 33438 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' \ 33439 >> $EXTRACT_VC_ENV_BAT_FILE 33440 33441 # Now execute the newly created bat file. 33442 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 33443 # Change directory so we don't need to mess with Windows paths in redirects. 33444 cd $VS_ENV_TMP_DIR 33445 cmd /c extract-vs-env.bat | $CAT 33446 cd $CURDIR 33447 33448 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 33449 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 33450 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 33451 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 33452 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 33453 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 33454 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 33455 as_fn_error $? "Cannot continue" "$LINENO" 5 33456 fi 33457 33458 # Now set all paths and other env variables. This will allow the rest of 33459 # the configure script to find and run the compiler in the proper way. 33460 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 33461 $as_echo "$as_me: Setting extracted environment variables" >&6;} 33462 . $VS_ENV_TMP_DIR/set-vs-env.sh 33463 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 33464 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 33465 else 33466 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 33467 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 33468 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 33469 fi 33470 fi 33471 33472 # At this point, we should have correct variables in the environment, or we can't continue. 33473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 33474 $as_echo_n "checking for Visual Studio variables... " >&6; } 33475 33476 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x \ 33477 || test "x$WINDOWSSDKDIR" != x || test "x$DEVKIT_NAME" != x; then 33478 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 33479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 33480 $as_echo "present but broken" >&6; } 33481 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 33482 else 33483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 33484 $as_echo "ok" >&6; } 33485 # Remove any trailing "\" ";" and " " from the variables. 33486 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED -e 's/\\\\*;* *$//'` 33487 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\*;* *$//'` 33488 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 33489 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 33490 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 33491 # Remove any paths containing # (typically F#) as that messes up make. This 33492 # is needed if visual studio was installed with F# support. 33493 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 33494 33495 33496 33497 33498 33499 # Convert VS_INCLUDE into SYSROOT_CFLAGS 33500 OLDIFS="$IFS" 33501 IFS=";" 33502 for i in $VS_INCLUDE; do 33503 ipath=$i 33504 # Only process non-empty elements 33505 if test "x$ipath" != x; then 33506 IFS="$OLDIFS" 33507 # Check that directory exists before calling fixup_path 33508 testpath=$ipath 33509 33510 windows_path="$testpath" 33511 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33512 unix_path=`$CYGPATH -u "$windows_path"` 33513 testpath="$unix_path" 33514 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33515 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33516 testpath="$unix_path" 33517 fi 33518 33519 if test -d "$testpath"; then 33520 33521 # Only process if variable expands to non-empty 33522 33523 if test "x$ipath" != x; then 33524 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33525 33526 # Input might be given as Windows format, start by converting to 33527 # unix format. 33528 path="$ipath" 33529 new_path=`$CYGPATH -u "$path"` 33530 33531 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33532 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33533 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33534 # "foo.exe" is OK but "foo" is an error. 33535 # 33536 # This test is therefore slightly more accurate than "test -f" to check for file precense. 33537 # It is also a way to make sure we got the proper file name for the real test later on. 33538 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33539 if test "x$test_shortpath" = x; then 33540 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 33541 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 33542 as_fn_error $? "Cannot locate the the path of ipath" "$LINENO" 5 33543 fi 33544 33545 # Call helper function which possibly converts this using DOS-style short mode. 33546 # If so, the updated path is stored in $new_path. 33547 33548 input_path="$new_path" 33549 # Check if we need to convert this using DOS-style short mode. If the path 33550 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33551 # take no chances and rewrite it. 33552 # Note: m4 eats our [], so we need to use [ and ] instead. 33553 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33554 if test "x$has_forbidden_chars" != x; then 33555 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33556 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33557 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33558 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33559 # Going to short mode and back again did indeed matter. Since short mode is 33560 # case insensitive, let's make it lowercase to improve readability. 33561 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33562 # Now convert it back to Unix-style (cygpath) 33563 input_path=`$CYGPATH -u "$shortmode_path"` 33564 new_path="$input_path" 33565 fi 33566 fi 33567 33568 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33569 if test "x$test_cygdrive_prefix" = x; then 33570 # As a simple fix, exclude /usr/bin since it's not a real path. 33571 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 33572 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33573 # a path prefixed by /cygdrive for fixpath to work. 33574 new_path="$CYGWIN_ROOT_PATH$input_path" 33575 fi 33576 fi 33577 33578 33579 if test "x$path" != "x$new_path"; then 33580 ipath="$new_path" 33581 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 33582 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 33583 fi 33584 33585 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33586 33587 path="$ipath" 33588 has_colon=`$ECHO $path | $GREP ^.:` 33589 new_path="$path" 33590 if test "x$has_colon" = x; then 33591 # Not in mixed or Windows style, start by that. 33592 new_path=`cmd //c echo $path` 33593 fi 33594 33595 33596 input_path="$new_path" 33597 # Check if we need to convert this using DOS-style short mode. If the path 33598 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33599 # take no chances and rewrite it. 33600 # Note: m4 eats our [], so we need to use [ and ] instead. 33601 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33602 if test "x$has_forbidden_chars" != x; then 33603 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33604 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33605 fi 33606 33607 33608 windows_path="$new_path" 33609 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33610 unix_path=`$CYGPATH -u "$windows_path"` 33611 new_path="$unix_path" 33612 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33613 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33614 new_path="$unix_path" 33615 fi 33616 33617 if test "x$path" != "x$new_path"; then 33618 ipath="$new_path" 33619 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 33620 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 33621 fi 33622 33623 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33624 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33625 33626 else 33627 # We're on a unix platform. Hooray! :) 33628 path="$ipath" 33629 has_space=`$ECHO "$path" | $GREP " "` 33630 if test "x$has_space" != x; then 33631 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 33632 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 33633 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 33634 fi 33635 33636 # Use eval to expand a potential ~ 33637 eval path="$path" 33638 if test ! -f "$path" && test ! -d "$path"; then 33639 as_fn_error $? "The path of ipath, which resolves as \"$path\", is not found." "$LINENO" 5 33640 fi 33641 33642 if test -d "$path"; then 33643 ipath="`cd "$path"; $THEPWDCMD -L`" 33644 else 33645 dir="`$DIRNAME "$path"`" 33646 base="`$BASENAME "$path"`" 33647 ipath="`cd "$dir"; $THEPWDCMD -L`/$base" 33648 fi 33649 fi 33650 fi 33651 33652 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -I$ipath" 33653 fi 33654 IFS=";" 33655 fi 33656 done 33657 # Convert VS_LIB into SYSROOT_LDFLAGS 33658 for i in $VS_LIB; do 33659 libpath=$i 33660 # Only process non-empty elements 33661 if test "x$libpath" != x; then 33662 IFS="$OLDIFS" 33663 # Check that directory exists before calling fixup_path 33664 testpath=$libpath 33665 33666 windows_path="$testpath" 33667 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33668 unix_path=`$CYGPATH -u "$windows_path"` 33669 testpath="$unix_path" 33670 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33671 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33672 testpath="$unix_path" 33673 fi 33674 33675 if test -d "$testpath"; then 33676 33677 # Only process if variable expands to non-empty 33678 33679 if test "x$libpath" != x; then 33680 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33681 33682 # Input might be given as Windows format, start by converting to 33683 # unix format. 33684 path="$libpath" 33685 new_path=`$CYGPATH -u "$path"` 33686 33687 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33688 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33689 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33690 # "foo.exe" is OK but "foo" is an error. 33691 # 33692 # This test is therefore slightly more accurate than "test -f" to check for file precense. 33693 # It is also a way to make sure we got the proper file name for the real test later on. 33694 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33695 if test "x$test_shortpath" = x; then 33696 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 33697 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 33698 as_fn_error $? "Cannot locate the the path of libpath" "$LINENO" 5 33699 fi 33700 33701 # Call helper function which possibly converts this using DOS-style short mode. 33702 # If so, the updated path is stored in $new_path. 33703 33704 input_path="$new_path" 33705 # Check if we need to convert this using DOS-style short mode. If the path 33706 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33707 # take no chances and rewrite it. 33708 # Note: m4 eats our [], so we need to use [ and ] instead. 33709 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33710 if test "x$has_forbidden_chars" != x; then 33711 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33712 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33713 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33714 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33715 # Going to short mode and back again did indeed matter. Since short mode is 33716 # case insensitive, let's make it lowercase to improve readability. 33717 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33718 # Now convert it back to Unix-style (cygpath) 33719 input_path=`$CYGPATH -u "$shortmode_path"` 33720 new_path="$input_path" 33721 fi 33722 fi 33723 33724 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33725 if test "x$test_cygdrive_prefix" = x; then 33726 # As a simple fix, exclude /usr/bin since it's not a real path. 33727 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 33728 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33729 # a path prefixed by /cygdrive for fixpath to work. 33730 new_path="$CYGWIN_ROOT_PATH$input_path" 33731 fi 33732 fi 33733 33734 33735 if test "x$path" != "x$new_path"; then 33736 libpath="$new_path" 33737 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 33738 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 33739 fi 33740 33741 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33742 33743 path="$libpath" 33744 has_colon=`$ECHO $path | $GREP ^.:` 33745 new_path="$path" 33746 if test "x$has_colon" = x; then 33747 # Not in mixed or Windows style, start by that. 33748 new_path=`cmd //c echo $path` 33749 fi 33750 33751 33752 input_path="$new_path" 33753 # Check if we need to convert this using DOS-style short mode. If the path 33754 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33755 # take no chances and rewrite it. 33756 # Note: m4 eats our [], so we need to use [ and ] instead. 33757 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33758 if test "x$has_forbidden_chars" != x; then 33759 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33760 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33761 fi 33762 33763 33764 windows_path="$new_path" 33765 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33766 unix_path=`$CYGPATH -u "$windows_path"` 33767 new_path="$unix_path" 33768 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33769 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33770 new_path="$unix_path" 33771 fi 33772 33773 if test "x$path" != "x$new_path"; then 33774 libpath="$new_path" 33775 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 33776 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 33777 fi 33778 33779 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33780 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33781 33782 else 33783 # We're on a unix platform. Hooray! :) 33784 path="$libpath" 33785 has_space=`$ECHO "$path" | $GREP " "` 33786 if test "x$has_space" != x; then 33787 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 33788 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 33789 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 33790 fi 33791 33792 # Use eval to expand a potential ~ 33793 eval path="$path" 33794 if test ! -f "$path" && test ! -d "$path"; then 33795 as_fn_error $? "The path of libpath, which resolves as \"$path\", is not found." "$LINENO" 5 33796 fi 33797 33798 if test -d "$path"; then 33799 libpath="`cd "$path"; $THEPWDCMD -L`" 33800 else 33801 dir="`$DIRNAME "$path"`" 33802 base="`$BASENAME "$path"`" 33803 libpath="`cd "$dir"; $THEPWDCMD -L`/$base" 33804 fi 33805 fi 33806 fi 33807 33808 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -libpath:$libpath" 33809 fi 33810 IFS=";" 33811 fi 33812 done 33813 IFS="$OLDIFS" 33814 fi 33815 else 33816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33817 $as_echo "not found" >&6; } 33818 33819 if test "x$VS_ENV_CMD" = x; then 33820 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 33821 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 33822 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 33823 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 33824 else 33825 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 33826 $as_echo "$as_me: Running the extraction script failed." >&6;} 33827 fi 33828 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 33829 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 33830 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 33831 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 33832 as_fn_error $? "Cannot continue" "$LINENO" 5 33833 fi 33834 33835 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 33836 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 33837 PATH="$VS_PATH" 33838 # The microsoft toolchain also requires INCLUDE and LIB to be set. 33839 export INCLUDE="$VS_INCLUDE" 33840 export LIB="$VS_LIB" 33841 else 33842 if test "x$XCODE_VERSION_OUTPUT" != x; then 33843 # For Xcode, we set the Xcode version as TOOLCHAIN_VERSION 33844 TOOLCHAIN_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | $CUT -f 2 -d ' '` 33845 TOOLCHAIN_DESCRIPTION="$TOOLCHAIN_DESCRIPTION from Xcode" 33846 else 33847 # Currently we do not define this for other toolchains. This might change as the need arise. 33848 TOOLCHAIN_VERSION= 33849 fi 33850 fi 33851 33852 33853 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 33854 # override all other locations. 33855 if test "x$TOOLCHAIN_PATH" != x; then 33856 PATH=$TOOLCHAIN_PATH:$PATH 33857 fi 33858 33859 33860 # 33861 # Setup the compilers (CC and CXX) 33862 # 33863 33864 COMPILER_NAME=C 33865 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 33866 33867 if test "x$CC" != x; then 33868 # User has supplied compiler name already, always let that override. 33869 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 33870 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 33871 if test "x`basename $CC`" = "x$CC"; then 33872 # A command without a complete path is provided, search $PATH. 33873 33874 for ac_prog in $CC 33875 do 33876 # Extract the first word of "$ac_prog", so it can be a program name with args. 33877 set dummy $ac_prog; ac_word=$2 33878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33879 $as_echo_n "checking for $ac_word... " >&6; } 33880 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 33881 $as_echo_n "(cached) " >&6 33882 else 33883 case $POTENTIAL_CC in 33884 [\\/]* | ?:[\\/]*) 33885 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 33886 ;; 33887 *) 33888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33889 for as_dir in $PATH 33890 do 33891 IFS=$as_save_IFS 33892 test -z "$as_dir" && as_dir=. 33893 for ac_exec_ext in '' $ac_executable_extensions; do 33894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33895 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33897 break 2 33898 fi 33899 done 33900 done 33901 IFS=$as_save_IFS 33902 33903 ;; 33904 esac 33905 fi 33906 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 33907 if test -n "$POTENTIAL_CC"; then 33908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 33909 $as_echo "$POTENTIAL_CC" >&6; } 33910 else 33911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33912 $as_echo "no" >&6; } 33913 fi 33914 33915 33916 test -n "$POTENTIAL_CC" && break 33917 done 33918 33919 if test "x$POTENTIAL_CC" != x; then 33920 CC=$POTENTIAL_CC 33921 else 33922 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 33923 fi 33924 else 33925 # Otherwise it might already be a complete path 33926 if test ! -x "$CC"; then 33927 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 33928 fi 33929 fi 33930 else 33931 # No user supplied value. Locate compiler ourselves. 33932 33933 # If we are cross compiling, assume cross compilation tools follows the 33934 # cross compilation standard where they are prefixed with the autoconf 33935 # standard name for the target. For example the binary 33936 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 33937 # If we are not cross compiling, then the default compiler name will be 33938 # used. 33939 33940 CC= 33941 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 33942 # before checking the rest of the PATH. 33943 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 33944 # step, this should not be necessary. 33945 if test -n "$TOOLCHAIN_PATH"; then 33946 PATH_save="$PATH" 33947 PATH="$TOOLCHAIN_PATH" 33948 if test -n "$ac_tool_prefix"; then 33949 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 33950 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 33951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33952 $as_echo_n "checking for $ac_word... " >&6; } 33953 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 33954 $as_echo_n "(cached) " >&6 33955 else 33956 case $TOOLCHAIN_PATH_CC in 33957 [\\/]* | ?:[\\/]*) 33958 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 33959 ;; 33960 *) 33961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33962 for as_dir in $PATH 33963 do 33964 IFS=$as_save_IFS 33965 test -z "$as_dir" && as_dir=. 33966 for ac_exec_ext in '' $ac_executable_extensions; do 33967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33968 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 33969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33970 break 2 33971 fi 33972 done 33973 done 33974 IFS=$as_save_IFS 33975 33976 ;; 33977 esac 33978 fi 33979 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 33980 if test -n "$TOOLCHAIN_PATH_CC"; then 33981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 33982 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 33983 else 33984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33985 $as_echo "no" >&6; } 33986 fi 33987 33988 33989 fi 33990 if test -z "$ac_cv_path_TOOLCHAIN_PATH_CC"; then 33991 ac_pt_TOOLCHAIN_PATH_CC=$TOOLCHAIN_PATH_CC 33992 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 33993 set dummy $SEARCH_LIST; ac_word=$2 33994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33995 $as_echo_n "checking for $ac_word... " >&6; } 33996 if ${ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC+:} false; then : 33997 $as_echo_n "(cached) " >&6 33998 else 33999 case $ac_pt_TOOLCHAIN_PATH_CC in 34000 [\\/]* | ?:[\\/]*) 34001 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC="$ac_pt_TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 34002 ;; 34003 *) 34004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34005 for as_dir in $PATH 34006 do 34007 IFS=$as_save_IFS 34008 test -z "$as_dir" && as_dir=. 34009 for ac_exec_ext in '' $ac_executable_extensions; do 34010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34011 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 34012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34013 break 2 34014 fi 34015 done 34016 done 34017 IFS=$as_save_IFS 34018 34019 ;; 34020 esac 34021 fi 34022 ac_pt_TOOLCHAIN_PATH_CC=$ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC 34023 if test -n "$ac_pt_TOOLCHAIN_PATH_CC"; then 34024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_TOOLCHAIN_PATH_CC" >&5 34025 $as_echo "$ac_pt_TOOLCHAIN_PATH_CC" >&6; } 34026 else 34027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34028 $as_echo "no" >&6; } 34029 fi 34030 34031 if test "x$ac_pt_TOOLCHAIN_PATH_CC" = x; then 34032 TOOLCHAIN_PATH_CC="" 34033 else 34034 case $cross_compiling:$ac_tool_warned in 34035 yes:) 34036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 34037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 34038 ac_tool_warned=yes ;; 34039 esac 34040 TOOLCHAIN_PATH_CC=$ac_pt_TOOLCHAIN_PATH_CC 34041 fi 34042 else 34043 TOOLCHAIN_PATH_CC="$ac_cv_path_TOOLCHAIN_PATH_CC" 34044 fi 34045 34046 CC=$TOOLCHAIN_PATH_CC 34047 PATH="$PATH_save" 34048 fi 34049 34050 # AC_PATH_TOOL can't be run multiple times with the same variable, 34051 # so create a new name for this run. 34052 if test "x$CC" = x; then 34053 if test -n "$ac_tool_prefix"; then 34054 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 34055 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 34056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34057 $as_echo_n "checking for $ac_word... " >&6; } 34058 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 34059 $as_echo_n "(cached) " >&6 34060 else 34061 case $POTENTIAL_CC in 34062 [\\/]* | ?:[\\/]*) 34063 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 34064 ;; 34065 *) 34066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34067 for as_dir in $PATH 34068 do 34069 IFS=$as_save_IFS 34070 test -z "$as_dir" && as_dir=. 34071 for ac_exec_ext in '' $ac_executable_extensions; do 34072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34073 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 34074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34075 break 2 34076 fi 34077 done 34078 done 34079 IFS=$as_save_IFS 34080 34081 ;; 34082 esac 34083 fi 34084 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 34085 if test -n "$POTENTIAL_CC"; then 34086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 34087 $as_echo "$POTENTIAL_CC" >&6; } 34088 else 34089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34090 $as_echo "no" >&6; } 34091 fi 34092 34093 34094 fi 34095 if test -z "$ac_cv_path_POTENTIAL_CC"; then 34096 ac_pt_POTENTIAL_CC=$POTENTIAL_CC 34097 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 34098 set dummy $SEARCH_LIST; ac_word=$2 34099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34100 $as_echo_n "checking for $ac_word... " >&6; } 34101 if ${ac_cv_path_ac_pt_POTENTIAL_CC+:} false; then : 34102 $as_echo_n "(cached) " >&6 34103 else 34104 case $ac_pt_POTENTIAL_CC in 34105 [\\/]* | ?:[\\/]*) 34106 ac_cv_path_ac_pt_POTENTIAL_CC="$ac_pt_POTENTIAL_CC" # Let the user override the test with a path. 34107 ;; 34108 *) 34109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34110 for as_dir in $PATH 34111 do 34112 IFS=$as_save_IFS 34113 test -z "$as_dir" && as_dir=. 34114 for ac_exec_ext in '' $ac_executable_extensions; do 34115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34116 ac_cv_path_ac_pt_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 34117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34118 break 2 34119 fi 34120 done 34121 done 34122 IFS=$as_save_IFS 34123 34124 ;; 34125 esac 34126 fi 34127 ac_pt_POTENTIAL_CC=$ac_cv_path_ac_pt_POTENTIAL_CC 34128 if test -n "$ac_pt_POTENTIAL_CC"; then 34129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_POTENTIAL_CC" >&5 34130 $as_echo "$ac_pt_POTENTIAL_CC" >&6; } 34131 else 34132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34133 $as_echo "no" >&6; } 34134 fi 34135 34136 if test "x$ac_pt_POTENTIAL_CC" = x; then 34137 POTENTIAL_CC="" 34138 else 34139 case $cross_compiling:$ac_tool_warned in 34140 yes:) 34141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 34142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 34143 ac_tool_warned=yes ;; 34144 esac 34145 POTENTIAL_CC=$ac_pt_POTENTIAL_CC 34146 fi 34147 else 34148 POTENTIAL_CC="$ac_cv_path_POTENTIAL_CC" 34149 fi 34150 34151 CC=$POTENTIAL_CC 34152 fi 34153 34154 if test "x$CC" = x; then 34155 34156 # Print a helpful message on how to acquire the necessary build dependency. 34157 # devkit is the help tag: freetype, cups, alsa etc 34158 MISSING_DEPENDENCY=devkit 34159 34160 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34161 cygwin_help $MISSING_DEPENDENCY 34162 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34163 msys_help $MISSING_DEPENDENCY 34164 else 34165 PKGHANDLER_COMMAND= 34166 34167 case $PKGHANDLER in 34168 apt-get) 34169 apt_help $MISSING_DEPENDENCY ;; 34170 yum) 34171 yum_help $MISSING_DEPENDENCY ;; 34172 brew) 34173 brew_help $MISSING_DEPENDENCY ;; 34174 port) 34175 port_help $MISSING_DEPENDENCY ;; 34176 pkgutil) 34177 pkgutil_help $MISSING_DEPENDENCY ;; 34178 pkgadd) 34179 pkgadd_help $MISSING_DEPENDENCY ;; 34180 esac 34181 34182 if test "x$PKGHANDLER_COMMAND" != x; then 34183 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 34184 fi 34185 fi 34186 34187 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 34188 fi 34189 fi 34190 34191 # Now we have a compiler binary in CC. Make sure it's okay. 34192 34193 # Only process if variable expands to non-empty 34194 34195 if test "x$CC" != x; then 34196 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34197 34198 # First separate the path from the arguments. This will split at the first 34199 # space. 34200 complete="$CC" 34201 path="${complete%% *}" 34202 tmp="$complete EOL" 34203 arguments="${tmp#* }" 34204 34205 # Input might be given as Windows format, start by converting to 34206 # unix format. 34207 new_path=`$CYGPATH -u "$path"` 34208 34209 # Now try to locate executable using which 34210 new_path=`$WHICH "$new_path" 2> /dev/null` 34211 # bat and cmd files are not always considered executable in cygwin causing which 34212 # to not find them 34213 if test "x$new_path" = x \ 34214 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34215 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34216 new_path=`$CYGPATH -u "$path"` 34217 fi 34218 if test "x$new_path" = x; then 34219 # Oops. Which didn't find the executable. 34220 # The splitting of arguments from the executable at a space might have been incorrect, 34221 # since paths with space are more likely in Windows. Give it another try with the whole 34222 # argument. 34223 path="$complete" 34224 arguments="EOL" 34225 new_path=`$CYGPATH -u "$path"` 34226 new_path=`$WHICH "$new_path" 2> /dev/null` 34227 # bat and cmd files are not always considered executable in cygwin causing which 34228 # to not find them 34229 if test "x$new_path" = x \ 34230 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34231 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34232 new_path=`$CYGPATH -u "$path"` 34233 fi 34234 if test "x$new_path" = x; then 34235 # It's still not found. Now this is an unrecoverable error. 34236 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 34237 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 34238 has_space=`$ECHO "$complete" | $GREP " "` 34239 if test "x$has_space" != x; then 34240 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34241 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34242 fi 34243 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34244 fi 34245 fi 34246 34247 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34248 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34249 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34250 # "foo.exe" is OK but "foo" is an error. 34251 # 34252 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34253 # It is also a way to make sure we got the proper file name for the real test later on. 34254 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34255 if test "x$test_shortpath" = x; then 34256 # Short path failed, file does not exist as specified. 34257 # Try adding .exe or .cmd 34258 if test -f "${new_path}.exe"; then 34259 input_to_shortpath="${new_path}.exe" 34260 elif test -f "${new_path}.cmd"; then 34261 input_to_shortpath="${new_path}.cmd" 34262 else 34263 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 34264 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 34265 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34266 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34267 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34268 fi 34269 else 34270 input_to_shortpath="$new_path" 34271 fi 34272 34273 # Call helper function which possibly converts this using DOS-style short mode. 34274 # If so, the updated path is stored in $new_path. 34275 new_path="$input_to_shortpath" 34276 34277 input_path="$input_to_shortpath" 34278 # Check if we need to convert this using DOS-style short mode. If the path 34279 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34280 # take no chances and rewrite it. 34281 # Note: m4 eats our [], so we need to use [ and ] instead. 34282 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34283 if test "x$has_forbidden_chars" != x; then 34284 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34285 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34286 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34287 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34288 # Going to short mode and back again did indeed matter. Since short mode is 34289 # case insensitive, let's make it lowercase to improve readability. 34290 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34291 # Now convert it back to Unix-style (cygpath) 34292 input_path=`$CYGPATH -u "$shortmode_path"` 34293 new_path="$input_path" 34294 fi 34295 fi 34296 34297 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34298 if test "x$test_cygdrive_prefix" = x; then 34299 # As a simple fix, exclude /usr/bin since it's not a real path. 34300 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34301 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34302 # a path prefixed by /cygdrive for fixpath to work. 34303 new_path="$CYGWIN_ROOT_PATH$input_path" 34304 fi 34305 fi 34306 34307 # remove trailing .exe if any 34308 new_path="${new_path/%.exe/}" 34309 34310 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34311 34312 # First separate the path from the arguments. This will split at the first 34313 # space. 34314 complete="$CC" 34315 path="${complete%% *}" 34316 tmp="$complete EOL" 34317 arguments="${tmp#* }" 34318 34319 # Input might be given as Windows format, start by converting to 34320 # unix format. 34321 new_path="$path" 34322 34323 windows_path="$new_path" 34324 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34325 unix_path=`$CYGPATH -u "$windows_path"` 34326 new_path="$unix_path" 34327 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34328 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34329 new_path="$unix_path" 34330 fi 34331 34332 34333 # Now try to locate executable using which 34334 new_path=`$WHICH "$new_path" 2> /dev/null` 34335 34336 if test "x$new_path" = x; then 34337 # Oops. Which didn't find the executable. 34338 # The splitting of arguments from the executable at a space might have been incorrect, 34339 # since paths with space are more likely in Windows. Give it another try with the whole 34340 # argument. 34341 path="$complete" 34342 arguments="EOL" 34343 new_path="$path" 34344 34345 windows_path="$new_path" 34346 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34347 unix_path=`$CYGPATH -u "$windows_path"` 34348 new_path="$unix_path" 34349 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34350 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34351 new_path="$unix_path" 34352 fi 34353 34354 34355 new_path=`$WHICH "$new_path" 2> /dev/null` 34356 # bat and cmd files are not always considered executable in MSYS causing which 34357 # to not find them 34358 if test "x$new_path" = x \ 34359 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34360 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34361 new_path="$path" 34362 34363 windows_path="$new_path" 34364 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34365 unix_path=`$CYGPATH -u "$windows_path"` 34366 new_path="$unix_path" 34367 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34368 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34369 new_path="$unix_path" 34370 fi 34371 34372 fi 34373 34374 if test "x$new_path" = x; then 34375 # It's still not found. Now this is an unrecoverable error. 34376 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 34377 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 34378 has_space=`$ECHO "$complete" | $GREP " "` 34379 if test "x$has_space" != x; then 34380 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34381 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34382 fi 34383 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34384 fi 34385 fi 34386 34387 # Now new_path has a complete unix path to the binary 34388 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34389 # Keep paths in /bin as-is, but remove trailing .exe if any 34390 new_path="${new_path/%.exe/}" 34391 # Do not save /bin paths to all_fixpath_prefixes! 34392 else 34393 # Not in mixed or Windows style, start by that. 34394 new_path=`cmd //c echo $new_path` 34395 34396 input_path="$new_path" 34397 # Check if we need to convert this using DOS-style short mode. If the path 34398 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34399 # take no chances and rewrite it. 34400 # Note: m4 eats our [], so we need to use [ and ] instead. 34401 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34402 if test "x$has_forbidden_chars" != x; then 34403 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34404 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34405 fi 34406 34407 # Output is in $new_path 34408 34409 windows_path="$new_path" 34410 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34411 unix_path=`$CYGPATH -u "$windows_path"` 34412 new_path="$unix_path" 34413 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34414 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34415 new_path="$unix_path" 34416 fi 34417 34418 # remove trailing .exe if any 34419 new_path="${new_path/%.exe/}" 34420 34421 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34422 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34423 fi 34424 34425 else 34426 # We're on a unix platform. Hooray! :) 34427 # First separate the path from the arguments. This will split at the first 34428 # space. 34429 complete="$CC" 34430 path="${complete%% *}" 34431 tmp="$complete EOL" 34432 arguments="${tmp#* }" 34433 34434 # Cannot rely on the command "which" here since it doesn't always work. 34435 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34436 if test -z "$is_absolute_path"; then 34437 # Path to executable is not absolute. Find it. 34438 IFS_save="$IFS" 34439 IFS=: 34440 for p in $PATH; do 34441 if test -f "$p/$path" && test -x "$p/$path"; then 34442 new_path="$p/$path" 34443 break 34444 fi 34445 done 34446 IFS="$IFS_save" 34447 else 34448 # This is an absolute path, we can use it without further modifications. 34449 new_path="$path" 34450 fi 34451 34452 if test "x$new_path" = x; then 34453 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 34454 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 34455 has_space=`$ECHO "$complete" | $GREP " "` 34456 if test "x$has_space" != x; then 34457 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34458 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34459 fi 34460 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34461 fi 34462 fi 34463 34464 # Now join together the path and the arguments once again 34465 if test "x$arguments" != xEOL; then 34466 new_complete="$new_path ${arguments% *}" 34467 else 34468 new_complete="$new_path" 34469 fi 34470 34471 if test "x$complete" != "x$new_complete"; then 34472 CC="$new_complete" 34473 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 34474 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 34475 fi 34476 fi 34477 34478 TEST_COMPILER="$CC" 34479 34480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 34481 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 34482 SYMLINK_ORIGINAL="$TEST_COMPILER" 34483 34484 if test "x$OPENJDK_BUILD_OS" != xwindows; then 34485 # Follow a chain of symbolic links. Use readlink 34486 # where it exists, else fall back to horribly 34487 # complicated shell code. 34488 if test "x$READLINK_TESTED" != yes; then 34489 # On MacOSX there is a readlink tool with a different 34490 # purpose than the GNU readlink tool. Check the found readlink. 34491 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 34492 if test "x$ISGNU" = x; then 34493 # A readlink that we do not know how to use. 34494 # Are there other non-GNU readlinks out there? 34495 READLINK_TESTED=yes 34496 READLINK= 34497 fi 34498 fi 34499 34500 if test "x$READLINK" != x; then 34501 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 34502 else 34503 # Save the current directory for restoring afterwards 34504 STARTDIR=$PWD 34505 COUNTER=0 34506 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 34507 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 34508 cd $sym_link_dir 34509 # Use -P flag to resolve symlinks in directories. 34510 cd `$THEPWDCMD -P` 34511 sym_link_dir=`$THEPWDCMD -P` 34512 # Resolve file symlinks 34513 while test $COUNTER -lt 20; do 34514 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 34515 if test "x$ISLINK" == x; then 34516 # This is not a symbolic link! We are done! 34517 break 34518 fi 34519 # Again resolve directory symlinks since the target of the just found 34520 # link could be in a different directory 34521 cd `$DIRNAME $ISLINK` 34522 sym_link_dir=`$THEPWDCMD -P` 34523 sym_link_file=`$BASENAME $ISLINK` 34524 let COUNTER=COUNTER+1 34525 done 34526 cd $STARTDIR 34527 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 34528 fi 34529 fi 34530 34531 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 34532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 34533 $as_echo "no symlink" >&6; } 34534 else 34535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 34536 $as_echo "$SYMLINK_ORIGINAL" >&6; } 34537 34538 # We can't handle ccache by gcc wrappers, since we need to know if we're 34539 # using ccache. Instead ccache usage must be controlled by a configure option. 34540 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 34541 if test "x$COMPILER_BASENAME" = "xccache"; then 34542 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 34543 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 34544 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 34545 fi 34546 fi 34547 34548 34549 COMPILER=$CC 34550 COMPILER_NAME=$COMPILER_NAME 34551 34552 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 34553 # cc -V output typically looks like 34554 # cc: Sun C 5.12 Linux_i386 2011/11/16 34555 # or 34556 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 34557 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 34558 # Check that this is likely to be the Solaris Studio cc. 34559 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 34560 if test $? -ne 0; then 34561 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34562 { $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 34563 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34564 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34565 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34566 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34567 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34568 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34569 fi 34570 # Remove usage instructions (if present), and 34571 # collapse compiler output into a single line 34572 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34573 $SED -e 's/ *[Uu]sage:.*//'` 34574 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34575 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 34576 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 34577 # xlc -qversion output typically looks like 34578 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 34579 # Version: 11.01.0000.0015 34580 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 34581 # Check that this is likely to be the IBM XL C compiler. 34582 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 34583 if test $? -ne 0; then 34584 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34585 { $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 34586 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34587 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34588 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34589 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34590 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34591 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34592 fi 34593 # Collapse compiler output into a single line 34594 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34595 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34596 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 34597 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 34598 # There is no specific version flag, but all output starts with a version string. 34599 # First line typically looks something like: 34600 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 34601 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 34602 # Check that this is likely to be Microsoft CL.EXE. 34603 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 34604 if test $? -ne 0; then 34605 { $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 34606 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34607 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34608 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34609 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34610 fi 34611 # Collapse compiler output into a single line 34612 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34613 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34614 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 34615 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 34616 # gcc --version output typically looks like 34617 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 34618 # Copyright (C) 2013 Free Software Foundation, Inc. 34619 # This is free software; see the source for copying conditions. There is NO 34620 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 34621 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34622 # Check that this is likely to be GCC. 34623 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 34624 if test $? -ne 0; then 34625 { $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 34626 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34627 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 34628 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 34629 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34630 fi 34631 # Remove Copyright and legalese from version string, and 34632 # collapse into a single line 34633 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34634 $SED -e 's/ *Copyright .*//'` 34635 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34636 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 34637 elif test "x$TOOLCHAIN_TYPE" = xclang; then 34638 # clang --version output typically looks like 34639 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 34640 # clang version 3.3 (tags/RELEASE_33/final) 34641 # or 34642 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 34643 # Target: x86_64-pc-linux-gnu 34644 # Thread model: posix 34645 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34646 # Check that this is likely to be clang 34647 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 34648 if test $? -ne 0; then 34649 { $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 34650 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34651 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34652 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34653 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34654 fi 34655 # Collapse compiler output into a single line 34656 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34657 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34658 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 34659 else 34660 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 34661 fi 34662 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 34663 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 34664 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 34665 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 34666 34667 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 34668 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 34669 34670 34671 # Now that we have resolved CC ourself, let autoconf have its go at it 34672 ac_ext=c 34673 ac_cpp='$CPP $CPPFLAGS' 34674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34676 ac_compiler_gnu=$ac_cv_c_compiler_gnu 34677 if test -n "$ac_tool_prefix"; then 34678 for ac_prog in $CC 34679 do 34680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 34681 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 34682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34683 $as_echo_n "checking for $ac_word... " >&6; } 34684 if ${ac_cv_prog_CC+:} false; then : 34685 $as_echo_n "(cached) " >&6 34686 else 34687 if test -n "$CC"; then 34688 ac_cv_prog_CC="$CC" # Let the user override the test. 34689 else 34690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34691 for as_dir in $PATH 34692 do 34693 IFS=$as_save_IFS 34694 test -z "$as_dir" && as_dir=. 34695 for ac_exec_ext in '' $ac_executable_extensions; do 34696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34697 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 34698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34699 break 2 34700 fi 34701 done 34702 done 34703 IFS=$as_save_IFS 34704 34705 fi 34706 fi 34707 CC=$ac_cv_prog_CC 34708 if test -n "$CC"; then 34709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 34710 $as_echo "$CC" >&6; } 34711 else 34712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34713 $as_echo "no" >&6; } 34714 fi 34715 34716 34717 test -n "$CC" && break 34718 done 34719 fi 34720 if test -z "$CC"; then 34721 ac_ct_CC=$CC 34722 for ac_prog in $CC 34723 do 34724 # Extract the first word of "$ac_prog", so it can be a program name with args. 34725 set dummy $ac_prog; ac_word=$2 34726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34727 $as_echo_n "checking for $ac_word... " >&6; } 34728 if ${ac_cv_prog_ac_ct_CC+:} false; then : 34729 $as_echo_n "(cached) " >&6 34730 else 34731 if test -n "$ac_ct_CC"; then 34732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 34733 else 34734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34735 for as_dir in $PATH 34736 do 34737 IFS=$as_save_IFS 34738 test -z "$as_dir" && as_dir=. 34739 for ac_exec_ext in '' $ac_executable_extensions; do 34740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34741 ac_cv_prog_ac_ct_CC="$ac_prog" 34742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34743 break 2 34744 fi 34745 done 34746 done 34747 IFS=$as_save_IFS 34748 34749 fi 34750 fi 34751 ac_ct_CC=$ac_cv_prog_ac_ct_CC 34752 if test -n "$ac_ct_CC"; then 34753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 34754 $as_echo "$ac_ct_CC" >&6; } 34755 else 34756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34757 $as_echo "no" >&6; } 34758 fi 34759 34760 34761 test -n "$ac_ct_CC" && break 34762 done 34763 34764 if test "x$ac_ct_CC" = x; then 34765 CC="" 34766 else 34767 case $cross_compiling:$ac_tool_warned in 34768 yes:) 34769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 34770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 34771 ac_tool_warned=yes ;; 34772 esac 34773 CC=$ac_ct_CC 34774 fi 34775 fi 34776 34777 34778 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34780 as_fn_error $? "no acceptable C compiler found in \$PATH 34781 See \`config.log' for more details" "$LINENO" 5; } 34782 34783 # Provide some information about the compiler. 34784 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 34785 set X $ac_compile 34786 ac_compiler=$2 34787 for ac_option in --version -v -V -qversion; do 34788 { { ac_try="$ac_compiler $ac_option >&5" 34789 case "(($ac_try" in 34790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34791 *) ac_try_echo=$ac_try;; 34792 esac 34793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34794 $as_echo "$ac_try_echo"; } >&5 34795 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 34796 ac_status=$? 34797 if test -s conftest.err; then 34798 sed '10a\ 34799 ... rest of stderr output deleted ... 34800 10q' conftest.err >conftest.er1 34801 cat conftest.er1 >&5 34802 fi 34803 rm -f conftest.er1 conftest.err 34804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34805 test $ac_status = 0; } 34806 done 34807 34808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34809 /* end confdefs.h. */ 34810 34811 int 34812 main () 34813 { 34814 34815 ; 34816 return 0; 34817 } 34818 _ACEOF 34819 ac_clean_files_save=$ac_clean_files 34820 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 34821 # Try to create an executable without -o first, disregard a.out. 34822 # It will help us diagnose broken compilers, and finding out an intuition 34823 # of exeext. 34824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 34825 $as_echo_n "checking whether the C compiler works... " >&6; } 34826 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 34827 34828 # The possible output files: 34829 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 34830 34831 ac_rmfiles= 34832 for ac_file in $ac_files 34833 do 34834 case $ac_file in 34835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 34836 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 34837 esac 34838 done 34839 rm -f $ac_rmfiles 34840 34841 if { { ac_try="$ac_link_default" 34842 case "(($ac_try" in 34843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34844 *) ac_try_echo=$ac_try;; 34845 esac 34846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34847 $as_echo "$ac_try_echo"; } >&5 34848 (eval "$ac_link_default") 2>&5 34849 ac_status=$? 34850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34851 test $ac_status = 0; }; then : 34852 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 34853 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 34854 # in a Makefile. We should not override ac_cv_exeext if it was cached, 34855 # so that the user can short-circuit this test for compilers unknown to 34856 # Autoconf. 34857 for ac_file in $ac_files '' 34858 do 34859 test -f "$ac_file" || continue 34860 case $ac_file in 34861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 34862 ;; 34863 [ab].out ) 34864 # We found the default executable, but exeext='' is most 34865 # certainly right. 34866 break;; 34867 *.* ) 34868 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 34869 then :; else 34870 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 34871 fi 34872 # We set ac_cv_exeext here because the later test for it is not 34873 # safe: cross compilers may not add the suffix if given an `-o' 34874 # argument, so we may need to know it at that point already. 34875 # Even if this section looks crufty: it has the advantage of 34876 # actually working. 34877 break;; 34878 * ) 34879 break;; 34880 esac 34881 done 34882 test "$ac_cv_exeext" = no && ac_cv_exeext= 34883 34884 else 34885 ac_file='' 34886 fi 34887 if test -z "$ac_file"; then : 34888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34889 $as_echo "no" >&6; } 34890 $as_echo "$as_me: failed program was:" >&5 34891 sed 's/^/| /' conftest.$ac_ext >&5 34892 34893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34895 as_fn_error 77 "C compiler cannot create executables 34896 See \`config.log' for more details" "$LINENO" 5; } 34897 else 34898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34899 $as_echo "yes" >&6; } 34900 fi 34901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 34902 $as_echo_n "checking for C compiler default output file name... " >&6; } 34903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 34904 $as_echo "$ac_file" >&6; } 34905 ac_exeext=$ac_cv_exeext 34906 34907 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 34908 ac_clean_files=$ac_clean_files_save 34909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 34910 $as_echo_n "checking for suffix of executables... " >&6; } 34911 if { { ac_try="$ac_link" 34912 case "(($ac_try" in 34913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34914 *) ac_try_echo=$ac_try;; 34915 esac 34916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34917 $as_echo "$ac_try_echo"; } >&5 34918 (eval "$ac_link") 2>&5 34919 ac_status=$? 34920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34921 test $ac_status = 0; }; then : 34922 # If both `conftest.exe' and `conftest' are `present' (well, observable) 34923 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 34924 # work properly (i.e., refer to `conftest.exe'), while it won't with 34925 # `rm'. 34926 for ac_file in conftest.exe conftest conftest.*; do 34927 test -f "$ac_file" || continue 34928 case $ac_file in 34929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 34930 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 34931 break;; 34932 * ) break;; 34933 esac 34934 done 34935 else 34936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34938 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 34939 See \`config.log' for more details" "$LINENO" 5; } 34940 fi 34941 rm -f conftest conftest$ac_cv_exeext 34942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 34943 $as_echo "$ac_cv_exeext" >&6; } 34944 34945 rm -f conftest.$ac_ext 34946 EXEEXT=$ac_cv_exeext 34947 ac_exeext=$EXEEXT 34948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34949 /* end confdefs.h. */ 34950 #include <stdio.h> 34951 int 34952 main () 34953 { 34954 FILE *f = fopen ("conftest.out", "w"); 34955 return ferror (f) || fclose (f) != 0; 34956 34957 ; 34958 return 0; 34959 } 34960 _ACEOF 34961 ac_clean_files="$ac_clean_files conftest.out" 34962 # Check that the compiler produces executables we can run. If not, either 34963 # the compiler is broken, or we cross compile. 34964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 34965 $as_echo_n "checking whether we are cross compiling... " >&6; } 34966 if test "$cross_compiling" != yes; then 34967 { { ac_try="$ac_link" 34968 case "(($ac_try" in 34969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34970 *) ac_try_echo=$ac_try;; 34971 esac 34972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34973 $as_echo "$ac_try_echo"; } >&5 34974 (eval "$ac_link") 2>&5 34975 ac_status=$? 34976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34977 test $ac_status = 0; } 34978 if { ac_try='./conftest$ac_cv_exeext' 34979 { { case "(($ac_try" in 34980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34981 *) ac_try_echo=$ac_try;; 34982 esac 34983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34984 $as_echo "$ac_try_echo"; } >&5 34985 (eval "$ac_try") 2>&5 34986 ac_status=$? 34987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34988 test $ac_status = 0; }; }; then 34989 cross_compiling=no 34990 else 34991 if test "$cross_compiling" = maybe; then 34992 cross_compiling=yes 34993 else 34994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34996 as_fn_error $? "cannot run C compiled programs. 34997 If you meant to cross compile, use \`--host'. 34998 See \`config.log' for more details" "$LINENO" 5; } 34999 fi 35000 fi 35001 fi 35002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 35003 $as_echo "$cross_compiling" >&6; } 35004 35005 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 35006 ac_clean_files=$ac_clean_files_save 35007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 35008 $as_echo_n "checking for suffix of object files... " >&6; } 35009 if ${ac_cv_objext+:} false; then : 35010 $as_echo_n "(cached) " >&6 35011 else 35012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35013 /* end confdefs.h. */ 35014 35015 int 35016 main () 35017 { 35018 35019 ; 35020 return 0; 35021 } 35022 _ACEOF 35023 rm -f conftest.o conftest.obj 35024 if { { ac_try="$ac_compile" 35025 case "(($ac_try" in 35026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 35027 *) ac_try_echo=$ac_try;; 35028 esac 35029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 35030 $as_echo "$ac_try_echo"; } >&5 35031 (eval "$ac_compile") 2>&5 35032 ac_status=$? 35033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 35034 test $ac_status = 0; }; then : 35035 for ac_file in conftest.o conftest.obj conftest.*; do 35036 test -f "$ac_file" || continue; 35037 case $ac_file in 35038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 35039 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 35040 break;; 35041 esac 35042 done 35043 else 35044 $as_echo "$as_me: failed program was:" >&5 35045 sed 's/^/| /' conftest.$ac_ext >&5 35046 35047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 35049 as_fn_error $? "cannot compute suffix of object files: cannot compile 35050 See \`config.log' for more details" "$LINENO" 5; } 35051 fi 35052 rm -f conftest.$ac_cv_objext conftest.$ac_ext 35053 fi 35054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 35055 $as_echo "$ac_cv_objext" >&6; } 35056 OBJEXT=$ac_cv_objext 35057 ac_objext=$OBJEXT 35058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 35059 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 35060 if ${ac_cv_c_compiler_gnu+:} false; then : 35061 $as_echo_n "(cached) " >&6 35062 else 35063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35064 /* end confdefs.h. */ 35065 35066 int 35067 main () 35068 { 35069 #ifndef __GNUC__ 35070 choke me 35071 #endif 35072 35073 ; 35074 return 0; 35075 } 35076 _ACEOF 35077 if ac_fn_c_try_compile "$LINENO"; then : 35078 ac_compiler_gnu=yes 35079 else 35080 ac_compiler_gnu=no 35081 fi 35082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35083 ac_cv_c_compiler_gnu=$ac_compiler_gnu 35084 35085 fi 35086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 35087 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 35088 if test $ac_compiler_gnu = yes; then 35089 GCC=yes 35090 else 35091 GCC= 35092 fi 35093 ac_test_CFLAGS=${CFLAGS+set} 35094 ac_save_CFLAGS=$CFLAGS 35095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 35096 $as_echo_n "checking whether $CC accepts -g... " >&6; } 35097 if ${ac_cv_prog_cc_g+:} false; then : 35098 $as_echo_n "(cached) " >&6 35099 else 35100 ac_save_c_werror_flag=$ac_c_werror_flag 35101 ac_c_werror_flag=yes 35102 ac_cv_prog_cc_g=no 35103 CFLAGS="-g" 35104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35105 /* end confdefs.h. */ 35106 35107 int 35108 main () 35109 { 35110 35111 ; 35112 return 0; 35113 } 35114 _ACEOF 35115 if ac_fn_c_try_compile "$LINENO"; then : 35116 ac_cv_prog_cc_g=yes 35117 else 35118 CFLAGS="" 35119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35120 /* end confdefs.h. */ 35121 35122 int 35123 main () 35124 { 35125 35126 ; 35127 return 0; 35128 } 35129 _ACEOF 35130 if ac_fn_c_try_compile "$LINENO"; then : 35131 35132 else 35133 ac_c_werror_flag=$ac_save_c_werror_flag 35134 CFLAGS="-g" 35135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35136 /* end confdefs.h. */ 35137 35138 int 35139 main () 35140 { 35141 35142 ; 35143 return 0; 35144 } 35145 _ACEOF 35146 if ac_fn_c_try_compile "$LINENO"; then : 35147 ac_cv_prog_cc_g=yes 35148 fi 35149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35150 fi 35151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35152 fi 35153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35154 ac_c_werror_flag=$ac_save_c_werror_flag 35155 fi 35156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 35157 $as_echo "$ac_cv_prog_cc_g" >&6; } 35158 if test "$ac_test_CFLAGS" = set; then 35159 CFLAGS=$ac_save_CFLAGS 35160 elif test $ac_cv_prog_cc_g = yes; then 35161 if test "$GCC" = yes; then 35162 CFLAGS="-g -O2" 35163 else 35164 CFLAGS="-g" 35165 fi 35166 else 35167 if test "$GCC" = yes; then 35168 CFLAGS="-O2" 35169 else 35170 CFLAGS= 35171 fi 35172 fi 35173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 35174 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 35175 if ${ac_cv_prog_cc_c89+:} false; then : 35176 $as_echo_n "(cached) " >&6 35177 else 35178 ac_cv_prog_cc_c89=no 35179 ac_save_CC=$CC 35180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35181 /* end confdefs.h. */ 35182 #include <stdarg.h> 35183 #include <stdio.h> 35184 struct stat; 35185 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 35186 struct buf { int x; }; 35187 FILE * (*rcsopen) (struct buf *, struct stat *, int); 35188 static char *e (p, i) 35189 char **p; 35190 int i; 35191 { 35192 return p[i]; 35193 } 35194 static char *f (char * (*g) (char **, int), char **p, ...) 35195 { 35196 char *s; 35197 va_list v; 35198 va_start (v,p); 35199 s = g (p, va_arg (v,int)); 35200 va_end (v); 35201 return s; 35202 } 35203 35204 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 35205 function prototypes and stuff, but not '\xHH' hex character constants. 35206 These don't provoke an error unfortunately, instead are silently treated 35207 as 'x'. The following induces an error, until -std is added to get 35208 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 35209 array size at least. It's necessary to write '\x00'==0 to get something 35210 that's true only with -std. */ 35211 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 35212 35213 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 35214 inside strings and character constants. */ 35215 #define FOO(x) 'x' 35216 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 35217 35218 int test (int i, double x); 35219 struct s1 {int (*f) (int a);}; 35220 struct s2 {int (*f) (double a);}; 35221 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 35222 int argc; 35223 char **argv; 35224 int 35225 main () 35226 { 35227 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 35228 ; 35229 return 0; 35230 } 35231 _ACEOF 35232 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 35233 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 35234 do 35235 CC="$ac_save_CC $ac_arg" 35236 if ac_fn_c_try_compile "$LINENO"; then : 35237 ac_cv_prog_cc_c89=$ac_arg 35238 fi 35239 rm -f core conftest.err conftest.$ac_objext 35240 test "x$ac_cv_prog_cc_c89" != "xno" && break 35241 done 35242 rm -f conftest.$ac_ext 35243 CC=$ac_save_CC 35244 35245 fi 35246 # AC_CACHE_VAL 35247 case "x$ac_cv_prog_cc_c89" in 35248 x) 35249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 35250 $as_echo "none needed" >&6; } ;; 35251 xno) 35252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 35253 $as_echo "unsupported" >&6; } ;; 35254 *) 35255 CC="$CC $ac_cv_prog_cc_c89" 35256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 35257 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 35258 esac 35259 if test "x$ac_cv_prog_cc_c89" != xno; then : 35260 35261 fi 35262 35263 ac_ext=cpp 35264 ac_cpp='$CXXCPP $CPPFLAGS' 35265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35268 35269 35270 35271 COMPILER_NAME=C++ 35272 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 35273 35274 if test "x$CXX" != x; then 35275 # User has supplied compiler name already, always let that override. 35276 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 35277 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 35278 if test "x`basename $CXX`" = "x$CXX"; then 35279 # A command without a complete path is provided, search $PATH. 35280 35281 for ac_prog in $CXX 35282 do 35283 # Extract the first word of "$ac_prog", so it can be a program name with args. 35284 set dummy $ac_prog; ac_word=$2 35285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35286 $as_echo_n "checking for $ac_word... " >&6; } 35287 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 35288 $as_echo_n "(cached) " >&6 35289 else 35290 case $POTENTIAL_CXX in 35291 [\\/]* | ?:[\\/]*) 35292 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 35293 ;; 35294 *) 35295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35296 for as_dir in $PATH 35297 do 35298 IFS=$as_save_IFS 35299 test -z "$as_dir" && as_dir=. 35300 for ac_exec_ext in '' $ac_executable_extensions; do 35301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35302 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 35303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35304 break 2 35305 fi 35306 done 35307 done 35308 IFS=$as_save_IFS 35309 35310 ;; 35311 esac 35312 fi 35313 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 35314 if test -n "$POTENTIAL_CXX"; then 35315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 35316 $as_echo "$POTENTIAL_CXX" >&6; } 35317 else 35318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35319 $as_echo "no" >&6; } 35320 fi 35321 35322 35323 test -n "$POTENTIAL_CXX" && break 35324 done 35325 35326 if test "x$POTENTIAL_CXX" != x; then 35327 CXX=$POTENTIAL_CXX 35328 else 35329 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 35330 fi 35331 else 35332 # Otherwise it might already be a complete path 35333 if test ! -x "$CXX"; then 35334 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 35335 fi 35336 fi 35337 else 35338 # No user supplied value. Locate compiler ourselves. 35339 35340 # If we are cross compiling, assume cross compilation tools follows the 35341 # cross compilation standard where they are prefixed with the autoconf 35342 # standard name for the target. For example the binary 35343 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 35344 # If we are not cross compiling, then the default compiler name will be 35345 # used. 35346 35347 CXX= 35348 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 35349 # before checking the rest of the PATH. 35350 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 35351 # step, this should not be necessary. 35352 if test -n "$TOOLCHAIN_PATH"; then 35353 PATH_save="$PATH" 35354 PATH="$TOOLCHAIN_PATH" 35355 if test -n "$ac_tool_prefix"; then 35356 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 35357 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 35358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35359 $as_echo_n "checking for $ac_word... " >&6; } 35360 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 35361 $as_echo_n "(cached) " >&6 35362 else 35363 case $TOOLCHAIN_PATH_CXX in 35364 [\\/]* | ?:[\\/]*) 35365 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 35366 ;; 35367 *) 35368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35369 for as_dir in $PATH 35370 do 35371 IFS=$as_save_IFS 35372 test -z "$as_dir" && as_dir=. 35373 for ac_exec_ext in '' $ac_executable_extensions; do 35374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35375 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 35376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35377 break 2 35378 fi 35379 done 35380 done 35381 IFS=$as_save_IFS 35382 35383 ;; 35384 esac 35385 fi 35386 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 35387 if test -n "$TOOLCHAIN_PATH_CXX"; then 35388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 35389 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 35390 else 35391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35392 $as_echo "no" >&6; } 35393 fi 35394 35395 35396 fi 35397 if test -z "$ac_cv_path_TOOLCHAIN_PATH_CXX"; then 35398 ac_pt_TOOLCHAIN_PATH_CXX=$TOOLCHAIN_PATH_CXX 35399 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 35400 set dummy $SEARCH_LIST; ac_word=$2 35401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35402 $as_echo_n "checking for $ac_word... " >&6; } 35403 if ${ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX+:} false; then : 35404 $as_echo_n "(cached) " >&6 35405 else 35406 case $ac_pt_TOOLCHAIN_PATH_CXX in 35407 [\\/]* | ?:[\\/]*) 35408 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX="$ac_pt_TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 35409 ;; 35410 *) 35411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35412 for as_dir in $PATH 35413 do 35414 IFS=$as_save_IFS 35415 test -z "$as_dir" && as_dir=. 35416 for ac_exec_ext in '' $ac_executable_extensions; do 35417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35418 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 35419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35420 break 2 35421 fi 35422 done 35423 done 35424 IFS=$as_save_IFS 35425 35426 ;; 35427 esac 35428 fi 35429 ac_pt_TOOLCHAIN_PATH_CXX=$ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX 35430 if test -n "$ac_pt_TOOLCHAIN_PATH_CXX"; then 35431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_TOOLCHAIN_PATH_CXX" >&5 35432 $as_echo "$ac_pt_TOOLCHAIN_PATH_CXX" >&6; } 35433 else 35434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35435 $as_echo "no" >&6; } 35436 fi 35437 35438 if test "x$ac_pt_TOOLCHAIN_PATH_CXX" = x; then 35439 TOOLCHAIN_PATH_CXX="" 35440 else 35441 case $cross_compiling:$ac_tool_warned in 35442 yes:) 35443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35445 ac_tool_warned=yes ;; 35446 esac 35447 TOOLCHAIN_PATH_CXX=$ac_pt_TOOLCHAIN_PATH_CXX 35448 fi 35449 else 35450 TOOLCHAIN_PATH_CXX="$ac_cv_path_TOOLCHAIN_PATH_CXX" 35451 fi 35452 35453 CXX=$TOOLCHAIN_PATH_CXX 35454 PATH="$PATH_save" 35455 fi 35456 35457 # AC_PATH_TOOL can't be run multiple times with the same variable, 35458 # so create a new name for this run. 35459 if test "x$CXX" = x; then 35460 if test -n "$ac_tool_prefix"; then 35461 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 35462 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 35463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35464 $as_echo_n "checking for $ac_word... " >&6; } 35465 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 35466 $as_echo_n "(cached) " >&6 35467 else 35468 case $POTENTIAL_CXX in 35469 [\\/]* | ?:[\\/]*) 35470 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 35471 ;; 35472 *) 35473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35474 for as_dir in $PATH 35475 do 35476 IFS=$as_save_IFS 35477 test -z "$as_dir" && as_dir=. 35478 for ac_exec_ext in '' $ac_executable_extensions; do 35479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35480 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 35481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35482 break 2 35483 fi 35484 done 35485 done 35486 IFS=$as_save_IFS 35487 35488 ;; 35489 esac 35490 fi 35491 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 35492 if test -n "$POTENTIAL_CXX"; then 35493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 35494 $as_echo "$POTENTIAL_CXX" >&6; } 35495 else 35496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35497 $as_echo "no" >&6; } 35498 fi 35499 35500 35501 fi 35502 if test -z "$ac_cv_path_POTENTIAL_CXX"; then 35503 ac_pt_POTENTIAL_CXX=$POTENTIAL_CXX 35504 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 35505 set dummy $SEARCH_LIST; ac_word=$2 35506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35507 $as_echo_n "checking for $ac_word... " >&6; } 35508 if ${ac_cv_path_ac_pt_POTENTIAL_CXX+:} false; then : 35509 $as_echo_n "(cached) " >&6 35510 else 35511 case $ac_pt_POTENTIAL_CXX in 35512 [\\/]* | ?:[\\/]*) 35513 ac_cv_path_ac_pt_POTENTIAL_CXX="$ac_pt_POTENTIAL_CXX" # Let the user override the test with a path. 35514 ;; 35515 *) 35516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35517 for as_dir in $PATH 35518 do 35519 IFS=$as_save_IFS 35520 test -z "$as_dir" && as_dir=. 35521 for ac_exec_ext in '' $ac_executable_extensions; do 35522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35523 ac_cv_path_ac_pt_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 35524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35525 break 2 35526 fi 35527 done 35528 done 35529 IFS=$as_save_IFS 35530 35531 ;; 35532 esac 35533 fi 35534 ac_pt_POTENTIAL_CXX=$ac_cv_path_ac_pt_POTENTIAL_CXX 35535 if test -n "$ac_pt_POTENTIAL_CXX"; then 35536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_POTENTIAL_CXX" >&5 35537 $as_echo "$ac_pt_POTENTIAL_CXX" >&6; } 35538 else 35539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35540 $as_echo "no" >&6; } 35541 fi 35542 35543 if test "x$ac_pt_POTENTIAL_CXX" = x; then 35544 POTENTIAL_CXX="" 35545 else 35546 case $cross_compiling:$ac_tool_warned in 35547 yes:) 35548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35550 ac_tool_warned=yes ;; 35551 esac 35552 POTENTIAL_CXX=$ac_pt_POTENTIAL_CXX 35553 fi 35554 else 35555 POTENTIAL_CXX="$ac_cv_path_POTENTIAL_CXX" 35556 fi 35557 35558 CXX=$POTENTIAL_CXX 35559 fi 35560 35561 if test "x$CXX" = x; then 35562 35563 # Print a helpful message on how to acquire the necessary build dependency. 35564 # devkit is the help tag: freetype, cups, alsa etc 35565 MISSING_DEPENDENCY=devkit 35566 35567 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35568 cygwin_help $MISSING_DEPENDENCY 35569 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35570 msys_help $MISSING_DEPENDENCY 35571 else 35572 PKGHANDLER_COMMAND= 35573 35574 case $PKGHANDLER in 35575 apt-get) 35576 apt_help $MISSING_DEPENDENCY ;; 35577 yum) 35578 yum_help $MISSING_DEPENDENCY ;; 35579 brew) 35580 brew_help $MISSING_DEPENDENCY ;; 35581 port) 35582 port_help $MISSING_DEPENDENCY ;; 35583 pkgutil) 35584 pkgutil_help $MISSING_DEPENDENCY ;; 35585 pkgadd) 35586 pkgadd_help $MISSING_DEPENDENCY ;; 35587 esac 35588 35589 if test "x$PKGHANDLER_COMMAND" != x; then 35590 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 35591 fi 35592 fi 35593 35594 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 35595 fi 35596 fi 35597 35598 # Now we have a compiler binary in CXX. Make sure it's okay. 35599 35600 # Only process if variable expands to non-empty 35601 35602 if test "x$CXX" != x; then 35603 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35604 35605 # First separate the path from the arguments. This will split at the first 35606 # space. 35607 complete="$CXX" 35608 path="${complete%% *}" 35609 tmp="$complete EOL" 35610 arguments="${tmp#* }" 35611 35612 # Input might be given as Windows format, start by converting to 35613 # unix format. 35614 new_path=`$CYGPATH -u "$path"` 35615 35616 # Now try to locate executable using which 35617 new_path=`$WHICH "$new_path" 2> /dev/null` 35618 # bat and cmd files are not always considered executable in cygwin causing which 35619 # to not find them 35620 if test "x$new_path" = x \ 35621 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35622 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35623 new_path=`$CYGPATH -u "$path"` 35624 fi 35625 if test "x$new_path" = x; then 35626 # Oops. Which didn't find the executable. 35627 # The splitting of arguments from the executable at a space might have been incorrect, 35628 # since paths with space are more likely in Windows. Give it another try with the whole 35629 # argument. 35630 path="$complete" 35631 arguments="EOL" 35632 new_path=`$CYGPATH -u "$path"` 35633 new_path=`$WHICH "$new_path" 2> /dev/null` 35634 # bat and cmd files are not always considered executable in cygwin causing which 35635 # to not find them 35636 if test "x$new_path" = x \ 35637 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35638 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35639 new_path=`$CYGPATH -u "$path"` 35640 fi 35641 if test "x$new_path" = x; then 35642 # It's still not found. Now this is an unrecoverable error. 35643 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 35644 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 35645 has_space=`$ECHO "$complete" | $GREP " "` 35646 if test "x$has_space" != x; then 35647 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35648 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35649 fi 35650 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35651 fi 35652 fi 35653 35654 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35655 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35656 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35657 # "foo.exe" is OK but "foo" is an error. 35658 # 35659 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35660 # It is also a way to make sure we got the proper file name for the real test later on. 35661 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35662 if test "x$test_shortpath" = x; then 35663 # Short path failed, file does not exist as specified. 35664 # Try adding .exe or .cmd 35665 if test -f "${new_path}.exe"; then 35666 input_to_shortpath="${new_path}.exe" 35667 elif test -f "${new_path}.cmd"; then 35668 input_to_shortpath="${new_path}.cmd" 35669 else 35670 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 35671 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 35672 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35673 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35674 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35675 fi 35676 else 35677 input_to_shortpath="$new_path" 35678 fi 35679 35680 # Call helper function which possibly converts this using DOS-style short mode. 35681 # If so, the updated path is stored in $new_path. 35682 new_path="$input_to_shortpath" 35683 35684 input_path="$input_to_shortpath" 35685 # Check if we need to convert this using DOS-style short mode. If the path 35686 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35687 # take no chances and rewrite it. 35688 # Note: m4 eats our [], so we need to use [ and ] instead. 35689 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35690 if test "x$has_forbidden_chars" != x; then 35691 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35692 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35693 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35694 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35695 # Going to short mode and back again did indeed matter. Since short mode is 35696 # case insensitive, let's make it lowercase to improve readability. 35697 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35698 # Now convert it back to Unix-style (cygpath) 35699 input_path=`$CYGPATH -u "$shortmode_path"` 35700 new_path="$input_path" 35701 fi 35702 fi 35703 35704 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35705 if test "x$test_cygdrive_prefix" = x; then 35706 # As a simple fix, exclude /usr/bin since it's not a real path. 35707 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35708 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35709 # a path prefixed by /cygdrive for fixpath to work. 35710 new_path="$CYGWIN_ROOT_PATH$input_path" 35711 fi 35712 fi 35713 35714 # remove trailing .exe if any 35715 new_path="${new_path/%.exe/}" 35716 35717 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35718 35719 # First separate the path from the arguments. This will split at the first 35720 # space. 35721 complete="$CXX" 35722 path="${complete%% *}" 35723 tmp="$complete EOL" 35724 arguments="${tmp#* }" 35725 35726 # Input might be given as Windows format, start by converting to 35727 # unix format. 35728 new_path="$path" 35729 35730 windows_path="$new_path" 35731 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35732 unix_path=`$CYGPATH -u "$windows_path"` 35733 new_path="$unix_path" 35734 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35735 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35736 new_path="$unix_path" 35737 fi 35738 35739 35740 # Now try to locate executable using which 35741 new_path=`$WHICH "$new_path" 2> /dev/null` 35742 35743 if test "x$new_path" = x; then 35744 # Oops. Which didn't find the executable. 35745 # The splitting of arguments from the executable at a space might have been incorrect, 35746 # since paths with space are more likely in Windows. Give it another try with the whole 35747 # argument. 35748 path="$complete" 35749 arguments="EOL" 35750 new_path="$path" 35751 35752 windows_path="$new_path" 35753 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35754 unix_path=`$CYGPATH -u "$windows_path"` 35755 new_path="$unix_path" 35756 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35757 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35758 new_path="$unix_path" 35759 fi 35760 35761 35762 new_path=`$WHICH "$new_path" 2> /dev/null` 35763 # bat and cmd files are not always considered executable in MSYS causing which 35764 # to not find them 35765 if test "x$new_path" = x \ 35766 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35767 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35768 new_path="$path" 35769 35770 windows_path="$new_path" 35771 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35772 unix_path=`$CYGPATH -u "$windows_path"` 35773 new_path="$unix_path" 35774 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35775 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35776 new_path="$unix_path" 35777 fi 35778 35779 fi 35780 35781 if test "x$new_path" = x; then 35782 # It's still not found. Now this is an unrecoverable error. 35783 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 35784 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 35785 has_space=`$ECHO "$complete" | $GREP " "` 35786 if test "x$has_space" != x; then 35787 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35788 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35789 fi 35790 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35791 fi 35792 fi 35793 35794 # Now new_path has a complete unix path to the binary 35795 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35796 # Keep paths in /bin as-is, but remove trailing .exe if any 35797 new_path="${new_path/%.exe/}" 35798 # Do not save /bin paths to all_fixpath_prefixes! 35799 else 35800 # Not in mixed or Windows style, start by that. 35801 new_path=`cmd //c echo $new_path` 35802 35803 input_path="$new_path" 35804 # Check if we need to convert this using DOS-style short mode. If the path 35805 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35806 # take no chances and rewrite it. 35807 # Note: m4 eats our [], so we need to use [ and ] instead. 35808 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35809 if test "x$has_forbidden_chars" != x; then 35810 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35811 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35812 fi 35813 35814 # Output is in $new_path 35815 35816 windows_path="$new_path" 35817 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35818 unix_path=`$CYGPATH -u "$windows_path"` 35819 new_path="$unix_path" 35820 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35821 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35822 new_path="$unix_path" 35823 fi 35824 35825 # remove trailing .exe if any 35826 new_path="${new_path/%.exe/}" 35827 35828 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35829 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35830 fi 35831 35832 else 35833 # We're on a unix platform. Hooray! :) 35834 # First separate the path from the arguments. This will split at the first 35835 # space. 35836 complete="$CXX" 35837 path="${complete%% *}" 35838 tmp="$complete EOL" 35839 arguments="${tmp#* }" 35840 35841 # Cannot rely on the command "which" here since it doesn't always work. 35842 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35843 if test -z "$is_absolute_path"; then 35844 # Path to executable is not absolute. Find it. 35845 IFS_save="$IFS" 35846 IFS=: 35847 for p in $PATH; do 35848 if test -f "$p/$path" && test -x "$p/$path"; then 35849 new_path="$p/$path" 35850 break 35851 fi 35852 done 35853 IFS="$IFS_save" 35854 else 35855 # This is an absolute path, we can use it without further modifications. 35856 new_path="$path" 35857 fi 35858 35859 if test "x$new_path" = x; then 35860 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 35861 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 35862 has_space=`$ECHO "$complete" | $GREP " "` 35863 if test "x$has_space" != x; then 35864 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35865 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35866 fi 35867 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35868 fi 35869 fi 35870 35871 # Now join together the path and the arguments once again 35872 if test "x$arguments" != xEOL; then 35873 new_complete="$new_path ${arguments% *}" 35874 else 35875 new_complete="$new_path" 35876 fi 35877 35878 if test "x$complete" != "x$new_complete"; then 35879 CXX="$new_complete" 35880 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 35881 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 35882 fi 35883 fi 35884 35885 TEST_COMPILER="$CXX" 35886 35887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 35888 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 35889 SYMLINK_ORIGINAL="$TEST_COMPILER" 35890 35891 if test "x$OPENJDK_BUILD_OS" != xwindows; then 35892 # Follow a chain of symbolic links. Use readlink 35893 # where it exists, else fall back to horribly 35894 # complicated shell code. 35895 if test "x$READLINK_TESTED" != yes; then 35896 # On MacOSX there is a readlink tool with a different 35897 # purpose than the GNU readlink tool. Check the found readlink. 35898 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 35899 if test "x$ISGNU" = x; then 35900 # A readlink that we do not know how to use. 35901 # Are there other non-GNU readlinks out there? 35902 READLINK_TESTED=yes 35903 READLINK= 35904 fi 35905 fi 35906 35907 if test "x$READLINK" != x; then 35908 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 35909 else 35910 # Save the current directory for restoring afterwards 35911 STARTDIR=$PWD 35912 COUNTER=0 35913 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 35914 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 35915 cd $sym_link_dir 35916 # Use -P flag to resolve symlinks in directories. 35917 cd `$THEPWDCMD -P` 35918 sym_link_dir=`$THEPWDCMD -P` 35919 # Resolve file symlinks 35920 while test $COUNTER -lt 20; do 35921 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 35922 if test "x$ISLINK" == x; then 35923 # This is not a symbolic link! We are done! 35924 break 35925 fi 35926 # Again resolve directory symlinks since the target of the just found 35927 # link could be in a different directory 35928 cd `$DIRNAME $ISLINK` 35929 sym_link_dir=`$THEPWDCMD -P` 35930 sym_link_file=`$BASENAME $ISLINK` 35931 let COUNTER=COUNTER+1 35932 done 35933 cd $STARTDIR 35934 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 35935 fi 35936 fi 35937 35938 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 35939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 35940 $as_echo "no symlink" >&6; } 35941 else 35942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 35943 $as_echo "$SYMLINK_ORIGINAL" >&6; } 35944 35945 # We can't handle ccache by gcc wrappers, since we need to know if we're 35946 # using ccache. Instead ccache usage must be controlled by a configure option. 35947 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 35948 if test "x$COMPILER_BASENAME" = "xccache"; then 35949 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 35950 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 35951 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 35952 fi 35953 fi 35954 35955 35956 COMPILER=$CXX 35957 COMPILER_NAME=$COMPILER_NAME 35958 35959 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 35960 # cc -V output typically looks like 35961 # cc: Sun C 5.12 Linux_i386 2011/11/16 35962 # or 35963 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 35964 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 35965 # Check that this is likely to be the Solaris Studio cc. 35966 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 35967 if test $? -ne 0; then 35968 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35969 { $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 35970 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35971 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35972 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35973 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 35974 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 35975 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35976 fi 35977 # Remove usage instructions (if present), and 35978 # collapse compiler output into a single line 35979 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35980 $SED -e 's/ *[Uu]sage:.*//'` 35981 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35982 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 35983 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 35984 # xlc -qversion output typically looks like 35985 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 35986 # Version: 11.01.0000.0015 35987 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 35988 # Check that this is likely to be the IBM XL C compiler. 35989 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 35990 if test $? -ne 0; then 35991 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35992 { $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 35993 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35994 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35995 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35996 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 35997 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 35998 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35999 fi 36000 # Collapse compiler output into a single line 36001 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 36002 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 36003 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 36004 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 36005 # There is no specific version flag, but all output starts with a version string. 36006 # First line typically looks something like: 36007 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 36008 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 36009 # Check that this is likely to be Microsoft CL.EXE. 36010 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 36011 if test $? -ne 0; then 36012 { $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 36013 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 36014 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 36015 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 36016 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 36017 fi 36018 # Collapse compiler output into a single line 36019 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 36020 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 36021 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 36022 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 36023 # gcc --version output typically looks like 36024 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 36025 # Copyright (C) 2013 Free Software Foundation, Inc. 36026 # This is free software; see the source for copying conditions. There is NO 36027 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 36028 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 36029 # Check that this is likely to be GCC. 36030 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 36031 if test $? -ne 0; then 36032 { $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 36033 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 36034 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 36035 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 36036 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 36037 fi 36038 # Remove Copyright and legalese from version string, and 36039 # collapse into a single line 36040 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 36041 $SED -e 's/ *Copyright .*//'` 36042 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 36043 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 36044 elif test "x$TOOLCHAIN_TYPE" = xclang; then 36045 # clang --version output typically looks like 36046 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 36047 # clang version 3.3 (tags/RELEASE_33/final) 36048 # or 36049 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 36050 # Target: x86_64-pc-linux-gnu 36051 # Thread model: posix 36052 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 36053 # Check that this is likely to be clang 36054 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 36055 if test $? -ne 0; then 36056 { $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 36057 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 36058 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 36059 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 36060 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 36061 fi 36062 # Collapse compiler output into a single line 36063 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 36064 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 36065 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 36066 else 36067 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 36068 fi 36069 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 36070 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 36071 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 36072 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 36073 36074 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 36075 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 36076 36077 36078 # Now that we have resolved CXX ourself, let autoconf have its go at it 36079 ac_ext=cpp 36080 ac_cpp='$CXXCPP $CPPFLAGS' 36081 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36082 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36083 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36084 if test -z "$CXX"; then 36085 if test -n "$CCC"; then 36086 CXX=$CCC 36087 else 36088 if test -n "$ac_tool_prefix"; then 36089 for ac_prog in $CXX 36090 do 36091 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36092 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36094 $as_echo_n "checking for $ac_word... " >&6; } 36095 if ${ac_cv_prog_CXX+:} false; then : 36096 $as_echo_n "(cached) " >&6 36097 else 36098 if test -n "$CXX"; then 36099 ac_cv_prog_CXX="$CXX" # Let the user override the test. 36100 else 36101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36102 for as_dir in $PATH 36103 do 36104 IFS=$as_save_IFS 36105 test -z "$as_dir" && as_dir=. 36106 for ac_exec_ext in '' $ac_executable_extensions; do 36107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36108 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 36109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36110 break 2 36111 fi 36112 done 36113 done 36114 IFS=$as_save_IFS 36115 36116 fi 36117 fi 36118 CXX=$ac_cv_prog_CXX 36119 if test -n "$CXX"; then 36120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 36121 $as_echo "$CXX" >&6; } 36122 else 36123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36124 $as_echo "no" >&6; } 36125 fi 36126 36127 36128 test -n "$CXX" && break 36129 done 36130 fi 36131 if test -z "$CXX"; then 36132 ac_ct_CXX=$CXX 36133 for ac_prog in $CXX 36134 do 36135 # Extract the first word of "$ac_prog", so it can be a program name with args. 36136 set dummy $ac_prog; ac_word=$2 36137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36138 $as_echo_n "checking for $ac_word... " >&6; } 36139 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 36140 $as_echo_n "(cached) " >&6 36141 else 36142 if test -n "$ac_ct_CXX"; then 36143 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 36144 else 36145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36146 for as_dir in $PATH 36147 do 36148 IFS=$as_save_IFS 36149 test -z "$as_dir" && as_dir=. 36150 for ac_exec_ext in '' $ac_executable_extensions; do 36151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36152 ac_cv_prog_ac_ct_CXX="$ac_prog" 36153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36154 break 2 36155 fi 36156 done 36157 done 36158 IFS=$as_save_IFS 36159 36160 fi 36161 fi 36162 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 36163 if test -n "$ac_ct_CXX"; then 36164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 36165 $as_echo "$ac_ct_CXX" >&6; } 36166 else 36167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36168 $as_echo "no" >&6; } 36169 fi 36170 36171 36172 test -n "$ac_ct_CXX" && break 36173 done 36174 36175 if test "x$ac_ct_CXX" = x; then 36176 CXX="g++" 36177 else 36178 case $cross_compiling:$ac_tool_warned in 36179 yes:) 36180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36182 ac_tool_warned=yes ;; 36183 esac 36184 CXX=$ac_ct_CXX 36185 fi 36186 fi 36187 36188 fi 36189 fi 36190 # Provide some information about the compiler. 36191 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 36192 set X $ac_compile 36193 ac_compiler=$2 36194 for ac_option in --version -v -V -qversion; do 36195 { { ac_try="$ac_compiler $ac_option >&5" 36196 case "(($ac_try" in 36197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 36198 *) ac_try_echo=$ac_try;; 36199 esac 36200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 36201 $as_echo "$ac_try_echo"; } >&5 36202 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 36203 ac_status=$? 36204 if test -s conftest.err; then 36205 sed '10a\ 36206 ... rest of stderr output deleted ... 36207 10q' conftest.err >conftest.er1 36208 cat conftest.er1 >&5 36209 fi 36210 rm -f conftest.er1 conftest.err 36211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 36212 test $ac_status = 0; } 36213 done 36214 36215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 36216 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 36217 if ${ac_cv_cxx_compiler_gnu+:} false; then : 36218 $as_echo_n "(cached) " >&6 36219 else 36220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36221 /* end confdefs.h. */ 36222 36223 int 36224 main () 36225 { 36226 #ifndef __GNUC__ 36227 choke me 36228 #endif 36229 36230 ; 36231 return 0; 36232 } 36233 _ACEOF 36234 if ac_fn_cxx_try_compile "$LINENO"; then : 36235 ac_compiler_gnu=yes 36236 else 36237 ac_compiler_gnu=no 36238 fi 36239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36240 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 36241 36242 fi 36243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 36244 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 36245 if test $ac_compiler_gnu = yes; then 36246 GXX=yes 36247 else 36248 GXX= 36249 fi 36250 ac_test_CXXFLAGS=${CXXFLAGS+set} 36251 ac_save_CXXFLAGS=$CXXFLAGS 36252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 36253 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 36254 if ${ac_cv_prog_cxx_g+:} false; then : 36255 $as_echo_n "(cached) " >&6 36256 else 36257 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 36258 ac_cxx_werror_flag=yes 36259 ac_cv_prog_cxx_g=no 36260 CXXFLAGS="-g" 36261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36262 /* end confdefs.h. */ 36263 36264 int 36265 main () 36266 { 36267 36268 ; 36269 return 0; 36270 } 36271 _ACEOF 36272 if ac_fn_cxx_try_compile "$LINENO"; then : 36273 ac_cv_prog_cxx_g=yes 36274 else 36275 CXXFLAGS="" 36276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36277 /* end confdefs.h. */ 36278 36279 int 36280 main () 36281 { 36282 36283 ; 36284 return 0; 36285 } 36286 _ACEOF 36287 if ac_fn_cxx_try_compile "$LINENO"; then : 36288 36289 else 36290 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 36291 CXXFLAGS="-g" 36292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36293 /* end confdefs.h. */ 36294 36295 int 36296 main () 36297 { 36298 36299 ; 36300 return 0; 36301 } 36302 _ACEOF 36303 if ac_fn_cxx_try_compile "$LINENO"; then : 36304 ac_cv_prog_cxx_g=yes 36305 fi 36306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36307 fi 36308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36309 fi 36310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36311 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 36312 fi 36313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 36314 $as_echo "$ac_cv_prog_cxx_g" >&6; } 36315 if test "$ac_test_CXXFLAGS" = set; then 36316 CXXFLAGS=$ac_save_CXXFLAGS 36317 elif test $ac_cv_prog_cxx_g = yes; then 36318 if test "$GXX" = yes; then 36319 CXXFLAGS="-g -O2" 36320 else 36321 CXXFLAGS="-g" 36322 fi 36323 else 36324 if test "$GXX" = yes; then 36325 CXXFLAGS="-O2" 36326 else 36327 CXXFLAGS= 36328 fi 36329 fi 36330 ac_ext=cpp 36331 ac_cpp='$CXXCPP $CPPFLAGS' 36332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36335 36336 36337 # This is the compiler version number on the form X.Y[.Z] 36338 36339 36340 36341 36342 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 36343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 36344 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 36345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 36346 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 36347 fi 36348 36349 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 36350 if [[ "[$]CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 36351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&5 36352 $as_echo "$as_me: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 36353 fi 36354 36355 if [[ "[$]CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 36356 { $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 36357 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 36358 fi 36359 36360 COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$CC_VERSION_NUMBER"` 36361 36362 36363 if test "x$TOOLCHAIN_MINIMUM_VERSION" != x; then 36364 36365 36366 36367 36368 36369 36370 36371 36372 36373 36374 36375 36376 36377 36378 36379 36380 36381 36382 36383 36384 36385 36386 36387 36388 36389 36390 36391 36392 36393 36394 36395 36396 36397 36398 36399 36400 36401 36402 36403 36404 36405 36406 36407 36408 36409 36410 36411 36412 36413 # Execute function body 36414 36415 # Need to assign to a variable since m4 is blocked from modifying parts in []. 36416 REFERENCE_VERSION=$TOOLCHAIN_MINIMUM_VERSION 36417 36418 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 36419 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 36420 fi 36421 36422 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 36423 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only parts < 99999 is supported" "$LINENO" 5 36424 fi 36425 36426 # Version comparison method inspired by http://stackoverflow.com/a/24067243 36427 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 36428 36429 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 36430 : 36431 36432 else 36433 : 36434 36435 { $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 36436 $as_echo "$as_me: WARNING: You are using $TOOLCHAIN_TYPE older than $TOOLCHAIN_MINIMUM_VERSION. This is not a supported configuration." >&2;} 36437 36438 36439 fi 36440 36441 36442 36443 36444 36445 36446 36447 36448 36449 36450 36451 36452 36453 36454 fi 36455 36456 # 36457 # Setup the preprocessor (CPP and CXXCPP) 36458 # 36459 ac_ext=c 36460 ac_cpp='$CPP $CPPFLAGS' 36461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36463 ac_compiler_gnu=$ac_cv_c_compiler_gnu 36464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 36465 $as_echo_n "checking how to run the C preprocessor... " >&6; } 36466 # On Suns, sometimes $CPP names a directory. 36467 if test -n "$CPP" && test -d "$CPP"; then 36468 CPP= 36469 fi 36470 if test -z "$CPP"; then 36471 if ${ac_cv_prog_CPP+:} false; then : 36472 $as_echo_n "(cached) " >&6 36473 else 36474 # Double quotes because CPP needs to be expanded 36475 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 36476 do 36477 ac_preproc_ok=false 36478 for ac_c_preproc_warn_flag in '' yes 36479 do 36480 # Use a header file that comes with gcc, so configuring glibc 36481 # with a fresh cross-compiler works. 36482 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36483 # <limits.h> exists even on freestanding compilers. 36484 # On the NeXT, cc -E runs the code through the compiler's parser, 36485 # not just through cpp. "Syntax error" is here to catch this case. 36486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36487 /* end confdefs.h. */ 36488 #ifdef __STDC__ 36489 # include <limits.h> 36490 #else 36491 # include <assert.h> 36492 #endif 36493 Syntax error 36494 _ACEOF 36495 if ac_fn_c_try_cpp "$LINENO"; then : 36496 36497 else 36498 # Broken: fails on valid input. 36499 continue 36500 fi 36501 rm -f conftest.err conftest.i conftest.$ac_ext 36502 36503 # OK, works on sane cases. Now check whether nonexistent headers 36504 # can be detected and how. 36505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36506 /* end confdefs.h. */ 36507 #include <ac_nonexistent.h> 36508 _ACEOF 36509 if ac_fn_c_try_cpp "$LINENO"; then : 36510 # Broken: success on invalid input. 36511 continue 36512 else 36513 # Passes both tests. 36514 ac_preproc_ok=: 36515 break 36516 fi 36517 rm -f conftest.err conftest.i conftest.$ac_ext 36518 36519 done 36520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36521 rm -f conftest.i conftest.err conftest.$ac_ext 36522 if $ac_preproc_ok; then : 36523 break 36524 fi 36525 36526 done 36527 ac_cv_prog_CPP=$CPP 36528 36529 fi 36530 CPP=$ac_cv_prog_CPP 36531 else 36532 ac_cv_prog_CPP=$CPP 36533 fi 36534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 36535 $as_echo "$CPP" >&6; } 36536 ac_preproc_ok=false 36537 for ac_c_preproc_warn_flag in '' yes 36538 do 36539 # Use a header file that comes with gcc, so configuring glibc 36540 # with a fresh cross-compiler works. 36541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36542 # <limits.h> exists even on freestanding compilers. 36543 # On the NeXT, cc -E runs the code through the compiler's parser, 36544 # not just through cpp. "Syntax error" is here to catch this case. 36545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36546 /* end confdefs.h. */ 36547 #ifdef __STDC__ 36548 # include <limits.h> 36549 #else 36550 # include <assert.h> 36551 #endif 36552 Syntax error 36553 _ACEOF 36554 if ac_fn_c_try_cpp "$LINENO"; then : 36555 36556 else 36557 # Broken: fails on valid input. 36558 continue 36559 fi 36560 rm -f conftest.err conftest.i conftest.$ac_ext 36561 36562 # OK, works on sane cases. Now check whether nonexistent headers 36563 # can be detected and how. 36564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36565 /* end confdefs.h. */ 36566 #include <ac_nonexistent.h> 36567 _ACEOF 36568 if ac_fn_c_try_cpp "$LINENO"; then : 36569 # Broken: success on invalid input. 36570 continue 36571 else 36572 # Passes both tests. 36573 ac_preproc_ok=: 36574 break 36575 fi 36576 rm -f conftest.err conftest.i conftest.$ac_ext 36577 36578 done 36579 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36580 rm -f conftest.i conftest.err conftest.$ac_ext 36581 if $ac_preproc_ok; then : 36582 36583 else 36584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 36585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 36586 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 36587 See \`config.log' for more details" "$LINENO" 5; } 36588 fi 36589 36590 ac_ext=cpp 36591 ac_cpp='$CXXCPP $CPPFLAGS' 36592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36595 36596 36597 # Only process if variable expands to non-empty 36598 36599 if test "x$CPP" != x; then 36600 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36601 36602 # First separate the path from the arguments. This will split at the first 36603 # space. 36604 complete="$CPP" 36605 path="${complete%% *}" 36606 tmp="$complete EOL" 36607 arguments="${tmp#* }" 36608 36609 # Input might be given as Windows format, start by converting to 36610 # unix format. 36611 new_path=`$CYGPATH -u "$path"` 36612 36613 # Now try to locate executable using which 36614 new_path=`$WHICH "$new_path" 2> /dev/null` 36615 # bat and cmd files are not always considered executable in cygwin causing which 36616 # to not find them 36617 if test "x$new_path" = x \ 36618 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36619 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36620 new_path=`$CYGPATH -u "$path"` 36621 fi 36622 if test "x$new_path" = x; then 36623 # Oops. Which didn't find the executable. 36624 # The splitting of arguments from the executable at a space might have been incorrect, 36625 # since paths with space are more likely in Windows. Give it another try with the whole 36626 # argument. 36627 path="$complete" 36628 arguments="EOL" 36629 new_path=`$CYGPATH -u "$path"` 36630 new_path=`$WHICH "$new_path" 2> /dev/null` 36631 # bat and cmd files are not always considered executable in cygwin causing which 36632 # to not find them 36633 if test "x$new_path" = x \ 36634 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36635 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36636 new_path=`$CYGPATH -u "$path"` 36637 fi 36638 if test "x$new_path" = x; then 36639 # It's still not found. Now this is an unrecoverable error. 36640 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 36641 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 36642 has_space=`$ECHO "$complete" | $GREP " "` 36643 if test "x$has_space" != x; then 36644 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36645 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36646 fi 36647 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36648 fi 36649 fi 36650 36651 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36652 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36653 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36654 # "foo.exe" is OK but "foo" is an error. 36655 # 36656 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36657 # It is also a way to make sure we got the proper file name for the real test later on. 36658 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36659 if test "x$test_shortpath" = x; then 36660 # Short path failed, file does not exist as specified. 36661 # Try adding .exe or .cmd 36662 if test -f "${new_path}.exe"; then 36663 input_to_shortpath="${new_path}.exe" 36664 elif test -f "${new_path}.cmd"; then 36665 input_to_shortpath="${new_path}.cmd" 36666 else 36667 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 36668 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 36669 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36670 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36671 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36672 fi 36673 else 36674 input_to_shortpath="$new_path" 36675 fi 36676 36677 # Call helper function which possibly converts this using DOS-style short mode. 36678 # If so, the updated path is stored in $new_path. 36679 new_path="$input_to_shortpath" 36680 36681 input_path="$input_to_shortpath" 36682 # Check if we need to convert this using DOS-style short mode. If the path 36683 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36684 # take no chances and rewrite it. 36685 # Note: m4 eats our [], so we need to use [ and ] instead. 36686 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36687 if test "x$has_forbidden_chars" != x; then 36688 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36689 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36690 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36691 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36692 # Going to short mode and back again did indeed matter. Since short mode is 36693 # case insensitive, let's make it lowercase to improve readability. 36694 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36695 # Now convert it back to Unix-style (cygpath) 36696 input_path=`$CYGPATH -u "$shortmode_path"` 36697 new_path="$input_path" 36698 fi 36699 fi 36700 36701 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36702 if test "x$test_cygdrive_prefix" = x; then 36703 # As a simple fix, exclude /usr/bin since it's not a real path. 36704 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36705 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36706 # a path prefixed by /cygdrive for fixpath to work. 36707 new_path="$CYGWIN_ROOT_PATH$input_path" 36708 fi 36709 fi 36710 36711 # remove trailing .exe if any 36712 new_path="${new_path/%.exe/}" 36713 36714 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36715 36716 # First separate the path from the arguments. This will split at the first 36717 # space. 36718 complete="$CPP" 36719 path="${complete%% *}" 36720 tmp="$complete EOL" 36721 arguments="${tmp#* }" 36722 36723 # Input might be given as Windows format, start by converting to 36724 # unix format. 36725 new_path="$path" 36726 36727 windows_path="$new_path" 36728 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36729 unix_path=`$CYGPATH -u "$windows_path"` 36730 new_path="$unix_path" 36731 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36732 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36733 new_path="$unix_path" 36734 fi 36735 36736 36737 # Now try to locate executable using which 36738 new_path=`$WHICH "$new_path" 2> /dev/null` 36739 36740 if test "x$new_path" = x; then 36741 # Oops. Which didn't find the executable. 36742 # The splitting of arguments from the executable at a space might have been incorrect, 36743 # since paths with space are more likely in Windows. Give it another try with the whole 36744 # argument. 36745 path="$complete" 36746 arguments="EOL" 36747 new_path="$path" 36748 36749 windows_path="$new_path" 36750 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36751 unix_path=`$CYGPATH -u "$windows_path"` 36752 new_path="$unix_path" 36753 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36754 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36755 new_path="$unix_path" 36756 fi 36757 36758 36759 new_path=`$WHICH "$new_path" 2> /dev/null` 36760 # bat and cmd files are not always considered executable in MSYS causing which 36761 # to not find them 36762 if test "x$new_path" = x \ 36763 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36764 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36765 new_path="$path" 36766 36767 windows_path="$new_path" 36768 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36769 unix_path=`$CYGPATH -u "$windows_path"` 36770 new_path="$unix_path" 36771 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36772 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36773 new_path="$unix_path" 36774 fi 36775 36776 fi 36777 36778 if test "x$new_path" = x; then 36779 # It's still not found. Now this is an unrecoverable error. 36780 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 36781 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 36782 has_space=`$ECHO "$complete" | $GREP " "` 36783 if test "x$has_space" != x; then 36784 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36785 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36786 fi 36787 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36788 fi 36789 fi 36790 36791 # Now new_path has a complete unix path to the binary 36792 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36793 # Keep paths in /bin as-is, but remove trailing .exe if any 36794 new_path="${new_path/%.exe/}" 36795 # Do not save /bin paths to all_fixpath_prefixes! 36796 else 36797 # Not in mixed or Windows style, start by that. 36798 new_path=`cmd //c echo $new_path` 36799 36800 input_path="$new_path" 36801 # Check if we need to convert this using DOS-style short mode. If the path 36802 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36803 # take no chances and rewrite it. 36804 # Note: m4 eats our [], so we need to use [ and ] instead. 36805 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36806 if test "x$has_forbidden_chars" != x; then 36807 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36808 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36809 fi 36810 36811 # Output is in $new_path 36812 36813 windows_path="$new_path" 36814 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36815 unix_path=`$CYGPATH -u "$windows_path"` 36816 new_path="$unix_path" 36817 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36818 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36819 new_path="$unix_path" 36820 fi 36821 36822 # remove trailing .exe if any 36823 new_path="${new_path/%.exe/}" 36824 36825 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36826 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36827 fi 36828 36829 else 36830 # We're on a unix platform. Hooray! :) 36831 # First separate the path from the arguments. This will split at the first 36832 # space. 36833 complete="$CPP" 36834 path="${complete%% *}" 36835 tmp="$complete EOL" 36836 arguments="${tmp#* }" 36837 36838 # Cannot rely on the command "which" here since it doesn't always work. 36839 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36840 if test -z "$is_absolute_path"; then 36841 # Path to executable is not absolute. Find it. 36842 IFS_save="$IFS" 36843 IFS=: 36844 for p in $PATH; do 36845 if test -f "$p/$path" && test -x "$p/$path"; then 36846 new_path="$p/$path" 36847 break 36848 fi 36849 done 36850 IFS="$IFS_save" 36851 else 36852 # This is an absolute path, we can use it without further modifications. 36853 new_path="$path" 36854 fi 36855 36856 if test "x$new_path" = x; then 36857 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 36858 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 36859 has_space=`$ECHO "$complete" | $GREP " "` 36860 if test "x$has_space" != x; then 36861 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36862 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36863 fi 36864 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36865 fi 36866 fi 36867 36868 # Now join together the path and the arguments once again 36869 if test "x$arguments" != xEOL; then 36870 new_complete="$new_path ${arguments% *}" 36871 else 36872 new_complete="$new_path" 36873 fi 36874 36875 if test "x$complete" != "x$new_complete"; then 36876 CPP="$new_complete" 36877 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 36878 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 36879 fi 36880 fi 36881 36882 ac_ext=cpp 36883 ac_cpp='$CXXCPP $CPPFLAGS' 36884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 36888 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 36889 if test -z "$CXXCPP"; then 36890 if ${ac_cv_prog_CXXCPP+:} false; then : 36891 $as_echo_n "(cached) " >&6 36892 else 36893 # Double quotes because CXXCPP needs to be expanded 36894 for CXXCPP in "$CXX -E" "/lib/cpp" 36895 do 36896 ac_preproc_ok=false 36897 for ac_cxx_preproc_warn_flag in '' yes 36898 do 36899 # Use a header file that comes with gcc, so configuring glibc 36900 # with a fresh cross-compiler works. 36901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36902 # <limits.h> exists even on freestanding compilers. 36903 # On the NeXT, cc -E runs the code through the compiler's parser, 36904 # not just through cpp. "Syntax error" is here to catch this case. 36905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36906 /* end confdefs.h. */ 36907 #ifdef __STDC__ 36908 # include <limits.h> 36909 #else 36910 # include <assert.h> 36911 #endif 36912 Syntax error 36913 _ACEOF 36914 if ac_fn_cxx_try_cpp "$LINENO"; then : 36915 36916 else 36917 # Broken: fails on valid input. 36918 continue 36919 fi 36920 rm -f conftest.err conftest.i conftest.$ac_ext 36921 36922 # OK, works on sane cases. Now check whether nonexistent headers 36923 # can be detected and how. 36924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36925 /* end confdefs.h. */ 36926 #include <ac_nonexistent.h> 36927 _ACEOF 36928 if ac_fn_cxx_try_cpp "$LINENO"; then : 36929 # Broken: success on invalid input. 36930 continue 36931 else 36932 # Passes both tests. 36933 ac_preproc_ok=: 36934 break 36935 fi 36936 rm -f conftest.err conftest.i conftest.$ac_ext 36937 36938 done 36939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36940 rm -f conftest.i conftest.err conftest.$ac_ext 36941 if $ac_preproc_ok; then : 36942 break 36943 fi 36944 36945 done 36946 ac_cv_prog_CXXCPP=$CXXCPP 36947 36948 fi 36949 CXXCPP=$ac_cv_prog_CXXCPP 36950 else 36951 ac_cv_prog_CXXCPP=$CXXCPP 36952 fi 36953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 36954 $as_echo "$CXXCPP" >&6; } 36955 ac_preproc_ok=false 36956 for ac_cxx_preproc_warn_flag in '' yes 36957 do 36958 # Use a header file that comes with gcc, so configuring glibc 36959 # with a fresh cross-compiler works. 36960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36961 # <limits.h> exists even on freestanding compilers. 36962 # On the NeXT, cc -E runs the code through the compiler's parser, 36963 # not just through cpp. "Syntax error" is here to catch this case. 36964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36965 /* end confdefs.h. */ 36966 #ifdef __STDC__ 36967 # include <limits.h> 36968 #else 36969 # include <assert.h> 36970 #endif 36971 Syntax error 36972 _ACEOF 36973 if ac_fn_cxx_try_cpp "$LINENO"; then : 36974 36975 else 36976 # Broken: fails on valid input. 36977 continue 36978 fi 36979 rm -f conftest.err conftest.i conftest.$ac_ext 36980 36981 # OK, works on sane cases. Now check whether nonexistent headers 36982 # can be detected and how. 36983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36984 /* end confdefs.h. */ 36985 #include <ac_nonexistent.h> 36986 _ACEOF 36987 if ac_fn_cxx_try_cpp "$LINENO"; then : 36988 # Broken: success on invalid input. 36989 continue 36990 else 36991 # Passes both tests. 36992 ac_preproc_ok=: 36993 break 36994 fi 36995 rm -f conftest.err conftest.i conftest.$ac_ext 36996 36997 done 36998 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36999 rm -f conftest.i conftest.err conftest.$ac_ext 37000 if $ac_preproc_ok; then : 37001 37002 else 37003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 37004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 37005 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 37006 See \`config.log' for more details" "$LINENO" 5; } 37007 fi 37008 37009 ac_ext=cpp 37010 ac_cpp='$CXXCPP $CPPFLAGS' 37011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 37012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 37013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 37014 37015 37016 # Only process if variable expands to non-empty 37017 37018 if test "x$CXXCPP" != x; then 37019 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37020 37021 # First separate the path from the arguments. This will split at the first 37022 # space. 37023 complete="$CXXCPP" 37024 path="${complete%% *}" 37025 tmp="$complete EOL" 37026 arguments="${tmp#* }" 37027 37028 # Input might be given as Windows format, start by converting to 37029 # unix format. 37030 new_path=`$CYGPATH -u "$path"` 37031 37032 # Now try to locate executable using which 37033 new_path=`$WHICH "$new_path" 2> /dev/null` 37034 # bat and cmd files are not always considered executable in cygwin causing which 37035 # to not find them 37036 if test "x$new_path" = x \ 37037 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37038 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37039 new_path=`$CYGPATH -u "$path"` 37040 fi 37041 if test "x$new_path" = x; then 37042 # Oops. Which didn't find the executable. 37043 # The splitting of arguments from the executable at a space might have been incorrect, 37044 # since paths with space are more likely in Windows. Give it another try with the whole 37045 # argument. 37046 path="$complete" 37047 arguments="EOL" 37048 new_path=`$CYGPATH -u "$path"` 37049 new_path=`$WHICH "$new_path" 2> /dev/null` 37050 # bat and cmd files are not always considered executable in cygwin causing which 37051 # to not find them 37052 if test "x$new_path" = x \ 37053 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37054 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37055 new_path=`$CYGPATH -u "$path"` 37056 fi 37057 if test "x$new_path" = x; then 37058 # It's still not found. Now this is an unrecoverable error. 37059 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 37060 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 37061 has_space=`$ECHO "$complete" | $GREP " "` 37062 if test "x$has_space" != x; then 37063 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37064 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37065 fi 37066 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 37067 fi 37068 fi 37069 37070 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37071 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37072 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37073 # "foo.exe" is OK but "foo" is an error. 37074 # 37075 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37076 # It is also a way to make sure we got the proper file name for the real test later on. 37077 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37078 if test "x$test_shortpath" = x; then 37079 # Short path failed, file does not exist as specified. 37080 # Try adding .exe or .cmd 37081 if test -f "${new_path}.exe"; then 37082 input_to_shortpath="${new_path}.exe" 37083 elif test -f "${new_path}.cmd"; then 37084 input_to_shortpath="${new_path}.cmd" 37085 else 37086 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 37087 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 37088 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37089 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37090 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 37091 fi 37092 else 37093 input_to_shortpath="$new_path" 37094 fi 37095 37096 # Call helper function which possibly converts this using DOS-style short mode. 37097 # If so, the updated path is stored in $new_path. 37098 new_path="$input_to_shortpath" 37099 37100 input_path="$input_to_shortpath" 37101 # Check if we need to convert this using DOS-style short mode. If the path 37102 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37103 # take no chances and rewrite it. 37104 # Note: m4 eats our [], so we need to use [ and ] instead. 37105 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37106 if test "x$has_forbidden_chars" != x; then 37107 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37108 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37109 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37110 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37111 # Going to short mode and back again did indeed matter. Since short mode is 37112 # case insensitive, let's make it lowercase to improve readability. 37113 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37114 # Now convert it back to Unix-style (cygpath) 37115 input_path=`$CYGPATH -u "$shortmode_path"` 37116 new_path="$input_path" 37117 fi 37118 fi 37119 37120 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37121 if test "x$test_cygdrive_prefix" = x; then 37122 # As a simple fix, exclude /usr/bin since it's not a real path. 37123 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37124 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37125 # a path prefixed by /cygdrive for fixpath to work. 37126 new_path="$CYGWIN_ROOT_PATH$input_path" 37127 fi 37128 fi 37129 37130 # remove trailing .exe if any 37131 new_path="${new_path/%.exe/}" 37132 37133 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37134 37135 # First separate the path from the arguments. This will split at the first 37136 # space. 37137 complete="$CXXCPP" 37138 path="${complete%% *}" 37139 tmp="$complete EOL" 37140 arguments="${tmp#* }" 37141 37142 # Input might be given as Windows format, start by converting to 37143 # unix format. 37144 new_path="$path" 37145 37146 windows_path="$new_path" 37147 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37148 unix_path=`$CYGPATH -u "$windows_path"` 37149 new_path="$unix_path" 37150 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37151 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37152 new_path="$unix_path" 37153 fi 37154 37155 37156 # Now try to locate executable using which 37157 new_path=`$WHICH "$new_path" 2> /dev/null` 37158 37159 if test "x$new_path" = x; then 37160 # Oops. Which didn't find the executable. 37161 # The splitting of arguments from the executable at a space might have been incorrect, 37162 # since paths with space are more likely in Windows. Give it another try with the whole 37163 # argument. 37164 path="$complete" 37165 arguments="EOL" 37166 new_path="$path" 37167 37168 windows_path="$new_path" 37169 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37170 unix_path=`$CYGPATH -u "$windows_path"` 37171 new_path="$unix_path" 37172 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37173 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37174 new_path="$unix_path" 37175 fi 37176 37177 37178 new_path=`$WHICH "$new_path" 2> /dev/null` 37179 # bat and cmd files are not always considered executable in MSYS causing which 37180 # to not find them 37181 if test "x$new_path" = x \ 37182 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37183 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37184 new_path="$path" 37185 37186 windows_path="$new_path" 37187 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37188 unix_path=`$CYGPATH -u "$windows_path"` 37189 new_path="$unix_path" 37190 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37191 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37192 new_path="$unix_path" 37193 fi 37194 37195 fi 37196 37197 if test "x$new_path" = x; then 37198 # It's still not found. Now this is an unrecoverable error. 37199 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 37200 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 37201 has_space=`$ECHO "$complete" | $GREP " "` 37202 if test "x$has_space" != x; then 37203 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37204 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37205 fi 37206 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 37207 fi 37208 fi 37209 37210 # Now new_path has a complete unix path to the binary 37211 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37212 # Keep paths in /bin as-is, but remove trailing .exe if any 37213 new_path="${new_path/%.exe/}" 37214 # Do not save /bin paths to all_fixpath_prefixes! 37215 else 37216 # Not in mixed or Windows style, start by that. 37217 new_path=`cmd //c echo $new_path` 37218 37219 input_path="$new_path" 37220 # Check if we need to convert this using DOS-style short mode. If the path 37221 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37222 # take no chances and rewrite it. 37223 # Note: m4 eats our [], so we need to use [ and ] instead. 37224 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37225 if test "x$has_forbidden_chars" != x; then 37226 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37227 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37228 fi 37229 37230 # Output is in $new_path 37231 37232 windows_path="$new_path" 37233 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37234 unix_path=`$CYGPATH -u "$windows_path"` 37235 new_path="$unix_path" 37236 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37237 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37238 new_path="$unix_path" 37239 fi 37240 37241 # remove trailing .exe if any 37242 new_path="${new_path/%.exe/}" 37243 37244 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37245 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37246 fi 37247 37248 else 37249 # We're on a unix platform. Hooray! :) 37250 # First separate the path from the arguments. This will split at the first 37251 # space. 37252 complete="$CXXCPP" 37253 path="${complete%% *}" 37254 tmp="$complete EOL" 37255 arguments="${tmp#* }" 37256 37257 # Cannot rely on the command "which" here since it doesn't always work. 37258 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37259 if test -z "$is_absolute_path"; then 37260 # Path to executable is not absolute. Find it. 37261 IFS_save="$IFS" 37262 IFS=: 37263 for p in $PATH; do 37264 if test -f "$p/$path" && test -x "$p/$path"; then 37265 new_path="$p/$path" 37266 break 37267 fi 37268 done 37269 IFS="$IFS_save" 37270 else 37271 # This is an absolute path, we can use it without further modifications. 37272 new_path="$path" 37273 fi 37274 37275 if test "x$new_path" = x; then 37276 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 37277 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 37278 has_space=`$ECHO "$complete" | $GREP " "` 37279 if test "x$has_space" != x; then 37280 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37281 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37282 fi 37283 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 37284 fi 37285 fi 37286 37287 # Now join together the path and the arguments once again 37288 if test "x$arguments" != xEOL; then 37289 new_complete="$new_path ${arguments% *}" 37290 else 37291 new_complete="$new_path" 37292 fi 37293 37294 if test "x$complete" != "x$new_complete"; then 37295 CXXCPP="$new_complete" 37296 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 37297 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 37298 fi 37299 fi 37300 37301 37302 # 37303 # Setup the linker (LD) 37304 # 37305 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 37306 # In the Microsoft toolchain we have a separate LD command "link". 37307 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 37308 # a cygwin program for something completely different. 37309 # Extract the first word of "link", so it can be a program name with args. 37310 set dummy link; ac_word=$2 37311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37312 $as_echo_n "checking for $ac_word... " >&6; } 37313 if ${ac_cv_prog_LD+:} false; then : 37314 $as_echo_n "(cached) " >&6 37315 else 37316 if test -n "$LD"; then 37317 ac_cv_prog_LD="$LD" # Let the user override the test. 37318 else 37319 ac_prog_rejected=no 37320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37321 for as_dir in $PATH 37322 do 37323 IFS=$as_save_IFS 37324 test -z "$as_dir" && as_dir=. 37325 for ac_exec_ext in '' $ac_executable_extensions; do 37326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37327 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 37328 ac_prog_rejected=yes 37329 continue 37330 fi 37331 ac_cv_prog_LD="link" 37332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37333 break 2 37334 fi 37335 done 37336 done 37337 IFS=$as_save_IFS 37338 37339 if test $ac_prog_rejected = yes; then 37340 # We found a bogon in the path, so make sure we never use it. 37341 set dummy $ac_cv_prog_LD 37342 shift 37343 if test $# != 0; then 37344 # We chose a different compiler from the bogus one. 37345 # However, it has the same basename, so the bogon will be chosen 37346 # first if we set LD to just the basename; use the full file name. 37347 shift 37348 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 37349 fi 37350 fi 37351 fi 37352 fi 37353 LD=$ac_cv_prog_LD 37354 if test -n "$LD"; then 37355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 37356 $as_echo "$LD" >&6; } 37357 else 37358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37359 $as_echo "no" >&6; } 37360 fi 37361 37362 37363 37364 # Only process if variable expands to non-empty 37365 37366 if test "x$LD" != x; then 37367 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37368 37369 # First separate the path from the arguments. This will split at the first 37370 # space. 37371 complete="$LD" 37372 path="${complete%% *}" 37373 tmp="$complete EOL" 37374 arguments="${tmp#* }" 37375 37376 # Input might be given as Windows format, start by converting to 37377 # unix format. 37378 new_path=`$CYGPATH -u "$path"` 37379 37380 # Now try to locate executable using which 37381 new_path=`$WHICH "$new_path" 2> /dev/null` 37382 # bat and cmd files are not always considered executable in cygwin causing which 37383 # to not find them 37384 if test "x$new_path" = x \ 37385 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37386 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37387 new_path=`$CYGPATH -u "$path"` 37388 fi 37389 if test "x$new_path" = x; then 37390 # Oops. Which didn't find the executable. 37391 # The splitting of arguments from the executable at a space might have been incorrect, 37392 # since paths with space are more likely in Windows. Give it another try with the whole 37393 # argument. 37394 path="$complete" 37395 arguments="EOL" 37396 new_path=`$CYGPATH -u "$path"` 37397 new_path=`$WHICH "$new_path" 2> /dev/null` 37398 # bat and cmd files are not always considered executable in cygwin causing which 37399 # to not find them 37400 if test "x$new_path" = x \ 37401 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37402 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37403 new_path=`$CYGPATH -u "$path"` 37404 fi 37405 if test "x$new_path" = x; then 37406 # It's still not found. Now this is an unrecoverable error. 37407 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 37408 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 37409 has_space=`$ECHO "$complete" | $GREP " "` 37410 if test "x$has_space" != x; then 37411 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37412 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37413 fi 37414 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37415 fi 37416 fi 37417 37418 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37419 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37420 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37421 # "foo.exe" is OK but "foo" is an error. 37422 # 37423 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37424 # It is also a way to make sure we got the proper file name for the real test later on. 37425 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37426 if test "x$test_shortpath" = x; then 37427 # Short path failed, file does not exist as specified. 37428 # Try adding .exe or .cmd 37429 if test -f "${new_path}.exe"; then 37430 input_to_shortpath="${new_path}.exe" 37431 elif test -f "${new_path}.cmd"; then 37432 input_to_shortpath="${new_path}.cmd" 37433 else 37434 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 37435 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 37436 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37437 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37438 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37439 fi 37440 else 37441 input_to_shortpath="$new_path" 37442 fi 37443 37444 # Call helper function which possibly converts this using DOS-style short mode. 37445 # If so, the updated path is stored in $new_path. 37446 new_path="$input_to_shortpath" 37447 37448 input_path="$input_to_shortpath" 37449 # Check if we need to convert this using DOS-style short mode. If the path 37450 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37451 # take no chances and rewrite it. 37452 # Note: m4 eats our [], so we need to use [ and ] instead. 37453 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37454 if test "x$has_forbidden_chars" != x; then 37455 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37456 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37457 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37458 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37459 # Going to short mode and back again did indeed matter. Since short mode is 37460 # case insensitive, let's make it lowercase to improve readability. 37461 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37462 # Now convert it back to Unix-style (cygpath) 37463 input_path=`$CYGPATH -u "$shortmode_path"` 37464 new_path="$input_path" 37465 fi 37466 fi 37467 37468 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37469 if test "x$test_cygdrive_prefix" = x; then 37470 # As a simple fix, exclude /usr/bin since it's not a real path. 37471 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37472 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37473 # a path prefixed by /cygdrive for fixpath to work. 37474 new_path="$CYGWIN_ROOT_PATH$input_path" 37475 fi 37476 fi 37477 37478 # remove trailing .exe if any 37479 new_path="${new_path/%.exe/}" 37480 37481 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37482 37483 # First separate the path from the arguments. This will split at the first 37484 # space. 37485 complete="$LD" 37486 path="${complete%% *}" 37487 tmp="$complete EOL" 37488 arguments="${tmp#* }" 37489 37490 # Input might be given as Windows format, start by converting to 37491 # unix format. 37492 new_path="$path" 37493 37494 windows_path="$new_path" 37495 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37496 unix_path=`$CYGPATH -u "$windows_path"` 37497 new_path="$unix_path" 37498 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37499 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37500 new_path="$unix_path" 37501 fi 37502 37503 37504 # Now try to locate executable using which 37505 new_path=`$WHICH "$new_path" 2> /dev/null` 37506 37507 if test "x$new_path" = x; then 37508 # Oops. Which didn't find the executable. 37509 # The splitting of arguments from the executable at a space might have been incorrect, 37510 # since paths with space are more likely in Windows. Give it another try with the whole 37511 # argument. 37512 path="$complete" 37513 arguments="EOL" 37514 new_path="$path" 37515 37516 windows_path="$new_path" 37517 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37518 unix_path=`$CYGPATH -u "$windows_path"` 37519 new_path="$unix_path" 37520 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37521 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37522 new_path="$unix_path" 37523 fi 37524 37525 37526 new_path=`$WHICH "$new_path" 2> /dev/null` 37527 # bat and cmd files are not always considered executable in MSYS causing which 37528 # to not find them 37529 if test "x$new_path" = x \ 37530 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37531 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37532 new_path="$path" 37533 37534 windows_path="$new_path" 37535 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37536 unix_path=`$CYGPATH -u "$windows_path"` 37537 new_path="$unix_path" 37538 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37539 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37540 new_path="$unix_path" 37541 fi 37542 37543 fi 37544 37545 if test "x$new_path" = x; then 37546 # It's still not found. Now this is an unrecoverable error. 37547 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 37548 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 37549 has_space=`$ECHO "$complete" | $GREP " "` 37550 if test "x$has_space" != x; then 37551 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37552 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37553 fi 37554 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37555 fi 37556 fi 37557 37558 # Now new_path has a complete unix path to the binary 37559 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37560 # Keep paths in /bin as-is, but remove trailing .exe if any 37561 new_path="${new_path/%.exe/}" 37562 # Do not save /bin paths to all_fixpath_prefixes! 37563 else 37564 # Not in mixed or Windows style, start by that. 37565 new_path=`cmd //c echo $new_path` 37566 37567 input_path="$new_path" 37568 # Check if we need to convert this using DOS-style short mode. If the path 37569 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37570 # take no chances and rewrite it. 37571 # Note: m4 eats our [], so we need to use [ and ] instead. 37572 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37573 if test "x$has_forbidden_chars" != x; then 37574 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37575 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37576 fi 37577 37578 # Output is in $new_path 37579 37580 windows_path="$new_path" 37581 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37582 unix_path=`$CYGPATH -u "$windows_path"` 37583 new_path="$unix_path" 37584 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37585 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37586 new_path="$unix_path" 37587 fi 37588 37589 # remove trailing .exe if any 37590 new_path="${new_path/%.exe/}" 37591 37592 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37593 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37594 fi 37595 37596 else 37597 # We're on a unix platform. Hooray! :) 37598 # First separate the path from the arguments. This will split at the first 37599 # space. 37600 complete="$LD" 37601 path="${complete%% *}" 37602 tmp="$complete EOL" 37603 arguments="${tmp#* }" 37604 37605 # Cannot rely on the command "which" here since it doesn't always work. 37606 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37607 if test -z "$is_absolute_path"; then 37608 # Path to executable is not absolute. Find it. 37609 IFS_save="$IFS" 37610 IFS=: 37611 for p in $PATH; do 37612 if test -f "$p/$path" && test -x "$p/$path"; then 37613 new_path="$p/$path" 37614 break 37615 fi 37616 done 37617 IFS="$IFS_save" 37618 else 37619 # This is an absolute path, we can use it without further modifications. 37620 new_path="$path" 37621 fi 37622 37623 if test "x$new_path" = x; then 37624 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 37625 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 37626 has_space=`$ECHO "$complete" | $GREP " "` 37627 if test "x$has_space" != x; then 37628 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37629 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37630 fi 37631 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37632 fi 37633 fi 37634 37635 # Now join together the path and the arguments once again 37636 if test "x$arguments" != xEOL; then 37637 new_complete="$new_path ${arguments% *}" 37638 else 37639 new_complete="$new_path" 37640 fi 37641 37642 if test "x$complete" != "x$new_complete"; then 37643 LD="$new_complete" 37644 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 37645 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 37646 fi 37647 fi 37648 37649 # Verify that we indeed succeeded with this trick. 37650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 37651 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 37652 "$LD" --version > /dev/null 37653 if test $? -eq 0 ; then 37654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37655 $as_echo "no" >&6; } 37656 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 37657 else 37658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37659 $as_echo "yes" >&6; } 37660 fi 37661 LDCXX="$LD" 37662 else 37663 # All other toolchains use the compiler to link. 37664 LD="$CC" 37665 LDCXX="$CXX" 37666 fi 37667 37668 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 37669 37670 37671 # 37672 # Setup the assembler (AS) 37673 # 37674 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 37675 37676 37677 # Publish this variable in the help. 37678 37679 37680 if [ -z "${AS+x}" ]; then 37681 # The variable is not set by user, try to locate tool using the code snippet 37682 for ac_prog in as 37683 do 37684 # Extract the first word of "$ac_prog", so it can be a program name with args. 37685 set dummy $ac_prog; ac_word=$2 37686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37687 $as_echo_n "checking for $ac_word... " >&6; } 37688 if ${ac_cv_path_AS+:} false; then : 37689 $as_echo_n "(cached) " >&6 37690 else 37691 case $AS in 37692 [\\/]* | ?:[\\/]*) 37693 ac_cv_path_AS="$AS" # Let the user override the test with a path. 37694 ;; 37695 *) 37696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37697 for as_dir in $PATH 37698 do 37699 IFS=$as_save_IFS 37700 test -z "$as_dir" && as_dir=. 37701 for ac_exec_ext in '' $ac_executable_extensions; do 37702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37703 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 37704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37705 break 2 37706 fi 37707 done 37708 done 37709 IFS=$as_save_IFS 37710 37711 ;; 37712 esac 37713 fi 37714 AS=$ac_cv_path_AS 37715 if test -n "$AS"; then 37716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 37717 $as_echo "$AS" >&6; } 37718 else 37719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37720 $as_echo "no" >&6; } 37721 fi 37722 37723 37724 test -n "$AS" && break 37725 done 37726 37727 else 37728 # The variable is set, but is it from the command line or the environment? 37729 37730 # Try to remove the string !AS! from our list. 37731 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 37732 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37733 # If it failed, the variable was not from the command line. Ignore it, 37734 # but warn the user (except for BASH, which is always set by the calling BASH). 37735 if test "xAS" != xBASH; then 37736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 37737 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 37738 fi 37739 # Try to locate tool using the code snippet 37740 for ac_prog in as 37741 do 37742 # Extract the first word of "$ac_prog", so it can be a program name with args. 37743 set dummy $ac_prog; ac_word=$2 37744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37745 $as_echo_n "checking for $ac_word... " >&6; } 37746 if ${ac_cv_path_AS+:} false; then : 37747 $as_echo_n "(cached) " >&6 37748 else 37749 case $AS in 37750 [\\/]* | ?:[\\/]*) 37751 ac_cv_path_AS="$AS" # Let the user override the test with a path. 37752 ;; 37753 *) 37754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37755 for as_dir in $PATH 37756 do 37757 IFS=$as_save_IFS 37758 test -z "$as_dir" && as_dir=. 37759 for ac_exec_ext in '' $ac_executable_extensions; do 37760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37761 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 37762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37763 break 2 37764 fi 37765 done 37766 done 37767 IFS=$as_save_IFS 37768 37769 ;; 37770 esac 37771 fi 37772 AS=$ac_cv_path_AS 37773 if test -n "$AS"; then 37774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 37775 $as_echo "$AS" >&6; } 37776 else 37777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37778 $as_echo "no" >&6; } 37779 fi 37780 37781 37782 test -n "$AS" && break 37783 done 37784 37785 else 37786 # If it succeeded, then it was overridden by the user. We will use it 37787 # for the tool. 37788 37789 # First remove it from the list of overridden variables, so we can test 37790 # for unknown variables in the end. 37791 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37792 37793 # Check if we try to supply an empty value 37794 if test "x$AS" = x; then 37795 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AS= (no value)" >&5 37796 $as_echo "$as_me: Setting user supplied tool AS= (no value)" >&6;} 37797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 37798 $as_echo_n "checking for AS... " >&6; } 37799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 37800 $as_echo "disabled" >&6; } 37801 else 37802 # Check if the provided tool contains a complete path. 37803 tool_specified="$AS" 37804 tool_basename="${tool_specified##*/}" 37805 if test "x$tool_basename" = "x$tool_specified"; then 37806 # A command without a complete path is provided, search $PATH. 37807 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 37808 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 37809 # Extract the first word of "$tool_basename", so it can be a program name with args. 37810 set dummy $tool_basename; ac_word=$2 37811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37812 $as_echo_n "checking for $ac_word... " >&6; } 37813 if ${ac_cv_path_AS+:} false; then : 37814 $as_echo_n "(cached) " >&6 37815 else 37816 case $AS in 37817 [\\/]* | ?:[\\/]*) 37818 ac_cv_path_AS="$AS" # Let the user override the test with a path. 37819 ;; 37820 *) 37821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37822 for as_dir in $PATH 37823 do 37824 IFS=$as_save_IFS 37825 test -z "$as_dir" && as_dir=. 37826 for ac_exec_ext in '' $ac_executable_extensions; do 37827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37828 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 37829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37830 break 2 37831 fi 37832 done 37833 done 37834 IFS=$as_save_IFS 37835 37836 ;; 37837 esac 37838 fi 37839 AS=$ac_cv_path_AS 37840 if test -n "$AS"; then 37841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 37842 $as_echo "$AS" >&6; } 37843 else 37844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37845 $as_echo "no" >&6; } 37846 fi 37847 37848 37849 if test "x$AS" = x; then 37850 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37851 fi 37852 else 37853 # Otherwise we believe it is a complete path. Use it as it is. 37854 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 37855 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 37856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 37857 $as_echo_n "checking for AS... " >&6; } 37858 if test ! -x "$tool_specified"; then 37859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37860 $as_echo "not found" >&6; } 37861 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 37862 fi 37863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37864 $as_echo "$tool_specified" >&6; } 37865 fi 37866 fi 37867 fi 37868 37869 fi 37870 37871 37872 37873 # Only process if variable expands to non-empty 37874 37875 if test "x$AS" != x; then 37876 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37877 37878 # First separate the path from the arguments. This will split at the first 37879 # space. 37880 complete="$AS" 37881 path="${complete%% *}" 37882 tmp="$complete EOL" 37883 arguments="${tmp#* }" 37884 37885 # Input might be given as Windows format, start by converting to 37886 # unix format. 37887 new_path=`$CYGPATH -u "$path"` 37888 37889 # Now try to locate executable using which 37890 new_path=`$WHICH "$new_path" 2> /dev/null` 37891 # bat and cmd files are not always considered executable in cygwin causing which 37892 # to not find them 37893 if test "x$new_path" = x \ 37894 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37895 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37896 new_path=`$CYGPATH -u "$path"` 37897 fi 37898 if test "x$new_path" = x; then 37899 # Oops. Which didn't find the executable. 37900 # The splitting of arguments from the executable at a space might have been incorrect, 37901 # since paths with space are more likely in Windows. Give it another try with the whole 37902 # argument. 37903 path="$complete" 37904 arguments="EOL" 37905 new_path=`$CYGPATH -u "$path"` 37906 new_path=`$WHICH "$new_path" 2> /dev/null` 37907 # bat and cmd files are not always considered executable in cygwin causing which 37908 # to not find them 37909 if test "x$new_path" = x \ 37910 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37911 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37912 new_path=`$CYGPATH -u "$path"` 37913 fi 37914 if test "x$new_path" = x; then 37915 # It's still not found. Now this is an unrecoverable error. 37916 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 37917 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 37918 has_space=`$ECHO "$complete" | $GREP " "` 37919 if test "x$has_space" != x; then 37920 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37921 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37922 fi 37923 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37924 fi 37925 fi 37926 37927 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37928 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37929 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37930 # "foo.exe" is OK but "foo" is an error. 37931 # 37932 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37933 # It is also a way to make sure we got the proper file name for the real test later on. 37934 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37935 if test "x$test_shortpath" = x; then 37936 # Short path failed, file does not exist as specified. 37937 # Try adding .exe or .cmd 37938 if test -f "${new_path}.exe"; then 37939 input_to_shortpath="${new_path}.exe" 37940 elif test -f "${new_path}.cmd"; then 37941 input_to_shortpath="${new_path}.cmd" 37942 else 37943 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 37944 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 37945 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37946 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37947 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37948 fi 37949 else 37950 input_to_shortpath="$new_path" 37951 fi 37952 37953 # Call helper function which possibly converts this using DOS-style short mode. 37954 # If so, the updated path is stored in $new_path. 37955 new_path="$input_to_shortpath" 37956 37957 input_path="$input_to_shortpath" 37958 # Check if we need to convert this using DOS-style short mode. If the path 37959 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37960 # take no chances and rewrite it. 37961 # Note: m4 eats our [], so we need to use [ and ] instead. 37962 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37963 if test "x$has_forbidden_chars" != x; then 37964 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37965 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37966 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37967 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37968 # Going to short mode and back again did indeed matter. Since short mode is 37969 # case insensitive, let's make it lowercase to improve readability. 37970 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37971 # Now convert it back to Unix-style (cygpath) 37972 input_path=`$CYGPATH -u "$shortmode_path"` 37973 new_path="$input_path" 37974 fi 37975 fi 37976 37977 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37978 if test "x$test_cygdrive_prefix" = x; then 37979 # As a simple fix, exclude /usr/bin since it's not a real path. 37980 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37981 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37982 # a path prefixed by /cygdrive for fixpath to work. 37983 new_path="$CYGWIN_ROOT_PATH$input_path" 37984 fi 37985 fi 37986 37987 # remove trailing .exe if any 37988 new_path="${new_path/%.exe/}" 37989 37990 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37991 37992 # First separate the path from the arguments. This will split at the first 37993 # space. 37994 complete="$AS" 37995 path="${complete%% *}" 37996 tmp="$complete EOL" 37997 arguments="${tmp#* }" 37998 37999 # Input might be given as Windows format, start by converting to 38000 # unix format. 38001 new_path="$path" 38002 38003 windows_path="$new_path" 38004 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38005 unix_path=`$CYGPATH -u "$windows_path"` 38006 new_path="$unix_path" 38007 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38008 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38009 new_path="$unix_path" 38010 fi 38011 38012 38013 # Now try to locate executable using which 38014 new_path=`$WHICH "$new_path" 2> /dev/null` 38015 38016 if test "x$new_path" = x; then 38017 # Oops. Which didn't find the executable. 38018 # The splitting of arguments from the executable at a space might have been incorrect, 38019 # since paths with space are more likely in Windows. Give it another try with the whole 38020 # argument. 38021 path="$complete" 38022 arguments="EOL" 38023 new_path="$path" 38024 38025 windows_path="$new_path" 38026 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38027 unix_path=`$CYGPATH -u "$windows_path"` 38028 new_path="$unix_path" 38029 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38030 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38031 new_path="$unix_path" 38032 fi 38033 38034 38035 new_path=`$WHICH "$new_path" 2> /dev/null` 38036 # bat and cmd files are not always considered executable in MSYS causing which 38037 # to not find them 38038 if test "x$new_path" = x \ 38039 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38040 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38041 new_path="$path" 38042 38043 windows_path="$new_path" 38044 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38045 unix_path=`$CYGPATH -u "$windows_path"` 38046 new_path="$unix_path" 38047 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38048 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38049 new_path="$unix_path" 38050 fi 38051 38052 fi 38053 38054 if test "x$new_path" = x; then 38055 # It's still not found. Now this is an unrecoverable error. 38056 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 38057 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 38058 has_space=`$ECHO "$complete" | $GREP " "` 38059 if test "x$has_space" != x; then 38060 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38061 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38062 fi 38063 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 38064 fi 38065 fi 38066 38067 # Now new_path has a complete unix path to the binary 38068 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38069 # Keep paths in /bin as-is, but remove trailing .exe if any 38070 new_path="${new_path/%.exe/}" 38071 # Do not save /bin paths to all_fixpath_prefixes! 38072 else 38073 # Not in mixed or Windows style, start by that. 38074 new_path=`cmd //c echo $new_path` 38075 38076 input_path="$new_path" 38077 # Check if we need to convert this using DOS-style short mode. If the path 38078 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38079 # take no chances and rewrite it. 38080 # Note: m4 eats our [], so we need to use [ and ] instead. 38081 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38082 if test "x$has_forbidden_chars" != x; then 38083 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38084 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38085 fi 38086 38087 # Output is in $new_path 38088 38089 windows_path="$new_path" 38090 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38091 unix_path=`$CYGPATH -u "$windows_path"` 38092 new_path="$unix_path" 38093 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38094 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38095 new_path="$unix_path" 38096 fi 38097 38098 # remove trailing .exe if any 38099 new_path="${new_path/%.exe/}" 38100 38101 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38102 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38103 fi 38104 38105 else 38106 # We're on a unix platform. Hooray! :) 38107 # First separate the path from the arguments. This will split at the first 38108 # space. 38109 complete="$AS" 38110 path="${complete%% *}" 38111 tmp="$complete EOL" 38112 arguments="${tmp#* }" 38113 38114 # Cannot rely on the command "which" here since it doesn't always work. 38115 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38116 if test -z "$is_absolute_path"; then 38117 # Path to executable is not absolute. Find it. 38118 IFS_save="$IFS" 38119 IFS=: 38120 for p in $PATH; do 38121 if test -f "$p/$path" && test -x "$p/$path"; then 38122 new_path="$p/$path" 38123 break 38124 fi 38125 done 38126 IFS="$IFS_save" 38127 else 38128 # This is an absolute path, we can use it without further modifications. 38129 new_path="$path" 38130 fi 38131 38132 if test "x$new_path" = x; then 38133 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 38134 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 38135 has_space=`$ECHO "$complete" | $GREP " "` 38136 if test "x$has_space" != x; then 38137 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38138 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38139 fi 38140 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 38141 fi 38142 fi 38143 38144 # Now join together the path and the arguments once again 38145 if test "x$arguments" != xEOL; then 38146 new_complete="$new_path ${arguments% *}" 38147 else 38148 new_complete="$new_path" 38149 fi 38150 38151 if test "x$complete" != "x$new_complete"; then 38152 AS="$new_complete" 38153 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 38154 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 38155 fi 38156 fi 38157 38158 if test "x$AS" = x; then 38159 as_fn_error $? "Solaris assembler (as) is required. Please install via \"pkg install pkg:/developer/assembler\"." "$LINENO" 5 38160 fi 38161 else 38162 # FIXME: is this correct for microsoft? 38163 AS="$CC -c" 38164 fi 38165 38166 38167 # 38168 # Setup the archiver (AR) 38169 # 38170 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 38171 # The corresponding ar tool is lib.exe (used to create static libraries) 38172 # Extract the first word of "lib", so it can be a program name with args. 38173 set dummy lib; ac_word=$2 38174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38175 $as_echo_n "checking for $ac_word... " >&6; } 38176 if ${ac_cv_prog_AR+:} false; then : 38177 $as_echo_n "(cached) " >&6 38178 else 38179 if test -n "$AR"; then 38180 ac_cv_prog_AR="$AR" # Let the user override the test. 38181 else 38182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38183 for as_dir in $PATH 38184 do 38185 IFS=$as_save_IFS 38186 test -z "$as_dir" && as_dir=. 38187 for ac_exec_ext in '' $ac_executable_extensions; do 38188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38189 ac_cv_prog_AR="lib" 38190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38191 break 2 38192 fi 38193 done 38194 done 38195 IFS=$as_save_IFS 38196 38197 fi 38198 fi 38199 AR=$ac_cv_prog_AR 38200 if test -n "$AR"; then 38201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38202 $as_echo "$AR" >&6; } 38203 else 38204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38205 $as_echo "no" >&6; } 38206 fi 38207 38208 38209 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 38210 38211 38212 # Publish this variable in the help. 38213 38214 38215 if [ -z "${AR+x}" ]; then 38216 # The variable is not set by user, try to locate tool using the code snippet 38217 if test -n "$ac_tool_prefix"; then 38218 for ac_prog in ar gcc-ar 38219 do 38220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38221 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38223 $as_echo_n "checking for $ac_word... " >&6; } 38224 if ${ac_cv_prog_AR+:} false; then : 38225 $as_echo_n "(cached) " >&6 38226 else 38227 if test -n "$AR"; then 38228 ac_cv_prog_AR="$AR" # Let the user override the test. 38229 else 38230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38231 for as_dir in $PATH 38232 do 38233 IFS=$as_save_IFS 38234 test -z "$as_dir" && as_dir=. 38235 for ac_exec_ext in '' $ac_executable_extensions; do 38236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38237 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38239 break 2 38240 fi 38241 done 38242 done 38243 IFS=$as_save_IFS 38244 38245 fi 38246 fi 38247 AR=$ac_cv_prog_AR 38248 if test -n "$AR"; then 38249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38250 $as_echo "$AR" >&6; } 38251 else 38252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38253 $as_echo "no" >&6; } 38254 fi 38255 38256 38257 test -n "$AR" && break 38258 done 38259 fi 38260 if test -z "$AR"; then 38261 ac_ct_AR=$AR 38262 for ac_prog in ar gcc-ar 38263 do 38264 # Extract the first word of "$ac_prog", so it can be a program name with args. 38265 set dummy $ac_prog; ac_word=$2 38266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38267 $as_echo_n "checking for $ac_word... " >&6; } 38268 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38269 $as_echo_n "(cached) " >&6 38270 else 38271 if test -n "$ac_ct_AR"; then 38272 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38273 else 38274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38275 for as_dir in $PATH 38276 do 38277 IFS=$as_save_IFS 38278 test -z "$as_dir" && as_dir=. 38279 for ac_exec_ext in '' $ac_executable_extensions; do 38280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38281 ac_cv_prog_ac_ct_AR="$ac_prog" 38282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38283 break 2 38284 fi 38285 done 38286 done 38287 IFS=$as_save_IFS 38288 38289 fi 38290 fi 38291 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38292 if test -n "$ac_ct_AR"; then 38293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38294 $as_echo "$ac_ct_AR" >&6; } 38295 else 38296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38297 $as_echo "no" >&6; } 38298 fi 38299 38300 38301 test -n "$ac_ct_AR" && break 38302 done 38303 38304 if test "x$ac_ct_AR" = x; then 38305 AR="" 38306 else 38307 case $cross_compiling:$ac_tool_warned in 38308 yes:) 38309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38311 ac_tool_warned=yes ;; 38312 esac 38313 AR=$ac_ct_AR 38314 fi 38315 fi 38316 38317 else 38318 # The variable is set, but is it from the command line or the environment? 38319 38320 # Try to remove the string !AR! from our list. 38321 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 38322 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38323 # If it failed, the variable was not from the command line. Ignore it, 38324 # but warn the user (except for BASH, which is always set by the calling BASH). 38325 if test "xAR" != xBASH; then 38326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 38327 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 38328 fi 38329 # Try to locate tool using the code snippet 38330 if test -n "$ac_tool_prefix"; then 38331 for ac_prog in ar gcc-ar 38332 do 38333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38336 $as_echo_n "checking for $ac_word... " >&6; } 38337 if ${ac_cv_prog_AR+:} false; then : 38338 $as_echo_n "(cached) " >&6 38339 else 38340 if test -n "$AR"; then 38341 ac_cv_prog_AR="$AR" # Let the user override the test. 38342 else 38343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38344 for as_dir in $PATH 38345 do 38346 IFS=$as_save_IFS 38347 test -z "$as_dir" && as_dir=. 38348 for ac_exec_ext in '' $ac_executable_extensions; do 38349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38350 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38352 break 2 38353 fi 38354 done 38355 done 38356 IFS=$as_save_IFS 38357 38358 fi 38359 fi 38360 AR=$ac_cv_prog_AR 38361 if test -n "$AR"; then 38362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38363 $as_echo "$AR" >&6; } 38364 else 38365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38366 $as_echo "no" >&6; } 38367 fi 38368 38369 38370 test -n "$AR" && break 38371 done 38372 fi 38373 if test -z "$AR"; then 38374 ac_ct_AR=$AR 38375 for ac_prog in ar gcc-ar 38376 do 38377 # Extract the first word of "$ac_prog", so it can be a program name with args. 38378 set dummy $ac_prog; ac_word=$2 38379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38380 $as_echo_n "checking for $ac_word... " >&6; } 38381 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38382 $as_echo_n "(cached) " >&6 38383 else 38384 if test -n "$ac_ct_AR"; then 38385 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38386 else 38387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38388 for as_dir in $PATH 38389 do 38390 IFS=$as_save_IFS 38391 test -z "$as_dir" && as_dir=. 38392 for ac_exec_ext in '' $ac_executable_extensions; do 38393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38394 ac_cv_prog_ac_ct_AR="$ac_prog" 38395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38396 break 2 38397 fi 38398 done 38399 done 38400 IFS=$as_save_IFS 38401 38402 fi 38403 fi 38404 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38405 if test -n "$ac_ct_AR"; then 38406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38407 $as_echo "$ac_ct_AR" >&6; } 38408 else 38409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38410 $as_echo "no" >&6; } 38411 fi 38412 38413 38414 test -n "$ac_ct_AR" && break 38415 done 38416 38417 if test "x$ac_ct_AR" = x; then 38418 AR="" 38419 else 38420 case $cross_compiling:$ac_tool_warned in 38421 yes:) 38422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38424 ac_tool_warned=yes ;; 38425 esac 38426 AR=$ac_ct_AR 38427 fi 38428 fi 38429 38430 else 38431 # If it succeeded, then it was overridden by the user. We will use it 38432 # for the tool. 38433 38434 # First remove it from the list of overridden variables, so we can test 38435 # for unknown variables in the end. 38436 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38437 38438 # Check if we try to supply an empty value 38439 if test "x$AR" = x; then 38440 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 38441 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 38442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38443 $as_echo_n "checking for AR... " >&6; } 38444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38445 $as_echo "disabled" >&6; } 38446 else 38447 # Check if the provided tool contains a complete path. 38448 tool_specified="$AR" 38449 tool_basename="${tool_specified##*/}" 38450 if test "x$tool_basename" = "x$tool_specified"; then 38451 # A command without a complete path is provided, search $PATH. 38452 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 38453 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 38454 # Extract the first word of "$tool_basename", so it can be a program name with args. 38455 set dummy $tool_basename; ac_word=$2 38456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38457 $as_echo_n "checking for $ac_word... " >&6; } 38458 if ${ac_cv_path_AR+:} false; then : 38459 $as_echo_n "(cached) " >&6 38460 else 38461 case $AR in 38462 [\\/]* | ?:[\\/]*) 38463 ac_cv_path_AR="$AR" # Let the user override the test with a path. 38464 ;; 38465 *) 38466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38467 for as_dir in $PATH 38468 do 38469 IFS=$as_save_IFS 38470 test -z "$as_dir" && as_dir=. 38471 for ac_exec_ext in '' $ac_executable_extensions; do 38472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38473 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 38474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38475 break 2 38476 fi 38477 done 38478 done 38479 IFS=$as_save_IFS 38480 38481 ;; 38482 esac 38483 fi 38484 AR=$ac_cv_path_AR 38485 if test -n "$AR"; then 38486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38487 $as_echo "$AR" >&6; } 38488 else 38489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38490 $as_echo "no" >&6; } 38491 fi 38492 38493 38494 if test "x$AR" = x; then 38495 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38496 fi 38497 else 38498 # Otherwise we believe it is a complete path. Use it as it is. 38499 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 38500 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 38501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38502 $as_echo_n "checking for AR... " >&6; } 38503 if test ! -x "$tool_specified"; then 38504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38505 $as_echo "not found" >&6; } 38506 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 38507 fi 38508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38509 $as_echo "$tool_specified" >&6; } 38510 fi 38511 fi 38512 fi 38513 38514 fi 38515 38516 38517 else 38518 38519 38520 # Publish this variable in the help. 38521 38522 38523 if [ -z "${AR+x}" ]; then 38524 # The variable is not set by user, try to locate tool using the code snippet 38525 if test -n "$ac_tool_prefix"; then 38526 for ac_prog in ar 38527 do 38528 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38529 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38531 $as_echo_n "checking for $ac_word... " >&6; } 38532 if ${ac_cv_prog_AR+:} false; then : 38533 $as_echo_n "(cached) " >&6 38534 else 38535 if test -n "$AR"; then 38536 ac_cv_prog_AR="$AR" # Let the user override the test. 38537 else 38538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38539 for as_dir in $PATH 38540 do 38541 IFS=$as_save_IFS 38542 test -z "$as_dir" && as_dir=. 38543 for ac_exec_ext in '' $ac_executable_extensions; do 38544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38545 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38547 break 2 38548 fi 38549 done 38550 done 38551 IFS=$as_save_IFS 38552 38553 fi 38554 fi 38555 AR=$ac_cv_prog_AR 38556 if test -n "$AR"; then 38557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38558 $as_echo "$AR" >&6; } 38559 else 38560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38561 $as_echo "no" >&6; } 38562 fi 38563 38564 38565 test -n "$AR" && break 38566 done 38567 fi 38568 if test -z "$AR"; then 38569 ac_ct_AR=$AR 38570 for ac_prog in ar 38571 do 38572 # Extract the first word of "$ac_prog", so it can be a program name with args. 38573 set dummy $ac_prog; ac_word=$2 38574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38575 $as_echo_n "checking for $ac_word... " >&6; } 38576 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38577 $as_echo_n "(cached) " >&6 38578 else 38579 if test -n "$ac_ct_AR"; then 38580 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38581 else 38582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38583 for as_dir in $PATH 38584 do 38585 IFS=$as_save_IFS 38586 test -z "$as_dir" && as_dir=. 38587 for ac_exec_ext in '' $ac_executable_extensions; do 38588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38589 ac_cv_prog_ac_ct_AR="$ac_prog" 38590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38591 break 2 38592 fi 38593 done 38594 done 38595 IFS=$as_save_IFS 38596 38597 fi 38598 fi 38599 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38600 if test -n "$ac_ct_AR"; then 38601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38602 $as_echo "$ac_ct_AR" >&6; } 38603 else 38604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38605 $as_echo "no" >&6; } 38606 fi 38607 38608 38609 test -n "$ac_ct_AR" && break 38610 done 38611 38612 if test "x$ac_ct_AR" = x; then 38613 AR="" 38614 else 38615 case $cross_compiling:$ac_tool_warned in 38616 yes:) 38617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38619 ac_tool_warned=yes ;; 38620 esac 38621 AR=$ac_ct_AR 38622 fi 38623 fi 38624 38625 else 38626 # The variable is set, but is it from the command line or the environment? 38627 38628 # Try to remove the string !AR! from our list. 38629 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 38630 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38631 # If it failed, the variable was not from the command line. Ignore it, 38632 # but warn the user (except for BASH, which is always set by the calling BASH). 38633 if test "xAR" != xBASH; then 38634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 38635 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 38636 fi 38637 # Try to locate tool using the code snippet 38638 if test -n "$ac_tool_prefix"; then 38639 for ac_prog in ar 38640 do 38641 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38642 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38644 $as_echo_n "checking for $ac_word... " >&6; } 38645 if ${ac_cv_prog_AR+:} false; then : 38646 $as_echo_n "(cached) " >&6 38647 else 38648 if test -n "$AR"; then 38649 ac_cv_prog_AR="$AR" # Let the user override the test. 38650 else 38651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38652 for as_dir in $PATH 38653 do 38654 IFS=$as_save_IFS 38655 test -z "$as_dir" && as_dir=. 38656 for ac_exec_ext in '' $ac_executable_extensions; do 38657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38658 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38660 break 2 38661 fi 38662 done 38663 done 38664 IFS=$as_save_IFS 38665 38666 fi 38667 fi 38668 AR=$ac_cv_prog_AR 38669 if test -n "$AR"; then 38670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38671 $as_echo "$AR" >&6; } 38672 else 38673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38674 $as_echo "no" >&6; } 38675 fi 38676 38677 38678 test -n "$AR" && break 38679 done 38680 fi 38681 if test -z "$AR"; then 38682 ac_ct_AR=$AR 38683 for ac_prog in ar 38684 do 38685 # Extract the first word of "$ac_prog", so it can be a program name with args. 38686 set dummy $ac_prog; ac_word=$2 38687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38688 $as_echo_n "checking for $ac_word... " >&6; } 38689 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38690 $as_echo_n "(cached) " >&6 38691 else 38692 if test -n "$ac_ct_AR"; then 38693 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38694 else 38695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38696 for as_dir in $PATH 38697 do 38698 IFS=$as_save_IFS 38699 test -z "$as_dir" && as_dir=. 38700 for ac_exec_ext in '' $ac_executable_extensions; do 38701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38702 ac_cv_prog_ac_ct_AR="$ac_prog" 38703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38704 break 2 38705 fi 38706 done 38707 done 38708 IFS=$as_save_IFS 38709 38710 fi 38711 fi 38712 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38713 if test -n "$ac_ct_AR"; then 38714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38715 $as_echo "$ac_ct_AR" >&6; } 38716 else 38717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38718 $as_echo "no" >&6; } 38719 fi 38720 38721 38722 test -n "$ac_ct_AR" && break 38723 done 38724 38725 if test "x$ac_ct_AR" = x; then 38726 AR="" 38727 else 38728 case $cross_compiling:$ac_tool_warned in 38729 yes:) 38730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38732 ac_tool_warned=yes ;; 38733 esac 38734 AR=$ac_ct_AR 38735 fi 38736 fi 38737 38738 else 38739 # If it succeeded, then it was overridden by the user. We will use it 38740 # for the tool. 38741 38742 # First remove it from the list of overridden variables, so we can test 38743 # for unknown variables in the end. 38744 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38745 38746 # Check if we try to supply an empty value 38747 if test "x$AR" = x; then 38748 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 38749 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 38750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38751 $as_echo_n "checking for AR... " >&6; } 38752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38753 $as_echo "disabled" >&6; } 38754 else 38755 # Check if the provided tool contains a complete path. 38756 tool_specified="$AR" 38757 tool_basename="${tool_specified##*/}" 38758 if test "x$tool_basename" = "x$tool_specified"; then 38759 # A command without a complete path is provided, search $PATH. 38760 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 38761 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 38762 # Extract the first word of "$tool_basename", so it can be a program name with args. 38763 set dummy $tool_basename; ac_word=$2 38764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38765 $as_echo_n "checking for $ac_word... " >&6; } 38766 if ${ac_cv_path_AR+:} false; then : 38767 $as_echo_n "(cached) " >&6 38768 else 38769 case $AR in 38770 [\\/]* | ?:[\\/]*) 38771 ac_cv_path_AR="$AR" # Let the user override the test with a path. 38772 ;; 38773 *) 38774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38775 for as_dir in $PATH 38776 do 38777 IFS=$as_save_IFS 38778 test -z "$as_dir" && as_dir=. 38779 for ac_exec_ext in '' $ac_executable_extensions; do 38780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38781 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 38782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38783 break 2 38784 fi 38785 done 38786 done 38787 IFS=$as_save_IFS 38788 38789 ;; 38790 esac 38791 fi 38792 AR=$ac_cv_path_AR 38793 if test -n "$AR"; then 38794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38795 $as_echo "$AR" >&6; } 38796 else 38797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38798 $as_echo "no" >&6; } 38799 fi 38800 38801 38802 if test "x$AR" = x; then 38803 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38804 fi 38805 else 38806 # Otherwise we believe it is a complete path. Use it as it is. 38807 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 38808 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 38809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38810 $as_echo_n "checking for AR... " >&6; } 38811 if test ! -x "$tool_specified"; then 38812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38813 $as_echo "not found" >&6; } 38814 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 38815 fi 38816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38817 $as_echo "$tool_specified" >&6; } 38818 fi 38819 fi 38820 fi 38821 38822 fi 38823 38824 38825 fi 38826 38827 # Only process if variable expands to non-empty 38828 38829 if test "x$AR" != x; then 38830 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38831 38832 # First separate the path from the arguments. This will split at the first 38833 # space. 38834 complete="$AR" 38835 path="${complete%% *}" 38836 tmp="$complete EOL" 38837 arguments="${tmp#* }" 38838 38839 # Input might be given as Windows format, start by converting to 38840 # unix format. 38841 new_path=`$CYGPATH -u "$path"` 38842 38843 # Now try to locate executable using which 38844 new_path=`$WHICH "$new_path" 2> /dev/null` 38845 # bat and cmd files are not always considered executable in cygwin causing which 38846 # to not find them 38847 if test "x$new_path" = x \ 38848 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38849 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38850 new_path=`$CYGPATH -u "$path"` 38851 fi 38852 if test "x$new_path" = x; then 38853 # Oops. Which didn't find the executable. 38854 # The splitting of arguments from the executable at a space might have been incorrect, 38855 # since paths with space are more likely in Windows. Give it another try with the whole 38856 # argument. 38857 path="$complete" 38858 arguments="EOL" 38859 new_path=`$CYGPATH -u "$path"` 38860 new_path=`$WHICH "$new_path" 2> /dev/null` 38861 # bat and cmd files are not always considered executable in cygwin causing which 38862 # to not find them 38863 if test "x$new_path" = x \ 38864 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38865 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38866 new_path=`$CYGPATH -u "$path"` 38867 fi 38868 if test "x$new_path" = x; then 38869 # It's still not found. Now this is an unrecoverable error. 38870 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38871 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38872 has_space=`$ECHO "$complete" | $GREP " "` 38873 if test "x$has_space" != x; then 38874 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38875 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38876 fi 38877 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38878 fi 38879 fi 38880 38881 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38882 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38883 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38884 # "foo.exe" is OK but "foo" is an error. 38885 # 38886 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38887 # It is also a way to make sure we got the proper file name for the real test later on. 38888 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38889 if test "x$test_shortpath" = x; then 38890 # Short path failed, file does not exist as specified. 38891 # Try adding .exe or .cmd 38892 if test -f "${new_path}.exe"; then 38893 input_to_shortpath="${new_path}.exe" 38894 elif test -f "${new_path}.cmd"; then 38895 input_to_shortpath="${new_path}.cmd" 38896 else 38897 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 38898 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 38899 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38900 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38901 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38902 fi 38903 else 38904 input_to_shortpath="$new_path" 38905 fi 38906 38907 # Call helper function which possibly converts this using DOS-style short mode. 38908 # If so, the updated path is stored in $new_path. 38909 new_path="$input_to_shortpath" 38910 38911 input_path="$input_to_shortpath" 38912 # Check if we need to convert this using DOS-style short mode. If the path 38913 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38914 # take no chances and rewrite it. 38915 # Note: m4 eats our [], so we need to use [ and ] instead. 38916 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38917 if test "x$has_forbidden_chars" != x; then 38918 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38919 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38920 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38921 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38922 # Going to short mode and back again did indeed matter. Since short mode is 38923 # case insensitive, let's make it lowercase to improve readability. 38924 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38925 # Now convert it back to Unix-style (cygpath) 38926 input_path=`$CYGPATH -u "$shortmode_path"` 38927 new_path="$input_path" 38928 fi 38929 fi 38930 38931 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38932 if test "x$test_cygdrive_prefix" = x; then 38933 # As a simple fix, exclude /usr/bin since it's not a real path. 38934 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38935 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38936 # a path prefixed by /cygdrive for fixpath to work. 38937 new_path="$CYGWIN_ROOT_PATH$input_path" 38938 fi 38939 fi 38940 38941 # remove trailing .exe if any 38942 new_path="${new_path/%.exe/}" 38943 38944 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38945 38946 # First separate the path from the arguments. This will split at the first 38947 # space. 38948 complete="$AR" 38949 path="${complete%% *}" 38950 tmp="$complete EOL" 38951 arguments="${tmp#* }" 38952 38953 # Input might be given as Windows format, start by converting to 38954 # unix format. 38955 new_path="$path" 38956 38957 windows_path="$new_path" 38958 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38959 unix_path=`$CYGPATH -u "$windows_path"` 38960 new_path="$unix_path" 38961 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38962 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38963 new_path="$unix_path" 38964 fi 38965 38966 38967 # Now try to locate executable using which 38968 new_path=`$WHICH "$new_path" 2> /dev/null` 38969 38970 if test "x$new_path" = x; then 38971 # Oops. Which didn't find the executable. 38972 # The splitting of arguments from the executable at a space might have been incorrect, 38973 # since paths with space are more likely in Windows. Give it another try with the whole 38974 # argument. 38975 path="$complete" 38976 arguments="EOL" 38977 new_path="$path" 38978 38979 windows_path="$new_path" 38980 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38981 unix_path=`$CYGPATH -u "$windows_path"` 38982 new_path="$unix_path" 38983 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38984 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38985 new_path="$unix_path" 38986 fi 38987 38988 38989 new_path=`$WHICH "$new_path" 2> /dev/null` 38990 # bat and cmd files are not always considered executable in MSYS causing which 38991 # to not find them 38992 if test "x$new_path" = x \ 38993 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38994 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38995 new_path="$path" 38996 38997 windows_path="$new_path" 38998 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38999 unix_path=`$CYGPATH -u "$windows_path"` 39000 new_path="$unix_path" 39001 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39002 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39003 new_path="$unix_path" 39004 fi 39005 39006 fi 39007 39008 if test "x$new_path" = x; then 39009 # It's still not found. Now this is an unrecoverable error. 39010 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 39011 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 39012 has_space=`$ECHO "$complete" | $GREP " "` 39013 if test "x$has_space" != x; then 39014 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39015 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39016 fi 39017 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 39018 fi 39019 fi 39020 39021 # Now new_path has a complete unix path to the binary 39022 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39023 # Keep paths in /bin as-is, but remove trailing .exe if any 39024 new_path="${new_path/%.exe/}" 39025 # Do not save /bin paths to all_fixpath_prefixes! 39026 else 39027 # Not in mixed or Windows style, start by that. 39028 new_path=`cmd //c echo $new_path` 39029 39030 input_path="$new_path" 39031 # Check if we need to convert this using DOS-style short mode. If the path 39032 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39033 # take no chances and rewrite it. 39034 # Note: m4 eats our [], so we need to use [ and ] instead. 39035 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39036 if test "x$has_forbidden_chars" != x; then 39037 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39038 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39039 fi 39040 39041 # Output is in $new_path 39042 39043 windows_path="$new_path" 39044 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39045 unix_path=`$CYGPATH -u "$windows_path"` 39046 new_path="$unix_path" 39047 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39048 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39049 new_path="$unix_path" 39050 fi 39051 39052 # remove trailing .exe if any 39053 new_path="${new_path/%.exe/}" 39054 39055 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39056 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39057 fi 39058 39059 else 39060 # We're on a unix platform. Hooray! :) 39061 # First separate the path from the arguments. This will split at the first 39062 # space. 39063 complete="$AR" 39064 path="${complete%% *}" 39065 tmp="$complete EOL" 39066 arguments="${tmp#* }" 39067 39068 # Cannot rely on the command "which" here since it doesn't always work. 39069 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39070 if test -z "$is_absolute_path"; then 39071 # Path to executable is not absolute. Find it. 39072 IFS_save="$IFS" 39073 IFS=: 39074 for p in $PATH; do 39075 if test -f "$p/$path" && test -x "$p/$path"; then 39076 new_path="$p/$path" 39077 break 39078 fi 39079 done 39080 IFS="$IFS_save" 39081 else 39082 # This is an absolute path, we can use it without further modifications. 39083 new_path="$path" 39084 fi 39085 39086 if test "x$new_path" = x; then 39087 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 39088 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 39089 has_space=`$ECHO "$complete" | $GREP " "` 39090 if test "x$has_space" != x; then 39091 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39092 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39093 fi 39094 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 39095 fi 39096 fi 39097 39098 # Now join together the path and the arguments once again 39099 if test "x$arguments" != xEOL; then 39100 new_complete="$new_path ${arguments% *}" 39101 else 39102 new_complete="$new_path" 39103 fi 39104 39105 if test "x$complete" != "x$new_complete"; then 39106 AR="$new_complete" 39107 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 39108 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 39109 fi 39110 fi 39111 39112 39113 39114 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 39115 39116 39117 # Publish this variable in the help. 39118 39119 39120 if [ -z "${LIPO+x}" ]; then 39121 # The variable is not set by user, try to locate tool using the code snippet 39122 for ac_prog in lipo 39123 do 39124 # Extract the first word of "$ac_prog", so it can be a program name with args. 39125 set dummy $ac_prog; ac_word=$2 39126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39127 $as_echo_n "checking for $ac_word... " >&6; } 39128 if ${ac_cv_path_LIPO+:} false; then : 39129 $as_echo_n "(cached) " >&6 39130 else 39131 case $LIPO in 39132 [\\/]* | ?:[\\/]*) 39133 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 39134 ;; 39135 *) 39136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39137 for as_dir in $PATH 39138 do 39139 IFS=$as_save_IFS 39140 test -z "$as_dir" && as_dir=. 39141 for ac_exec_ext in '' $ac_executable_extensions; do 39142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39143 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 39144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39145 break 2 39146 fi 39147 done 39148 done 39149 IFS=$as_save_IFS 39150 39151 ;; 39152 esac 39153 fi 39154 LIPO=$ac_cv_path_LIPO 39155 if test -n "$LIPO"; then 39156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 39157 $as_echo "$LIPO" >&6; } 39158 else 39159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39160 $as_echo "no" >&6; } 39161 fi 39162 39163 39164 test -n "$LIPO" && break 39165 done 39166 39167 else 39168 # The variable is set, but is it from the command line or the environment? 39169 39170 # Try to remove the string !LIPO! from our list. 39171 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 39172 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39173 # If it failed, the variable was not from the command line. Ignore it, 39174 # but warn the user (except for BASH, which is always set by the calling BASH). 39175 if test "xLIPO" != xBASH; then 39176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 39177 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 39178 fi 39179 # Try to locate tool using the code snippet 39180 for ac_prog in lipo 39181 do 39182 # Extract the first word of "$ac_prog", so it can be a program name with args. 39183 set dummy $ac_prog; ac_word=$2 39184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39185 $as_echo_n "checking for $ac_word... " >&6; } 39186 if ${ac_cv_path_LIPO+:} false; then : 39187 $as_echo_n "(cached) " >&6 39188 else 39189 case $LIPO in 39190 [\\/]* | ?:[\\/]*) 39191 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 39192 ;; 39193 *) 39194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39195 for as_dir in $PATH 39196 do 39197 IFS=$as_save_IFS 39198 test -z "$as_dir" && as_dir=. 39199 for ac_exec_ext in '' $ac_executable_extensions; do 39200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39201 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 39202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39203 break 2 39204 fi 39205 done 39206 done 39207 IFS=$as_save_IFS 39208 39209 ;; 39210 esac 39211 fi 39212 LIPO=$ac_cv_path_LIPO 39213 if test -n "$LIPO"; then 39214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 39215 $as_echo "$LIPO" >&6; } 39216 else 39217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39218 $as_echo "no" >&6; } 39219 fi 39220 39221 39222 test -n "$LIPO" && break 39223 done 39224 39225 else 39226 # If it succeeded, then it was overridden by the user. We will use it 39227 # for the tool. 39228 39229 # First remove it from the list of overridden variables, so we can test 39230 # for unknown variables in the end. 39231 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39232 39233 # Check if we try to supply an empty value 39234 if test "x$LIPO" = x; then 39235 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LIPO= (no value)" >&5 39236 $as_echo "$as_me: Setting user supplied tool LIPO= (no value)" >&6;} 39237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 39238 $as_echo_n "checking for LIPO... " >&6; } 39239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 39240 $as_echo "disabled" >&6; } 39241 else 39242 # Check if the provided tool contains a complete path. 39243 tool_specified="$LIPO" 39244 tool_basename="${tool_specified##*/}" 39245 if test "x$tool_basename" = "x$tool_specified"; then 39246 # A command without a complete path is provided, search $PATH. 39247 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 39248 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 39249 # Extract the first word of "$tool_basename", so it can be a program name with args. 39250 set dummy $tool_basename; ac_word=$2 39251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39252 $as_echo_n "checking for $ac_word... " >&6; } 39253 if ${ac_cv_path_LIPO+:} false; then : 39254 $as_echo_n "(cached) " >&6 39255 else 39256 case $LIPO in 39257 [\\/]* | ?:[\\/]*) 39258 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 39259 ;; 39260 *) 39261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39262 for as_dir in $PATH 39263 do 39264 IFS=$as_save_IFS 39265 test -z "$as_dir" && as_dir=. 39266 for ac_exec_ext in '' $ac_executable_extensions; do 39267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39268 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 39269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39270 break 2 39271 fi 39272 done 39273 done 39274 IFS=$as_save_IFS 39275 39276 ;; 39277 esac 39278 fi 39279 LIPO=$ac_cv_path_LIPO 39280 if test -n "$LIPO"; then 39281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 39282 $as_echo "$LIPO" >&6; } 39283 else 39284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39285 $as_echo "no" >&6; } 39286 fi 39287 39288 39289 if test "x$LIPO" = x; then 39290 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39291 fi 39292 else 39293 # Otherwise we believe it is a complete path. Use it as it is. 39294 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 39295 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 39296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 39297 $as_echo_n "checking for LIPO... " >&6; } 39298 if test ! -x "$tool_specified"; then 39299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39300 $as_echo "not found" >&6; } 39301 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 39302 fi 39303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39304 $as_echo "$tool_specified" >&6; } 39305 fi 39306 fi 39307 fi 39308 39309 fi 39310 39311 39312 39313 # Only process if variable expands to non-empty 39314 39315 if test "x$LIPO" != x; then 39316 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39317 39318 # First separate the path from the arguments. This will split at the first 39319 # space. 39320 complete="$LIPO" 39321 path="${complete%% *}" 39322 tmp="$complete EOL" 39323 arguments="${tmp#* }" 39324 39325 # Input might be given as Windows format, start by converting to 39326 # unix format. 39327 new_path=`$CYGPATH -u "$path"` 39328 39329 # Now try to locate executable using which 39330 new_path=`$WHICH "$new_path" 2> /dev/null` 39331 # bat and cmd files are not always considered executable in cygwin causing which 39332 # to not find them 39333 if test "x$new_path" = x \ 39334 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39335 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39336 new_path=`$CYGPATH -u "$path"` 39337 fi 39338 if test "x$new_path" = x; then 39339 # Oops. Which didn't find the executable. 39340 # The splitting of arguments from the executable at a space might have been incorrect, 39341 # since paths with space are more likely in Windows. Give it another try with the whole 39342 # argument. 39343 path="$complete" 39344 arguments="EOL" 39345 new_path=`$CYGPATH -u "$path"` 39346 new_path=`$WHICH "$new_path" 2> /dev/null` 39347 # bat and cmd files are not always considered executable in cygwin causing which 39348 # to not find them 39349 if test "x$new_path" = x \ 39350 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39351 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39352 new_path=`$CYGPATH -u "$path"` 39353 fi 39354 if test "x$new_path" = x; then 39355 # It's still not found. Now this is an unrecoverable error. 39356 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 39357 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 39358 has_space=`$ECHO "$complete" | $GREP " "` 39359 if test "x$has_space" != x; then 39360 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39361 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39362 fi 39363 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39364 fi 39365 fi 39366 39367 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39368 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39369 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39370 # "foo.exe" is OK but "foo" is an error. 39371 # 39372 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39373 # It is also a way to make sure we got the proper file name for the real test later on. 39374 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39375 if test "x$test_shortpath" = x; then 39376 # Short path failed, file does not exist as specified. 39377 # Try adding .exe or .cmd 39378 if test -f "${new_path}.exe"; then 39379 input_to_shortpath="${new_path}.exe" 39380 elif test -f "${new_path}.cmd"; then 39381 input_to_shortpath="${new_path}.cmd" 39382 else 39383 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 39384 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 39385 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39386 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39387 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39388 fi 39389 else 39390 input_to_shortpath="$new_path" 39391 fi 39392 39393 # Call helper function which possibly converts this using DOS-style short mode. 39394 # If so, the updated path is stored in $new_path. 39395 new_path="$input_to_shortpath" 39396 39397 input_path="$input_to_shortpath" 39398 # Check if we need to convert this using DOS-style short mode. If the path 39399 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39400 # take no chances and rewrite it. 39401 # Note: m4 eats our [], so we need to use [ and ] instead. 39402 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39403 if test "x$has_forbidden_chars" != x; then 39404 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39405 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39406 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39407 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39408 # Going to short mode and back again did indeed matter. Since short mode is 39409 # case insensitive, let's make it lowercase to improve readability. 39410 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39411 # Now convert it back to Unix-style (cygpath) 39412 input_path=`$CYGPATH -u "$shortmode_path"` 39413 new_path="$input_path" 39414 fi 39415 fi 39416 39417 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39418 if test "x$test_cygdrive_prefix" = x; then 39419 # As a simple fix, exclude /usr/bin since it's not a real path. 39420 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39421 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39422 # a path prefixed by /cygdrive for fixpath to work. 39423 new_path="$CYGWIN_ROOT_PATH$input_path" 39424 fi 39425 fi 39426 39427 # remove trailing .exe if any 39428 new_path="${new_path/%.exe/}" 39429 39430 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39431 39432 # First separate the path from the arguments. This will split at the first 39433 # space. 39434 complete="$LIPO" 39435 path="${complete%% *}" 39436 tmp="$complete EOL" 39437 arguments="${tmp#* }" 39438 39439 # Input might be given as Windows format, start by converting to 39440 # unix format. 39441 new_path="$path" 39442 39443 windows_path="$new_path" 39444 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39445 unix_path=`$CYGPATH -u "$windows_path"` 39446 new_path="$unix_path" 39447 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39448 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39449 new_path="$unix_path" 39450 fi 39451 39452 39453 # Now try to locate executable using which 39454 new_path=`$WHICH "$new_path" 2> /dev/null` 39455 39456 if test "x$new_path" = x; then 39457 # Oops. Which didn't find the executable. 39458 # The splitting of arguments from the executable at a space might have been incorrect, 39459 # since paths with space are more likely in Windows. Give it another try with the whole 39460 # argument. 39461 path="$complete" 39462 arguments="EOL" 39463 new_path="$path" 39464 39465 windows_path="$new_path" 39466 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39467 unix_path=`$CYGPATH -u "$windows_path"` 39468 new_path="$unix_path" 39469 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39470 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39471 new_path="$unix_path" 39472 fi 39473 39474 39475 new_path=`$WHICH "$new_path" 2> /dev/null` 39476 # bat and cmd files are not always considered executable in MSYS causing which 39477 # to not find them 39478 if test "x$new_path" = x \ 39479 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39480 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39481 new_path="$path" 39482 39483 windows_path="$new_path" 39484 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39485 unix_path=`$CYGPATH -u "$windows_path"` 39486 new_path="$unix_path" 39487 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39488 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39489 new_path="$unix_path" 39490 fi 39491 39492 fi 39493 39494 if test "x$new_path" = x; then 39495 # It's still not found. Now this is an unrecoverable error. 39496 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 39497 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 39498 has_space=`$ECHO "$complete" | $GREP " "` 39499 if test "x$has_space" != x; then 39500 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39501 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39502 fi 39503 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39504 fi 39505 fi 39506 39507 # Now new_path has a complete unix path to the binary 39508 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39509 # Keep paths in /bin as-is, but remove trailing .exe if any 39510 new_path="${new_path/%.exe/}" 39511 # Do not save /bin paths to all_fixpath_prefixes! 39512 else 39513 # Not in mixed or Windows style, start by that. 39514 new_path=`cmd //c echo $new_path` 39515 39516 input_path="$new_path" 39517 # Check if we need to convert this using DOS-style short mode. If the path 39518 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39519 # take no chances and rewrite it. 39520 # Note: m4 eats our [], so we need to use [ and ] instead. 39521 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39522 if test "x$has_forbidden_chars" != x; then 39523 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39524 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39525 fi 39526 39527 # Output is in $new_path 39528 39529 windows_path="$new_path" 39530 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39531 unix_path=`$CYGPATH -u "$windows_path"` 39532 new_path="$unix_path" 39533 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39534 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39535 new_path="$unix_path" 39536 fi 39537 39538 # remove trailing .exe if any 39539 new_path="${new_path/%.exe/}" 39540 39541 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39542 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39543 fi 39544 39545 else 39546 # We're on a unix platform. Hooray! :) 39547 # First separate the path from the arguments. This will split at the first 39548 # space. 39549 complete="$LIPO" 39550 path="${complete%% *}" 39551 tmp="$complete EOL" 39552 arguments="${tmp#* }" 39553 39554 # Cannot rely on the command "which" here since it doesn't always work. 39555 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39556 if test -z "$is_absolute_path"; then 39557 # Path to executable is not absolute. Find it. 39558 IFS_save="$IFS" 39559 IFS=: 39560 for p in $PATH; do 39561 if test -f "$p/$path" && test -x "$p/$path"; then 39562 new_path="$p/$path" 39563 break 39564 fi 39565 done 39566 IFS="$IFS_save" 39567 else 39568 # This is an absolute path, we can use it without further modifications. 39569 new_path="$path" 39570 fi 39571 39572 if test "x$new_path" = x; then 39573 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 39574 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 39575 has_space=`$ECHO "$complete" | $GREP " "` 39576 if test "x$has_space" != x; then 39577 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39578 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39579 fi 39580 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39581 fi 39582 fi 39583 39584 # Now join together the path and the arguments once again 39585 if test "x$arguments" != xEOL; then 39586 new_complete="$new_path ${arguments% *}" 39587 else 39588 new_complete="$new_path" 39589 fi 39590 39591 if test "x$complete" != "x$new_complete"; then 39592 LIPO="$new_complete" 39593 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 39594 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 39595 fi 39596 fi 39597 39598 fi 39599 39600 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 39601 # Extract the first word of "mt", so it can be a program name with args. 39602 set dummy mt; ac_word=$2 39603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39604 $as_echo_n "checking for $ac_word... " >&6; } 39605 if ${ac_cv_prog_MT+:} false; then : 39606 $as_echo_n "(cached) " >&6 39607 else 39608 if test -n "$MT"; then 39609 ac_cv_prog_MT="$MT" # Let the user override the test. 39610 else 39611 ac_prog_rejected=no 39612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39613 for as_dir in $PATH 39614 do 39615 IFS=$as_save_IFS 39616 test -z "$as_dir" && as_dir=. 39617 for ac_exec_ext in '' $ac_executable_extensions; do 39618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39619 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 39620 ac_prog_rejected=yes 39621 continue 39622 fi 39623 ac_cv_prog_MT="mt" 39624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39625 break 2 39626 fi 39627 done 39628 done 39629 IFS=$as_save_IFS 39630 39631 if test $ac_prog_rejected = yes; then 39632 # We found a bogon in the path, so make sure we never use it. 39633 set dummy $ac_cv_prog_MT 39634 shift 39635 if test $# != 0; then 39636 # We chose a different compiler from the bogus one. 39637 # However, it has the same basename, so the bogon will be chosen 39638 # first if we set MT to just the basename; use the full file name. 39639 shift 39640 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 39641 fi 39642 fi 39643 fi 39644 fi 39645 MT=$ac_cv_prog_MT 39646 if test -n "$MT"; then 39647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 39648 $as_echo "$MT" >&6; } 39649 else 39650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39651 $as_echo "no" >&6; } 39652 fi 39653 39654 39655 39656 # Only process if variable expands to non-empty 39657 39658 if test "x$MT" != x; then 39659 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39660 39661 # First separate the path from the arguments. This will split at the first 39662 # space. 39663 complete="$MT" 39664 path="${complete%% *}" 39665 tmp="$complete EOL" 39666 arguments="${tmp#* }" 39667 39668 # Input might be given as Windows format, start by converting to 39669 # unix format. 39670 new_path=`$CYGPATH -u "$path"` 39671 39672 # Now try to locate executable using which 39673 new_path=`$WHICH "$new_path" 2> /dev/null` 39674 # bat and cmd files are not always considered executable in cygwin causing which 39675 # to not find them 39676 if test "x$new_path" = x \ 39677 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39678 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39679 new_path=`$CYGPATH -u "$path"` 39680 fi 39681 if test "x$new_path" = x; then 39682 # Oops. Which didn't find the executable. 39683 # The splitting of arguments from the executable at a space might have been incorrect, 39684 # since paths with space are more likely in Windows. Give it another try with the whole 39685 # argument. 39686 path="$complete" 39687 arguments="EOL" 39688 new_path=`$CYGPATH -u "$path"` 39689 new_path=`$WHICH "$new_path" 2> /dev/null` 39690 # bat and cmd files are not always considered executable in cygwin causing which 39691 # to not find them 39692 if test "x$new_path" = x \ 39693 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39694 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39695 new_path=`$CYGPATH -u "$path"` 39696 fi 39697 if test "x$new_path" = x; then 39698 # It's still not found. Now this is an unrecoverable error. 39699 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 39700 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 39701 has_space=`$ECHO "$complete" | $GREP " "` 39702 if test "x$has_space" != x; then 39703 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39704 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39705 fi 39706 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 39707 fi 39708 fi 39709 39710 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39711 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39712 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39713 # "foo.exe" is OK but "foo" is an error. 39714 # 39715 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39716 # It is also a way to make sure we got the proper file name for the real test later on. 39717 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39718 if test "x$test_shortpath" = x; then 39719 # Short path failed, file does not exist as specified. 39720 # Try adding .exe or .cmd 39721 if test -f "${new_path}.exe"; then 39722 input_to_shortpath="${new_path}.exe" 39723 elif test -f "${new_path}.cmd"; then 39724 input_to_shortpath="${new_path}.cmd" 39725 else 39726 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 39727 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 39728 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39729 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39730 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 39731 fi 39732 else 39733 input_to_shortpath="$new_path" 39734 fi 39735 39736 # Call helper function which possibly converts this using DOS-style short mode. 39737 # If so, the updated path is stored in $new_path. 39738 new_path="$input_to_shortpath" 39739 39740 input_path="$input_to_shortpath" 39741 # Check if we need to convert this using DOS-style short mode. If the path 39742 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39743 # take no chances and rewrite it. 39744 # Note: m4 eats our [], so we need to use [ and ] instead. 39745 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39746 if test "x$has_forbidden_chars" != x; then 39747 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39748 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39749 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39750 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39751 # Going to short mode and back again did indeed matter. Since short mode is 39752 # case insensitive, let's make it lowercase to improve readability. 39753 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39754 # Now convert it back to Unix-style (cygpath) 39755 input_path=`$CYGPATH -u "$shortmode_path"` 39756 new_path="$input_path" 39757 fi 39758 fi 39759 39760 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39761 if test "x$test_cygdrive_prefix" = x; then 39762 # As a simple fix, exclude /usr/bin since it's not a real path. 39763 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39764 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39765 # a path prefixed by /cygdrive for fixpath to work. 39766 new_path="$CYGWIN_ROOT_PATH$input_path" 39767 fi 39768 fi 39769 39770 # remove trailing .exe if any 39771 new_path="${new_path/%.exe/}" 39772 39773 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39774 39775 # First separate the path from the arguments. This will split at the first 39776 # space. 39777 complete="$MT" 39778 path="${complete%% *}" 39779 tmp="$complete EOL" 39780 arguments="${tmp#* }" 39781 39782 # Input might be given as Windows format, start by converting to 39783 # unix format. 39784 new_path="$path" 39785 39786 windows_path="$new_path" 39787 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39788 unix_path=`$CYGPATH -u "$windows_path"` 39789 new_path="$unix_path" 39790 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39791 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39792 new_path="$unix_path" 39793 fi 39794 39795 39796 # Now try to locate executable using which 39797 new_path=`$WHICH "$new_path" 2> /dev/null` 39798 39799 if test "x$new_path" = x; then 39800 # Oops. Which didn't find the executable. 39801 # The splitting of arguments from the executable at a space might have been incorrect, 39802 # since paths with space are more likely in Windows. Give it another try with the whole 39803 # argument. 39804 path="$complete" 39805 arguments="EOL" 39806 new_path="$path" 39807 39808 windows_path="$new_path" 39809 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39810 unix_path=`$CYGPATH -u "$windows_path"` 39811 new_path="$unix_path" 39812 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39813 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39814 new_path="$unix_path" 39815 fi 39816 39817 39818 new_path=`$WHICH "$new_path" 2> /dev/null` 39819 # bat and cmd files are not always considered executable in MSYS causing which 39820 # to not find them 39821 if test "x$new_path" = x \ 39822 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39823 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39824 new_path="$path" 39825 39826 windows_path="$new_path" 39827 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39828 unix_path=`$CYGPATH -u "$windows_path"` 39829 new_path="$unix_path" 39830 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39831 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39832 new_path="$unix_path" 39833 fi 39834 39835 fi 39836 39837 if test "x$new_path" = x; then 39838 # It's still not found. Now this is an unrecoverable error. 39839 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 39840 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 39841 has_space=`$ECHO "$complete" | $GREP " "` 39842 if test "x$has_space" != x; then 39843 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39844 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39845 fi 39846 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 39847 fi 39848 fi 39849 39850 # Now new_path has a complete unix path to the binary 39851 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39852 # Keep paths in /bin as-is, but remove trailing .exe if any 39853 new_path="${new_path/%.exe/}" 39854 # Do not save /bin paths to all_fixpath_prefixes! 39855 else 39856 # Not in mixed or Windows style, start by that. 39857 new_path=`cmd //c echo $new_path` 39858 39859 input_path="$new_path" 39860 # Check if we need to convert this using DOS-style short mode. If the path 39861 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39862 # take no chances and rewrite it. 39863 # Note: m4 eats our [], so we need to use [ and ] instead. 39864 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39865 if test "x$has_forbidden_chars" != x; then 39866 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39867 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39868 fi 39869 39870 # Output is in $new_path 39871 39872 windows_path="$new_path" 39873 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39874 unix_path=`$CYGPATH -u "$windows_path"` 39875 new_path="$unix_path" 39876 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39877 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39878 new_path="$unix_path" 39879 fi 39880 39881 # remove trailing .exe if any 39882 new_path="${new_path/%.exe/}" 39883 39884 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39885 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39886 fi 39887 39888 else 39889 # We're on a unix platform. Hooray! :) 39890 # First separate the path from the arguments. This will split at the first 39891 # space. 39892 complete="$MT" 39893 path="${complete%% *}" 39894 tmp="$complete EOL" 39895 arguments="${tmp#* }" 39896 39897 # Cannot rely on the command "which" here since it doesn't always work. 39898 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39899 if test -z "$is_absolute_path"; then 39900 # Path to executable is not absolute. Find it. 39901 IFS_save="$IFS" 39902 IFS=: 39903 for p in $PATH; do 39904 if test -f "$p/$path" && test -x "$p/$path"; then 39905 new_path="$p/$path" 39906 break 39907 fi 39908 done 39909 IFS="$IFS_save" 39910 else 39911 # This is an absolute path, we can use it without further modifications. 39912 new_path="$path" 39913 fi 39914 39915 if test "x$new_path" = x; then 39916 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 39917 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 39918 has_space=`$ECHO "$complete" | $GREP " "` 39919 if test "x$has_space" != x; then 39920 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39921 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39922 fi 39923 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 39924 fi 39925 fi 39926 39927 # Now join together the path and the arguments once again 39928 if test "x$arguments" != xEOL; then 39929 new_complete="$new_path ${arguments% *}" 39930 else 39931 new_complete="$new_path" 39932 fi 39933 39934 if test "x$complete" != "x$new_complete"; then 39935 MT="$new_complete" 39936 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 39937 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 39938 fi 39939 fi 39940 39941 # Setup the resource compiler (RC) 39942 # Extract the first word of "rc", so it can be a program name with args. 39943 set dummy rc; ac_word=$2 39944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39945 $as_echo_n "checking for $ac_word... " >&6; } 39946 if ${ac_cv_prog_RC+:} false; then : 39947 $as_echo_n "(cached) " >&6 39948 else 39949 if test -n "$RC"; then 39950 ac_cv_prog_RC="$RC" # Let the user override the test. 39951 else 39952 ac_prog_rejected=no 39953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39954 for as_dir in $PATH 39955 do 39956 IFS=$as_save_IFS 39957 test -z "$as_dir" && as_dir=. 39958 for ac_exec_ext in '' $ac_executable_extensions; do 39959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39960 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 39961 ac_prog_rejected=yes 39962 continue 39963 fi 39964 ac_cv_prog_RC="rc" 39965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39966 break 2 39967 fi 39968 done 39969 done 39970 IFS=$as_save_IFS 39971 39972 if test $ac_prog_rejected = yes; then 39973 # We found a bogon in the path, so make sure we never use it. 39974 set dummy $ac_cv_prog_RC 39975 shift 39976 if test $# != 0; then 39977 # We chose a different compiler from the bogus one. 39978 # However, it has the same basename, so the bogon will be chosen 39979 # first if we set RC to just the basename; use the full file name. 39980 shift 39981 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 39982 fi 39983 fi 39984 fi 39985 fi 39986 RC=$ac_cv_prog_RC 39987 if test -n "$RC"; then 39988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 39989 $as_echo "$RC" >&6; } 39990 else 39991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39992 $as_echo "no" >&6; } 39993 fi 39994 39995 39996 39997 # Only process if variable expands to non-empty 39998 39999 if test "x$RC" != x; then 40000 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40001 40002 # First separate the path from the arguments. This will split at the first 40003 # space. 40004 complete="$RC" 40005 path="${complete%% *}" 40006 tmp="$complete EOL" 40007 arguments="${tmp#* }" 40008 40009 # Input might be given as Windows format, start by converting to 40010 # unix format. 40011 new_path=`$CYGPATH -u "$path"` 40012 40013 # Now try to locate executable using which 40014 new_path=`$WHICH "$new_path" 2> /dev/null` 40015 # bat and cmd files are not always considered executable in cygwin causing which 40016 # to not find them 40017 if test "x$new_path" = x \ 40018 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40019 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40020 new_path=`$CYGPATH -u "$path"` 40021 fi 40022 if test "x$new_path" = x; then 40023 # Oops. Which didn't find the executable. 40024 # The splitting of arguments from the executable at a space might have been incorrect, 40025 # since paths with space are more likely in Windows. Give it another try with the whole 40026 # argument. 40027 path="$complete" 40028 arguments="EOL" 40029 new_path=`$CYGPATH -u "$path"` 40030 new_path=`$WHICH "$new_path" 2> /dev/null` 40031 # bat and cmd files are not always considered executable in cygwin causing which 40032 # to not find them 40033 if test "x$new_path" = x \ 40034 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40035 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40036 new_path=`$CYGPATH -u "$path"` 40037 fi 40038 if test "x$new_path" = x; then 40039 # It's still not found. Now this is an unrecoverable error. 40040 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 40041 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 40042 has_space=`$ECHO "$complete" | $GREP " "` 40043 if test "x$has_space" != x; then 40044 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40045 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40046 fi 40047 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 40048 fi 40049 fi 40050 40051 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40052 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40053 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40054 # "foo.exe" is OK but "foo" is an error. 40055 # 40056 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40057 # It is also a way to make sure we got the proper file name for the real test later on. 40058 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40059 if test "x$test_shortpath" = x; then 40060 # Short path failed, file does not exist as specified. 40061 # Try adding .exe or .cmd 40062 if test -f "${new_path}.exe"; then 40063 input_to_shortpath="${new_path}.exe" 40064 elif test -f "${new_path}.cmd"; then 40065 input_to_shortpath="${new_path}.cmd" 40066 else 40067 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 40068 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 40069 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40070 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40071 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 40072 fi 40073 else 40074 input_to_shortpath="$new_path" 40075 fi 40076 40077 # Call helper function which possibly converts this using DOS-style short mode. 40078 # If so, the updated path is stored in $new_path. 40079 new_path="$input_to_shortpath" 40080 40081 input_path="$input_to_shortpath" 40082 # Check if we need to convert this using DOS-style short mode. If the path 40083 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40084 # take no chances and rewrite it. 40085 # Note: m4 eats our [], so we need to use [ and ] instead. 40086 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40087 if test "x$has_forbidden_chars" != x; then 40088 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40089 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40090 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40091 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40092 # Going to short mode and back again did indeed matter. Since short mode is 40093 # case insensitive, let's make it lowercase to improve readability. 40094 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40095 # Now convert it back to Unix-style (cygpath) 40096 input_path=`$CYGPATH -u "$shortmode_path"` 40097 new_path="$input_path" 40098 fi 40099 fi 40100 40101 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40102 if test "x$test_cygdrive_prefix" = x; then 40103 # As a simple fix, exclude /usr/bin since it's not a real path. 40104 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40105 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40106 # a path prefixed by /cygdrive for fixpath to work. 40107 new_path="$CYGWIN_ROOT_PATH$input_path" 40108 fi 40109 fi 40110 40111 # remove trailing .exe if any 40112 new_path="${new_path/%.exe/}" 40113 40114 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40115 40116 # First separate the path from the arguments. This will split at the first 40117 # space. 40118 complete="$RC" 40119 path="${complete%% *}" 40120 tmp="$complete EOL" 40121 arguments="${tmp#* }" 40122 40123 # Input might be given as Windows format, start by converting to 40124 # unix format. 40125 new_path="$path" 40126 40127 windows_path="$new_path" 40128 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40129 unix_path=`$CYGPATH -u "$windows_path"` 40130 new_path="$unix_path" 40131 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40132 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40133 new_path="$unix_path" 40134 fi 40135 40136 40137 # Now try to locate executable using which 40138 new_path=`$WHICH "$new_path" 2> /dev/null` 40139 40140 if test "x$new_path" = x; then 40141 # Oops. Which didn't find the executable. 40142 # The splitting of arguments from the executable at a space might have been incorrect, 40143 # since paths with space are more likely in Windows. Give it another try with the whole 40144 # argument. 40145 path="$complete" 40146 arguments="EOL" 40147 new_path="$path" 40148 40149 windows_path="$new_path" 40150 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40151 unix_path=`$CYGPATH -u "$windows_path"` 40152 new_path="$unix_path" 40153 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40154 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40155 new_path="$unix_path" 40156 fi 40157 40158 40159 new_path=`$WHICH "$new_path" 2> /dev/null` 40160 # bat and cmd files are not always considered executable in MSYS causing which 40161 # to not find them 40162 if test "x$new_path" = x \ 40163 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40164 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40165 new_path="$path" 40166 40167 windows_path="$new_path" 40168 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40169 unix_path=`$CYGPATH -u "$windows_path"` 40170 new_path="$unix_path" 40171 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40172 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40173 new_path="$unix_path" 40174 fi 40175 40176 fi 40177 40178 if test "x$new_path" = x; then 40179 # It's still not found. Now this is an unrecoverable error. 40180 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 40181 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 40182 has_space=`$ECHO "$complete" | $GREP " "` 40183 if test "x$has_space" != x; then 40184 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40185 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40186 fi 40187 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 40188 fi 40189 fi 40190 40191 # Now new_path has a complete unix path to the binary 40192 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40193 # Keep paths in /bin as-is, but remove trailing .exe if any 40194 new_path="${new_path/%.exe/}" 40195 # Do not save /bin paths to all_fixpath_prefixes! 40196 else 40197 # Not in mixed or Windows style, start by that. 40198 new_path=`cmd //c echo $new_path` 40199 40200 input_path="$new_path" 40201 # Check if we need to convert this using DOS-style short mode. If the path 40202 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40203 # take no chances and rewrite it. 40204 # Note: m4 eats our [], so we need to use [ and ] instead. 40205 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40206 if test "x$has_forbidden_chars" != x; then 40207 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40208 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40209 fi 40210 40211 # Output is in $new_path 40212 40213 windows_path="$new_path" 40214 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40215 unix_path=`$CYGPATH -u "$windows_path"` 40216 new_path="$unix_path" 40217 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40218 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40219 new_path="$unix_path" 40220 fi 40221 40222 # remove trailing .exe if any 40223 new_path="${new_path/%.exe/}" 40224 40225 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40226 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40227 fi 40228 40229 else 40230 # We're on a unix platform. Hooray! :) 40231 # First separate the path from the arguments. This will split at the first 40232 # space. 40233 complete="$RC" 40234 path="${complete%% *}" 40235 tmp="$complete EOL" 40236 arguments="${tmp#* }" 40237 40238 # Cannot rely on the command "which" here since it doesn't always work. 40239 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40240 if test -z "$is_absolute_path"; then 40241 # Path to executable is not absolute. Find it. 40242 IFS_save="$IFS" 40243 IFS=: 40244 for p in $PATH; do 40245 if test -f "$p/$path" && test -x "$p/$path"; then 40246 new_path="$p/$path" 40247 break 40248 fi 40249 done 40250 IFS="$IFS_save" 40251 else 40252 # This is an absolute path, we can use it without further modifications. 40253 new_path="$path" 40254 fi 40255 40256 if test "x$new_path" = x; then 40257 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 40258 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 40259 has_space=`$ECHO "$complete" | $GREP " "` 40260 if test "x$has_space" != x; then 40261 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40262 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40263 fi 40264 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 40265 fi 40266 fi 40267 40268 # Now join together the path and the arguments once again 40269 if test "x$arguments" != xEOL; then 40270 new_complete="$new_path ${arguments% *}" 40271 else 40272 new_complete="$new_path" 40273 fi 40274 40275 if test "x$complete" != "x$new_complete"; then 40276 RC="$new_complete" 40277 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 40278 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 40279 fi 40280 fi 40281 40282 # Extract the first word of "dumpbin", so it can be a program name with args. 40283 set dummy dumpbin; ac_word=$2 40284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40285 $as_echo_n "checking for $ac_word... " >&6; } 40286 if ${ac_cv_prog_DUMPBIN+:} false; then : 40287 $as_echo_n "(cached) " >&6 40288 else 40289 if test -n "$DUMPBIN"; then 40290 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 40291 else 40292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40293 for as_dir in $PATH 40294 do 40295 IFS=$as_save_IFS 40296 test -z "$as_dir" && as_dir=. 40297 for ac_exec_ext in '' $ac_executable_extensions; do 40298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40299 ac_cv_prog_DUMPBIN="dumpbin" 40300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40301 break 2 40302 fi 40303 done 40304 done 40305 IFS=$as_save_IFS 40306 40307 fi 40308 fi 40309 DUMPBIN=$ac_cv_prog_DUMPBIN 40310 if test -n "$DUMPBIN"; then 40311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 40312 $as_echo "$DUMPBIN" >&6; } 40313 else 40314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40315 $as_echo "no" >&6; } 40316 fi 40317 40318 40319 40320 # Only process if variable expands to non-empty 40321 40322 if test "x$DUMPBIN" != x; then 40323 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40324 40325 # First separate the path from the arguments. This will split at the first 40326 # space. 40327 complete="$DUMPBIN" 40328 path="${complete%% *}" 40329 tmp="$complete EOL" 40330 arguments="${tmp#* }" 40331 40332 # Input might be given as Windows format, start by converting to 40333 # unix format. 40334 new_path=`$CYGPATH -u "$path"` 40335 40336 # Now try to locate executable using which 40337 new_path=`$WHICH "$new_path" 2> /dev/null` 40338 # bat and cmd files are not always considered executable in cygwin causing which 40339 # to not find them 40340 if test "x$new_path" = x \ 40341 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40342 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40343 new_path=`$CYGPATH -u "$path"` 40344 fi 40345 if test "x$new_path" = x; then 40346 # Oops. Which didn't find the executable. 40347 # The splitting of arguments from the executable at a space might have been incorrect, 40348 # since paths with space are more likely in Windows. Give it another try with the whole 40349 # argument. 40350 path="$complete" 40351 arguments="EOL" 40352 new_path=`$CYGPATH -u "$path"` 40353 new_path=`$WHICH "$new_path" 2> /dev/null` 40354 # bat and cmd files are not always considered executable in cygwin causing which 40355 # to not find them 40356 if test "x$new_path" = x \ 40357 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40358 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40359 new_path=`$CYGPATH -u "$path"` 40360 fi 40361 if test "x$new_path" = x; then 40362 # It's still not found. Now this is an unrecoverable error. 40363 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 40364 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 40365 has_space=`$ECHO "$complete" | $GREP " "` 40366 if test "x$has_space" != x; then 40367 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40368 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40369 fi 40370 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 40371 fi 40372 fi 40373 40374 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40375 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40376 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40377 # "foo.exe" is OK but "foo" is an error. 40378 # 40379 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40380 # It is also a way to make sure we got the proper file name for the real test later on. 40381 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40382 if test "x$test_shortpath" = x; then 40383 # Short path failed, file does not exist as specified. 40384 # Try adding .exe or .cmd 40385 if test -f "${new_path}.exe"; then 40386 input_to_shortpath="${new_path}.exe" 40387 elif test -f "${new_path}.cmd"; then 40388 input_to_shortpath="${new_path}.cmd" 40389 else 40390 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 40391 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 40392 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40393 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40394 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 40395 fi 40396 else 40397 input_to_shortpath="$new_path" 40398 fi 40399 40400 # Call helper function which possibly converts this using DOS-style short mode. 40401 # If so, the updated path is stored in $new_path. 40402 new_path="$input_to_shortpath" 40403 40404 input_path="$input_to_shortpath" 40405 # Check if we need to convert this using DOS-style short mode. If the path 40406 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40407 # take no chances and rewrite it. 40408 # Note: m4 eats our [], so we need to use [ and ] instead. 40409 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40410 if test "x$has_forbidden_chars" != x; then 40411 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40412 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40413 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40414 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40415 # Going to short mode and back again did indeed matter. Since short mode is 40416 # case insensitive, let's make it lowercase to improve readability. 40417 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40418 # Now convert it back to Unix-style (cygpath) 40419 input_path=`$CYGPATH -u "$shortmode_path"` 40420 new_path="$input_path" 40421 fi 40422 fi 40423 40424 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40425 if test "x$test_cygdrive_prefix" = x; then 40426 # As a simple fix, exclude /usr/bin since it's not a real path. 40427 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40428 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40429 # a path prefixed by /cygdrive for fixpath to work. 40430 new_path="$CYGWIN_ROOT_PATH$input_path" 40431 fi 40432 fi 40433 40434 # remove trailing .exe if any 40435 new_path="${new_path/%.exe/}" 40436 40437 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40438 40439 # First separate the path from the arguments. This will split at the first 40440 # space. 40441 complete="$DUMPBIN" 40442 path="${complete%% *}" 40443 tmp="$complete EOL" 40444 arguments="${tmp#* }" 40445 40446 # Input might be given as Windows format, start by converting to 40447 # unix format. 40448 new_path="$path" 40449 40450 windows_path="$new_path" 40451 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40452 unix_path=`$CYGPATH -u "$windows_path"` 40453 new_path="$unix_path" 40454 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40455 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40456 new_path="$unix_path" 40457 fi 40458 40459 40460 # Now try to locate executable using which 40461 new_path=`$WHICH "$new_path" 2> /dev/null` 40462 40463 if test "x$new_path" = x; then 40464 # Oops. Which didn't find the executable. 40465 # The splitting of arguments from the executable at a space might have been incorrect, 40466 # since paths with space are more likely in Windows. Give it another try with the whole 40467 # argument. 40468 path="$complete" 40469 arguments="EOL" 40470 new_path="$path" 40471 40472 windows_path="$new_path" 40473 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40474 unix_path=`$CYGPATH -u "$windows_path"` 40475 new_path="$unix_path" 40476 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40477 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40478 new_path="$unix_path" 40479 fi 40480 40481 40482 new_path=`$WHICH "$new_path" 2> /dev/null` 40483 # bat and cmd files are not always considered executable in MSYS causing which 40484 # to not find them 40485 if test "x$new_path" = x \ 40486 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40487 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40488 new_path="$path" 40489 40490 windows_path="$new_path" 40491 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40492 unix_path=`$CYGPATH -u "$windows_path"` 40493 new_path="$unix_path" 40494 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40495 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40496 new_path="$unix_path" 40497 fi 40498 40499 fi 40500 40501 if test "x$new_path" = x; then 40502 # It's still not found. Now this is an unrecoverable error. 40503 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 40504 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 40505 has_space=`$ECHO "$complete" | $GREP " "` 40506 if test "x$has_space" != x; then 40507 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40508 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40509 fi 40510 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 40511 fi 40512 fi 40513 40514 # Now new_path has a complete unix path to the binary 40515 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40516 # Keep paths in /bin as-is, but remove trailing .exe if any 40517 new_path="${new_path/%.exe/}" 40518 # Do not save /bin paths to all_fixpath_prefixes! 40519 else 40520 # Not in mixed or Windows style, start by that. 40521 new_path=`cmd //c echo $new_path` 40522 40523 input_path="$new_path" 40524 # Check if we need to convert this using DOS-style short mode. If the path 40525 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40526 # take no chances and rewrite it. 40527 # Note: m4 eats our [], so we need to use [ and ] instead. 40528 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40529 if test "x$has_forbidden_chars" != x; then 40530 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40531 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40532 fi 40533 40534 # Output is in $new_path 40535 40536 windows_path="$new_path" 40537 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40538 unix_path=`$CYGPATH -u "$windows_path"` 40539 new_path="$unix_path" 40540 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40541 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40542 new_path="$unix_path" 40543 fi 40544 40545 # remove trailing .exe if any 40546 new_path="${new_path/%.exe/}" 40547 40548 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40549 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40550 fi 40551 40552 else 40553 # We're on a unix platform. Hooray! :) 40554 # First separate the path from the arguments. This will split at the first 40555 # space. 40556 complete="$DUMPBIN" 40557 path="${complete%% *}" 40558 tmp="$complete EOL" 40559 arguments="${tmp#* }" 40560 40561 # Cannot rely on the command "which" here since it doesn't always work. 40562 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40563 if test -z "$is_absolute_path"; then 40564 # Path to executable is not absolute. Find it. 40565 IFS_save="$IFS" 40566 IFS=: 40567 for p in $PATH; do 40568 if test -f "$p/$path" && test -x "$p/$path"; then 40569 new_path="$p/$path" 40570 break 40571 fi 40572 done 40573 IFS="$IFS_save" 40574 else 40575 # This is an absolute path, we can use it without further modifications. 40576 new_path="$path" 40577 fi 40578 40579 if test "x$new_path" = x; then 40580 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 40581 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 40582 has_space=`$ECHO "$complete" | $GREP " "` 40583 if test "x$has_space" != x; then 40584 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40585 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40586 fi 40587 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 40588 fi 40589 fi 40590 40591 # Now join together the path and the arguments once again 40592 if test "x$arguments" != xEOL; then 40593 new_complete="$new_path ${arguments% *}" 40594 else 40595 new_complete="$new_path" 40596 fi 40597 40598 if test "x$complete" != "x$new_complete"; then 40599 DUMPBIN="$new_complete" 40600 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 40601 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 40602 fi 40603 fi 40604 40605 # We need to check for 'msbuild.exe' because at the place where we expect to 40606 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 40607 # won't find the 'msbuild.exe' executable in that case (and the 40608 # 'ac_executable_extensions' is unusable due to performance reasons). 40609 # Notice that we intentionally don't fix up the path to MSBUILD because we 40610 # will call it in a DOS shell during freetype detection on Windows (see 40611 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 40612 # Extract the first word of "msbuild.exe", so it can be a program name with args. 40613 set dummy msbuild.exe; ac_word=$2 40614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40615 $as_echo_n "checking for $ac_word... " >&6; } 40616 if ${ac_cv_prog_MSBUILD+:} false; then : 40617 $as_echo_n "(cached) " >&6 40618 else 40619 if test -n "$MSBUILD"; then 40620 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 40621 else 40622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40623 for as_dir in $PATH 40624 do 40625 IFS=$as_save_IFS 40626 test -z "$as_dir" && as_dir=. 40627 for ac_exec_ext in '' $ac_executable_extensions; do 40628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40629 ac_cv_prog_MSBUILD="msbuild.exe" 40630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40631 break 2 40632 fi 40633 done 40634 done 40635 IFS=$as_save_IFS 40636 40637 fi 40638 fi 40639 MSBUILD=$ac_cv_prog_MSBUILD 40640 if test -n "$MSBUILD"; then 40641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 40642 $as_echo "$MSBUILD" >&6; } 40643 else 40644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40645 $as_echo "no" >&6; } 40646 fi 40647 40648 40649 fi 40650 40651 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 40652 40653 40654 # Publish this variable in the help. 40655 40656 40657 if [ -z "${STRIP+x}" ]; then 40658 # The variable is not set by user, try to locate tool using the code snippet 40659 for ac_prog in strip 40660 do 40661 # Extract the first word of "$ac_prog", so it can be a program name with args. 40662 set dummy $ac_prog; ac_word=$2 40663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40664 $as_echo_n "checking for $ac_word... " >&6; } 40665 if ${ac_cv_path_STRIP+:} false; then : 40666 $as_echo_n "(cached) " >&6 40667 else 40668 case $STRIP in 40669 [\\/]* | ?:[\\/]*) 40670 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 40671 ;; 40672 *) 40673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40674 for as_dir in $PATH 40675 do 40676 IFS=$as_save_IFS 40677 test -z "$as_dir" && as_dir=. 40678 for ac_exec_ext in '' $ac_executable_extensions; do 40679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40680 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 40681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40682 break 2 40683 fi 40684 done 40685 done 40686 IFS=$as_save_IFS 40687 40688 ;; 40689 esac 40690 fi 40691 STRIP=$ac_cv_path_STRIP 40692 if test -n "$STRIP"; then 40693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 40694 $as_echo "$STRIP" >&6; } 40695 else 40696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40697 $as_echo "no" >&6; } 40698 fi 40699 40700 40701 test -n "$STRIP" && break 40702 done 40703 40704 else 40705 # The variable is set, but is it from the command line or the environment? 40706 40707 # Try to remove the string !STRIP! from our list. 40708 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 40709 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40710 # If it failed, the variable was not from the command line. Ignore it, 40711 # but warn the user (except for BASH, which is always set by the calling BASH). 40712 if test "xSTRIP" != xBASH; then 40713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 40714 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 40715 fi 40716 # Try to locate tool using the code snippet 40717 for ac_prog in strip 40718 do 40719 # Extract the first word of "$ac_prog", so it can be a program name with args. 40720 set dummy $ac_prog; ac_word=$2 40721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40722 $as_echo_n "checking for $ac_word... " >&6; } 40723 if ${ac_cv_path_STRIP+:} false; then : 40724 $as_echo_n "(cached) " >&6 40725 else 40726 case $STRIP in 40727 [\\/]* | ?:[\\/]*) 40728 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 40729 ;; 40730 *) 40731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40732 for as_dir in $PATH 40733 do 40734 IFS=$as_save_IFS 40735 test -z "$as_dir" && as_dir=. 40736 for ac_exec_ext in '' $ac_executable_extensions; do 40737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40738 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 40739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40740 break 2 40741 fi 40742 done 40743 done 40744 IFS=$as_save_IFS 40745 40746 ;; 40747 esac 40748 fi 40749 STRIP=$ac_cv_path_STRIP 40750 if test -n "$STRIP"; then 40751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 40752 $as_echo "$STRIP" >&6; } 40753 else 40754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40755 $as_echo "no" >&6; } 40756 fi 40757 40758 40759 test -n "$STRIP" && break 40760 done 40761 40762 else 40763 # If it succeeded, then it was overridden by the user. We will use it 40764 # for the tool. 40765 40766 # First remove it from the list of overridden variables, so we can test 40767 # for unknown variables in the end. 40768 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40769 40770 # Check if we try to supply an empty value 40771 if test "x$STRIP" = x; then 40772 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 40773 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 40774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 40775 $as_echo_n "checking for STRIP... " >&6; } 40776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 40777 $as_echo "disabled" >&6; } 40778 else 40779 # Check if the provided tool contains a complete path. 40780 tool_specified="$STRIP" 40781 tool_basename="${tool_specified##*/}" 40782 if test "x$tool_basename" = "x$tool_specified"; then 40783 # A command without a complete path is provided, search $PATH. 40784 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 40785 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 40786 # Extract the first word of "$tool_basename", so it can be a program name with args. 40787 set dummy $tool_basename; ac_word=$2 40788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40789 $as_echo_n "checking for $ac_word... " >&6; } 40790 if ${ac_cv_path_STRIP+:} false; then : 40791 $as_echo_n "(cached) " >&6 40792 else 40793 case $STRIP in 40794 [\\/]* | ?:[\\/]*) 40795 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 40796 ;; 40797 *) 40798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40799 for as_dir in $PATH 40800 do 40801 IFS=$as_save_IFS 40802 test -z "$as_dir" && as_dir=. 40803 for ac_exec_ext in '' $ac_executable_extensions; do 40804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40805 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 40806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40807 break 2 40808 fi 40809 done 40810 done 40811 IFS=$as_save_IFS 40812 40813 ;; 40814 esac 40815 fi 40816 STRIP=$ac_cv_path_STRIP 40817 if test -n "$STRIP"; then 40818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 40819 $as_echo "$STRIP" >&6; } 40820 else 40821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40822 $as_echo "no" >&6; } 40823 fi 40824 40825 40826 if test "x$STRIP" = x; then 40827 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40828 fi 40829 else 40830 # Otherwise we believe it is a complete path. Use it as it is. 40831 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 40832 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 40833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 40834 $as_echo_n "checking for STRIP... " >&6; } 40835 if test ! -x "$tool_specified"; then 40836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40837 $as_echo "not found" >&6; } 40838 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 40839 fi 40840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40841 $as_echo "$tool_specified" >&6; } 40842 fi 40843 fi 40844 fi 40845 40846 fi 40847 40848 40849 40850 # Only process if variable expands to non-empty 40851 40852 if test "x$STRIP" != x; then 40853 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40854 40855 # First separate the path from the arguments. This will split at the first 40856 # space. 40857 complete="$STRIP" 40858 path="${complete%% *}" 40859 tmp="$complete EOL" 40860 arguments="${tmp#* }" 40861 40862 # Input might be given as Windows format, start by converting to 40863 # unix format. 40864 new_path=`$CYGPATH -u "$path"` 40865 40866 # Now try to locate executable using which 40867 new_path=`$WHICH "$new_path" 2> /dev/null` 40868 # bat and cmd files are not always considered executable in cygwin causing which 40869 # to not find them 40870 if test "x$new_path" = x \ 40871 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40872 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40873 new_path=`$CYGPATH -u "$path"` 40874 fi 40875 if test "x$new_path" = x; then 40876 # Oops. Which didn't find the executable. 40877 # The splitting of arguments from the executable at a space might have been incorrect, 40878 # since paths with space are more likely in Windows. Give it another try with the whole 40879 # argument. 40880 path="$complete" 40881 arguments="EOL" 40882 new_path=`$CYGPATH -u "$path"` 40883 new_path=`$WHICH "$new_path" 2> /dev/null` 40884 # bat and cmd files are not always considered executable in cygwin causing which 40885 # to not find them 40886 if test "x$new_path" = x \ 40887 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40888 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40889 new_path=`$CYGPATH -u "$path"` 40890 fi 40891 if test "x$new_path" = x; then 40892 # It's still not found. Now this is an unrecoverable error. 40893 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 40894 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 40895 has_space=`$ECHO "$complete" | $GREP " "` 40896 if test "x$has_space" != x; then 40897 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40898 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40899 fi 40900 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40901 fi 40902 fi 40903 40904 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40905 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40906 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40907 # "foo.exe" is OK but "foo" is an error. 40908 # 40909 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40910 # It is also a way to make sure we got the proper file name for the real test later on. 40911 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40912 if test "x$test_shortpath" = x; then 40913 # Short path failed, file does not exist as specified. 40914 # Try adding .exe or .cmd 40915 if test -f "${new_path}.exe"; then 40916 input_to_shortpath="${new_path}.exe" 40917 elif test -f "${new_path}.cmd"; then 40918 input_to_shortpath="${new_path}.cmd" 40919 else 40920 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 40921 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 40922 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40923 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40924 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40925 fi 40926 else 40927 input_to_shortpath="$new_path" 40928 fi 40929 40930 # Call helper function which possibly converts this using DOS-style short mode. 40931 # If so, the updated path is stored in $new_path. 40932 new_path="$input_to_shortpath" 40933 40934 input_path="$input_to_shortpath" 40935 # Check if we need to convert this using DOS-style short mode. If the path 40936 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40937 # take no chances and rewrite it. 40938 # Note: m4 eats our [], so we need to use [ and ] instead. 40939 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40940 if test "x$has_forbidden_chars" != x; then 40941 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40942 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40943 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40944 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40945 # Going to short mode and back again did indeed matter. Since short mode is 40946 # case insensitive, let's make it lowercase to improve readability. 40947 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40948 # Now convert it back to Unix-style (cygpath) 40949 input_path=`$CYGPATH -u "$shortmode_path"` 40950 new_path="$input_path" 40951 fi 40952 fi 40953 40954 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40955 if test "x$test_cygdrive_prefix" = x; then 40956 # As a simple fix, exclude /usr/bin since it's not a real path. 40957 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40958 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40959 # a path prefixed by /cygdrive for fixpath to work. 40960 new_path="$CYGWIN_ROOT_PATH$input_path" 40961 fi 40962 fi 40963 40964 # remove trailing .exe if any 40965 new_path="${new_path/%.exe/}" 40966 40967 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40968 40969 # First separate the path from the arguments. This will split at the first 40970 # space. 40971 complete="$STRIP" 40972 path="${complete%% *}" 40973 tmp="$complete EOL" 40974 arguments="${tmp#* }" 40975 40976 # Input might be given as Windows format, start by converting to 40977 # unix format. 40978 new_path="$path" 40979 40980 windows_path="$new_path" 40981 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40982 unix_path=`$CYGPATH -u "$windows_path"` 40983 new_path="$unix_path" 40984 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40985 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40986 new_path="$unix_path" 40987 fi 40988 40989 40990 # Now try to locate executable using which 40991 new_path=`$WHICH "$new_path" 2> /dev/null` 40992 40993 if test "x$new_path" = x; then 40994 # Oops. Which didn't find the executable. 40995 # The splitting of arguments from the executable at a space might have been incorrect, 40996 # since paths with space are more likely in Windows. Give it another try with the whole 40997 # argument. 40998 path="$complete" 40999 arguments="EOL" 41000 new_path="$path" 41001 41002 windows_path="$new_path" 41003 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41004 unix_path=`$CYGPATH -u "$windows_path"` 41005 new_path="$unix_path" 41006 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41007 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41008 new_path="$unix_path" 41009 fi 41010 41011 41012 new_path=`$WHICH "$new_path" 2> /dev/null` 41013 # bat and cmd files are not always considered executable in MSYS causing which 41014 # to not find them 41015 if test "x$new_path" = x \ 41016 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41017 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41018 new_path="$path" 41019 41020 windows_path="$new_path" 41021 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41022 unix_path=`$CYGPATH -u "$windows_path"` 41023 new_path="$unix_path" 41024 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41025 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41026 new_path="$unix_path" 41027 fi 41028 41029 fi 41030 41031 if test "x$new_path" = x; then 41032 # It's still not found. Now this is an unrecoverable error. 41033 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41034 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41035 has_space=`$ECHO "$complete" | $GREP " "` 41036 if test "x$has_space" != x; then 41037 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41038 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41039 fi 41040 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41041 fi 41042 fi 41043 41044 # Now new_path has a complete unix path to the binary 41045 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41046 # Keep paths in /bin as-is, but remove trailing .exe if any 41047 new_path="${new_path/%.exe/}" 41048 # Do not save /bin paths to all_fixpath_prefixes! 41049 else 41050 # Not in mixed or Windows style, start by that. 41051 new_path=`cmd //c echo $new_path` 41052 41053 input_path="$new_path" 41054 # Check if we need to convert this using DOS-style short mode. If the path 41055 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41056 # take no chances and rewrite it. 41057 # Note: m4 eats our [], so we need to use [ and ] instead. 41058 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41059 if test "x$has_forbidden_chars" != x; then 41060 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41061 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41062 fi 41063 41064 # Output is in $new_path 41065 41066 windows_path="$new_path" 41067 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41068 unix_path=`$CYGPATH -u "$windows_path"` 41069 new_path="$unix_path" 41070 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41071 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41072 new_path="$unix_path" 41073 fi 41074 41075 # remove trailing .exe if any 41076 new_path="${new_path/%.exe/}" 41077 41078 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41079 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41080 fi 41081 41082 else 41083 # We're on a unix platform. Hooray! :) 41084 # First separate the path from the arguments. This will split at the first 41085 # space. 41086 complete="$STRIP" 41087 path="${complete%% *}" 41088 tmp="$complete EOL" 41089 arguments="${tmp#* }" 41090 41091 # Cannot rely on the command "which" here since it doesn't always work. 41092 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41093 if test -z "$is_absolute_path"; then 41094 # Path to executable is not absolute. Find it. 41095 IFS_save="$IFS" 41096 IFS=: 41097 for p in $PATH; do 41098 if test -f "$p/$path" && test -x "$p/$path"; then 41099 new_path="$p/$path" 41100 break 41101 fi 41102 done 41103 IFS="$IFS_save" 41104 else 41105 # This is an absolute path, we can use it without further modifications. 41106 new_path="$path" 41107 fi 41108 41109 if test "x$new_path" = x; then 41110 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41111 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41112 has_space=`$ECHO "$complete" | $GREP " "` 41113 if test "x$has_space" != x; then 41114 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41115 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41116 fi 41117 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41118 fi 41119 fi 41120 41121 # Now join together the path and the arguments once again 41122 if test "x$arguments" != xEOL; then 41123 new_complete="$new_path ${arguments% *}" 41124 else 41125 new_complete="$new_path" 41126 fi 41127 41128 if test "x$complete" != "x$new_complete"; then 41129 STRIP="$new_complete" 41130 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 41131 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 41132 fi 41133 fi 41134 41135 41136 41137 # Publish this variable in the help. 41138 41139 41140 if [ -z "${NM+x}" ]; then 41141 # The variable is not set by user, try to locate tool using the code snippet 41142 for ac_prog in nm 41143 do 41144 # Extract the first word of "$ac_prog", so it can be a program name with args. 41145 set dummy $ac_prog; ac_word=$2 41146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41147 $as_echo_n "checking for $ac_word... " >&6; } 41148 if ${ac_cv_path_NM+:} false; then : 41149 $as_echo_n "(cached) " >&6 41150 else 41151 case $NM in 41152 [\\/]* | ?:[\\/]*) 41153 ac_cv_path_NM="$NM" # Let the user override the test with a path. 41154 ;; 41155 *) 41156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41157 for as_dir in $PATH 41158 do 41159 IFS=$as_save_IFS 41160 test -z "$as_dir" && as_dir=. 41161 for ac_exec_ext in '' $ac_executable_extensions; do 41162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41163 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 41164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41165 break 2 41166 fi 41167 done 41168 done 41169 IFS=$as_save_IFS 41170 41171 ;; 41172 esac 41173 fi 41174 NM=$ac_cv_path_NM 41175 if test -n "$NM"; then 41176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41177 $as_echo "$NM" >&6; } 41178 else 41179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41180 $as_echo "no" >&6; } 41181 fi 41182 41183 41184 test -n "$NM" && break 41185 done 41186 41187 else 41188 # The variable is set, but is it from the command line or the environment? 41189 41190 # Try to remove the string !NM! from our list. 41191 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 41192 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41193 # If it failed, the variable was not from the command line. Ignore it, 41194 # but warn the user (except for BASH, which is always set by the calling BASH). 41195 if test "xNM" != xBASH; then 41196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 41197 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 41198 fi 41199 # Try to locate tool using the code snippet 41200 for ac_prog in nm 41201 do 41202 # Extract the first word of "$ac_prog", so it can be a program name with args. 41203 set dummy $ac_prog; ac_word=$2 41204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41205 $as_echo_n "checking for $ac_word... " >&6; } 41206 if ${ac_cv_path_NM+:} false; then : 41207 $as_echo_n "(cached) " >&6 41208 else 41209 case $NM in 41210 [\\/]* | ?:[\\/]*) 41211 ac_cv_path_NM="$NM" # Let the user override the test with a path. 41212 ;; 41213 *) 41214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41215 for as_dir in $PATH 41216 do 41217 IFS=$as_save_IFS 41218 test -z "$as_dir" && as_dir=. 41219 for ac_exec_ext in '' $ac_executable_extensions; do 41220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41221 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 41222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41223 break 2 41224 fi 41225 done 41226 done 41227 IFS=$as_save_IFS 41228 41229 ;; 41230 esac 41231 fi 41232 NM=$ac_cv_path_NM 41233 if test -n "$NM"; then 41234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41235 $as_echo "$NM" >&6; } 41236 else 41237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41238 $as_echo "no" >&6; } 41239 fi 41240 41241 41242 test -n "$NM" && break 41243 done 41244 41245 else 41246 # If it succeeded, then it was overridden by the user. We will use it 41247 # for the tool. 41248 41249 # First remove it from the list of overridden variables, so we can test 41250 # for unknown variables in the end. 41251 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41252 41253 # Check if we try to supply an empty value 41254 if test "x$NM" = x; then 41255 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 41256 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 41257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 41258 $as_echo_n "checking for NM... " >&6; } 41259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41260 $as_echo "disabled" >&6; } 41261 else 41262 # Check if the provided tool contains a complete path. 41263 tool_specified="$NM" 41264 tool_basename="${tool_specified##*/}" 41265 if test "x$tool_basename" = "x$tool_specified"; then 41266 # A command without a complete path is provided, search $PATH. 41267 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 41268 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 41269 # Extract the first word of "$tool_basename", so it can be a program name with args. 41270 set dummy $tool_basename; ac_word=$2 41271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41272 $as_echo_n "checking for $ac_word... " >&6; } 41273 if ${ac_cv_path_NM+:} false; then : 41274 $as_echo_n "(cached) " >&6 41275 else 41276 case $NM in 41277 [\\/]* | ?:[\\/]*) 41278 ac_cv_path_NM="$NM" # Let the user override the test with a path. 41279 ;; 41280 *) 41281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41282 for as_dir in $PATH 41283 do 41284 IFS=$as_save_IFS 41285 test -z "$as_dir" && as_dir=. 41286 for ac_exec_ext in '' $ac_executable_extensions; do 41287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41288 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 41289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41290 break 2 41291 fi 41292 done 41293 done 41294 IFS=$as_save_IFS 41295 41296 ;; 41297 esac 41298 fi 41299 NM=$ac_cv_path_NM 41300 if test -n "$NM"; then 41301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41302 $as_echo "$NM" >&6; } 41303 else 41304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41305 $as_echo "no" >&6; } 41306 fi 41307 41308 41309 if test "x$NM" = x; then 41310 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41311 fi 41312 else 41313 # Otherwise we believe it is a complete path. Use it as it is. 41314 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 41315 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 41316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 41317 $as_echo_n "checking for NM... " >&6; } 41318 if test ! -x "$tool_specified"; then 41319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41320 $as_echo "not found" >&6; } 41321 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 41322 fi 41323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41324 $as_echo "$tool_specified" >&6; } 41325 fi 41326 fi 41327 fi 41328 41329 fi 41330 41331 41332 41333 # Only process if variable expands to non-empty 41334 41335 if test "x$NM" != x; then 41336 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41337 41338 # First separate the path from the arguments. This will split at the first 41339 # space. 41340 complete="$NM" 41341 path="${complete%% *}" 41342 tmp="$complete EOL" 41343 arguments="${tmp#* }" 41344 41345 # Input might be given as Windows format, start by converting to 41346 # unix format. 41347 new_path=`$CYGPATH -u "$path"` 41348 41349 # Now try to locate executable using which 41350 new_path=`$WHICH "$new_path" 2> /dev/null` 41351 # bat and cmd files are not always considered executable in cygwin causing which 41352 # to not find them 41353 if test "x$new_path" = x \ 41354 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41355 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41356 new_path=`$CYGPATH -u "$path"` 41357 fi 41358 if test "x$new_path" = x; then 41359 # Oops. Which didn't find the executable. 41360 # The splitting of arguments from the executable at a space might have been incorrect, 41361 # since paths with space are more likely in Windows. Give it another try with the whole 41362 # argument. 41363 path="$complete" 41364 arguments="EOL" 41365 new_path=`$CYGPATH -u "$path"` 41366 new_path=`$WHICH "$new_path" 2> /dev/null` 41367 # bat and cmd files are not always considered executable in cygwin causing which 41368 # to not find them 41369 if test "x$new_path" = x \ 41370 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41371 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41372 new_path=`$CYGPATH -u "$path"` 41373 fi 41374 if test "x$new_path" = x; then 41375 # It's still not found. Now this is an unrecoverable error. 41376 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 41377 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 41378 has_space=`$ECHO "$complete" | $GREP " "` 41379 if test "x$has_space" != x; then 41380 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41381 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41382 fi 41383 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 41384 fi 41385 fi 41386 41387 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41388 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41389 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41390 # "foo.exe" is OK but "foo" is an error. 41391 # 41392 # This test is therefore slightly more accurate than "test -f" to check for file presence. 41393 # It is also a way to make sure we got the proper file name for the real test later on. 41394 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41395 if test "x$test_shortpath" = x; then 41396 # Short path failed, file does not exist as specified. 41397 # Try adding .exe or .cmd 41398 if test -f "${new_path}.exe"; then 41399 input_to_shortpath="${new_path}.exe" 41400 elif test -f "${new_path}.cmd"; then 41401 input_to_shortpath="${new_path}.cmd" 41402 else 41403 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 41404 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 41405 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 41406 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 41407 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 41408 fi 41409 else 41410 input_to_shortpath="$new_path" 41411 fi 41412 41413 # Call helper function which possibly converts this using DOS-style short mode. 41414 # If so, the updated path is stored in $new_path. 41415 new_path="$input_to_shortpath" 41416 41417 input_path="$input_to_shortpath" 41418 # Check if we need to convert this using DOS-style short mode. If the path 41419 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41420 # take no chances and rewrite it. 41421 # Note: m4 eats our [], so we need to use [ and ] instead. 41422 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41423 if test "x$has_forbidden_chars" != x; then 41424 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41425 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41426 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41427 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41428 # Going to short mode and back again did indeed matter. Since short mode is 41429 # case insensitive, let's make it lowercase to improve readability. 41430 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41431 # Now convert it back to Unix-style (cygpath) 41432 input_path=`$CYGPATH -u "$shortmode_path"` 41433 new_path="$input_path" 41434 fi 41435 fi 41436 41437 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41438 if test "x$test_cygdrive_prefix" = x; then 41439 # As a simple fix, exclude /usr/bin since it's not a real path. 41440 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 41441 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41442 # a path prefixed by /cygdrive for fixpath to work. 41443 new_path="$CYGWIN_ROOT_PATH$input_path" 41444 fi 41445 fi 41446 41447 # remove trailing .exe if any 41448 new_path="${new_path/%.exe/}" 41449 41450 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41451 41452 # First separate the path from the arguments. This will split at the first 41453 # space. 41454 complete="$NM" 41455 path="${complete%% *}" 41456 tmp="$complete EOL" 41457 arguments="${tmp#* }" 41458 41459 # Input might be given as Windows format, start by converting to 41460 # unix format. 41461 new_path="$path" 41462 41463 windows_path="$new_path" 41464 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41465 unix_path=`$CYGPATH -u "$windows_path"` 41466 new_path="$unix_path" 41467 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41468 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41469 new_path="$unix_path" 41470 fi 41471 41472 41473 # Now try to locate executable using which 41474 new_path=`$WHICH "$new_path" 2> /dev/null` 41475 41476 if test "x$new_path" = x; then 41477 # Oops. Which didn't find the executable. 41478 # The splitting of arguments from the executable at a space might have been incorrect, 41479 # since paths with space are more likely in Windows. Give it another try with the whole 41480 # argument. 41481 path="$complete" 41482 arguments="EOL" 41483 new_path="$path" 41484 41485 windows_path="$new_path" 41486 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41487 unix_path=`$CYGPATH -u "$windows_path"` 41488 new_path="$unix_path" 41489 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41490 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41491 new_path="$unix_path" 41492 fi 41493 41494 41495 new_path=`$WHICH "$new_path" 2> /dev/null` 41496 # bat and cmd files are not always considered executable in MSYS causing which 41497 # to not find them 41498 if test "x$new_path" = x \ 41499 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41500 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41501 new_path="$path" 41502 41503 windows_path="$new_path" 41504 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41505 unix_path=`$CYGPATH -u "$windows_path"` 41506 new_path="$unix_path" 41507 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41508 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41509 new_path="$unix_path" 41510 fi 41511 41512 fi 41513 41514 if test "x$new_path" = x; then 41515 # It's still not found. Now this is an unrecoverable error. 41516 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 41517 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 41518 has_space=`$ECHO "$complete" | $GREP " "` 41519 if test "x$has_space" != x; then 41520 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41521 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41522 fi 41523 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 41524 fi 41525 fi 41526 41527 # Now new_path has a complete unix path to the binary 41528 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41529 # Keep paths in /bin as-is, but remove trailing .exe if any 41530 new_path="${new_path/%.exe/}" 41531 # Do not save /bin paths to all_fixpath_prefixes! 41532 else 41533 # Not in mixed or Windows style, start by that. 41534 new_path=`cmd //c echo $new_path` 41535 41536 input_path="$new_path" 41537 # Check if we need to convert this using DOS-style short mode. If the path 41538 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41539 # take no chances and rewrite it. 41540 # Note: m4 eats our [], so we need to use [ and ] instead. 41541 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41542 if test "x$has_forbidden_chars" != x; then 41543 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41544 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41545 fi 41546 41547 # Output is in $new_path 41548 41549 windows_path="$new_path" 41550 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41551 unix_path=`$CYGPATH -u "$windows_path"` 41552 new_path="$unix_path" 41553 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41554 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41555 new_path="$unix_path" 41556 fi 41557 41558 # remove trailing .exe if any 41559 new_path="${new_path/%.exe/}" 41560 41561 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41562 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41563 fi 41564 41565 else 41566 # We're on a unix platform. Hooray! :) 41567 # First separate the path from the arguments. This will split at the first 41568 # space. 41569 complete="$NM" 41570 path="${complete%% *}" 41571 tmp="$complete EOL" 41572 arguments="${tmp#* }" 41573 41574 # Cannot rely on the command "which" here since it doesn't always work. 41575 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41576 if test -z "$is_absolute_path"; then 41577 # Path to executable is not absolute. Find it. 41578 IFS_save="$IFS" 41579 IFS=: 41580 for p in $PATH; do 41581 if test -f "$p/$path" && test -x "$p/$path"; then 41582 new_path="$p/$path" 41583 break 41584 fi 41585 done 41586 IFS="$IFS_save" 41587 else 41588 # This is an absolute path, we can use it without further modifications. 41589 new_path="$path" 41590 fi 41591 41592 if test "x$new_path" = x; then 41593 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 41594 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 41595 has_space=`$ECHO "$complete" | $GREP " "` 41596 if test "x$has_space" != x; then 41597 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41598 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41599 fi 41600 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 41601 fi 41602 fi 41603 41604 # Now join together the path and the arguments once again 41605 if test "x$arguments" != xEOL; then 41606 new_complete="$new_path ${arguments% *}" 41607 else 41608 new_complete="$new_path" 41609 fi 41610 41611 if test "x$complete" != "x$new_complete"; then 41612 NM="$new_complete" 41613 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 41614 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 41615 fi 41616 fi 41617 41618 41619 41620 # Publish this variable in the help. 41621 41622 41623 if [ -z "${GNM+x}" ]; then 41624 # The variable is not set by user, try to locate tool using the code snippet 41625 for ac_prog in gnm 41626 do 41627 # Extract the first word of "$ac_prog", so it can be a program name with args. 41628 set dummy $ac_prog; ac_word=$2 41629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41630 $as_echo_n "checking for $ac_word... " >&6; } 41631 if ${ac_cv_path_GNM+:} false; then : 41632 $as_echo_n "(cached) " >&6 41633 else 41634 case $GNM in 41635 [\\/]* | ?:[\\/]*) 41636 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 41637 ;; 41638 *) 41639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41640 for as_dir in $PATH 41641 do 41642 IFS=$as_save_IFS 41643 test -z "$as_dir" && as_dir=. 41644 for ac_exec_ext in '' $ac_executable_extensions; do 41645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41646 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 41647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41648 break 2 41649 fi 41650 done 41651 done 41652 IFS=$as_save_IFS 41653 41654 ;; 41655 esac 41656 fi 41657 GNM=$ac_cv_path_GNM 41658 if test -n "$GNM"; then 41659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 41660 $as_echo "$GNM" >&6; } 41661 else 41662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41663 $as_echo "no" >&6; } 41664 fi 41665 41666 41667 test -n "$GNM" && break 41668 done 41669 41670 else 41671 # The variable is set, but is it from the command line or the environment? 41672 41673 # Try to remove the string !GNM! from our list. 41674 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 41675 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41676 # If it failed, the variable was not from the command line. Ignore it, 41677 # but warn the user (except for BASH, which is always set by the calling BASH). 41678 if test "xGNM" != xBASH; then 41679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 41680 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 41681 fi 41682 # Try to locate tool using the code snippet 41683 for ac_prog in gnm 41684 do 41685 # Extract the first word of "$ac_prog", so it can be a program name with args. 41686 set dummy $ac_prog; ac_word=$2 41687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41688 $as_echo_n "checking for $ac_word... " >&6; } 41689 if ${ac_cv_path_GNM+:} false; then : 41690 $as_echo_n "(cached) " >&6 41691 else 41692 case $GNM in 41693 [\\/]* | ?:[\\/]*) 41694 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 41695 ;; 41696 *) 41697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41698 for as_dir in $PATH 41699 do 41700 IFS=$as_save_IFS 41701 test -z "$as_dir" && as_dir=. 41702 for ac_exec_ext in '' $ac_executable_extensions; do 41703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41704 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 41705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41706 break 2 41707 fi 41708 done 41709 done 41710 IFS=$as_save_IFS 41711 41712 ;; 41713 esac 41714 fi 41715 GNM=$ac_cv_path_GNM 41716 if test -n "$GNM"; then 41717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 41718 $as_echo "$GNM" >&6; } 41719 else 41720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41721 $as_echo "no" >&6; } 41722 fi 41723 41724 41725 test -n "$GNM" && break 41726 done 41727 41728 else 41729 # If it succeeded, then it was overridden by the user. We will use it 41730 # for the tool. 41731 41732 # First remove it from the list of overridden variables, so we can test 41733 # for unknown variables in the end. 41734 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41735 41736 # Check if we try to supply an empty value 41737 if test "x$GNM" = x; then 41738 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GNM= (no value)" >&5 41739 $as_echo "$as_me: Setting user supplied tool GNM= (no value)" >&6;} 41740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 41741 $as_echo_n "checking for GNM... " >&6; } 41742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41743 $as_echo "disabled" >&6; } 41744 else 41745 # Check if the provided tool contains a complete path. 41746 tool_specified="$GNM" 41747 tool_basename="${tool_specified##*/}" 41748 if test "x$tool_basename" = "x$tool_specified"; then 41749 # A command without a complete path is provided, search $PATH. 41750 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 41751 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 41752 # Extract the first word of "$tool_basename", so it can be a program name with args. 41753 set dummy $tool_basename; 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_path_GNM+:} false; then : 41757 $as_echo_n "(cached) " >&6 41758 else 41759 case $GNM in 41760 [\\/]* | ?:[\\/]*) 41761 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 41762 ;; 41763 *) 41764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41765 for as_dir in $PATH 41766 do 41767 IFS=$as_save_IFS 41768 test -z "$as_dir" && as_dir=. 41769 for ac_exec_ext in '' $ac_executable_extensions; do 41770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41771 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 41772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41773 break 2 41774 fi 41775 done 41776 done 41777 IFS=$as_save_IFS 41778 41779 ;; 41780 esac 41781 fi 41782 GNM=$ac_cv_path_GNM 41783 if test -n "$GNM"; then 41784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 41785 $as_echo "$GNM" >&6; } 41786 else 41787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41788 $as_echo "no" >&6; } 41789 fi 41790 41791 41792 if test "x$GNM" = x; then 41793 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41794 fi 41795 else 41796 # Otherwise we believe it is a complete path. Use it as it is. 41797 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 41798 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 41799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 41800 $as_echo_n "checking for GNM... " >&6; } 41801 if test ! -x "$tool_specified"; then 41802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41803 $as_echo "not found" >&6; } 41804 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 41805 fi 41806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41807 $as_echo "$tool_specified" >&6; } 41808 fi 41809 fi 41810 fi 41811 41812 fi 41813 41814 41815 41816 # Only process if variable expands to non-empty 41817 41818 if test "x$GNM" != x; then 41819 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41820 41821 # First separate the path from the arguments. This will split at the first 41822 # space. 41823 complete="$GNM" 41824 path="${complete%% *}" 41825 tmp="$complete EOL" 41826 arguments="${tmp#* }" 41827 41828 # Input might be given as Windows format, start by converting to 41829 # unix format. 41830 new_path=`$CYGPATH -u "$path"` 41831 41832 # Now try to locate executable using which 41833 new_path=`$WHICH "$new_path" 2> /dev/null` 41834 # bat and cmd files are not always considered executable in cygwin causing which 41835 # to not find them 41836 if test "x$new_path" = x \ 41837 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41838 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41839 new_path=`$CYGPATH -u "$path"` 41840 fi 41841 if test "x$new_path" = x; then 41842 # Oops. Which didn't find the executable. 41843 # The splitting of arguments from the executable at a space might have been incorrect, 41844 # since paths with space are more likely in Windows. Give it another try with the whole 41845 # argument. 41846 path="$complete" 41847 arguments="EOL" 41848 new_path=`$CYGPATH -u "$path"` 41849 new_path=`$WHICH "$new_path" 2> /dev/null` 41850 # bat and cmd files are not always considered executable in cygwin causing which 41851 # to not find them 41852 if test "x$new_path" = x \ 41853 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41854 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41855 new_path=`$CYGPATH -u "$path"` 41856 fi 41857 if test "x$new_path" = x; then 41858 # It's still not found. Now this is an unrecoverable error. 41859 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 41860 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 41861 has_space=`$ECHO "$complete" | $GREP " "` 41862 if test "x$has_space" != x; then 41863 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41864 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41865 fi 41866 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 41867 fi 41868 fi 41869 41870 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41871 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41872 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41873 # "foo.exe" is OK but "foo" is an error. 41874 # 41875 # This test is therefore slightly more accurate than "test -f" to check for file presence. 41876 # It is also a way to make sure we got the proper file name for the real test later on. 41877 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41878 if test "x$test_shortpath" = x; then 41879 # Short path failed, file does not exist as specified. 41880 # Try adding .exe or .cmd 41881 if test -f "${new_path}.exe"; then 41882 input_to_shortpath="${new_path}.exe" 41883 elif test -f "${new_path}.cmd"; then 41884 input_to_shortpath="${new_path}.cmd" 41885 else 41886 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 41887 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 41888 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 41889 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 41890 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 41891 fi 41892 else 41893 input_to_shortpath="$new_path" 41894 fi 41895 41896 # Call helper function which possibly converts this using DOS-style short mode. 41897 # If so, the updated path is stored in $new_path. 41898 new_path="$input_to_shortpath" 41899 41900 input_path="$input_to_shortpath" 41901 # Check if we need to convert this using DOS-style short mode. If the path 41902 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41903 # take no chances and rewrite it. 41904 # Note: m4 eats our [], so we need to use [ and ] instead. 41905 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41906 if test "x$has_forbidden_chars" != x; then 41907 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41908 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41909 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41910 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41911 # Going to short mode and back again did indeed matter. Since short mode is 41912 # case insensitive, let's make it lowercase to improve readability. 41913 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41914 # Now convert it back to Unix-style (cygpath) 41915 input_path=`$CYGPATH -u "$shortmode_path"` 41916 new_path="$input_path" 41917 fi 41918 fi 41919 41920 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41921 if test "x$test_cygdrive_prefix" = x; then 41922 # As a simple fix, exclude /usr/bin since it's not a real path. 41923 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 41924 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41925 # a path prefixed by /cygdrive for fixpath to work. 41926 new_path="$CYGWIN_ROOT_PATH$input_path" 41927 fi 41928 fi 41929 41930 # remove trailing .exe if any 41931 new_path="${new_path/%.exe/}" 41932 41933 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41934 41935 # First separate the path from the arguments. This will split at the first 41936 # space. 41937 complete="$GNM" 41938 path="${complete%% *}" 41939 tmp="$complete EOL" 41940 arguments="${tmp#* }" 41941 41942 # Input might be given as Windows format, start by converting to 41943 # unix format. 41944 new_path="$path" 41945 41946 windows_path="$new_path" 41947 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41948 unix_path=`$CYGPATH -u "$windows_path"` 41949 new_path="$unix_path" 41950 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41951 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41952 new_path="$unix_path" 41953 fi 41954 41955 41956 # Now try to locate executable using which 41957 new_path=`$WHICH "$new_path" 2> /dev/null` 41958 41959 if test "x$new_path" = x; then 41960 # Oops. Which didn't find the executable. 41961 # The splitting of arguments from the executable at a space might have been incorrect, 41962 # since paths with space are more likely in Windows. Give it another try with the whole 41963 # argument. 41964 path="$complete" 41965 arguments="EOL" 41966 new_path="$path" 41967 41968 windows_path="$new_path" 41969 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41970 unix_path=`$CYGPATH -u "$windows_path"` 41971 new_path="$unix_path" 41972 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41973 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41974 new_path="$unix_path" 41975 fi 41976 41977 41978 new_path=`$WHICH "$new_path" 2> /dev/null` 41979 # bat and cmd files are not always considered executable in MSYS causing which 41980 # to not find them 41981 if test "x$new_path" = x \ 41982 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41983 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41984 new_path="$path" 41985 41986 windows_path="$new_path" 41987 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41988 unix_path=`$CYGPATH -u "$windows_path"` 41989 new_path="$unix_path" 41990 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41991 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41992 new_path="$unix_path" 41993 fi 41994 41995 fi 41996 41997 if test "x$new_path" = x; then 41998 # It's still not found. Now this is an unrecoverable error. 41999 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 42000 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 42001 has_space=`$ECHO "$complete" | $GREP " "` 42002 if test "x$has_space" != x; then 42003 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42004 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42005 fi 42006 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 42007 fi 42008 fi 42009 42010 # Now new_path has a complete unix path to the binary 42011 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 42012 # Keep paths in /bin as-is, but remove trailing .exe if any 42013 new_path="${new_path/%.exe/}" 42014 # Do not save /bin paths to all_fixpath_prefixes! 42015 else 42016 # Not in mixed or Windows style, start by that. 42017 new_path=`cmd //c echo $new_path` 42018 42019 input_path="$new_path" 42020 # Check if we need to convert this using DOS-style short mode. If the path 42021 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42022 # take no chances and rewrite it. 42023 # Note: m4 eats our [], so we need to use [ and ] instead. 42024 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42025 if test "x$has_forbidden_chars" != x; then 42026 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42027 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42028 fi 42029 42030 # Output is in $new_path 42031 42032 windows_path="$new_path" 42033 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42034 unix_path=`$CYGPATH -u "$windows_path"` 42035 new_path="$unix_path" 42036 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42037 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42038 new_path="$unix_path" 42039 fi 42040 42041 # remove trailing .exe if any 42042 new_path="${new_path/%.exe/}" 42043 42044 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42045 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42046 fi 42047 42048 else 42049 # We're on a unix platform. Hooray! :) 42050 # First separate the path from the arguments. This will split at the first 42051 # space. 42052 complete="$GNM" 42053 path="${complete%% *}" 42054 tmp="$complete EOL" 42055 arguments="${tmp#* }" 42056 42057 # Cannot rely on the command "which" here since it doesn't always work. 42058 is_absolute_path=`$ECHO "$path" | $GREP ^/` 42059 if test -z "$is_absolute_path"; then 42060 # Path to executable is not absolute. Find it. 42061 IFS_save="$IFS" 42062 IFS=: 42063 for p in $PATH; do 42064 if test -f "$p/$path" && test -x "$p/$path"; then 42065 new_path="$p/$path" 42066 break 42067 fi 42068 done 42069 IFS="$IFS_save" 42070 else 42071 # This is an absolute path, we can use it without further modifications. 42072 new_path="$path" 42073 fi 42074 42075 if test "x$new_path" = x; then 42076 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 42077 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 42078 has_space=`$ECHO "$complete" | $GREP " "` 42079 if test "x$has_space" != x; then 42080 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 42081 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 42082 fi 42083 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 42084 fi 42085 fi 42086 42087 # Now join together the path and the arguments once again 42088 if test "x$arguments" != xEOL; then 42089 new_complete="$new_path ${arguments% *}" 42090 else 42091 new_complete="$new_path" 42092 fi 42093 42094 if test "x$complete" != "x$new_complete"; then 42095 GNM="$new_complete" 42096 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 42097 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 42098 fi 42099 fi 42100 42101 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 42102 # FIXME: we should unify this with the solaris case above. 42103 42104 42105 # Publish this variable in the help. 42106 42107 42108 if [ -z "${STRIP+x}" ]; then 42109 # The variable is not set by user, try to locate tool using the code snippet 42110 if test -n "$ac_tool_prefix"; then 42111 for ac_prog in strip 42112 do 42113 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42114 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42116 $as_echo_n "checking for $ac_word... " >&6; } 42117 if ${ac_cv_prog_STRIP+:} false; then : 42118 $as_echo_n "(cached) " >&6 42119 else 42120 if test -n "$STRIP"; then 42121 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 42122 else 42123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42124 for as_dir in $PATH 42125 do 42126 IFS=$as_save_IFS 42127 test -z "$as_dir" && as_dir=. 42128 for ac_exec_ext in '' $ac_executable_extensions; do 42129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42130 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 42131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42132 break 2 42133 fi 42134 done 42135 done 42136 IFS=$as_save_IFS 42137 42138 fi 42139 fi 42140 STRIP=$ac_cv_prog_STRIP 42141 if test -n "$STRIP"; then 42142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 42143 $as_echo "$STRIP" >&6; } 42144 else 42145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42146 $as_echo "no" >&6; } 42147 fi 42148 42149 42150 test -n "$STRIP" && break 42151 done 42152 fi 42153 if test -z "$STRIP"; then 42154 ac_ct_STRIP=$STRIP 42155 for ac_prog in strip 42156 do 42157 # Extract the first word of "$ac_prog", so it can be a program name with args. 42158 set dummy $ac_prog; ac_word=$2 42159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42160 $as_echo_n "checking for $ac_word... " >&6; } 42161 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 42162 $as_echo_n "(cached) " >&6 42163 else 42164 if test -n "$ac_ct_STRIP"; then 42165 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 42166 else 42167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42168 for as_dir in $PATH 42169 do 42170 IFS=$as_save_IFS 42171 test -z "$as_dir" && as_dir=. 42172 for ac_exec_ext in '' $ac_executable_extensions; do 42173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42174 ac_cv_prog_ac_ct_STRIP="$ac_prog" 42175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42176 break 2 42177 fi 42178 done 42179 done 42180 IFS=$as_save_IFS 42181 42182 fi 42183 fi 42184 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 42185 if test -n "$ac_ct_STRIP"; then 42186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 42187 $as_echo "$ac_ct_STRIP" >&6; } 42188 else 42189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42190 $as_echo "no" >&6; } 42191 fi 42192 42193 42194 test -n "$ac_ct_STRIP" && break 42195 done 42196 42197 if test "x$ac_ct_STRIP" = x; then 42198 STRIP="" 42199 else 42200 case $cross_compiling:$ac_tool_warned in 42201 yes:) 42202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42204 ac_tool_warned=yes ;; 42205 esac 42206 STRIP=$ac_ct_STRIP 42207 fi 42208 fi 42209 42210 else 42211 # The variable is set, but is it from the command line or the environment? 42212 42213 # Try to remove the string !STRIP! from our list. 42214 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 42215 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42216 # If it failed, the variable was not from the command line. Ignore it, 42217 # but warn the user (except for BASH, which is always set by the calling BASH). 42218 if test "xSTRIP" != xBASH; then 42219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 42220 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 42221 fi 42222 # Try to locate tool using the code snippet 42223 if test -n "$ac_tool_prefix"; then 42224 for ac_prog in strip 42225 do 42226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42229 $as_echo_n "checking for $ac_word... " >&6; } 42230 if ${ac_cv_prog_STRIP+:} false; then : 42231 $as_echo_n "(cached) " >&6 42232 else 42233 if test -n "$STRIP"; then 42234 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 42235 else 42236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42237 for as_dir in $PATH 42238 do 42239 IFS=$as_save_IFS 42240 test -z "$as_dir" && as_dir=. 42241 for ac_exec_ext in '' $ac_executable_extensions; do 42242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42243 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 42244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42245 break 2 42246 fi 42247 done 42248 done 42249 IFS=$as_save_IFS 42250 42251 fi 42252 fi 42253 STRIP=$ac_cv_prog_STRIP 42254 if test -n "$STRIP"; then 42255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 42256 $as_echo "$STRIP" >&6; } 42257 else 42258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42259 $as_echo "no" >&6; } 42260 fi 42261 42262 42263 test -n "$STRIP" && break 42264 done 42265 fi 42266 if test -z "$STRIP"; then 42267 ac_ct_STRIP=$STRIP 42268 for ac_prog in strip 42269 do 42270 # Extract the first word of "$ac_prog", so it can be a program name with args. 42271 set dummy $ac_prog; ac_word=$2 42272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42273 $as_echo_n "checking for $ac_word... " >&6; } 42274 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 42275 $as_echo_n "(cached) " >&6 42276 else 42277 if test -n "$ac_ct_STRIP"; then 42278 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 42279 else 42280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42281 for as_dir in $PATH 42282 do 42283 IFS=$as_save_IFS 42284 test -z "$as_dir" && as_dir=. 42285 for ac_exec_ext in '' $ac_executable_extensions; do 42286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42287 ac_cv_prog_ac_ct_STRIP="$ac_prog" 42288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42289 break 2 42290 fi 42291 done 42292 done 42293 IFS=$as_save_IFS 42294 42295 fi 42296 fi 42297 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 42298 if test -n "$ac_ct_STRIP"; then 42299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 42300 $as_echo "$ac_ct_STRIP" >&6; } 42301 else 42302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42303 $as_echo "no" >&6; } 42304 fi 42305 42306 42307 test -n "$ac_ct_STRIP" && break 42308 done 42309 42310 if test "x$ac_ct_STRIP" = x; then 42311 STRIP="" 42312 else 42313 case $cross_compiling:$ac_tool_warned in 42314 yes:) 42315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42317 ac_tool_warned=yes ;; 42318 esac 42319 STRIP=$ac_ct_STRIP 42320 fi 42321 fi 42322 42323 else 42324 # If it succeeded, then it was overridden by the user. We will use it 42325 # for the tool. 42326 42327 # First remove it from the list of overridden variables, so we can test 42328 # for unknown variables in the end. 42329 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42330 42331 # Check if we try to supply an empty value 42332 if test "x$STRIP" = x; then 42333 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 42334 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 42335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 42336 $as_echo_n "checking for STRIP... " >&6; } 42337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42338 $as_echo "disabled" >&6; } 42339 else 42340 # Check if the provided tool contains a complete path. 42341 tool_specified="$STRIP" 42342 tool_basename="${tool_specified##*/}" 42343 if test "x$tool_basename" = "x$tool_specified"; then 42344 # A command without a complete path is provided, search $PATH. 42345 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 42346 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 42347 # Extract the first word of "$tool_basename", so it can be a program name with args. 42348 set dummy $tool_basename; ac_word=$2 42349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42350 $as_echo_n "checking for $ac_word... " >&6; } 42351 if ${ac_cv_path_STRIP+:} false; then : 42352 $as_echo_n "(cached) " >&6 42353 else 42354 case $STRIP in 42355 [\\/]* | ?:[\\/]*) 42356 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 42357 ;; 42358 *) 42359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42360 for as_dir in $PATH 42361 do 42362 IFS=$as_save_IFS 42363 test -z "$as_dir" && as_dir=. 42364 for ac_exec_ext in '' $ac_executable_extensions; do 42365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42366 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 42367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42368 break 2 42369 fi 42370 done 42371 done 42372 IFS=$as_save_IFS 42373 42374 ;; 42375 esac 42376 fi 42377 STRIP=$ac_cv_path_STRIP 42378 if test -n "$STRIP"; then 42379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 42380 $as_echo "$STRIP" >&6; } 42381 else 42382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42383 $as_echo "no" >&6; } 42384 fi 42385 42386 42387 if test "x$STRIP" = x; then 42388 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42389 fi 42390 else 42391 # Otherwise we believe it is a complete path. Use it as it is. 42392 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 42393 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 42394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 42395 $as_echo_n "checking for STRIP... " >&6; } 42396 if test ! -x "$tool_specified"; then 42397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42398 $as_echo "not found" >&6; } 42399 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 42400 fi 42401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42402 $as_echo "$tool_specified" >&6; } 42403 fi 42404 fi 42405 fi 42406 42407 fi 42408 42409 42410 42411 # Only process if variable expands to non-empty 42412 42413 if test "x$STRIP" != x; then 42414 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42415 42416 # First separate the path from the arguments. This will split at the first 42417 # space. 42418 complete="$STRIP" 42419 path="${complete%% *}" 42420 tmp="$complete EOL" 42421 arguments="${tmp#* }" 42422 42423 # Input might be given as Windows format, start by converting to 42424 # unix format. 42425 new_path=`$CYGPATH -u "$path"` 42426 42427 # Now try to locate executable using which 42428 new_path=`$WHICH "$new_path" 2> /dev/null` 42429 # bat and cmd files are not always considered executable in cygwin causing which 42430 # to not find them 42431 if test "x$new_path" = x \ 42432 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42433 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42434 new_path=`$CYGPATH -u "$path"` 42435 fi 42436 if test "x$new_path" = x; then 42437 # Oops. Which didn't find the executable. 42438 # The splitting of arguments from the executable at a space might have been incorrect, 42439 # since paths with space are more likely in Windows. Give it another try with the whole 42440 # argument. 42441 path="$complete" 42442 arguments="EOL" 42443 new_path=`$CYGPATH -u "$path"` 42444 new_path=`$WHICH "$new_path" 2> /dev/null` 42445 # bat and cmd files are not always considered executable in cygwin causing which 42446 # to not find them 42447 if test "x$new_path" = x \ 42448 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42449 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42450 new_path=`$CYGPATH -u "$path"` 42451 fi 42452 if test "x$new_path" = x; then 42453 # It's still not found. Now this is an unrecoverable error. 42454 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 42455 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 42456 has_space=`$ECHO "$complete" | $GREP " "` 42457 if test "x$has_space" != x; then 42458 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42459 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42460 fi 42461 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 42462 fi 42463 fi 42464 42465 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42466 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42467 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42468 # "foo.exe" is OK but "foo" is an error. 42469 # 42470 # This test is therefore slightly more accurate than "test -f" to check for file presence. 42471 # It is also a way to make sure we got the proper file name for the real test later on. 42472 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42473 if test "x$test_shortpath" = x; then 42474 # Short path failed, file does not exist as specified. 42475 # Try adding .exe or .cmd 42476 if test -f "${new_path}.exe"; then 42477 input_to_shortpath="${new_path}.exe" 42478 elif test -f "${new_path}.cmd"; then 42479 input_to_shortpath="${new_path}.cmd" 42480 else 42481 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 42482 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 42483 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 42484 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 42485 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 42486 fi 42487 else 42488 input_to_shortpath="$new_path" 42489 fi 42490 42491 # Call helper function which possibly converts this using DOS-style short mode. 42492 # If so, the updated path is stored in $new_path. 42493 new_path="$input_to_shortpath" 42494 42495 input_path="$input_to_shortpath" 42496 # Check if we need to convert this using DOS-style short mode. If the path 42497 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42498 # take no chances and rewrite it. 42499 # Note: m4 eats our [], so we need to use [ and ] instead. 42500 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42501 if test "x$has_forbidden_chars" != x; then 42502 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42503 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42504 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42505 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42506 # Going to short mode and back again did indeed matter. Since short mode is 42507 # case insensitive, let's make it lowercase to improve readability. 42508 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42509 # Now convert it back to Unix-style (cygpath) 42510 input_path=`$CYGPATH -u "$shortmode_path"` 42511 new_path="$input_path" 42512 fi 42513 fi 42514 42515 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42516 if test "x$test_cygdrive_prefix" = x; then 42517 # As a simple fix, exclude /usr/bin since it's not a real path. 42518 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 42519 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42520 # a path prefixed by /cygdrive for fixpath to work. 42521 new_path="$CYGWIN_ROOT_PATH$input_path" 42522 fi 42523 fi 42524 42525 # remove trailing .exe if any 42526 new_path="${new_path/%.exe/}" 42527 42528 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42529 42530 # First separate the path from the arguments. This will split at the first 42531 # space. 42532 complete="$STRIP" 42533 path="${complete%% *}" 42534 tmp="$complete EOL" 42535 arguments="${tmp#* }" 42536 42537 # Input might be given as Windows format, start by converting to 42538 # unix format. 42539 new_path="$path" 42540 42541 windows_path="$new_path" 42542 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42543 unix_path=`$CYGPATH -u "$windows_path"` 42544 new_path="$unix_path" 42545 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42546 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42547 new_path="$unix_path" 42548 fi 42549 42550 42551 # Now try to locate executable using which 42552 new_path=`$WHICH "$new_path" 2> /dev/null` 42553 42554 if test "x$new_path" = x; then 42555 # Oops. Which didn't find the executable. 42556 # The splitting of arguments from the executable at a space might have been incorrect, 42557 # since paths with space are more likely in Windows. Give it another try with the whole 42558 # argument. 42559 path="$complete" 42560 arguments="EOL" 42561 new_path="$path" 42562 42563 windows_path="$new_path" 42564 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42565 unix_path=`$CYGPATH -u "$windows_path"` 42566 new_path="$unix_path" 42567 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42568 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42569 new_path="$unix_path" 42570 fi 42571 42572 42573 new_path=`$WHICH "$new_path" 2> /dev/null` 42574 # bat and cmd files are not always considered executable in MSYS causing which 42575 # to not find them 42576 if test "x$new_path" = x \ 42577 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42578 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42579 new_path="$path" 42580 42581 windows_path="$new_path" 42582 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42583 unix_path=`$CYGPATH -u "$windows_path"` 42584 new_path="$unix_path" 42585 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42586 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42587 new_path="$unix_path" 42588 fi 42589 42590 fi 42591 42592 if test "x$new_path" = x; then 42593 # It's still not found. Now this is an unrecoverable error. 42594 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 42595 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 42596 has_space=`$ECHO "$complete" | $GREP " "` 42597 if test "x$has_space" != x; then 42598 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42599 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42600 fi 42601 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 42602 fi 42603 fi 42604 42605 # Now new_path has a complete unix path to the binary 42606 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 42607 # Keep paths in /bin as-is, but remove trailing .exe if any 42608 new_path="${new_path/%.exe/}" 42609 # Do not save /bin paths to all_fixpath_prefixes! 42610 else 42611 # Not in mixed or Windows style, start by that. 42612 new_path=`cmd //c echo $new_path` 42613 42614 input_path="$new_path" 42615 # Check if we need to convert this using DOS-style short mode. If the path 42616 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42617 # take no chances and rewrite it. 42618 # Note: m4 eats our [], so we need to use [ and ] instead. 42619 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42620 if test "x$has_forbidden_chars" != x; then 42621 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42622 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42623 fi 42624 42625 # Output is in $new_path 42626 42627 windows_path="$new_path" 42628 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42629 unix_path=`$CYGPATH -u "$windows_path"` 42630 new_path="$unix_path" 42631 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42632 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42633 new_path="$unix_path" 42634 fi 42635 42636 # remove trailing .exe if any 42637 new_path="${new_path/%.exe/}" 42638 42639 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42640 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42641 fi 42642 42643 else 42644 # We're on a unix platform. Hooray! :) 42645 # First separate the path from the arguments. This will split at the first 42646 # space. 42647 complete="$STRIP" 42648 path="${complete%% *}" 42649 tmp="$complete EOL" 42650 arguments="${tmp#* }" 42651 42652 # Cannot rely on the command "which" here since it doesn't always work. 42653 is_absolute_path=`$ECHO "$path" | $GREP ^/` 42654 if test -z "$is_absolute_path"; then 42655 # Path to executable is not absolute. Find it. 42656 IFS_save="$IFS" 42657 IFS=: 42658 for p in $PATH; do 42659 if test -f "$p/$path" && test -x "$p/$path"; then 42660 new_path="$p/$path" 42661 break 42662 fi 42663 done 42664 IFS="$IFS_save" 42665 else 42666 # This is an absolute path, we can use it without further modifications. 42667 new_path="$path" 42668 fi 42669 42670 if test "x$new_path" = x; then 42671 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 42672 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 42673 has_space=`$ECHO "$complete" | $GREP " "` 42674 if test "x$has_space" != x; then 42675 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 42676 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 42677 fi 42678 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 42679 fi 42680 fi 42681 42682 # Now join together the path and the arguments once again 42683 if test "x$arguments" != xEOL; then 42684 new_complete="$new_path ${arguments% *}" 42685 else 42686 new_complete="$new_path" 42687 fi 42688 42689 if test "x$complete" != "x$new_complete"; then 42690 STRIP="$new_complete" 42691 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 42692 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 42693 fi 42694 fi 42695 42696 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42697 42698 42699 # Publish this variable in the help. 42700 42701 42702 if [ -z "${NM+x}" ]; then 42703 # The variable is not set by user, try to locate tool using the code snippet 42704 if test -n "$ac_tool_prefix"; then 42705 for ac_prog in nm gcc-nm 42706 do 42707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42710 $as_echo_n "checking for $ac_word... " >&6; } 42711 if ${ac_cv_prog_NM+:} false; then : 42712 $as_echo_n "(cached) " >&6 42713 else 42714 if test -n "$NM"; then 42715 ac_cv_prog_NM="$NM" # Let the user override the test. 42716 else 42717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42718 for as_dir in $PATH 42719 do 42720 IFS=$as_save_IFS 42721 test -z "$as_dir" && as_dir=. 42722 for ac_exec_ext in '' $ac_executable_extensions; do 42723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42724 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 42725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42726 break 2 42727 fi 42728 done 42729 done 42730 IFS=$as_save_IFS 42731 42732 fi 42733 fi 42734 NM=$ac_cv_prog_NM 42735 if test -n "$NM"; then 42736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42737 $as_echo "$NM" >&6; } 42738 else 42739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42740 $as_echo "no" >&6; } 42741 fi 42742 42743 42744 test -n "$NM" && break 42745 done 42746 fi 42747 if test -z "$NM"; then 42748 ac_ct_NM=$NM 42749 for ac_prog in nm gcc-nm 42750 do 42751 # Extract the first word of "$ac_prog", so it can be a program name with args. 42752 set dummy $ac_prog; ac_word=$2 42753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42754 $as_echo_n "checking for $ac_word... " >&6; } 42755 if ${ac_cv_prog_ac_ct_NM+:} false; then : 42756 $as_echo_n "(cached) " >&6 42757 else 42758 if test -n "$ac_ct_NM"; then 42759 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 42760 else 42761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42762 for as_dir in $PATH 42763 do 42764 IFS=$as_save_IFS 42765 test -z "$as_dir" && as_dir=. 42766 for ac_exec_ext in '' $ac_executable_extensions; do 42767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42768 ac_cv_prog_ac_ct_NM="$ac_prog" 42769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42770 break 2 42771 fi 42772 done 42773 done 42774 IFS=$as_save_IFS 42775 42776 fi 42777 fi 42778 ac_ct_NM=$ac_cv_prog_ac_ct_NM 42779 if test -n "$ac_ct_NM"; then 42780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 42781 $as_echo "$ac_ct_NM" >&6; } 42782 else 42783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42784 $as_echo "no" >&6; } 42785 fi 42786 42787 42788 test -n "$ac_ct_NM" && break 42789 done 42790 42791 if test "x$ac_ct_NM" = x; then 42792 NM="" 42793 else 42794 case $cross_compiling:$ac_tool_warned in 42795 yes:) 42796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42798 ac_tool_warned=yes ;; 42799 esac 42800 NM=$ac_ct_NM 42801 fi 42802 fi 42803 42804 else 42805 # The variable is set, but is it from the command line or the environment? 42806 42807 # Try to remove the string !NM! from our list. 42808 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 42809 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42810 # If it failed, the variable was not from the command line. Ignore it, 42811 # but warn the user (except for BASH, which is always set by the calling BASH). 42812 if test "xNM" != xBASH; then 42813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 42814 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 42815 fi 42816 # Try to locate tool using the code snippet 42817 if test -n "$ac_tool_prefix"; then 42818 for ac_prog in nm gcc-nm 42819 do 42820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42823 $as_echo_n "checking for $ac_word... " >&6; } 42824 if ${ac_cv_prog_NM+:} false; then : 42825 $as_echo_n "(cached) " >&6 42826 else 42827 if test -n "$NM"; then 42828 ac_cv_prog_NM="$NM" # Let the user override the test. 42829 else 42830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42831 for as_dir in $PATH 42832 do 42833 IFS=$as_save_IFS 42834 test -z "$as_dir" && as_dir=. 42835 for ac_exec_ext in '' $ac_executable_extensions; do 42836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42837 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 42838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42839 break 2 42840 fi 42841 done 42842 done 42843 IFS=$as_save_IFS 42844 42845 fi 42846 fi 42847 NM=$ac_cv_prog_NM 42848 if test -n "$NM"; then 42849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42850 $as_echo "$NM" >&6; } 42851 else 42852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42853 $as_echo "no" >&6; } 42854 fi 42855 42856 42857 test -n "$NM" && break 42858 done 42859 fi 42860 if test -z "$NM"; then 42861 ac_ct_NM=$NM 42862 for ac_prog in nm gcc-nm 42863 do 42864 # Extract the first word of "$ac_prog", so it can be a program name with args. 42865 set dummy $ac_prog; ac_word=$2 42866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42867 $as_echo_n "checking for $ac_word... " >&6; } 42868 if ${ac_cv_prog_ac_ct_NM+:} false; then : 42869 $as_echo_n "(cached) " >&6 42870 else 42871 if test -n "$ac_ct_NM"; then 42872 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 42873 else 42874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42875 for as_dir in $PATH 42876 do 42877 IFS=$as_save_IFS 42878 test -z "$as_dir" && as_dir=. 42879 for ac_exec_ext in '' $ac_executable_extensions; do 42880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42881 ac_cv_prog_ac_ct_NM="$ac_prog" 42882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42883 break 2 42884 fi 42885 done 42886 done 42887 IFS=$as_save_IFS 42888 42889 fi 42890 fi 42891 ac_ct_NM=$ac_cv_prog_ac_ct_NM 42892 if test -n "$ac_ct_NM"; then 42893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 42894 $as_echo "$ac_ct_NM" >&6; } 42895 else 42896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42897 $as_echo "no" >&6; } 42898 fi 42899 42900 42901 test -n "$ac_ct_NM" && break 42902 done 42903 42904 if test "x$ac_ct_NM" = x; then 42905 NM="" 42906 else 42907 case $cross_compiling:$ac_tool_warned in 42908 yes:) 42909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42911 ac_tool_warned=yes ;; 42912 esac 42913 NM=$ac_ct_NM 42914 fi 42915 fi 42916 42917 else 42918 # If it succeeded, then it was overridden by the user. We will use it 42919 # for the tool. 42920 42921 # First remove it from the list of overridden variables, so we can test 42922 # for unknown variables in the end. 42923 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42924 42925 # Check if we try to supply an empty value 42926 if test "x$NM" = x; then 42927 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 42928 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 42929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42930 $as_echo_n "checking for NM... " >&6; } 42931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42932 $as_echo "disabled" >&6; } 42933 else 42934 # Check if the provided tool contains a complete path. 42935 tool_specified="$NM" 42936 tool_basename="${tool_specified##*/}" 42937 if test "x$tool_basename" = "x$tool_specified"; then 42938 # A command without a complete path is provided, search $PATH. 42939 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 42940 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 42941 # Extract the first word of "$tool_basename", so it can be a program name with args. 42942 set dummy $tool_basename; ac_word=$2 42943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42944 $as_echo_n "checking for $ac_word... " >&6; } 42945 if ${ac_cv_path_NM+:} false; then : 42946 $as_echo_n "(cached) " >&6 42947 else 42948 case $NM in 42949 [\\/]* | ?:[\\/]*) 42950 ac_cv_path_NM="$NM" # Let the user override the test with a path. 42951 ;; 42952 *) 42953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42954 for as_dir in $PATH 42955 do 42956 IFS=$as_save_IFS 42957 test -z "$as_dir" && as_dir=. 42958 for ac_exec_ext in '' $ac_executable_extensions; do 42959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42960 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 42961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42962 break 2 42963 fi 42964 done 42965 done 42966 IFS=$as_save_IFS 42967 42968 ;; 42969 esac 42970 fi 42971 NM=$ac_cv_path_NM 42972 if test -n "$NM"; then 42973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42974 $as_echo "$NM" >&6; } 42975 else 42976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42977 $as_echo "no" >&6; } 42978 fi 42979 42980 42981 if test "x$NM" = x; then 42982 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42983 fi 42984 else 42985 # Otherwise we believe it is a complete path. Use it as it is. 42986 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 42987 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 42988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42989 $as_echo_n "checking for NM... " >&6; } 42990 if test ! -x "$tool_specified"; then 42991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42992 $as_echo "not found" >&6; } 42993 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 42994 fi 42995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42996 $as_echo "$tool_specified" >&6; } 42997 fi 42998 fi 42999 fi 43000 43001 fi 43002 43003 43004 else 43005 43006 43007 # Publish this variable in the help. 43008 43009 43010 if [ -z "${NM+x}" ]; then 43011 # The variable is not set by user, try to locate tool using the code snippet 43012 if test -n "$ac_tool_prefix"; then 43013 for ac_prog in nm 43014 do 43015 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43016 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43018 $as_echo_n "checking for $ac_word... " >&6; } 43019 if ${ac_cv_prog_NM+:} false; then : 43020 $as_echo_n "(cached) " >&6 43021 else 43022 if test -n "$NM"; then 43023 ac_cv_prog_NM="$NM" # Let the user override the test. 43024 else 43025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43026 for as_dir in $PATH 43027 do 43028 IFS=$as_save_IFS 43029 test -z "$as_dir" && as_dir=. 43030 for ac_exec_ext in '' $ac_executable_extensions; do 43031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43032 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 43033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43034 break 2 43035 fi 43036 done 43037 done 43038 IFS=$as_save_IFS 43039 43040 fi 43041 fi 43042 NM=$ac_cv_prog_NM 43043 if test -n "$NM"; then 43044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43045 $as_echo "$NM" >&6; } 43046 else 43047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43048 $as_echo "no" >&6; } 43049 fi 43050 43051 43052 test -n "$NM" && break 43053 done 43054 fi 43055 if test -z "$NM"; then 43056 ac_ct_NM=$NM 43057 for ac_prog in nm 43058 do 43059 # Extract the first word of "$ac_prog", so it can be a program name with args. 43060 set dummy $ac_prog; ac_word=$2 43061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43062 $as_echo_n "checking for $ac_word... " >&6; } 43063 if ${ac_cv_prog_ac_ct_NM+:} false; then : 43064 $as_echo_n "(cached) " >&6 43065 else 43066 if test -n "$ac_ct_NM"; then 43067 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 43068 else 43069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43070 for as_dir in $PATH 43071 do 43072 IFS=$as_save_IFS 43073 test -z "$as_dir" && as_dir=. 43074 for ac_exec_ext in '' $ac_executable_extensions; do 43075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43076 ac_cv_prog_ac_ct_NM="$ac_prog" 43077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43078 break 2 43079 fi 43080 done 43081 done 43082 IFS=$as_save_IFS 43083 43084 fi 43085 fi 43086 ac_ct_NM=$ac_cv_prog_ac_ct_NM 43087 if test -n "$ac_ct_NM"; then 43088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 43089 $as_echo "$ac_ct_NM" >&6; } 43090 else 43091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43092 $as_echo "no" >&6; } 43093 fi 43094 43095 43096 test -n "$ac_ct_NM" && break 43097 done 43098 43099 if test "x$ac_ct_NM" = x; then 43100 NM="" 43101 else 43102 case $cross_compiling:$ac_tool_warned in 43103 yes:) 43104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43106 ac_tool_warned=yes ;; 43107 esac 43108 NM=$ac_ct_NM 43109 fi 43110 fi 43111 43112 else 43113 # The variable is set, but is it from the command line or the environment? 43114 43115 # Try to remove the string !NM! from our list. 43116 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 43117 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43118 # If it failed, the variable was not from the command line. Ignore it, 43119 # but warn the user (except for BASH, which is always set by the calling BASH). 43120 if test "xNM" != xBASH; then 43121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 43122 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 43123 fi 43124 # Try to locate tool using the code snippet 43125 if test -n "$ac_tool_prefix"; then 43126 for ac_prog in nm 43127 do 43128 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43129 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43131 $as_echo_n "checking for $ac_word... " >&6; } 43132 if ${ac_cv_prog_NM+:} false; then : 43133 $as_echo_n "(cached) " >&6 43134 else 43135 if test -n "$NM"; then 43136 ac_cv_prog_NM="$NM" # Let the user override the test. 43137 else 43138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43139 for as_dir in $PATH 43140 do 43141 IFS=$as_save_IFS 43142 test -z "$as_dir" && as_dir=. 43143 for ac_exec_ext in '' $ac_executable_extensions; do 43144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43145 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 43146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43147 break 2 43148 fi 43149 done 43150 done 43151 IFS=$as_save_IFS 43152 43153 fi 43154 fi 43155 NM=$ac_cv_prog_NM 43156 if test -n "$NM"; then 43157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43158 $as_echo "$NM" >&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 "$NM" && break 43166 done 43167 fi 43168 if test -z "$NM"; then 43169 ac_ct_NM=$NM 43170 for ac_prog in nm 43171 do 43172 # Extract the first word of "$ac_prog", so it can be a program name with args. 43173 set dummy $ac_prog; ac_word=$2 43174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43175 $as_echo_n "checking for $ac_word... " >&6; } 43176 if ${ac_cv_prog_ac_ct_NM+:} false; then : 43177 $as_echo_n "(cached) " >&6 43178 else 43179 if test -n "$ac_ct_NM"; then 43180 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 43181 else 43182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43183 for as_dir in $PATH 43184 do 43185 IFS=$as_save_IFS 43186 test -z "$as_dir" && as_dir=. 43187 for ac_exec_ext in '' $ac_executable_extensions; do 43188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43189 ac_cv_prog_ac_ct_NM="$ac_prog" 43190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43191 break 2 43192 fi 43193 done 43194 done 43195 IFS=$as_save_IFS 43196 43197 fi 43198 fi 43199 ac_ct_NM=$ac_cv_prog_ac_ct_NM 43200 if test -n "$ac_ct_NM"; then 43201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 43202 $as_echo "$ac_ct_NM" >&6; } 43203 else 43204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43205 $as_echo "no" >&6; } 43206 fi 43207 43208 43209 test -n "$ac_ct_NM" && break 43210 done 43211 43212 if test "x$ac_ct_NM" = x; then 43213 NM="" 43214 else 43215 case $cross_compiling:$ac_tool_warned in 43216 yes:) 43217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43219 ac_tool_warned=yes ;; 43220 esac 43221 NM=$ac_ct_NM 43222 fi 43223 fi 43224 43225 else 43226 # If it succeeded, then it was overridden by the user. We will use it 43227 # for the tool. 43228 43229 # First remove it from the list of overridden variables, so we can test 43230 # for unknown variables in the end. 43231 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43232 43233 # Check if we try to supply an empty value 43234 if test "x$NM" = x; then 43235 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 43236 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 43237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 43238 $as_echo_n "checking for NM... " >&6; } 43239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43240 $as_echo "disabled" >&6; } 43241 else 43242 # Check if the provided tool contains a complete path. 43243 tool_specified="$NM" 43244 tool_basename="${tool_specified##*/}" 43245 if test "x$tool_basename" = "x$tool_specified"; then 43246 # A command without a complete path is provided, search $PATH. 43247 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 43248 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 43249 # Extract the first word of "$tool_basename", so it can be a program name with args. 43250 set dummy $tool_basename; ac_word=$2 43251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43252 $as_echo_n "checking for $ac_word... " >&6; } 43253 if ${ac_cv_path_NM+:} false; then : 43254 $as_echo_n "(cached) " >&6 43255 else 43256 case $NM in 43257 [\\/]* | ?:[\\/]*) 43258 ac_cv_path_NM="$NM" # Let the user override the test with a path. 43259 ;; 43260 *) 43261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43262 for as_dir in $PATH 43263 do 43264 IFS=$as_save_IFS 43265 test -z "$as_dir" && as_dir=. 43266 for ac_exec_ext in '' $ac_executable_extensions; do 43267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43268 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 43269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43270 break 2 43271 fi 43272 done 43273 done 43274 IFS=$as_save_IFS 43275 43276 ;; 43277 esac 43278 fi 43279 NM=$ac_cv_path_NM 43280 if test -n "$NM"; then 43281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43282 $as_echo "$NM" >&6; } 43283 else 43284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43285 $as_echo "no" >&6; } 43286 fi 43287 43288 43289 if test "x$NM" = x; then 43290 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 43291 fi 43292 else 43293 # Otherwise we believe it is a complete path. Use it as it is. 43294 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 43295 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 43296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 43297 $as_echo_n "checking for NM... " >&6; } 43298 if test ! -x "$tool_specified"; then 43299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 43300 $as_echo "not found" >&6; } 43301 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 43302 fi 43303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 43304 $as_echo "$tool_specified" >&6; } 43305 fi 43306 fi 43307 fi 43308 43309 fi 43310 43311 43312 fi 43313 43314 # Only process if variable expands to non-empty 43315 43316 if test "x$NM" != x; then 43317 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43318 43319 # First separate the path from the arguments. This will split at the first 43320 # space. 43321 complete="$NM" 43322 path="${complete%% *}" 43323 tmp="$complete EOL" 43324 arguments="${tmp#* }" 43325 43326 # Input might be given as Windows format, start by converting to 43327 # unix format. 43328 new_path=`$CYGPATH -u "$path"` 43329 43330 # Now try to locate executable using which 43331 new_path=`$WHICH "$new_path" 2> /dev/null` 43332 # bat and cmd files are not always considered executable in cygwin causing which 43333 # to not find them 43334 if test "x$new_path" = x \ 43335 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43336 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43337 new_path=`$CYGPATH -u "$path"` 43338 fi 43339 if test "x$new_path" = x; then 43340 # Oops. Which didn't find the executable. 43341 # The splitting of arguments from the executable at a space might have been incorrect, 43342 # since paths with space are more likely in Windows. Give it another try with the whole 43343 # argument. 43344 path="$complete" 43345 arguments="EOL" 43346 new_path=`$CYGPATH -u "$path"` 43347 new_path=`$WHICH "$new_path" 2> /dev/null` 43348 # bat and cmd files are not always considered executable in cygwin causing which 43349 # to not find them 43350 if test "x$new_path" = x \ 43351 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43352 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43353 new_path=`$CYGPATH -u "$path"` 43354 fi 43355 if test "x$new_path" = x; then 43356 # It's still not found. Now this is an unrecoverable error. 43357 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 43358 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 43359 has_space=`$ECHO "$complete" | $GREP " "` 43360 if test "x$has_space" != x; then 43361 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43362 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43363 fi 43364 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 43365 fi 43366 fi 43367 43368 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43369 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43370 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43371 # "foo.exe" is OK but "foo" is an error. 43372 # 43373 # This test is therefore slightly more accurate than "test -f" to check for file presence. 43374 # It is also a way to make sure we got the proper file name for the real test later on. 43375 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43376 if test "x$test_shortpath" = x; then 43377 # Short path failed, file does not exist as specified. 43378 # Try adding .exe or .cmd 43379 if test -f "${new_path}.exe"; then 43380 input_to_shortpath="${new_path}.exe" 43381 elif test -f "${new_path}.cmd"; then 43382 input_to_shortpath="${new_path}.cmd" 43383 else 43384 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 43385 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 43386 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 43387 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 43388 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 43389 fi 43390 else 43391 input_to_shortpath="$new_path" 43392 fi 43393 43394 # Call helper function which possibly converts this using DOS-style short mode. 43395 # If so, the updated path is stored in $new_path. 43396 new_path="$input_to_shortpath" 43397 43398 input_path="$input_to_shortpath" 43399 # Check if we need to convert this using DOS-style short mode. If the path 43400 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43401 # take no chances and rewrite it. 43402 # Note: m4 eats our [], so we need to use [ and ] instead. 43403 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43404 if test "x$has_forbidden_chars" != x; then 43405 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43406 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43407 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43408 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43409 # Going to short mode and back again did indeed matter. Since short mode is 43410 # case insensitive, let's make it lowercase to improve readability. 43411 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43412 # Now convert it back to Unix-style (cygpath) 43413 input_path=`$CYGPATH -u "$shortmode_path"` 43414 new_path="$input_path" 43415 fi 43416 fi 43417 43418 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43419 if test "x$test_cygdrive_prefix" = x; then 43420 # As a simple fix, exclude /usr/bin since it's not a real path. 43421 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 43422 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43423 # a path prefixed by /cygdrive for fixpath to work. 43424 new_path="$CYGWIN_ROOT_PATH$input_path" 43425 fi 43426 fi 43427 43428 # remove trailing .exe if any 43429 new_path="${new_path/%.exe/}" 43430 43431 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43432 43433 # First separate the path from the arguments. This will split at the first 43434 # space. 43435 complete="$NM" 43436 path="${complete%% *}" 43437 tmp="$complete EOL" 43438 arguments="${tmp#* }" 43439 43440 # Input might be given as Windows format, start by converting to 43441 # unix format. 43442 new_path="$path" 43443 43444 windows_path="$new_path" 43445 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43446 unix_path=`$CYGPATH -u "$windows_path"` 43447 new_path="$unix_path" 43448 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43449 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43450 new_path="$unix_path" 43451 fi 43452 43453 43454 # Now try to locate executable using which 43455 new_path=`$WHICH "$new_path" 2> /dev/null` 43456 43457 if test "x$new_path" = x; then 43458 # Oops. Which didn't find the executable. 43459 # The splitting of arguments from the executable at a space might have been incorrect, 43460 # since paths with space are more likely in Windows. Give it another try with the whole 43461 # argument. 43462 path="$complete" 43463 arguments="EOL" 43464 new_path="$path" 43465 43466 windows_path="$new_path" 43467 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43468 unix_path=`$CYGPATH -u "$windows_path"` 43469 new_path="$unix_path" 43470 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43471 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43472 new_path="$unix_path" 43473 fi 43474 43475 43476 new_path=`$WHICH "$new_path" 2> /dev/null` 43477 # bat and cmd files are not always considered executable in MSYS causing which 43478 # to not find them 43479 if test "x$new_path" = x \ 43480 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43481 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43482 new_path="$path" 43483 43484 windows_path="$new_path" 43485 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43486 unix_path=`$CYGPATH -u "$windows_path"` 43487 new_path="$unix_path" 43488 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43489 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43490 new_path="$unix_path" 43491 fi 43492 43493 fi 43494 43495 if test "x$new_path" = x; then 43496 # It's still not found. Now this is an unrecoverable error. 43497 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 43498 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 43499 has_space=`$ECHO "$complete" | $GREP " "` 43500 if test "x$has_space" != x; then 43501 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43502 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43503 fi 43504 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 43505 fi 43506 fi 43507 43508 # Now new_path has a complete unix path to the binary 43509 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 43510 # Keep paths in /bin as-is, but remove trailing .exe if any 43511 new_path="${new_path/%.exe/}" 43512 # Do not save /bin paths to all_fixpath_prefixes! 43513 else 43514 # Not in mixed or Windows style, start by that. 43515 new_path=`cmd //c echo $new_path` 43516 43517 input_path="$new_path" 43518 # Check if we need to convert this using DOS-style short mode. If the path 43519 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43520 # take no chances and rewrite it. 43521 # Note: m4 eats our [], so we need to use [ and ] instead. 43522 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43523 if test "x$has_forbidden_chars" != x; then 43524 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43525 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43526 fi 43527 43528 # Output is in $new_path 43529 43530 windows_path="$new_path" 43531 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43532 unix_path=`$CYGPATH -u "$windows_path"` 43533 new_path="$unix_path" 43534 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43535 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43536 new_path="$unix_path" 43537 fi 43538 43539 # remove trailing .exe if any 43540 new_path="${new_path/%.exe/}" 43541 43542 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43543 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43544 fi 43545 43546 else 43547 # We're on a unix platform. Hooray! :) 43548 # First separate the path from the arguments. This will split at the first 43549 # space. 43550 complete="$NM" 43551 path="${complete%% *}" 43552 tmp="$complete EOL" 43553 arguments="${tmp#* }" 43554 43555 # Cannot rely on the command "which" here since it doesn't always work. 43556 is_absolute_path=`$ECHO "$path" | $GREP ^/` 43557 if test -z "$is_absolute_path"; then 43558 # Path to executable is not absolute. Find it. 43559 IFS_save="$IFS" 43560 IFS=: 43561 for p in $PATH; do 43562 if test -f "$p/$path" && test -x "$p/$path"; then 43563 new_path="$p/$path" 43564 break 43565 fi 43566 done 43567 IFS="$IFS_save" 43568 else 43569 # This is an absolute path, we can use it without further modifications. 43570 new_path="$path" 43571 fi 43572 43573 if test "x$new_path" = x; then 43574 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 43575 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 43576 has_space=`$ECHO "$complete" | $GREP " "` 43577 if test "x$has_space" != x; then 43578 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 43579 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 43580 fi 43581 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 43582 fi 43583 fi 43584 43585 # Now join together the path and the arguments once again 43586 if test "x$arguments" != xEOL; then 43587 new_complete="$new_path ${arguments% *}" 43588 else 43589 new_complete="$new_path" 43590 fi 43591 43592 if test "x$complete" != "x$new_complete"; then 43593 NM="$new_complete" 43594 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 43595 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 43596 fi 43597 fi 43598 43599 GNM="$NM" 43600 43601 fi 43602 43603 # objcopy is used for moving debug symbols to separate files when 43604 # full debug symbols are enabled. 43605 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 43606 43607 43608 # Publish this variable in the help. 43609 43610 43611 if [ -z "${OBJCOPY+x}" ]; then 43612 # The variable is not set by user, try to locate tool using the code snippet 43613 if test -n "$ac_tool_prefix"; then 43614 for ac_prog in gobjcopy objcopy 43615 do 43616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43619 $as_echo_n "checking for $ac_word... " >&6; } 43620 if ${ac_cv_prog_OBJCOPY+:} false; then : 43621 $as_echo_n "(cached) " >&6 43622 else 43623 if test -n "$OBJCOPY"; then 43624 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 43625 else 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_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 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 fi 43642 fi 43643 OBJCOPY=$ac_cv_prog_OBJCOPY 43644 if test -n "$OBJCOPY"; then 43645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 43646 $as_echo "$OBJCOPY" >&6; } 43647 else 43648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43649 $as_echo "no" >&6; } 43650 fi 43651 43652 43653 test -n "$OBJCOPY" && break 43654 done 43655 fi 43656 if test -z "$OBJCOPY"; then 43657 ac_ct_OBJCOPY=$OBJCOPY 43658 for ac_prog in gobjcopy objcopy 43659 do 43660 # Extract the first word of "$ac_prog", so it can be a program name with args. 43661 set dummy $ac_prog; ac_word=$2 43662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43663 $as_echo_n "checking for $ac_word... " >&6; } 43664 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 43665 $as_echo_n "(cached) " >&6 43666 else 43667 if test -n "$ac_ct_OBJCOPY"; then 43668 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 43669 else 43670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43671 for as_dir in $PATH 43672 do 43673 IFS=$as_save_IFS 43674 test -z "$as_dir" && as_dir=. 43675 for ac_exec_ext in '' $ac_executable_extensions; do 43676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43677 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 43678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43679 break 2 43680 fi 43681 done 43682 done 43683 IFS=$as_save_IFS 43684 43685 fi 43686 fi 43687 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 43688 if test -n "$ac_ct_OBJCOPY"; then 43689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 43690 $as_echo "$ac_ct_OBJCOPY" >&6; } 43691 else 43692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43693 $as_echo "no" >&6; } 43694 fi 43695 43696 43697 test -n "$ac_ct_OBJCOPY" && break 43698 done 43699 43700 if test "x$ac_ct_OBJCOPY" = x; then 43701 OBJCOPY="" 43702 else 43703 case $cross_compiling:$ac_tool_warned in 43704 yes:) 43705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43707 ac_tool_warned=yes ;; 43708 esac 43709 OBJCOPY=$ac_ct_OBJCOPY 43710 fi 43711 fi 43712 43713 else 43714 # The variable is set, but is it from the command line or the environment? 43715 43716 # Try to remove the string !OBJCOPY! from our list. 43717 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 43718 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43719 # If it failed, the variable was not from the command line. Ignore it, 43720 # but warn the user (except for BASH, which is always set by the calling BASH). 43721 if test "xOBJCOPY" != xBASH; then 43722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 43723 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 43724 fi 43725 # Try to locate tool using the code snippet 43726 if test -n "$ac_tool_prefix"; then 43727 for ac_prog in gobjcopy objcopy 43728 do 43729 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43730 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43732 $as_echo_n "checking for $ac_word... " >&6; } 43733 if ${ac_cv_prog_OBJCOPY+:} false; then : 43734 $as_echo_n "(cached) " >&6 43735 else 43736 if test -n "$OBJCOPY"; then 43737 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 43738 else 43739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43740 for as_dir in $PATH 43741 do 43742 IFS=$as_save_IFS 43743 test -z "$as_dir" && as_dir=. 43744 for ac_exec_ext in '' $ac_executable_extensions; do 43745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43746 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 43747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43748 break 2 43749 fi 43750 done 43751 done 43752 IFS=$as_save_IFS 43753 43754 fi 43755 fi 43756 OBJCOPY=$ac_cv_prog_OBJCOPY 43757 if test -n "$OBJCOPY"; then 43758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 43759 $as_echo "$OBJCOPY" >&6; } 43760 else 43761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43762 $as_echo "no" >&6; } 43763 fi 43764 43765 43766 test -n "$OBJCOPY" && break 43767 done 43768 fi 43769 if test -z "$OBJCOPY"; then 43770 ac_ct_OBJCOPY=$OBJCOPY 43771 for ac_prog in gobjcopy objcopy 43772 do 43773 # Extract the first word of "$ac_prog", so it can be a program name with args. 43774 set dummy $ac_prog; ac_word=$2 43775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43776 $as_echo_n "checking for $ac_word... " >&6; } 43777 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 43778 $as_echo_n "(cached) " >&6 43779 else 43780 if test -n "$ac_ct_OBJCOPY"; then 43781 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 43782 else 43783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43784 for as_dir in $PATH 43785 do 43786 IFS=$as_save_IFS 43787 test -z "$as_dir" && as_dir=. 43788 for ac_exec_ext in '' $ac_executable_extensions; do 43789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43790 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 43791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43792 break 2 43793 fi 43794 done 43795 done 43796 IFS=$as_save_IFS 43797 43798 fi 43799 fi 43800 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 43801 if test -n "$ac_ct_OBJCOPY"; then 43802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 43803 $as_echo "$ac_ct_OBJCOPY" >&6; } 43804 else 43805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43806 $as_echo "no" >&6; } 43807 fi 43808 43809 43810 test -n "$ac_ct_OBJCOPY" && break 43811 done 43812 43813 if test "x$ac_ct_OBJCOPY" = x; then 43814 OBJCOPY="" 43815 else 43816 case $cross_compiling:$ac_tool_warned in 43817 yes:) 43818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43820 ac_tool_warned=yes ;; 43821 esac 43822 OBJCOPY=$ac_ct_OBJCOPY 43823 fi 43824 fi 43825 43826 else 43827 # If it succeeded, then it was overridden by the user. We will use it 43828 # for the tool. 43829 43830 # First remove it from the list of overridden variables, so we can test 43831 # for unknown variables in the end. 43832 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43833 43834 # Check if we try to supply an empty value 43835 if test "x$OBJCOPY" = x; then 43836 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJCOPY= (no value)" >&5 43837 $as_echo "$as_me: Setting user supplied tool OBJCOPY= (no value)" >&6;} 43838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 43839 $as_echo_n "checking for OBJCOPY... " >&6; } 43840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43841 $as_echo "disabled" >&6; } 43842 else 43843 # Check if the provided tool contains a complete path. 43844 tool_specified="$OBJCOPY" 43845 tool_basename="${tool_specified##*/}" 43846 if test "x$tool_basename" = "x$tool_specified"; then 43847 # A command without a complete path is provided, search $PATH. 43848 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 43849 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 43850 # Extract the first word of "$tool_basename", so it can be a program name with args. 43851 set dummy $tool_basename; ac_word=$2 43852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43853 $as_echo_n "checking for $ac_word... " >&6; } 43854 if ${ac_cv_path_OBJCOPY+:} false; then : 43855 $as_echo_n "(cached) " >&6 43856 else 43857 case $OBJCOPY in 43858 [\\/]* | ?:[\\/]*) 43859 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 43860 ;; 43861 *) 43862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43863 for as_dir in $PATH 43864 do 43865 IFS=$as_save_IFS 43866 test -z "$as_dir" && as_dir=. 43867 for ac_exec_ext in '' $ac_executable_extensions; do 43868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43869 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 43870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43871 break 2 43872 fi 43873 done 43874 done 43875 IFS=$as_save_IFS 43876 43877 ;; 43878 esac 43879 fi 43880 OBJCOPY=$ac_cv_path_OBJCOPY 43881 if test -n "$OBJCOPY"; then 43882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 43883 $as_echo "$OBJCOPY" >&6; } 43884 else 43885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43886 $as_echo "no" >&6; } 43887 fi 43888 43889 43890 if test "x$OBJCOPY" = x; then 43891 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 43892 fi 43893 else 43894 # Otherwise we believe it is a complete path. Use it as it is. 43895 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 43896 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 43897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 43898 $as_echo_n "checking for OBJCOPY... " >&6; } 43899 if test ! -x "$tool_specified"; then 43900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 43901 $as_echo "not found" >&6; } 43902 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 43903 fi 43904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 43905 $as_echo "$tool_specified" >&6; } 43906 fi 43907 fi 43908 fi 43909 43910 fi 43911 43912 43913 # Only call fixup if objcopy was found. 43914 if test -n "$OBJCOPY"; then 43915 43916 # Only process if variable expands to non-empty 43917 43918 if test "x$OBJCOPY" != x; then 43919 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43920 43921 # First separate the path from the arguments. This will split at the first 43922 # space. 43923 complete="$OBJCOPY" 43924 path="${complete%% *}" 43925 tmp="$complete EOL" 43926 arguments="${tmp#* }" 43927 43928 # Input might be given as Windows format, start by converting to 43929 # unix format. 43930 new_path=`$CYGPATH -u "$path"` 43931 43932 # Now try to locate executable using which 43933 new_path=`$WHICH "$new_path" 2> /dev/null` 43934 # bat and cmd files are not always considered executable in cygwin causing which 43935 # to not find them 43936 if test "x$new_path" = x \ 43937 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43938 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43939 new_path=`$CYGPATH -u "$path"` 43940 fi 43941 if test "x$new_path" = x; then 43942 # Oops. Which didn't find the executable. 43943 # The splitting of arguments from the executable at a space might have been incorrect, 43944 # since paths with space are more likely in Windows. Give it another try with the whole 43945 # argument. 43946 path="$complete" 43947 arguments="EOL" 43948 new_path=`$CYGPATH -u "$path"` 43949 new_path=`$WHICH "$new_path" 2> /dev/null` 43950 # bat and cmd files are not always considered executable in cygwin causing which 43951 # to not find them 43952 if test "x$new_path" = x \ 43953 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43954 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43955 new_path=`$CYGPATH -u "$path"` 43956 fi 43957 if test "x$new_path" = x; then 43958 # It's still not found. Now this is an unrecoverable error. 43959 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 43960 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 43961 has_space=`$ECHO "$complete" | $GREP " "` 43962 if test "x$has_space" != x; then 43963 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43964 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43965 fi 43966 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 43967 fi 43968 fi 43969 43970 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43971 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43972 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43973 # "foo.exe" is OK but "foo" is an error. 43974 # 43975 # This test is therefore slightly more accurate than "test -f" to check for file presence. 43976 # It is also a way to make sure we got the proper file name for the real test later on. 43977 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43978 if test "x$test_shortpath" = x; then 43979 # Short path failed, file does not exist as specified. 43980 # Try adding .exe or .cmd 43981 if test -f "${new_path}.exe"; then 43982 input_to_shortpath="${new_path}.exe" 43983 elif test -f "${new_path}.cmd"; then 43984 input_to_shortpath="${new_path}.cmd" 43985 else 43986 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 43987 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 43988 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 43989 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 43990 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 43991 fi 43992 else 43993 input_to_shortpath="$new_path" 43994 fi 43995 43996 # Call helper function which possibly converts this using DOS-style short mode. 43997 # If so, the updated path is stored in $new_path. 43998 new_path="$input_to_shortpath" 43999 44000 input_path="$input_to_shortpath" 44001 # Check if we need to convert this using DOS-style short mode. If the path 44002 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44003 # take no chances and rewrite it. 44004 # Note: m4 eats our [], so we need to use [ and ] instead. 44005 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44006 if test "x$has_forbidden_chars" != x; then 44007 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44008 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44009 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44010 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44011 # Going to short mode and back again did indeed matter. Since short mode is 44012 # case insensitive, let's make it lowercase to improve readability. 44013 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44014 # Now convert it back to Unix-style (cygpath) 44015 input_path=`$CYGPATH -u "$shortmode_path"` 44016 new_path="$input_path" 44017 fi 44018 fi 44019 44020 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44021 if test "x$test_cygdrive_prefix" = x; then 44022 # As a simple fix, exclude /usr/bin since it's not a real path. 44023 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44024 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44025 # a path prefixed by /cygdrive for fixpath to work. 44026 new_path="$CYGWIN_ROOT_PATH$input_path" 44027 fi 44028 fi 44029 44030 # remove trailing .exe if any 44031 new_path="${new_path/%.exe/}" 44032 44033 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44034 44035 # First separate the path from the arguments. This will split at the first 44036 # space. 44037 complete="$OBJCOPY" 44038 path="${complete%% *}" 44039 tmp="$complete EOL" 44040 arguments="${tmp#* }" 44041 44042 # Input might be given as Windows format, start by converting to 44043 # unix format. 44044 new_path="$path" 44045 44046 windows_path="$new_path" 44047 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44048 unix_path=`$CYGPATH -u "$windows_path"` 44049 new_path="$unix_path" 44050 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44051 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44052 new_path="$unix_path" 44053 fi 44054 44055 44056 # Now try to locate executable using which 44057 new_path=`$WHICH "$new_path" 2> /dev/null` 44058 44059 if test "x$new_path" = x; then 44060 # Oops. Which didn't find the executable. 44061 # The splitting of arguments from the executable at a space might have been incorrect, 44062 # since paths with space are more likely in Windows. Give it another try with the whole 44063 # argument. 44064 path="$complete" 44065 arguments="EOL" 44066 new_path="$path" 44067 44068 windows_path="$new_path" 44069 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44070 unix_path=`$CYGPATH -u "$windows_path"` 44071 new_path="$unix_path" 44072 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44073 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44074 new_path="$unix_path" 44075 fi 44076 44077 44078 new_path=`$WHICH "$new_path" 2> /dev/null` 44079 # bat and cmd files are not always considered executable in MSYS causing which 44080 # to not find them 44081 if test "x$new_path" = x \ 44082 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44083 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44084 new_path="$path" 44085 44086 windows_path="$new_path" 44087 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44088 unix_path=`$CYGPATH -u "$windows_path"` 44089 new_path="$unix_path" 44090 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44091 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44092 new_path="$unix_path" 44093 fi 44094 44095 fi 44096 44097 if test "x$new_path" = x; then 44098 # It's still not found. Now this is an unrecoverable error. 44099 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 44100 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 44101 has_space=`$ECHO "$complete" | $GREP " "` 44102 if test "x$has_space" != x; then 44103 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44104 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44105 fi 44106 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 44107 fi 44108 fi 44109 44110 # Now new_path has a complete unix path to the binary 44111 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44112 # Keep paths in /bin as-is, but remove trailing .exe if any 44113 new_path="${new_path/%.exe/}" 44114 # Do not save /bin paths to all_fixpath_prefixes! 44115 else 44116 # Not in mixed or Windows style, start by that. 44117 new_path=`cmd //c echo $new_path` 44118 44119 input_path="$new_path" 44120 # Check if we need to convert this using DOS-style short mode. If the path 44121 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44122 # take no chances and rewrite it. 44123 # Note: m4 eats our [], so we need to use [ and ] instead. 44124 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44125 if test "x$has_forbidden_chars" != x; then 44126 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44127 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44128 fi 44129 44130 # Output is in $new_path 44131 44132 windows_path="$new_path" 44133 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44134 unix_path=`$CYGPATH -u "$windows_path"` 44135 new_path="$unix_path" 44136 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44137 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44138 new_path="$unix_path" 44139 fi 44140 44141 # remove trailing .exe if any 44142 new_path="${new_path/%.exe/}" 44143 44144 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44145 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44146 fi 44147 44148 else 44149 # We're on a unix platform. Hooray! :) 44150 # First separate the path from the arguments. This will split at the first 44151 # space. 44152 complete="$OBJCOPY" 44153 path="${complete%% *}" 44154 tmp="$complete EOL" 44155 arguments="${tmp#* }" 44156 44157 # Cannot rely on the command "which" here since it doesn't always work. 44158 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44159 if test -z "$is_absolute_path"; then 44160 # Path to executable is not absolute. Find it. 44161 IFS_save="$IFS" 44162 IFS=: 44163 for p in $PATH; do 44164 if test -f "$p/$path" && test -x "$p/$path"; then 44165 new_path="$p/$path" 44166 break 44167 fi 44168 done 44169 IFS="$IFS_save" 44170 else 44171 # This is an absolute path, we can use it without further modifications. 44172 new_path="$path" 44173 fi 44174 44175 if test "x$new_path" = x; then 44176 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 44177 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 44178 has_space=`$ECHO "$complete" | $GREP " "` 44179 if test "x$has_space" != x; then 44180 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44181 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44182 fi 44183 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 44184 fi 44185 fi 44186 44187 # Now join together the path and the arguments once again 44188 if test "x$arguments" != xEOL; then 44189 new_complete="$new_path ${arguments% *}" 44190 else 44191 new_complete="$new_path" 44192 fi 44193 44194 if test "x$complete" != "x$new_complete"; then 44195 OBJCOPY="$new_complete" 44196 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 44197 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 44198 fi 44199 fi 44200 44201 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 44202 # objcopy prior to 2.21.1 on solaris is broken and is not usable. 44203 # Rewrite objcopy version output to VALID_VERSION or BAD_VERSION. 44204 # - version number is last blank separate word on first line 44205 # - version number formats that have been seen: 44206 # - <major>.<minor> 44207 # - <major>.<minor>.<micro> 44208 OBJCOPY_VERSION=`$OBJCOPY --version | $HEAD -n 1` 44209 # The outer [ ] is to prevent m4 from eating the [] in the sed expression. 44210 OBJCOPY_VERSION_CHECK=`$ECHO $OBJCOPY_VERSION | $SED -n \ 44211 -e 's/.* //' \ 44212 -e '/^[01]\./b bad' \ 44213 -e '/^2\./{' \ 44214 -e ' s/^2\.//' \ 44215 -e ' /^[0-9]$/b bad' \ 44216 -e ' /^[0-9]\./b bad' \ 44217 -e ' /^1[0-9]$/b bad' \ 44218 -e ' /^1[0-9]\./b bad' \ 44219 -e ' /^20\./b bad' \ 44220 -e ' /^21\.0$/b bad' \ 44221 -e ' /^21\.0\./b bad' \ 44222 -e '}' \ 44223 -e ':good' \ 44224 -e 's/.*/VALID_VERSION/p' \ 44225 -e 'q' \ 44226 -e ':bad' \ 44227 -e 's/.*/BAD_VERSION/p' \ 44228 -e 'q'` 44229 if test "x$OBJCOPY_VERSION_CHECK" = xBAD_VERSION; then 44230 OBJCOPY= 44231 { $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 44232 $as_echo "$as_me: WARNING: Ignoring found objcopy since it is broken (prior to 2.21.1). No debug symbols will be generated." >&2;} 44233 { $as_echo "$as_me:${as_lineno-$LINENO}: objcopy reports version $OBJCOPY_VERSION" >&5 44234 $as_echo "$as_me: objcopy reports version $OBJCOPY_VERSION" >&6;} 44235 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&5 44236 $as_echo "$as_me: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&6;} 44237 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&5 44238 $as_echo "$as_me: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&6;} 44239 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: Solaris 11 Update 1 contains the correct version" >&5 44240 $as_echo "$as_me: Note: Solaris 11 Update 1 contains the correct version" >&6;} 44241 fi 44242 fi 44243 fi 44244 fi 44245 44246 44247 44248 # Publish this variable in the help. 44249 44250 44251 if [ -z "${OBJDUMP+x}" ]; then 44252 # The variable is not set by user, try to locate tool using the code snippet 44253 if test -n "$ac_tool_prefix"; then 44254 for ac_prog in gobjdump objdump 44255 do 44256 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 44257 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 44258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44259 $as_echo_n "checking for $ac_word... " >&6; } 44260 if ${ac_cv_prog_OBJDUMP+:} false; then : 44261 $as_echo_n "(cached) " >&6 44262 else 44263 if test -n "$OBJDUMP"; then 44264 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 44265 else 44266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44267 for as_dir in $PATH 44268 do 44269 IFS=$as_save_IFS 44270 test -z "$as_dir" && as_dir=. 44271 for ac_exec_ext in '' $ac_executable_extensions; do 44272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44273 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 44274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44275 break 2 44276 fi 44277 done 44278 done 44279 IFS=$as_save_IFS 44280 44281 fi 44282 fi 44283 OBJDUMP=$ac_cv_prog_OBJDUMP 44284 if test -n "$OBJDUMP"; then 44285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 44286 $as_echo "$OBJDUMP" >&6; } 44287 else 44288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44289 $as_echo "no" >&6; } 44290 fi 44291 44292 44293 test -n "$OBJDUMP" && break 44294 done 44295 fi 44296 if test -z "$OBJDUMP"; then 44297 ac_ct_OBJDUMP=$OBJDUMP 44298 for ac_prog in gobjdump objdump 44299 do 44300 # Extract the first word of "$ac_prog", so it can be a program name with args. 44301 set dummy $ac_prog; ac_word=$2 44302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44303 $as_echo_n "checking for $ac_word... " >&6; } 44304 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 44305 $as_echo_n "(cached) " >&6 44306 else 44307 if test -n "$ac_ct_OBJDUMP"; then 44308 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 44309 else 44310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44311 for as_dir in $PATH 44312 do 44313 IFS=$as_save_IFS 44314 test -z "$as_dir" && as_dir=. 44315 for ac_exec_ext in '' $ac_executable_extensions; do 44316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44317 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 44318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44319 break 2 44320 fi 44321 done 44322 done 44323 IFS=$as_save_IFS 44324 44325 fi 44326 fi 44327 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 44328 if test -n "$ac_ct_OBJDUMP"; then 44329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 44330 $as_echo "$ac_ct_OBJDUMP" >&6; } 44331 else 44332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44333 $as_echo "no" >&6; } 44334 fi 44335 44336 44337 test -n "$ac_ct_OBJDUMP" && break 44338 done 44339 44340 if test "x$ac_ct_OBJDUMP" = x; then 44341 OBJDUMP="" 44342 else 44343 case $cross_compiling:$ac_tool_warned in 44344 yes:) 44345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 44346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 44347 ac_tool_warned=yes ;; 44348 esac 44349 OBJDUMP=$ac_ct_OBJDUMP 44350 fi 44351 fi 44352 44353 else 44354 # The variable is set, but is it from the command line or the environment? 44355 44356 # Try to remove the string !OBJDUMP! from our list. 44357 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 44358 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 44359 # If it failed, the variable was not from the command line. Ignore it, 44360 # but warn the user (except for BASH, which is always set by the calling BASH). 44361 if test "xOBJDUMP" != xBASH; then 44362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 44363 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 44364 fi 44365 # Try to locate tool using the code snippet 44366 if test -n "$ac_tool_prefix"; then 44367 for ac_prog in gobjdump objdump 44368 do 44369 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 44370 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 44371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44372 $as_echo_n "checking for $ac_word... " >&6; } 44373 if ${ac_cv_prog_OBJDUMP+:} false; then : 44374 $as_echo_n "(cached) " >&6 44375 else 44376 if test -n "$OBJDUMP"; then 44377 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 44378 else 44379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44380 for as_dir in $PATH 44381 do 44382 IFS=$as_save_IFS 44383 test -z "$as_dir" && as_dir=. 44384 for ac_exec_ext in '' $ac_executable_extensions; do 44385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44386 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 44387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44388 break 2 44389 fi 44390 done 44391 done 44392 IFS=$as_save_IFS 44393 44394 fi 44395 fi 44396 OBJDUMP=$ac_cv_prog_OBJDUMP 44397 if test -n "$OBJDUMP"; then 44398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 44399 $as_echo "$OBJDUMP" >&6; } 44400 else 44401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44402 $as_echo "no" >&6; } 44403 fi 44404 44405 44406 test -n "$OBJDUMP" && break 44407 done 44408 fi 44409 if test -z "$OBJDUMP"; then 44410 ac_ct_OBJDUMP=$OBJDUMP 44411 for ac_prog in gobjdump objdump 44412 do 44413 # Extract the first word of "$ac_prog", so it can be a program name with args. 44414 set dummy $ac_prog; ac_word=$2 44415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44416 $as_echo_n "checking for $ac_word... " >&6; } 44417 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 44418 $as_echo_n "(cached) " >&6 44419 else 44420 if test -n "$ac_ct_OBJDUMP"; then 44421 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 44422 else 44423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44424 for as_dir in $PATH 44425 do 44426 IFS=$as_save_IFS 44427 test -z "$as_dir" && as_dir=. 44428 for ac_exec_ext in '' $ac_executable_extensions; do 44429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44430 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 44431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44432 break 2 44433 fi 44434 done 44435 done 44436 IFS=$as_save_IFS 44437 44438 fi 44439 fi 44440 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 44441 if test -n "$ac_ct_OBJDUMP"; then 44442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 44443 $as_echo "$ac_ct_OBJDUMP" >&6; } 44444 else 44445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44446 $as_echo "no" >&6; } 44447 fi 44448 44449 44450 test -n "$ac_ct_OBJDUMP" && break 44451 done 44452 44453 if test "x$ac_ct_OBJDUMP" = x; then 44454 OBJDUMP="" 44455 else 44456 case $cross_compiling:$ac_tool_warned in 44457 yes:) 44458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 44459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 44460 ac_tool_warned=yes ;; 44461 esac 44462 OBJDUMP=$ac_ct_OBJDUMP 44463 fi 44464 fi 44465 44466 else 44467 # If it succeeded, then it was overridden by the user. We will use it 44468 # for the tool. 44469 44470 # First remove it from the list of overridden variables, so we can test 44471 # for unknown variables in the end. 44472 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 44473 44474 # Check if we try to supply an empty value 44475 if test "x$OBJDUMP" = x; then 44476 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJDUMP= (no value)" >&5 44477 $as_echo "$as_me: Setting user supplied tool OBJDUMP= (no value)" >&6;} 44478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 44479 $as_echo_n "checking for OBJDUMP... " >&6; } 44480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 44481 $as_echo "disabled" >&6; } 44482 else 44483 # Check if the provided tool contains a complete path. 44484 tool_specified="$OBJDUMP" 44485 tool_basename="${tool_specified##*/}" 44486 if test "x$tool_basename" = "x$tool_specified"; then 44487 # A command without a complete path is provided, search $PATH. 44488 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 44489 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 44490 # Extract the first word of "$tool_basename", so it can be a program name with args. 44491 set dummy $tool_basename; ac_word=$2 44492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44493 $as_echo_n "checking for $ac_word... " >&6; } 44494 if ${ac_cv_path_OBJDUMP+:} false; then : 44495 $as_echo_n "(cached) " >&6 44496 else 44497 case $OBJDUMP in 44498 [\\/]* | ?:[\\/]*) 44499 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 44500 ;; 44501 *) 44502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44503 for as_dir in $PATH 44504 do 44505 IFS=$as_save_IFS 44506 test -z "$as_dir" && as_dir=. 44507 for ac_exec_ext in '' $ac_executable_extensions; do 44508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44509 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 44510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44511 break 2 44512 fi 44513 done 44514 done 44515 IFS=$as_save_IFS 44516 44517 ;; 44518 esac 44519 fi 44520 OBJDUMP=$ac_cv_path_OBJDUMP 44521 if test -n "$OBJDUMP"; then 44522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 44523 $as_echo "$OBJDUMP" >&6; } 44524 else 44525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44526 $as_echo "no" >&6; } 44527 fi 44528 44529 44530 if test "x$OBJDUMP" = x; then 44531 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 44532 fi 44533 else 44534 # Otherwise we believe it is a complete path. Use it as it is. 44535 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 44536 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 44537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 44538 $as_echo_n "checking for OBJDUMP... " >&6; } 44539 if test ! -x "$tool_specified"; then 44540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 44541 $as_echo "not found" >&6; } 44542 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 44543 fi 44544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 44545 $as_echo "$tool_specified" >&6; } 44546 fi 44547 fi 44548 fi 44549 44550 fi 44551 44552 44553 if test "x$OBJDUMP" != x; then 44554 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 44555 # bails if argument is missing. 44556 44557 # Only process if variable expands to non-empty 44558 44559 if test "x$OBJDUMP" != x; then 44560 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44561 44562 # First separate the path from the arguments. This will split at the first 44563 # space. 44564 complete="$OBJDUMP" 44565 path="${complete%% *}" 44566 tmp="$complete EOL" 44567 arguments="${tmp#* }" 44568 44569 # Input might be given as Windows format, start by converting to 44570 # unix format. 44571 new_path=`$CYGPATH -u "$path"` 44572 44573 # Now try to locate executable using which 44574 new_path=`$WHICH "$new_path" 2> /dev/null` 44575 # bat and cmd files are not always considered executable in cygwin causing which 44576 # to not find them 44577 if test "x$new_path" = x \ 44578 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44579 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44580 new_path=`$CYGPATH -u "$path"` 44581 fi 44582 if test "x$new_path" = x; then 44583 # Oops. Which didn't find the executable. 44584 # The splitting of arguments from the executable at a space might have been incorrect, 44585 # since paths with space are more likely in Windows. Give it another try with the whole 44586 # argument. 44587 path="$complete" 44588 arguments="EOL" 44589 new_path=`$CYGPATH -u "$path"` 44590 new_path=`$WHICH "$new_path" 2> /dev/null` 44591 # bat and cmd files are not always considered executable in cygwin causing which 44592 # to not find them 44593 if test "x$new_path" = x \ 44594 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44595 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44596 new_path=`$CYGPATH -u "$path"` 44597 fi 44598 if test "x$new_path" = x; then 44599 # It's still not found. Now this is an unrecoverable error. 44600 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 44601 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 44602 has_space=`$ECHO "$complete" | $GREP " "` 44603 if test "x$has_space" != x; then 44604 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44605 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44606 fi 44607 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 44608 fi 44609 fi 44610 44611 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44612 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44613 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44614 # "foo.exe" is OK but "foo" is an error. 44615 # 44616 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44617 # It is also a way to make sure we got the proper file name for the real test later on. 44618 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44619 if test "x$test_shortpath" = x; then 44620 # Short path failed, file does not exist as specified. 44621 # Try adding .exe or .cmd 44622 if test -f "${new_path}.exe"; then 44623 input_to_shortpath="${new_path}.exe" 44624 elif test -f "${new_path}.cmd"; then 44625 input_to_shortpath="${new_path}.cmd" 44626 else 44627 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 44628 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 44629 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44630 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44631 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 44632 fi 44633 else 44634 input_to_shortpath="$new_path" 44635 fi 44636 44637 # Call helper function which possibly converts this using DOS-style short mode. 44638 # If so, the updated path is stored in $new_path. 44639 new_path="$input_to_shortpath" 44640 44641 input_path="$input_to_shortpath" 44642 # Check if we need to convert this using DOS-style short mode. If the path 44643 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44644 # take no chances and rewrite it. 44645 # Note: m4 eats our [], so we need to use [ and ] instead. 44646 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44647 if test "x$has_forbidden_chars" != x; then 44648 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44649 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44650 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44651 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44652 # Going to short mode and back again did indeed matter. Since short mode is 44653 # case insensitive, let's make it lowercase to improve readability. 44654 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44655 # Now convert it back to Unix-style (cygpath) 44656 input_path=`$CYGPATH -u "$shortmode_path"` 44657 new_path="$input_path" 44658 fi 44659 fi 44660 44661 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44662 if test "x$test_cygdrive_prefix" = x; then 44663 # As a simple fix, exclude /usr/bin since it's not a real path. 44664 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44665 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44666 # a path prefixed by /cygdrive for fixpath to work. 44667 new_path="$CYGWIN_ROOT_PATH$input_path" 44668 fi 44669 fi 44670 44671 # remove trailing .exe if any 44672 new_path="${new_path/%.exe/}" 44673 44674 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44675 44676 # First separate the path from the arguments. This will split at the first 44677 # space. 44678 complete="$OBJDUMP" 44679 path="${complete%% *}" 44680 tmp="$complete EOL" 44681 arguments="${tmp#* }" 44682 44683 # Input might be given as Windows format, start by converting to 44684 # unix format. 44685 new_path="$path" 44686 44687 windows_path="$new_path" 44688 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44689 unix_path=`$CYGPATH -u "$windows_path"` 44690 new_path="$unix_path" 44691 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44692 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44693 new_path="$unix_path" 44694 fi 44695 44696 44697 # Now try to locate executable using which 44698 new_path=`$WHICH "$new_path" 2> /dev/null` 44699 44700 if test "x$new_path" = x; then 44701 # Oops. Which didn't find the executable. 44702 # The splitting of arguments from the executable at a space might have been incorrect, 44703 # since paths with space are more likely in Windows. Give it another try with the whole 44704 # argument. 44705 path="$complete" 44706 arguments="EOL" 44707 new_path="$path" 44708 44709 windows_path="$new_path" 44710 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44711 unix_path=`$CYGPATH -u "$windows_path"` 44712 new_path="$unix_path" 44713 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44714 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44715 new_path="$unix_path" 44716 fi 44717 44718 44719 new_path=`$WHICH "$new_path" 2> /dev/null` 44720 # bat and cmd files are not always considered executable in MSYS causing which 44721 # to not find them 44722 if test "x$new_path" = x \ 44723 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44724 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44725 new_path="$path" 44726 44727 windows_path="$new_path" 44728 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44729 unix_path=`$CYGPATH -u "$windows_path"` 44730 new_path="$unix_path" 44731 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44732 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44733 new_path="$unix_path" 44734 fi 44735 44736 fi 44737 44738 if test "x$new_path" = x; then 44739 # It's still not found. Now this is an unrecoverable error. 44740 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 44741 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 44742 has_space=`$ECHO "$complete" | $GREP " "` 44743 if test "x$has_space" != x; then 44744 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44745 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44746 fi 44747 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 44748 fi 44749 fi 44750 44751 # Now new_path has a complete unix path to the binary 44752 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44753 # Keep paths in /bin as-is, but remove trailing .exe if any 44754 new_path="${new_path/%.exe/}" 44755 # Do not save /bin paths to all_fixpath_prefixes! 44756 else 44757 # Not in mixed or Windows style, start by that. 44758 new_path=`cmd //c echo $new_path` 44759 44760 input_path="$new_path" 44761 # Check if we need to convert this using DOS-style short mode. If the path 44762 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44763 # take no chances and rewrite it. 44764 # Note: m4 eats our [], so we need to use [ and ] instead. 44765 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44766 if test "x$has_forbidden_chars" != x; then 44767 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44768 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44769 fi 44770 44771 # Output is in $new_path 44772 44773 windows_path="$new_path" 44774 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44775 unix_path=`$CYGPATH -u "$windows_path"` 44776 new_path="$unix_path" 44777 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44778 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44779 new_path="$unix_path" 44780 fi 44781 44782 # remove trailing .exe if any 44783 new_path="${new_path/%.exe/}" 44784 44785 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44786 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44787 fi 44788 44789 else 44790 # We're on a unix platform. Hooray! :) 44791 # First separate the path from the arguments. This will split at the first 44792 # space. 44793 complete="$OBJDUMP" 44794 path="${complete%% *}" 44795 tmp="$complete EOL" 44796 arguments="${tmp#* }" 44797 44798 # Cannot rely on the command "which" here since it doesn't always work. 44799 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44800 if test -z "$is_absolute_path"; then 44801 # Path to executable is not absolute. Find it. 44802 IFS_save="$IFS" 44803 IFS=: 44804 for p in $PATH; do 44805 if test -f "$p/$path" && test -x "$p/$path"; then 44806 new_path="$p/$path" 44807 break 44808 fi 44809 done 44810 IFS="$IFS_save" 44811 else 44812 # This is an absolute path, we can use it without further modifications. 44813 new_path="$path" 44814 fi 44815 44816 if test "x$new_path" = x; then 44817 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 44818 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 44819 has_space=`$ECHO "$complete" | $GREP " "` 44820 if test "x$has_space" != x; then 44821 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44822 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44823 fi 44824 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 44825 fi 44826 fi 44827 44828 # Now join together the path and the arguments once again 44829 if test "x$arguments" != xEOL; then 44830 new_complete="$new_path ${arguments% *}" 44831 else 44832 new_complete="$new_path" 44833 fi 44834 44835 if test "x$complete" != "x$new_complete"; then 44836 OBJDUMP="$new_complete" 44837 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 44838 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 44839 fi 44840 fi 44841 44842 fi 44843 44844 44845 # Restore old path, except for the microsoft toolchain, which requires VS_PATH 44846 # to remain in place. Otherwise the compiler will not work in some siutations 44847 # in later configure checks. 44848 if test "x$TOOLCHAIN_TYPE" != "xmicrosoft"; then 44849 PATH="$OLD_PATH" 44850 fi 44851 44852 # Restore the flags to the user specified values. 44853 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 44854 CFLAGS="$ORG_CFLAGS" 44855 CXXFLAGS="$ORG_CXXFLAGS" 44856 44857 44858 # Finally do some processing after the detection phase 44859 44860 if test "x$COMPILE_TYPE" = "xcross"; then 44861 # Now we need to find a C/C++ compiler that can build executables for the 44862 # build platform. We can't use the AC_PROG_CC macro, since it can only be 44863 # used once. Also, we need to do this without adding a tools dir to the 44864 # path, otherwise we might pick up cross-compilers which don't use standard 44865 # naming. 44866 44867 OLDPATH="$PATH" 44868 44869 44870 # Check whether --with-build-devkit was given. 44871 if test "${with_build_devkit+set}" = set; then : 44872 withval=$with_build_devkit; 44873 fi 44874 44875 if test "x$with_build_devkit" = "xyes"; then 44876 as_fn_error $? "--with-build-devkit must have a value" "$LINENO" 5 44877 elif test -n "$with_build_devkit"; then 44878 if test ! -d "$with_build_devkit"; then 44879 as_fn_error $? "--with-build-devkit points to non existing dir: $with_build_devkit" "$LINENO" 5 44880 else 44881 44882 # Only process if variable expands to non-empty 44883 44884 if test "x$with_build_devkit" != x; then 44885 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44886 44887 # Input might be given as Windows format, start by converting to 44888 # unix format. 44889 path="$with_build_devkit" 44890 new_path=`$CYGPATH -u "$path"` 44891 44892 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44893 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44894 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44895 # "foo.exe" is OK but "foo" is an error. 44896 # 44897 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44898 # It is also a way to make sure we got the proper file name for the real test later on. 44899 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44900 if test "x$test_shortpath" = x; then 44901 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 44902 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 44903 as_fn_error $? "Cannot locate the the path of with_build_devkit" "$LINENO" 5 44904 fi 44905 44906 # Call helper function which possibly converts this using DOS-style short mode. 44907 # If so, the updated path is stored in $new_path. 44908 44909 input_path="$new_path" 44910 # Check if we need to convert this using DOS-style short mode. If the path 44911 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44912 # take no chances and rewrite it. 44913 # Note: m4 eats our [], so we need to use [ and ] instead. 44914 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44915 if test "x$has_forbidden_chars" != x; then 44916 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44917 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44918 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44919 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44920 # Going to short mode and back again did indeed matter. Since short mode is 44921 # case insensitive, let's make it lowercase to improve readability. 44922 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44923 # Now convert it back to Unix-style (cygpath) 44924 input_path=`$CYGPATH -u "$shortmode_path"` 44925 new_path="$input_path" 44926 fi 44927 fi 44928 44929 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44930 if test "x$test_cygdrive_prefix" = x; then 44931 # As a simple fix, exclude /usr/bin since it's not a real path. 44932 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44933 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44934 # a path prefixed by /cygdrive for fixpath to work. 44935 new_path="$CYGWIN_ROOT_PATH$input_path" 44936 fi 44937 fi 44938 44939 44940 if test "x$path" != "x$new_path"; then 44941 with_build_devkit="$new_path" 44942 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 44943 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 44944 fi 44945 44946 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44947 44948 path="$with_build_devkit" 44949 has_colon=`$ECHO $path | $GREP ^.:` 44950 new_path="$path" 44951 if test "x$has_colon" = x; then 44952 # Not in mixed or Windows style, start by that. 44953 new_path=`cmd //c echo $path` 44954 fi 44955 44956 44957 input_path="$new_path" 44958 # Check if we need to convert this using DOS-style short mode. If the path 44959 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44960 # take no chances and rewrite it. 44961 # Note: m4 eats our [], so we need to use [ and ] instead. 44962 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44963 if test "x$has_forbidden_chars" != x; then 44964 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44965 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44966 fi 44967 44968 44969 windows_path="$new_path" 44970 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44971 unix_path=`$CYGPATH -u "$windows_path"` 44972 new_path="$unix_path" 44973 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44974 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44975 new_path="$unix_path" 44976 fi 44977 44978 if test "x$path" != "x$new_path"; then 44979 with_build_devkit="$new_path" 44980 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 44981 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 44982 fi 44983 44984 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44985 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44986 44987 else 44988 # We're on a unix platform. Hooray! :) 44989 path="$with_build_devkit" 44990 has_space=`$ECHO "$path" | $GREP " "` 44991 if test "x$has_space" != x; then 44992 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 44993 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 44994 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44995 fi 44996 44997 # Use eval to expand a potential ~ 44998 eval path="$path" 44999 if test ! -f "$path" && test ! -d "$path"; then 45000 as_fn_error $? "The path of with_build_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 45001 fi 45002 45003 if test -d "$path"; then 45004 with_build_devkit="`cd "$path"; $THEPWDCMD -L`" 45005 else 45006 dir="`$DIRNAME "$path"`" 45007 base="`$BASENAME "$path"`" 45008 with_build_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 45009 fi 45010 fi 45011 fi 45012 45013 BUILD_DEVKIT_ROOT="$with_build_devkit" 45014 # Check for a meta data info file in the root of the devkit 45015 if test -f "$BUILD_DEVKIT_ROOT/devkit.info"; then 45016 # Process devkit.info so that existing devkit variables are not 45017 # modified by this 45018 $SED -e "s/^DEVKIT_/BUILD_DEVKIT_/g" \ 45019 -e "s/\$DEVKIT_ROOT/\$BUILD_DEVKIT_ROOT/g" \ 45020 -e "s/\$host/\$build/g" \ 45021 $BUILD_DEVKIT_ROOT/devkit.info \ 45022 > $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 45023 . $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 45024 # This potentially sets the following: 45025 # A descriptive name of the devkit 45026 45027 if test "x$BUILD_DEVKIT_NAME" = x; then 45028 eval BUILD_DEVKIT_NAME="\${BUILD_DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 45029 fi 45030 45031 # Corresponds to --with-extra-path 45032 45033 if test "x$BUILD_DEVKIT_EXTRA_PATH" = x; then 45034 eval BUILD_DEVKIT_EXTRA_PATH="\${BUILD_DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 45035 fi 45036 45037 # Corresponds to --with-toolchain-path 45038 45039 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 45040 eval BUILD_DEVKIT_TOOLCHAIN_PATH="\${BUILD_DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 45041 fi 45042 45043 # Corresponds to --with-sysroot 45044 45045 if test "x$BUILD_DEVKIT_SYSROOT" = x; then 45046 eval BUILD_DEVKIT_SYSROOT="\${BUILD_DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 45047 fi 45048 45049 # Skip the Window specific parts 45050 fi 45051 45052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build platform devkit" >&5 45053 $as_echo_n "checking for build platform devkit... " >&6; } 45054 if test "x$BUILD_DEVKIT_NAME" != x; then 45055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&5 45056 $as_echo "$BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&6; } 45057 else 45058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_ROOT" >&5 45059 $as_echo "$BUILD_DEVKIT_ROOT" >&6; } 45060 fi 45061 45062 BUILD_SYSROOT="$BUILD_DEVKIT_SYSROOT" 45063 45064 if test "x$BUILD_SYSROOT" != "x"; then 45065 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 45066 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 45067 # Solaris Studio does not have a concept of sysroot. Instead we must 45068 # make sure the default include and lib dirs are appended to each 45069 # compile and link command line. Must also add -I-xbuiltin to enable 45070 # inlining of system functions and intrinsics. 45071 BUILD_SYSROOT_CFLAGS="-I-xbuiltin -I$BUILD_SYSROOT/usr/include" 45072 BUILD_SYSROOT_LDFLAGS="-L$BUILD_SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 45073 -L$BUILD_SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR" 45074 fi 45075 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 45076 BUILD_SYSROOT_CFLAGS="--sysroot=$BUILD_SYSROOT" 45077 BUILD_SYSROOT_LDFLAGS="--sysroot=$BUILD_SYSROOT" 45078 elif test "x$TOOLCHAIN_TYPE" = xclang; then 45079 BUILD_SYSROOT_CFLAGS="-isysroot $BUILD_SYSROOT" 45080 BUILD_SYSROOT_LDFLAGS="-isysroot $BUILD_SYSROOT" 45081 fi 45082 # The global CFLAGS and LDFLAGS variables need these for configure to function 45083 BUILD_CFLAGS="$BUILD_CFLAGS $BUILD_SYSROOT_CFLAGS" 45084 BUILD_CPPFLAGS="$BUILD_CPPFLAGS $BUILD_SYSROOT_CFLAGS" 45085 BUILD_CXXFLAGS="$BUILD_CXXFLAGS $BUILD_SYSROOT_CFLAGS" 45086 BUILD_LDFLAGS="$BUILD_LDFLAGS $BUILD_SYSROOT_LDFLAGS" 45087 fi 45088 45089 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 45090 # We also need -iframework<path>/System/Library/Frameworks 45091 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 45092 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 45093 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 45094 # set this here so it doesn't have to be peppered throughout the forest 45095 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 45096 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 45097 fi 45098 45099 45100 45101 45102 45103 # Fallback default of just /bin if DEVKIT_PATH is not defined 45104 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 45105 BUILD_DEVKIT_TOOLCHAIN_PATH="$BUILD_DEVKIT_ROOT/bin" 45106 fi 45107 PATH="$BUILD_DEVKIT_TOOLCHAIN_PATH:$BUILD_DEVKIT_EXTRA_PATH" 45108 fi 45109 fi 45110 45111 # FIXME: we should list the discovered compilers as an exclude pattern! 45112 # If we do that, we can do this detection before POST_DETECTION, and still 45113 # find the build compilers in the tools dir, if needed. 45114 45115 45116 45117 # Publish this variable in the help. 45118 45119 45120 if [ -z "${BUILD_CC+x}" ]; then 45121 # The variable is not set by user, try to locate tool using the code snippet 45122 for ac_prog in cl cc gcc 45123 do 45124 # Extract the first word of "$ac_prog", so it can be a program name with args. 45125 set dummy $ac_prog; ac_word=$2 45126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45127 $as_echo_n "checking for $ac_word... " >&6; } 45128 if ${ac_cv_path_BUILD_CC+:} false; then : 45129 $as_echo_n "(cached) " >&6 45130 else 45131 case $BUILD_CC in 45132 [\\/]* | ?:[\\/]*) 45133 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 45134 ;; 45135 *) 45136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45137 for as_dir in $PATH 45138 do 45139 IFS=$as_save_IFS 45140 test -z "$as_dir" && as_dir=. 45141 for ac_exec_ext in '' $ac_executable_extensions; do 45142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45143 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 45144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45145 break 2 45146 fi 45147 done 45148 done 45149 IFS=$as_save_IFS 45150 45151 ;; 45152 esac 45153 fi 45154 BUILD_CC=$ac_cv_path_BUILD_CC 45155 if test -n "$BUILD_CC"; then 45156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 45157 $as_echo "$BUILD_CC" >&6; } 45158 else 45159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45160 $as_echo "no" >&6; } 45161 fi 45162 45163 45164 test -n "$BUILD_CC" && break 45165 done 45166 45167 else 45168 # The variable is set, but is it from the command line or the environment? 45169 45170 # Try to remove the string !BUILD_CC! from our list. 45171 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 45172 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45173 # If it failed, the variable was not from the command line. Ignore it, 45174 # but warn the user (except for BASH, which is always set by the calling BASH). 45175 if test "xBUILD_CC" != xBASH; then 45176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 45177 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 45178 fi 45179 # Try to locate tool using the code snippet 45180 for ac_prog in cl cc gcc 45181 do 45182 # Extract the first word of "$ac_prog", so it can be a program name with args. 45183 set dummy $ac_prog; ac_word=$2 45184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45185 $as_echo_n "checking for $ac_word... " >&6; } 45186 if ${ac_cv_path_BUILD_CC+:} false; then : 45187 $as_echo_n "(cached) " >&6 45188 else 45189 case $BUILD_CC in 45190 [\\/]* | ?:[\\/]*) 45191 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 45192 ;; 45193 *) 45194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45195 for as_dir in $PATH 45196 do 45197 IFS=$as_save_IFS 45198 test -z "$as_dir" && as_dir=. 45199 for ac_exec_ext in '' $ac_executable_extensions; do 45200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45201 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 45202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45203 break 2 45204 fi 45205 done 45206 done 45207 IFS=$as_save_IFS 45208 45209 ;; 45210 esac 45211 fi 45212 BUILD_CC=$ac_cv_path_BUILD_CC 45213 if test -n "$BUILD_CC"; then 45214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 45215 $as_echo "$BUILD_CC" >&6; } 45216 else 45217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45218 $as_echo "no" >&6; } 45219 fi 45220 45221 45222 test -n "$BUILD_CC" && break 45223 done 45224 45225 else 45226 # If it succeeded, then it was overridden by the user. We will use it 45227 # for the tool. 45228 45229 # First remove it from the list of overridden variables, so we can test 45230 # for unknown variables in the end. 45231 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45232 45233 # Check if we try to supply an empty value 45234 if test "x$BUILD_CC" = x; then 45235 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CC= (no value)" >&5 45236 $as_echo "$as_me: Setting user supplied tool BUILD_CC= (no value)" >&6;} 45237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 45238 $as_echo_n "checking for BUILD_CC... " >&6; } 45239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45240 $as_echo "disabled" >&6; } 45241 else 45242 # Check if the provided tool contains a complete path. 45243 tool_specified="$BUILD_CC" 45244 tool_basename="${tool_specified##*/}" 45245 if test "x$tool_basename" = "x$tool_specified"; then 45246 # A command without a complete path is provided, search $PATH. 45247 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 45248 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 45249 # Extract the first word of "$tool_basename", so it can be a program name with args. 45250 set dummy $tool_basename; 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_BUILD_CC+:} false; then : 45254 $as_echo_n "(cached) " >&6 45255 else 45256 case $BUILD_CC in 45257 [\\/]* | ?:[\\/]*) 45258 ac_cv_path_BUILD_CC="$BUILD_CC" # 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_BUILD_CC="$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 BUILD_CC=$ac_cv_path_BUILD_CC 45280 if test -n "$BUILD_CC"; then 45281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 45282 $as_echo "$BUILD_CC" >&6; } 45283 else 45284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45285 $as_echo "no" >&6; } 45286 fi 45287 45288 45289 if test "x$BUILD_CC" = x; then 45290 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 45291 fi 45292 else 45293 # Otherwise we believe it is a complete path. Use it as it is. 45294 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 45295 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 45296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 45297 $as_echo_n "checking for BUILD_CC... " >&6; } 45298 if test ! -x "$tool_specified"; then 45299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 45300 $as_echo "not found" >&6; } 45301 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 45302 fi 45303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 45304 $as_echo "$tool_specified" >&6; } 45305 fi 45306 fi 45307 fi 45308 45309 fi 45310 45311 45312 45313 if test "x$BUILD_CC" = x; then 45314 as_fn_error $? "Could not find required tool for BUILD_CC" "$LINENO" 5 45315 fi 45316 45317 45318 45319 # Only process if variable expands to non-empty 45320 45321 if test "x$BUILD_CC" != x; then 45322 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45323 45324 # First separate the path from the arguments. This will split at the first 45325 # space. 45326 complete="$BUILD_CC" 45327 path="${complete%% *}" 45328 tmp="$complete EOL" 45329 arguments="${tmp#* }" 45330 45331 # Input might be given as Windows format, start by converting to 45332 # unix format. 45333 new_path=`$CYGPATH -u "$path"` 45334 45335 # Now try to locate executable using which 45336 new_path=`$WHICH "$new_path" 2> /dev/null` 45337 # bat and cmd files are not always considered executable in cygwin causing which 45338 # to not find them 45339 if test "x$new_path" = x \ 45340 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45341 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45342 new_path=`$CYGPATH -u "$path"` 45343 fi 45344 if test "x$new_path" = x; then 45345 # Oops. Which didn't find the executable. 45346 # The splitting of arguments from the executable at a space might have been incorrect, 45347 # since paths with space are more likely in Windows. Give it another try with the whole 45348 # argument. 45349 path="$complete" 45350 arguments="EOL" 45351 new_path=`$CYGPATH -u "$path"` 45352 new_path=`$WHICH "$new_path" 2> /dev/null` 45353 # bat and cmd files are not always considered executable in cygwin causing which 45354 # to not find them 45355 if test "x$new_path" = x \ 45356 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45357 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45358 new_path=`$CYGPATH -u "$path"` 45359 fi 45360 if test "x$new_path" = x; then 45361 # It's still not found. Now this is an unrecoverable error. 45362 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 45363 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 45364 has_space=`$ECHO "$complete" | $GREP " "` 45365 if test "x$has_space" != x; then 45366 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45367 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45368 fi 45369 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 45370 fi 45371 fi 45372 45373 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45374 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45375 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45376 # "foo.exe" is OK but "foo" is an error. 45377 # 45378 # This test is therefore slightly more accurate than "test -f" to check for file presence. 45379 # It is also a way to make sure we got the proper file name for the real test later on. 45380 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45381 if test "x$test_shortpath" = x; then 45382 # Short path failed, file does not exist as specified. 45383 # Try adding .exe or .cmd 45384 if test -f "${new_path}.exe"; then 45385 input_to_shortpath="${new_path}.exe" 45386 elif test -f "${new_path}.cmd"; then 45387 input_to_shortpath="${new_path}.cmd" 45388 else 45389 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 45390 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 45391 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 45392 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 45393 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 45394 fi 45395 else 45396 input_to_shortpath="$new_path" 45397 fi 45398 45399 # Call helper function which possibly converts this using DOS-style short mode. 45400 # If so, the updated path is stored in $new_path. 45401 new_path="$input_to_shortpath" 45402 45403 input_path="$input_to_shortpath" 45404 # Check if we need to convert this using DOS-style short mode. If the path 45405 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45406 # take no chances and rewrite it. 45407 # Note: m4 eats our [], so we need to use [ and ] instead. 45408 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45409 if test "x$has_forbidden_chars" != x; then 45410 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45411 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45412 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45413 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45414 # Going to short mode and back again did indeed matter. Since short mode is 45415 # case insensitive, let's make it lowercase to improve readability. 45416 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45417 # Now convert it back to Unix-style (cygpath) 45418 input_path=`$CYGPATH -u "$shortmode_path"` 45419 new_path="$input_path" 45420 fi 45421 fi 45422 45423 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45424 if test "x$test_cygdrive_prefix" = x; then 45425 # As a simple fix, exclude /usr/bin since it's not a real path. 45426 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 45427 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45428 # a path prefixed by /cygdrive for fixpath to work. 45429 new_path="$CYGWIN_ROOT_PATH$input_path" 45430 fi 45431 fi 45432 45433 # remove trailing .exe if any 45434 new_path="${new_path/%.exe/}" 45435 45436 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45437 45438 # First separate the path from the arguments. This will split at the first 45439 # space. 45440 complete="$BUILD_CC" 45441 path="${complete%% *}" 45442 tmp="$complete EOL" 45443 arguments="${tmp#* }" 45444 45445 # Input might be given as Windows format, start by converting to 45446 # unix format. 45447 new_path="$path" 45448 45449 windows_path="$new_path" 45450 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45451 unix_path=`$CYGPATH -u "$windows_path"` 45452 new_path="$unix_path" 45453 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45454 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45455 new_path="$unix_path" 45456 fi 45457 45458 45459 # Now try to locate executable using which 45460 new_path=`$WHICH "$new_path" 2> /dev/null` 45461 45462 if test "x$new_path" = x; then 45463 # Oops. Which didn't find the executable. 45464 # The splitting of arguments from the executable at a space might have been incorrect, 45465 # since paths with space are more likely in Windows. Give it another try with the whole 45466 # argument. 45467 path="$complete" 45468 arguments="EOL" 45469 new_path="$path" 45470 45471 windows_path="$new_path" 45472 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45473 unix_path=`$CYGPATH -u "$windows_path"` 45474 new_path="$unix_path" 45475 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45476 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45477 new_path="$unix_path" 45478 fi 45479 45480 45481 new_path=`$WHICH "$new_path" 2> /dev/null` 45482 # bat and cmd files are not always considered executable in MSYS causing which 45483 # to not find them 45484 if test "x$new_path" = x \ 45485 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45486 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45487 new_path="$path" 45488 45489 windows_path="$new_path" 45490 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45491 unix_path=`$CYGPATH -u "$windows_path"` 45492 new_path="$unix_path" 45493 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45494 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45495 new_path="$unix_path" 45496 fi 45497 45498 fi 45499 45500 if test "x$new_path" = x; then 45501 # It's still not found. Now this is an unrecoverable error. 45502 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 45503 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 45504 has_space=`$ECHO "$complete" | $GREP " "` 45505 if test "x$has_space" != x; then 45506 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45507 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45508 fi 45509 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 45510 fi 45511 fi 45512 45513 # Now new_path has a complete unix path to the binary 45514 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 45515 # Keep paths in /bin as-is, but remove trailing .exe if any 45516 new_path="${new_path/%.exe/}" 45517 # Do not save /bin paths to all_fixpath_prefixes! 45518 else 45519 # Not in mixed or Windows style, start by that. 45520 new_path=`cmd //c echo $new_path` 45521 45522 input_path="$new_path" 45523 # Check if we need to convert this using DOS-style short mode. If the path 45524 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45525 # take no chances and rewrite it. 45526 # Note: m4 eats our [], so we need to use [ and ] instead. 45527 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45528 if test "x$has_forbidden_chars" != x; then 45529 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45530 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45531 fi 45532 45533 # Output is in $new_path 45534 45535 windows_path="$new_path" 45536 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45537 unix_path=`$CYGPATH -u "$windows_path"` 45538 new_path="$unix_path" 45539 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45540 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45541 new_path="$unix_path" 45542 fi 45543 45544 # remove trailing .exe if any 45545 new_path="${new_path/%.exe/}" 45546 45547 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45548 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45549 fi 45550 45551 else 45552 # We're on a unix platform. Hooray! :) 45553 # First separate the path from the arguments. This will split at the first 45554 # space. 45555 complete="$BUILD_CC" 45556 path="${complete%% *}" 45557 tmp="$complete EOL" 45558 arguments="${tmp#* }" 45559 45560 # Cannot rely on the command "which" here since it doesn't always work. 45561 is_absolute_path=`$ECHO "$path" | $GREP ^/` 45562 if test -z "$is_absolute_path"; then 45563 # Path to executable is not absolute. Find it. 45564 IFS_save="$IFS" 45565 IFS=: 45566 for p in $PATH; do 45567 if test -f "$p/$path" && test -x "$p/$path"; then 45568 new_path="$p/$path" 45569 break 45570 fi 45571 done 45572 IFS="$IFS_save" 45573 else 45574 # This is an absolute path, we can use it without further modifications. 45575 new_path="$path" 45576 fi 45577 45578 if test "x$new_path" = x; then 45579 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 45580 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 45581 has_space=`$ECHO "$complete" | $GREP " "` 45582 if test "x$has_space" != x; then 45583 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 45584 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 45585 fi 45586 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 45587 fi 45588 fi 45589 45590 # Now join together the path and the arguments once again 45591 if test "x$arguments" != xEOL; then 45592 new_complete="$new_path ${arguments% *}" 45593 else 45594 new_complete="$new_path" 45595 fi 45596 45597 if test "x$complete" != "x$new_complete"; then 45598 BUILD_CC="$new_complete" 45599 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 45600 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 45601 fi 45602 fi 45603 45604 45605 45606 45607 # Publish this variable in the help. 45608 45609 45610 if [ -z "${BUILD_CXX+x}" ]; then 45611 # The variable is not set by user, try to locate tool using the code snippet 45612 for ac_prog in cl CC g++ 45613 do 45614 # Extract the first word of "$ac_prog", so it can be a program name with args. 45615 set dummy $ac_prog; ac_word=$2 45616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45617 $as_echo_n "checking for $ac_word... " >&6; } 45618 if ${ac_cv_path_BUILD_CXX+:} false; then : 45619 $as_echo_n "(cached) " >&6 45620 else 45621 case $BUILD_CXX in 45622 [\\/]* | ?:[\\/]*) 45623 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 45624 ;; 45625 *) 45626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45627 for as_dir in $PATH 45628 do 45629 IFS=$as_save_IFS 45630 test -z "$as_dir" && as_dir=. 45631 for ac_exec_ext in '' $ac_executable_extensions; do 45632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45633 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 45634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45635 break 2 45636 fi 45637 done 45638 done 45639 IFS=$as_save_IFS 45640 45641 ;; 45642 esac 45643 fi 45644 BUILD_CXX=$ac_cv_path_BUILD_CXX 45645 if test -n "$BUILD_CXX"; then 45646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 45647 $as_echo "$BUILD_CXX" >&6; } 45648 else 45649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45650 $as_echo "no" >&6; } 45651 fi 45652 45653 45654 test -n "$BUILD_CXX" && break 45655 done 45656 45657 else 45658 # The variable is set, but is it from the command line or the environment? 45659 45660 # Try to remove the string !BUILD_CXX! from our list. 45661 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 45662 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45663 # If it failed, the variable was not from the command line. Ignore it, 45664 # but warn the user (except for BASH, which is always set by the calling BASH). 45665 if test "xBUILD_CXX" != xBASH; then 45666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 45667 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 45668 fi 45669 # Try to locate tool using the code snippet 45670 for ac_prog in cl CC g++ 45671 do 45672 # Extract the first word of "$ac_prog", so it can be a program name with args. 45673 set dummy $ac_prog; ac_word=$2 45674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45675 $as_echo_n "checking for $ac_word... " >&6; } 45676 if ${ac_cv_path_BUILD_CXX+:} false; then : 45677 $as_echo_n "(cached) " >&6 45678 else 45679 case $BUILD_CXX in 45680 [\\/]* | ?:[\\/]*) 45681 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 45682 ;; 45683 *) 45684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45685 for as_dir in $PATH 45686 do 45687 IFS=$as_save_IFS 45688 test -z "$as_dir" && as_dir=. 45689 for ac_exec_ext in '' $ac_executable_extensions; do 45690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45691 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 45692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45693 break 2 45694 fi 45695 done 45696 done 45697 IFS=$as_save_IFS 45698 45699 ;; 45700 esac 45701 fi 45702 BUILD_CXX=$ac_cv_path_BUILD_CXX 45703 if test -n "$BUILD_CXX"; then 45704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 45705 $as_echo "$BUILD_CXX" >&6; } 45706 else 45707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45708 $as_echo "no" >&6; } 45709 fi 45710 45711 45712 test -n "$BUILD_CXX" && break 45713 done 45714 45715 else 45716 # If it succeeded, then it was overridden by the user. We will use it 45717 # for the tool. 45718 45719 # First remove it from the list of overridden variables, so we can test 45720 # for unknown variables in the end. 45721 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45722 45723 # Check if we try to supply an empty value 45724 if test "x$BUILD_CXX" = x; then 45725 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CXX= (no value)" >&5 45726 $as_echo "$as_me: Setting user supplied tool BUILD_CXX= (no value)" >&6;} 45727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 45728 $as_echo_n "checking for BUILD_CXX... " >&6; } 45729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45730 $as_echo "disabled" >&6; } 45731 else 45732 # Check if the provided tool contains a complete path. 45733 tool_specified="$BUILD_CXX" 45734 tool_basename="${tool_specified##*/}" 45735 if test "x$tool_basename" = "x$tool_specified"; then 45736 # A command without a complete path is provided, search $PATH. 45737 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 45738 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 45739 # Extract the first word of "$tool_basename", so it can be a program name with args. 45740 set dummy $tool_basename; ac_word=$2 45741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45742 $as_echo_n "checking for $ac_word... " >&6; } 45743 if ${ac_cv_path_BUILD_CXX+:} false; then : 45744 $as_echo_n "(cached) " >&6 45745 else 45746 case $BUILD_CXX in 45747 [\\/]* | ?:[\\/]*) 45748 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 45749 ;; 45750 *) 45751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45752 for as_dir in $PATH 45753 do 45754 IFS=$as_save_IFS 45755 test -z "$as_dir" && as_dir=. 45756 for ac_exec_ext in '' $ac_executable_extensions; do 45757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45758 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 45759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45760 break 2 45761 fi 45762 done 45763 done 45764 IFS=$as_save_IFS 45765 45766 ;; 45767 esac 45768 fi 45769 BUILD_CXX=$ac_cv_path_BUILD_CXX 45770 if test -n "$BUILD_CXX"; then 45771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 45772 $as_echo "$BUILD_CXX" >&6; } 45773 else 45774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45775 $as_echo "no" >&6; } 45776 fi 45777 45778 45779 if test "x$BUILD_CXX" = x; then 45780 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 45781 fi 45782 else 45783 # Otherwise we believe it is a complete path. Use it as it is. 45784 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 45785 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 45786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 45787 $as_echo_n "checking for BUILD_CXX... " >&6; } 45788 if test ! -x "$tool_specified"; then 45789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 45790 $as_echo "not found" >&6; } 45791 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 45792 fi 45793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 45794 $as_echo "$tool_specified" >&6; } 45795 fi 45796 fi 45797 fi 45798 45799 fi 45800 45801 45802 45803 if test "x$BUILD_CXX" = x; then 45804 as_fn_error $? "Could not find required tool for BUILD_CXX" "$LINENO" 5 45805 fi 45806 45807 45808 45809 # Only process if variable expands to non-empty 45810 45811 if test "x$BUILD_CXX" != x; then 45812 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45813 45814 # First separate the path from the arguments. This will split at the first 45815 # space. 45816 complete="$BUILD_CXX" 45817 path="${complete%% *}" 45818 tmp="$complete EOL" 45819 arguments="${tmp#* }" 45820 45821 # Input might be given as Windows format, start by converting to 45822 # unix format. 45823 new_path=`$CYGPATH -u "$path"` 45824 45825 # Now try to locate executable using which 45826 new_path=`$WHICH "$new_path" 2> /dev/null` 45827 # bat and cmd files are not always considered executable in cygwin causing which 45828 # to not find them 45829 if test "x$new_path" = x \ 45830 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45831 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45832 new_path=`$CYGPATH -u "$path"` 45833 fi 45834 if test "x$new_path" = x; then 45835 # Oops. Which didn't find the executable. 45836 # The splitting of arguments from the executable at a space might have been incorrect, 45837 # since paths with space are more likely in Windows. Give it another try with the whole 45838 # argument. 45839 path="$complete" 45840 arguments="EOL" 45841 new_path=`$CYGPATH -u "$path"` 45842 new_path=`$WHICH "$new_path" 2> /dev/null` 45843 # bat and cmd files are not always considered executable in cygwin causing which 45844 # to not find them 45845 if test "x$new_path" = x \ 45846 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45847 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45848 new_path=`$CYGPATH -u "$path"` 45849 fi 45850 if test "x$new_path" = x; then 45851 # It's still not found. Now this is an unrecoverable error. 45852 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 45853 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 45854 has_space=`$ECHO "$complete" | $GREP " "` 45855 if test "x$has_space" != x; then 45856 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45857 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45858 fi 45859 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 45860 fi 45861 fi 45862 45863 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45864 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45865 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45866 # "foo.exe" is OK but "foo" is an error. 45867 # 45868 # This test is therefore slightly more accurate than "test -f" to check for file presence. 45869 # It is also a way to make sure we got the proper file name for the real test later on. 45870 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45871 if test "x$test_shortpath" = x; then 45872 # Short path failed, file does not exist as specified. 45873 # Try adding .exe or .cmd 45874 if test -f "${new_path}.exe"; then 45875 input_to_shortpath="${new_path}.exe" 45876 elif test -f "${new_path}.cmd"; then 45877 input_to_shortpath="${new_path}.cmd" 45878 else 45879 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 45880 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 45881 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 45882 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 45883 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 45884 fi 45885 else 45886 input_to_shortpath="$new_path" 45887 fi 45888 45889 # Call helper function which possibly converts this using DOS-style short mode. 45890 # If so, the updated path is stored in $new_path. 45891 new_path="$input_to_shortpath" 45892 45893 input_path="$input_to_shortpath" 45894 # Check if we need to convert this using DOS-style short mode. If the path 45895 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45896 # take no chances and rewrite it. 45897 # Note: m4 eats our [], so we need to use [ and ] instead. 45898 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45899 if test "x$has_forbidden_chars" != x; then 45900 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45901 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45902 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45903 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45904 # Going to short mode and back again did indeed matter. Since short mode is 45905 # case insensitive, let's make it lowercase to improve readability. 45906 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45907 # Now convert it back to Unix-style (cygpath) 45908 input_path=`$CYGPATH -u "$shortmode_path"` 45909 new_path="$input_path" 45910 fi 45911 fi 45912 45913 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45914 if test "x$test_cygdrive_prefix" = x; then 45915 # As a simple fix, exclude /usr/bin since it's not a real path. 45916 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 45917 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45918 # a path prefixed by /cygdrive for fixpath to work. 45919 new_path="$CYGWIN_ROOT_PATH$input_path" 45920 fi 45921 fi 45922 45923 # remove trailing .exe if any 45924 new_path="${new_path/%.exe/}" 45925 45926 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45927 45928 # First separate the path from the arguments. This will split at the first 45929 # space. 45930 complete="$BUILD_CXX" 45931 path="${complete%% *}" 45932 tmp="$complete EOL" 45933 arguments="${tmp#* }" 45934 45935 # Input might be given as Windows format, start by converting to 45936 # unix format. 45937 new_path="$path" 45938 45939 windows_path="$new_path" 45940 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45941 unix_path=`$CYGPATH -u "$windows_path"` 45942 new_path="$unix_path" 45943 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45944 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45945 new_path="$unix_path" 45946 fi 45947 45948 45949 # Now try to locate executable using which 45950 new_path=`$WHICH "$new_path" 2> /dev/null` 45951 45952 if test "x$new_path" = x; then 45953 # Oops. Which didn't find the executable. 45954 # The splitting of arguments from the executable at a space might have been incorrect, 45955 # since paths with space are more likely in Windows. Give it another try with the whole 45956 # argument. 45957 path="$complete" 45958 arguments="EOL" 45959 new_path="$path" 45960 45961 windows_path="$new_path" 45962 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45963 unix_path=`$CYGPATH -u "$windows_path"` 45964 new_path="$unix_path" 45965 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45966 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45967 new_path="$unix_path" 45968 fi 45969 45970 45971 new_path=`$WHICH "$new_path" 2> /dev/null` 45972 # bat and cmd files are not always considered executable in MSYS causing which 45973 # to not find them 45974 if test "x$new_path" = x \ 45975 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45976 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45977 new_path="$path" 45978 45979 windows_path="$new_path" 45980 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45981 unix_path=`$CYGPATH -u "$windows_path"` 45982 new_path="$unix_path" 45983 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45984 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45985 new_path="$unix_path" 45986 fi 45987 45988 fi 45989 45990 if test "x$new_path" = x; then 45991 # It's still not found. Now this is an unrecoverable error. 45992 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 45993 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 45994 has_space=`$ECHO "$complete" | $GREP " "` 45995 if test "x$has_space" != x; then 45996 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45997 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45998 fi 45999 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 46000 fi 46001 fi 46002 46003 # Now new_path has a complete unix path to the binary 46004 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46005 # Keep paths in /bin as-is, but remove trailing .exe if any 46006 new_path="${new_path/%.exe/}" 46007 # Do not save /bin paths to all_fixpath_prefixes! 46008 else 46009 # Not in mixed or Windows style, start by that. 46010 new_path=`cmd //c echo $new_path` 46011 46012 input_path="$new_path" 46013 # Check if we need to convert this using DOS-style short mode. If the path 46014 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46015 # take no chances and rewrite it. 46016 # Note: m4 eats our [], so we need to use [ and ] instead. 46017 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46018 if test "x$has_forbidden_chars" != x; then 46019 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46020 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46021 fi 46022 46023 # Output is in $new_path 46024 46025 windows_path="$new_path" 46026 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46027 unix_path=`$CYGPATH -u "$windows_path"` 46028 new_path="$unix_path" 46029 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46030 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46031 new_path="$unix_path" 46032 fi 46033 46034 # remove trailing .exe if any 46035 new_path="${new_path/%.exe/}" 46036 46037 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46038 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46039 fi 46040 46041 else 46042 # We're on a unix platform. Hooray! :) 46043 # First separate the path from the arguments. This will split at the first 46044 # space. 46045 complete="$BUILD_CXX" 46046 path="${complete%% *}" 46047 tmp="$complete EOL" 46048 arguments="${tmp#* }" 46049 46050 # Cannot rely on the command "which" here since it doesn't always work. 46051 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46052 if test -z "$is_absolute_path"; then 46053 # Path to executable is not absolute. Find it. 46054 IFS_save="$IFS" 46055 IFS=: 46056 for p in $PATH; do 46057 if test -f "$p/$path" && test -x "$p/$path"; then 46058 new_path="$p/$path" 46059 break 46060 fi 46061 done 46062 IFS="$IFS_save" 46063 else 46064 # This is an absolute path, we can use it without further modifications. 46065 new_path="$path" 46066 fi 46067 46068 if test "x$new_path" = x; then 46069 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 46070 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 46071 has_space=`$ECHO "$complete" | $GREP " "` 46072 if test "x$has_space" != x; then 46073 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46074 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46075 fi 46076 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 46077 fi 46078 fi 46079 46080 # Now join together the path and the arguments once again 46081 if test "x$arguments" != xEOL; then 46082 new_complete="$new_path ${arguments% *}" 46083 else 46084 new_complete="$new_path" 46085 fi 46086 46087 if test "x$complete" != "x$new_complete"; then 46088 BUILD_CXX="$new_complete" 46089 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 46090 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 46091 fi 46092 fi 46093 46094 46095 46096 # Publish this variable in the help. 46097 46098 46099 if [ -z "${BUILD_NM+x}" ]; then 46100 # The variable is not set by user, try to locate tool using the code snippet 46101 for ac_prog in nm gcc-nm 46102 do 46103 # Extract the first word of "$ac_prog", so it can be a program name with args. 46104 set dummy $ac_prog; ac_word=$2 46105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46106 $as_echo_n "checking for $ac_word... " >&6; } 46107 if ${ac_cv_path_BUILD_NM+:} false; then : 46108 $as_echo_n "(cached) " >&6 46109 else 46110 case $BUILD_NM in 46111 [\\/]* | ?:[\\/]*) 46112 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 46113 ;; 46114 *) 46115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46116 for as_dir in $PATH 46117 do 46118 IFS=$as_save_IFS 46119 test -z "$as_dir" && as_dir=. 46120 for ac_exec_ext in '' $ac_executable_extensions; do 46121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46122 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 46123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46124 break 2 46125 fi 46126 done 46127 done 46128 IFS=$as_save_IFS 46129 46130 ;; 46131 esac 46132 fi 46133 BUILD_NM=$ac_cv_path_BUILD_NM 46134 if test -n "$BUILD_NM"; then 46135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 46136 $as_echo "$BUILD_NM" >&6; } 46137 else 46138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46139 $as_echo "no" >&6; } 46140 fi 46141 46142 46143 test -n "$BUILD_NM" && break 46144 done 46145 46146 else 46147 # The variable is set, but is it from the command line or the environment? 46148 46149 # Try to remove the string !BUILD_NM! from our list. 46150 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_NM!/} 46151 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46152 # If it failed, the variable was not from the command line. Ignore it, 46153 # but warn the user (except for BASH, which is always set by the calling BASH). 46154 if test "xBUILD_NM" != xBASH; then 46155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&5 46156 $as_echo "$as_me: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&2;} 46157 fi 46158 # Try to locate tool using the code snippet 46159 for ac_prog in nm gcc-nm 46160 do 46161 # Extract the first word of "$ac_prog", so it can be a program name with args. 46162 set dummy $ac_prog; ac_word=$2 46163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46164 $as_echo_n "checking for $ac_word... " >&6; } 46165 if ${ac_cv_path_BUILD_NM+:} false; then : 46166 $as_echo_n "(cached) " >&6 46167 else 46168 case $BUILD_NM in 46169 [\\/]* | ?:[\\/]*) 46170 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 46171 ;; 46172 *) 46173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46174 for as_dir in $PATH 46175 do 46176 IFS=$as_save_IFS 46177 test -z "$as_dir" && as_dir=. 46178 for ac_exec_ext in '' $ac_executable_extensions; do 46179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46180 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 46181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46182 break 2 46183 fi 46184 done 46185 done 46186 IFS=$as_save_IFS 46187 46188 ;; 46189 esac 46190 fi 46191 BUILD_NM=$ac_cv_path_BUILD_NM 46192 if test -n "$BUILD_NM"; then 46193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 46194 $as_echo "$BUILD_NM" >&6; } 46195 else 46196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46197 $as_echo "no" >&6; } 46198 fi 46199 46200 46201 test -n "$BUILD_NM" && break 46202 done 46203 46204 else 46205 # If it succeeded, then it was overridden by the user. We will use it 46206 # for the tool. 46207 46208 # First remove it from the list of overridden variables, so we can test 46209 # for unknown variables in the end. 46210 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46211 46212 # Check if we try to supply an empty value 46213 if test "x$BUILD_NM" = x; then 46214 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_NM= (no value)" >&5 46215 $as_echo "$as_me: Setting user supplied tool BUILD_NM= (no value)" >&6;} 46216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 46217 $as_echo_n "checking for BUILD_NM... " >&6; } 46218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46219 $as_echo "disabled" >&6; } 46220 else 46221 # Check if the provided tool contains a complete path. 46222 tool_specified="$BUILD_NM" 46223 tool_basename="${tool_specified##*/}" 46224 if test "x$tool_basename" = "x$tool_specified"; then 46225 # A command without a complete path is provided, search $PATH. 46226 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_NM=$tool_basename" >&5 46227 $as_echo "$as_me: Will search for user supplied tool BUILD_NM=$tool_basename" >&6;} 46228 # Extract the first word of "$tool_basename", so it can be a program name with args. 46229 set dummy $tool_basename; ac_word=$2 46230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46231 $as_echo_n "checking for $ac_word... " >&6; } 46232 if ${ac_cv_path_BUILD_NM+:} false; then : 46233 $as_echo_n "(cached) " >&6 46234 else 46235 case $BUILD_NM in 46236 [\\/]* | ?:[\\/]*) 46237 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 46238 ;; 46239 *) 46240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46241 for as_dir in $PATH 46242 do 46243 IFS=$as_save_IFS 46244 test -z "$as_dir" && as_dir=. 46245 for ac_exec_ext in '' $ac_executable_extensions; do 46246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46247 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 46248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46249 break 2 46250 fi 46251 done 46252 done 46253 IFS=$as_save_IFS 46254 46255 ;; 46256 esac 46257 fi 46258 BUILD_NM=$ac_cv_path_BUILD_NM 46259 if test -n "$BUILD_NM"; then 46260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 46261 $as_echo "$BUILD_NM" >&6; } 46262 else 46263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46264 $as_echo "no" >&6; } 46265 fi 46266 46267 46268 if test "x$BUILD_NM" = x; then 46269 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46270 fi 46271 else 46272 # Otherwise we believe it is a complete path. Use it as it is. 46273 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_NM=$tool_specified" >&5 46274 $as_echo "$as_me: Will use user supplied tool BUILD_NM=$tool_specified" >&6;} 46275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 46276 $as_echo_n "checking for BUILD_NM... " >&6; } 46277 if test ! -x "$tool_specified"; then 46278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46279 $as_echo "not found" >&6; } 46280 as_fn_error $? "User supplied tool BUILD_NM=$tool_specified does not exist or is not executable" "$LINENO" 5 46281 fi 46282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46283 $as_echo "$tool_specified" >&6; } 46284 fi 46285 fi 46286 fi 46287 46288 fi 46289 46290 46291 46292 # Only process if variable expands to non-empty 46293 46294 if test "x$BUILD_NM" != x; then 46295 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46296 46297 # First separate the path from the arguments. This will split at the first 46298 # space. 46299 complete="$BUILD_NM" 46300 path="${complete%% *}" 46301 tmp="$complete EOL" 46302 arguments="${tmp#* }" 46303 46304 # Input might be given as Windows format, start by converting to 46305 # unix format. 46306 new_path=`$CYGPATH -u "$path"` 46307 46308 # Now try to locate executable using which 46309 new_path=`$WHICH "$new_path" 2> /dev/null` 46310 # bat and cmd files are not always considered executable in cygwin causing which 46311 # to not find them 46312 if test "x$new_path" = x \ 46313 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46314 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46315 new_path=`$CYGPATH -u "$path"` 46316 fi 46317 if test "x$new_path" = x; then 46318 # Oops. Which didn't find the executable. 46319 # The splitting of arguments from the executable at a space might have been incorrect, 46320 # since paths with space are more likely in Windows. Give it another try with the whole 46321 # argument. 46322 path="$complete" 46323 arguments="EOL" 46324 new_path=`$CYGPATH -u "$path"` 46325 new_path=`$WHICH "$new_path" 2> /dev/null` 46326 # bat and cmd files are not always considered executable in cygwin causing which 46327 # to not find them 46328 if test "x$new_path" = x \ 46329 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46330 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46331 new_path=`$CYGPATH -u "$path"` 46332 fi 46333 if test "x$new_path" = x; then 46334 # It's still not found. Now this is an unrecoverable error. 46335 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 46336 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 46337 has_space=`$ECHO "$complete" | $GREP " "` 46338 if test "x$has_space" != x; then 46339 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46340 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46341 fi 46342 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 46343 fi 46344 fi 46345 46346 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46347 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46348 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46349 # "foo.exe" is OK but "foo" is an error. 46350 # 46351 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46352 # It is also a way to make sure we got the proper file name for the real test later on. 46353 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46354 if test "x$test_shortpath" = x; then 46355 # Short path failed, file does not exist as specified. 46356 # Try adding .exe or .cmd 46357 if test -f "${new_path}.exe"; then 46358 input_to_shortpath="${new_path}.exe" 46359 elif test -f "${new_path}.cmd"; then 46360 input_to_shortpath="${new_path}.cmd" 46361 else 46362 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&5 46363 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&6;} 46364 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46365 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46366 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 46367 fi 46368 else 46369 input_to_shortpath="$new_path" 46370 fi 46371 46372 # Call helper function which possibly converts this using DOS-style short mode. 46373 # If so, the updated path is stored in $new_path. 46374 new_path="$input_to_shortpath" 46375 46376 input_path="$input_to_shortpath" 46377 # Check if we need to convert this using DOS-style short mode. If the path 46378 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46379 # take no chances and rewrite it. 46380 # Note: m4 eats our [], so we need to use [ and ] instead. 46381 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46382 if test "x$has_forbidden_chars" != x; then 46383 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46384 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46385 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46386 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46387 # Going to short mode and back again did indeed matter. Since short mode is 46388 # case insensitive, let's make it lowercase to improve readability. 46389 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46390 # Now convert it back to Unix-style (cygpath) 46391 input_path=`$CYGPATH -u "$shortmode_path"` 46392 new_path="$input_path" 46393 fi 46394 fi 46395 46396 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46397 if test "x$test_cygdrive_prefix" = x; then 46398 # As a simple fix, exclude /usr/bin since it's not a real path. 46399 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46400 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46401 # a path prefixed by /cygdrive for fixpath to work. 46402 new_path="$CYGWIN_ROOT_PATH$input_path" 46403 fi 46404 fi 46405 46406 # remove trailing .exe if any 46407 new_path="${new_path/%.exe/}" 46408 46409 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46410 46411 # First separate the path from the arguments. This will split at the first 46412 # space. 46413 complete="$BUILD_NM" 46414 path="${complete%% *}" 46415 tmp="$complete EOL" 46416 arguments="${tmp#* }" 46417 46418 # Input might be given as Windows format, start by converting to 46419 # unix format. 46420 new_path="$path" 46421 46422 windows_path="$new_path" 46423 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46424 unix_path=`$CYGPATH -u "$windows_path"` 46425 new_path="$unix_path" 46426 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46427 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46428 new_path="$unix_path" 46429 fi 46430 46431 46432 # Now try to locate executable using which 46433 new_path=`$WHICH "$new_path" 2> /dev/null` 46434 46435 if test "x$new_path" = x; then 46436 # Oops. Which didn't find the executable. 46437 # The splitting of arguments from the executable at a space might have been incorrect, 46438 # since paths with space are more likely in Windows. Give it another try with the whole 46439 # argument. 46440 path="$complete" 46441 arguments="EOL" 46442 new_path="$path" 46443 46444 windows_path="$new_path" 46445 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46446 unix_path=`$CYGPATH -u "$windows_path"` 46447 new_path="$unix_path" 46448 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46449 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46450 new_path="$unix_path" 46451 fi 46452 46453 46454 new_path=`$WHICH "$new_path" 2> /dev/null` 46455 # bat and cmd files are not always considered executable in MSYS causing which 46456 # to not find them 46457 if test "x$new_path" = x \ 46458 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46459 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46460 new_path="$path" 46461 46462 windows_path="$new_path" 46463 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46464 unix_path=`$CYGPATH -u "$windows_path"` 46465 new_path="$unix_path" 46466 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46467 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46468 new_path="$unix_path" 46469 fi 46470 46471 fi 46472 46473 if test "x$new_path" = x; then 46474 # It's still not found. Now this is an unrecoverable error. 46475 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 46476 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 46477 has_space=`$ECHO "$complete" | $GREP " "` 46478 if test "x$has_space" != x; then 46479 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46480 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46481 fi 46482 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 46483 fi 46484 fi 46485 46486 # Now new_path has a complete unix path to the binary 46487 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46488 # Keep paths in /bin as-is, but remove trailing .exe if any 46489 new_path="${new_path/%.exe/}" 46490 # Do not save /bin paths to all_fixpath_prefixes! 46491 else 46492 # Not in mixed or Windows style, start by that. 46493 new_path=`cmd //c echo $new_path` 46494 46495 input_path="$new_path" 46496 # Check if we need to convert this using DOS-style short mode. If the path 46497 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46498 # take no chances and rewrite it. 46499 # Note: m4 eats our [], so we need to use [ and ] instead. 46500 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46501 if test "x$has_forbidden_chars" != x; then 46502 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46503 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46504 fi 46505 46506 # Output is in $new_path 46507 46508 windows_path="$new_path" 46509 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46510 unix_path=`$CYGPATH -u "$windows_path"` 46511 new_path="$unix_path" 46512 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46513 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46514 new_path="$unix_path" 46515 fi 46516 46517 # remove trailing .exe if any 46518 new_path="${new_path/%.exe/}" 46519 46520 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46521 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46522 fi 46523 46524 else 46525 # We're on a unix platform. Hooray! :) 46526 # First separate the path from the arguments. This will split at the first 46527 # space. 46528 complete="$BUILD_NM" 46529 path="${complete%% *}" 46530 tmp="$complete EOL" 46531 arguments="${tmp#* }" 46532 46533 # Cannot rely on the command "which" here since it doesn't always work. 46534 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46535 if test -z "$is_absolute_path"; then 46536 # Path to executable is not absolute. Find it. 46537 IFS_save="$IFS" 46538 IFS=: 46539 for p in $PATH; do 46540 if test -f "$p/$path" && test -x "$p/$path"; then 46541 new_path="$p/$path" 46542 break 46543 fi 46544 done 46545 IFS="$IFS_save" 46546 else 46547 # This is an absolute path, we can use it without further modifications. 46548 new_path="$path" 46549 fi 46550 46551 if test "x$new_path" = x; then 46552 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 46553 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 46554 has_space=`$ECHO "$complete" | $GREP " "` 46555 if test "x$has_space" != x; then 46556 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46557 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46558 fi 46559 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 46560 fi 46561 fi 46562 46563 # Now join together the path and the arguments once again 46564 if test "x$arguments" != xEOL; then 46565 new_complete="$new_path ${arguments% *}" 46566 else 46567 new_complete="$new_path" 46568 fi 46569 46570 if test "x$complete" != "x$new_complete"; then 46571 BUILD_NM="$new_complete" 46572 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_NM to \"$new_complete\"" >&5 46573 $as_echo "$as_me: Rewriting BUILD_NM to \"$new_complete\"" >&6;} 46574 fi 46575 fi 46576 46577 46578 46579 # Publish this variable in the help. 46580 46581 46582 if [ -z "${BUILD_AR+x}" ]; then 46583 # The variable is not set by user, try to locate tool using the code snippet 46584 for ac_prog in ar gcc-ar 46585 do 46586 # Extract the first word of "$ac_prog", so it can be a program name with args. 46587 set dummy $ac_prog; ac_word=$2 46588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46589 $as_echo_n "checking for $ac_word... " >&6; } 46590 if ${ac_cv_path_BUILD_AR+:} false; then : 46591 $as_echo_n "(cached) " >&6 46592 else 46593 case $BUILD_AR in 46594 [\\/]* | ?:[\\/]*) 46595 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 46596 ;; 46597 *) 46598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46599 for as_dir in $PATH 46600 do 46601 IFS=$as_save_IFS 46602 test -z "$as_dir" && as_dir=. 46603 for ac_exec_ext in '' $ac_executable_extensions; do 46604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46605 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 46606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46607 break 2 46608 fi 46609 done 46610 done 46611 IFS=$as_save_IFS 46612 46613 ;; 46614 esac 46615 fi 46616 BUILD_AR=$ac_cv_path_BUILD_AR 46617 if test -n "$BUILD_AR"; then 46618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 46619 $as_echo "$BUILD_AR" >&6; } 46620 else 46621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46622 $as_echo "no" >&6; } 46623 fi 46624 46625 46626 test -n "$BUILD_AR" && break 46627 done 46628 46629 else 46630 # The variable is set, but is it from the command line or the environment? 46631 46632 # Try to remove the string !BUILD_AR! from our list. 46633 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_AR!/} 46634 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46635 # If it failed, the variable was not from the command line. Ignore it, 46636 # but warn the user (except for BASH, which is always set by the calling BASH). 46637 if test "xBUILD_AR" != xBASH; then 46638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&5 46639 $as_echo "$as_me: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&2;} 46640 fi 46641 # Try to locate tool using the code snippet 46642 for ac_prog in ar gcc-ar 46643 do 46644 # Extract the first word of "$ac_prog", so it can be a program name with args. 46645 set dummy $ac_prog; ac_word=$2 46646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46647 $as_echo_n "checking for $ac_word... " >&6; } 46648 if ${ac_cv_path_BUILD_AR+:} false; then : 46649 $as_echo_n "(cached) " >&6 46650 else 46651 case $BUILD_AR in 46652 [\\/]* | ?:[\\/]*) 46653 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 46654 ;; 46655 *) 46656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46657 for as_dir in $PATH 46658 do 46659 IFS=$as_save_IFS 46660 test -z "$as_dir" && as_dir=. 46661 for ac_exec_ext in '' $ac_executable_extensions; do 46662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46663 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 46664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46665 break 2 46666 fi 46667 done 46668 done 46669 IFS=$as_save_IFS 46670 46671 ;; 46672 esac 46673 fi 46674 BUILD_AR=$ac_cv_path_BUILD_AR 46675 if test -n "$BUILD_AR"; then 46676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 46677 $as_echo "$BUILD_AR" >&6; } 46678 else 46679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46680 $as_echo "no" >&6; } 46681 fi 46682 46683 46684 test -n "$BUILD_AR" && break 46685 done 46686 46687 else 46688 # If it succeeded, then it was overridden by the user. We will use it 46689 # for the tool. 46690 46691 # First remove it from the list of overridden variables, so we can test 46692 # for unknown variables in the end. 46693 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46694 46695 # Check if we try to supply an empty value 46696 if test "x$BUILD_AR" = x; then 46697 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_AR= (no value)" >&5 46698 $as_echo "$as_me: Setting user supplied tool BUILD_AR= (no value)" >&6;} 46699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 46700 $as_echo_n "checking for BUILD_AR... " >&6; } 46701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46702 $as_echo "disabled" >&6; } 46703 else 46704 # Check if the provided tool contains a complete path. 46705 tool_specified="$BUILD_AR" 46706 tool_basename="${tool_specified##*/}" 46707 if test "x$tool_basename" = "x$tool_specified"; then 46708 # A command without a complete path is provided, search $PATH. 46709 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_AR=$tool_basename" >&5 46710 $as_echo "$as_me: Will search for user supplied tool BUILD_AR=$tool_basename" >&6;} 46711 # Extract the first word of "$tool_basename", so it can be a program name with args. 46712 set dummy $tool_basename; ac_word=$2 46713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46714 $as_echo_n "checking for $ac_word... " >&6; } 46715 if ${ac_cv_path_BUILD_AR+:} false; then : 46716 $as_echo_n "(cached) " >&6 46717 else 46718 case $BUILD_AR in 46719 [\\/]* | ?:[\\/]*) 46720 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 46721 ;; 46722 *) 46723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46724 for as_dir in $PATH 46725 do 46726 IFS=$as_save_IFS 46727 test -z "$as_dir" && as_dir=. 46728 for ac_exec_ext in '' $ac_executable_extensions; do 46729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46730 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 46731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46732 break 2 46733 fi 46734 done 46735 done 46736 IFS=$as_save_IFS 46737 46738 ;; 46739 esac 46740 fi 46741 BUILD_AR=$ac_cv_path_BUILD_AR 46742 if test -n "$BUILD_AR"; then 46743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 46744 $as_echo "$BUILD_AR" >&6; } 46745 else 46746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46747 $as_echo "no" >&6; } 46748 fi 46749 46750 46751 if test "x$BUILD_AR" = x; then 46752 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46753 fi 46754 else 46755 # Otherwise we believe it is a complete path. Use it as it is. 46756 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_AR=$tool_specified" >&5 46757 $as_echo "$as_me: Will use user supplied tool BUILD_AR=$tool_specified" >&6;} 46758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 46759 $as_echo_n "checking for BUILD_AR... " >&6; } 46760 if test ! -x "$tool_specified"; then 46761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46762 $as_echo "not found" >&6; } 46763 as_fn_error $? "User supplied tool BUILD_AR=$tool_specified does not exist or is not executable" "$LINENO" 5 46764 fi 46765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46766 $as_echo "$tool_specified" >&6; } 46767 fi 46768 fi 46769 fi 46770 46771 fi 46772 46773 46774 46775 # Only process if variable expands to non-empty 46776 46777 if test "x$BUILD_AR" != x; then 46778 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46779 46780 # First separate the path from the arguments. This will split at the first 46781 # space. 46782 complete="$BUILD_AR" 46783 path="${complete%% *}" 46784 tmp="$complete EOL" 46785 arguments="${tmp#* }" 46786 46787 # Input might be given as Windows format, start by converting to 46788 # unix format. 46789 new_path=`$CYGPATH -u "$path"` 46790 46791 # Now try to locate executable using which 46792 new_path=`$WHICH "$new_path" 2> /dev/null` 46793 # bat and cmd files are not always considered executable in cygwin causing which 46794 # to not find them 46795 if test "x$new_path" = x \ 46796 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46797 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46798 new_path=`$CYGPATH -u "$path"` 46799 fi 46800 if test "x$new_path" = x; then 46801 # Oops. Which didn't find the executable. 46802 # The splitting of arguments from the executable at a space might have been incorrect, 46803 # since paths with space are more likely in Windows. Give it another try with the whole 46804 # argument. 46805 path="$complete" 46806 arguments="EOL" 46807 new_path=`$CYGPATH -u "$path"` 46808 new_path=`$WHICH "$new_path" 2> /dev/null` 46809 # bat and cmd files are not always considered executable in cygwin causing which 46810 # to not find them 46811 if test "x$new_path" = x \ 46812 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46813 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46814 new_path=`$CYGPATH -u "$path"` 46815 fi 46816 if test "x$new_path" = x; then 46817 # It's still not found. Now this is an unrecoverable error. 46818 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 46819 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 46820 has_space=`$ECHO "$complete" | $GREP " "` 46821 if test "x$has_space" != x; then 46822 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46823 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46824 fi 46825 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 46826 fi 46827 fi 46828 46829 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46830 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46831 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46832 # "foo.exe" is OK but "foo" is an error. 46833 # 46834 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46835 # It is also a way to make sure we got the proper file name for the real test later on. 46836 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46837 if test "x$test_shortpath" = x; then 46838 # Short path failed, file does not exist as specified. 46839 # Try adding .exe or .cmd 46840 if test -f "${new_path}.exe"; then 46841 input_to_shortpath="${new_path}.exe" 46842 elif test -f "${new_path}.cmd"; then 46843 input_to_shortpath="${new_path}.cmd" 46844 else 46845 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&5 46846 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&6;} 46847 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46848 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46849 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 46850 fi 46851 else 46852 input_to_shortpath="$new_path" 46853 fi 46854 46855 # Call helper function which possibly converts this using DOS-style short mode. 46856 # If so, the updated path is stored in $new_path. 46857 new_path="$input_to_shortpath" 46858 46859 input_path="$input_to_shortpath" 46860 # Check if we need to convert this using DOS-style short mode. If the path 46861 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46862 # take no chances and rewrite it. 46863 # Note: m4 eats our [], so we need to use [ and ] instead. 46864 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46865 if test "x$has_forbidden_chars" != x; then 46866 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46867 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46868 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46869 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46870 # Going to short mode and back again did indeed matter. Since short mode is 46871 # case insensitive, let's make it lowercase to improve readability. 46872 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46873 # Now convert it back to Unix-style (cygpath) 46874 input_path=`$CYGPATH -u "$shortmode_path"` 46875 new_path="$input_path" 46876 fi 46877 fi 46878 46879 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46880 if test "x$test_cygdrive_prefix" = x; then 46881 # As a simple fix, exclude /usr/bin since it's not a real path. 46882 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46883 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46884 # a path prefixed by /cygdrive for fixpath to work. 46885 new_path="$CYGWIN_ROOT_PATH$input_path" 46886 fi 46887 fi 46888 46889 # remove trailing .exe if any 46890 new_path="${new_path/%.exe/}" 46891 46892 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46893 46894 # First separate the path from the arguments. This will split at the first 46895 # space. 46896 complete="$BUILD_AR" 46897 path="${complete%% *}" 46898 tmp="$complete EOL" 46899 arguments="${tmp#* }" 46900 46901 # Input might be given as Windows format, start by converting to 46902 # unix format. 46903 new_path="$path" 46904 46905 windows_path="$new_path" 46906 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46907 unix_path=`$CYGPATH -u "$windows_path"` 46908 new_path="$unix_path" 46909 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46910 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46911 new_path="$unix_path" 46912 fi 46913 46914 46915 # Now try to locate executable using which 46916 new_path=`$WHICH "$new_path" 2> /dev/null` 46917 46918 if test "x$new_path" = x; then 46919 # Oops. Which didn't find the executable. 46920 # The splitting of arguments from the executable at a space might have been incorrect, 46921 # since paths with space are more likely in Windows. Give it another try with the whole 46922 # argument. 46923 path="$complete" 46924 arguments="EOL" 46925 new_path="$path" 46926 46927 windows_path="$new_path" 46928 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46929 unix_path=`$CYGPATH -u "$windows_path"` 46930 new_path="$unix_path" 46931 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46932 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46933 new_path="$unix_path" 46934 fi 46935 46936 46937 new_path=`$WHICH "$new_path" 2> /dev/null` 46938 # bat and cmd files are not always considered executable in MSYS causing which 46939 # to not find them 46940 if test "x$new_path" = x \ 46941 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46942 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46943 new_path="$path" 46944 46945 windows_path="$new_path" 46946 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46947 unix_path=`$CYGPATH -u "$windows_path"` 46948 new_path="$unix_path" 46949 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46950 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46951 new_path="$unix_path" 46952 fi 46953 46954 fi 46955 46956 if test "x$new_path" = x; then 46957 # It's still not found. Now this is an unrecoverable error. 46958 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 46959 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 46960 has_space=`$ECHO "$complete" | $GREP " "` 46961 if test "x$has_space" != x; then 46962 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46963 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46964 fi 46965 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 46966 fi 46967 fi 46968 46969 # Now new_path has a complete unix path to the binary 46970 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46971 # Keep paths in /bin as-is, but remove trailing .exe if any 46972 new_path="${new_path/%.exe/}" 46973 # Do not save /bin paths to all_fixpath_prefixes! 46974 else 46975 # Not in mixed or Windows style, start by that. 46976 new_path=`cmd //c echo $new_path` 46977 46978 input_path="$new_path" 46979 # Check if we need to convert this using DOS-style short mode. If the path 46980 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46981 # take no chances and rewrite it. 46982 # Note: m4 eats our [], so we need to use [ and ] instead. 46983 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46984 if test "x$has_forbidden_chars" != x; then 46985 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46986 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46987 fi 46988 46989 # Output is in $new_path 46990 46991 windows_path="$new_path" 46992 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46993 unix_path=`$CYGPATH -u "$windows_path"` 46994 new_path="$unix_path" 46995 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46996 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46997 new_path="$unix_path" 46998 fi 46999 47000 # remove trailing .exe if any 47001 new_path="${new_path/%.exe/}" 47002 47003 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47004 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47005 fi 47006 47007 else 47008 # We're on a unix platform. Hooray! :) 47009 # First separate the path from the arguments. This will split at the first 47010 # space. 47011 complete="$BUILD_AR" 47012 path="${complete%% *}" 47013 tmp="$complete EOL" 47014 arguments="${tmp#* }" 47015 47016 # Cannot rely on the command "which" here since it doesn't always work. 47017 is_absolute_path=`$ECHO "$path" | $GREP ^/` 47018 if test -z "$is_absolute_path"; then 47019 # Path to executable is not absolute. Find it. 47020 IFS_save="$IFS" 47021 IFS=: 47022 for p in $PATH; do 47023 if test -f "$p/$path" && test -x "$p/$path"; then 47024 new_path="$p/$path" 47025 break 47026 fi 47027 done 47028 IFS="$IFS_save" 47029 else 47030 # This is an absolute path, we can use it without further modifications. 47031 new_path="$path" 47032 fi 47033 47034 if test "x$new_path" = x; then 47035 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 47036 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 47037 has_space=`$ECHO "$complete" | $GREP " "` 47038 if test "x$has_space" != x; then 47039 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 47040 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 47041 fi 47042 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 47043 fi 47044 fi 47045 47046 # Now join together the path and the arguments once again 47047 if test "x$arguments" != xEOL; then 47048 new_complete="$new_path ${arguments% *}" 47049 else 47050 new_complete="$new_path" 47051 fi 47052 47053 if test "x$complete" != "x$new_complete"; then 47054 BUILD_AR="$new_complete" 47055 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_AR to \"$new_complete\"" >&5 47056 $as_echo "$as_me: Rewriting BUILD_AR to \"$new_complete\"" >&6;} 47057 fi 47058 fi 47059 47060 47061 47062 # Publish this variable in the help. 47063 47064 47065 if [ -z "${BUILD_OBJCOPY+x}" ]; then 47066 # The variable is not set by user, try to locate tool using the code snippet 47067 for ac_prog in objcopy 47068 do 47069 # Extract the first word of "$ac_prog", so it can be a program name with args. 47070 set dummy $ac_prog; ac_word=$2 47071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47072 $as_echo_n "checking for $ac_word... " >&6; } 47073 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 47074 $as_echo_n "(cached) " >&6 47075 else 47076 case $BUILD_OBJCOPY in 47077 [\\/]* | ?:[\\/]*) 47078 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 47079 ;; 47080 *) 47081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47082 for as_dir in $PATH 47083 do 47084 IFS=$as_save_IFS 47085 test -z "$as_dir" && as_dir=. 47086 for ac_exec_ext in '' $ac_executable_extensions; do 47087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47088 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 47089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47090 break 2 47091 fi 47092 done 47093 done 47094 IFS=$as_save_IFS 47095 47096 ;; 47097 esac 47098 fi 47099 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 47100 if test -n "$BUILD_OBJCOPY"; then 47101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 47102 $as_echo "$BUILD_OBJCOPY" >&6; } 47103 else 47104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47105 $as_echo "no" >&6; } 47106 fi 47107 47108 47109 test -n "$BUILD_OBJCOPY" && break 47110 done 47111 47112 else 47113 # The variable is set, but is it from the command line or the environment? 47114 47115 # Try to remove the string !BUILD_OBJCOPY! from our list. 47116 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_OBJCOPY!/} 47117 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 47118 # If it failed, the variable was not from the command line. Ignore it, 47119 # but warn the user (except for BASH, which is always set by the calling BASH). 47120 if test "xBUILD_OBJCOPY" != xBASH; then 47121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&5 47122 $as_echo "$as_me: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&2;} 47123 fi 47124 # Try to locate tool using the code snippet 47125 for ac_prog in objcopy 47126 do 47127 # Extract the first word of "$ac_prog", so it can be a program name with args. 47128 set dummy $ac_prog; ac_word=$2 47129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47130 $as_echo_n "checking for $ac_word... " >&6; } 47131 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 47132 $as_echo_n "(cached) " >&6 47133 else 47134 case $BUILD_OBJCOPY in 47135 [\\/]* | ?:[\\/]*) 47136 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 47137 ;; 47138 *) 47139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47140 for as_dir in $PATH 47141 do 47142 IFS=$as_save_IFS 47143 test -z "$as_dir" && as_dir=. 47144 for ac_exec_ext in '' $ac_executable_extensions; do 47145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47146 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 47147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47148 break 2 47149 fi 47150 done 47151 done 47152 IFS=$as_save_IFS 47153 47154 ;; 47155 esac 47156 fi 47157 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 47158 if test -n "$BUILD_OBJCOPY"; then 47159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 47160 $as_echo "$BUILD_OBJCOPY" >&6; } 47161 else 47162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47163 $as_echo "no" >&6; } 47164 fi 47165 47166 47167 test -n "$BUILD_OBJCOPY" && break 47168 done 47169 47170 else 47171 # If it succeeded, then it was overridden by the user. We will use it 47172 # for the tool. 47173 47174 # First remove it from the list of overridden variables, so we can test 47175 # for unknown variables in the end. 47176 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 47177 47178 # Check if we try to supply an empty value 47179 if test "x$BUILD_OBJCOPY" = x; then 47180 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&5 47181 $as_echo "$as_me: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&6;} 47182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 47183 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 47184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 47185 $as_echo "disabled" >&6; } 47186 else 47187 # Check if the provided tool contains a complete path. 47188 tool_specified="$BUILD_OBJCOPY" 47189 tool_basename="${tool_specified##*/}" 47190 if test "x$tool_basename" = "x$tool_specified"; then 47191 # A command without a complete path is provided, search $PATH. 47192 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&5 47193 $as_echo "$as_me: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&6;} 47194 # Extract the first word of "$tool_basename", so it can be a program name with args. 47195 set dummy $tool_basename; ac_word=$2 47196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47197 $as_echo_n "checking for $ac_word... " >&6; } 47198 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 47199 $as_echo_n "(cached) " >&6 47200 else 47201 case $BUILD_OBJCOPY in 47202 [\\/]* | ?:[\\/]*) 47203 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 47204 ;; 47205 *) 47206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47207 for as_dir in $PATH 47208 do 47209 IFS=$as_save_IFS 47210 test -z "$as_dir" && as_dir=. 47211 for ac_exec_ext in '' $ac_executable_extensions; do 47212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47213 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 47214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47215 break 2 47216 fi 47217 done 47218 done 47219 IFS=$as_save_IFS 47220 47221 ;; 47222 esac 47223 fi 47224 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 47225 if test -n "$BUILD_OBJCOPY"; then 47226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 47227 $as_echo "$BUILD_OBJCOPY" >&6; } 47228 else 47229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47230 $as_echo "no" >&6; } 47231 fi 47232 47233 47234 if test "x$BUILD_OBJCOPY" = x; then 47235 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 47236 fi 47237 else 47238 # Otherwise we believe it is a complete path. Use it as it is. 47239 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&5 47240 $as_echo "$as_me: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&6;} 47241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 47242 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 47243 if test ! -x "$tool_specified"; then 47244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 47245 $as_echo "not found" >&6; } 47246 as_fn_error $? "User supplied tool BUILD_OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 47247 fi 47248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 47249 $as_echo "$tool_specified" >&6; } 47250 fi 47251 fi 47252 fi 47253 47254 fi 47255 47256 47257 47258 # Only process if variable expands to non-empty 47259 47260 if test "x$BUILD_OBJCOPY" != x; then 47261 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47262 47263 # First separate the path from the arguments. This will split at the first 47264 # space. 47265 complete="$BUILD_OBJCOPY" 47266 path="${complete%% *}" 47267 tmp="$complete EOL" 47268 arguments="${tmp#* }" 47269 47270 # Input might be given as Windows format, start by converting to 47271 # unix format. 47272 new_path=`$CYGPATH -u "$path"` 47273 47274 # Now try to locate executable using which 47275 new_path=`$WHICH "$new_path" 2> /dev/null` 47276 # bat and cmd files are not always considered executable in cygwin causing which 47277 # to not find them 47278 if test "x$new_path" = x \ 47279 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47280 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47281 new_path=`$CYGPATH -u "$path"` 47282 fi 47283 if test "x$new_path" = x; then 47284 # Oops. Which didn't find the executable. 47285 # The splitting of arguments from the executable at a space might have been incorrect, 47286 # since paths with space are more likely in Windows. Give it another try with the whole 47287 # argument. 47288 path="$complete" 47289 arguments="EOL" 47290 new_path=`$CYGPATH -u "$path"` 47291 new_path=`$WHICH "$new_path" 2> /dev/null` 47292 # bat and cmd files are not always considered executable in cygwin causing which 47293 # to not find them 47294 if test "x$new_path" = x \ 47295 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47296 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47297 new_path=`$CYGPATH -u "$path"` 47298 fi 47299 if test "x$new_path" = x; then 47300 # It's still not found. Now this is an unrecoverable error. 47301 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 47302 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 47303 has_space=`$ECHO "$complete" | $GREP " "` 47304 if test "x$has_space" != x; then 47305 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47306 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47307 fi 47308 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 47309 fi 47310 fi 47311 47312 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47313 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47314 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47315 # "foo.exe" is OK but "foo" is an error. 47316 # 47317 # This test is therefore slightly more accurate than "test -f" to check for file presence. 47318 # It is also a way to make sure we got the proper file name for the real test later on. 47319 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47320 if test "x$test_shortpath" = x; then 47321 # Short path failed, file does not exist as specified. 47322 # Try adding .exe or .cmd 47323 if test -f "${new_path}.exe"; then 47324 input_to_shortpath="${new_path}.exe" 47325 elif test -f "${new_path}.cmd"; then 47326 input_to_shortpath="${new_path}.cmd" 47327 else 47328 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 47329 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 47330 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 47331 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 47332 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 47333 fi 47334 else 47335 input_to_shortpath="$new_path" 47336 fi 47337 47338 # Call helper function which possibly converts this using DOS-style short mode. 47339 # If so, the updated path is stored in $new_path. 47340 new_path="$input_to_shortpath" 47341 47342 input_path="$input_to_shortpath" 47343 # Check if we need to convert this using DOS-style short mode. If the path 47344 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47345 # take no chances and rewrite it. 47346 # Note: m4 eats our [], so we need to use [ and ] instead. 47347 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47348 if test "x$has_forbidden_chars" != x; then 47349 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47350 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47351 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47352 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47353 # Going to short mode and back again did indeed matter. Since short mode is 47354 # case insensitive, let's make it lowercase to improve readability. 47355 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47356 # Now convert it back to Unix-style (cygpath) 47357 input_path=`$CYGPATH -u "$shortmode_path"` 47358 new_path="$input_path" 47359 fi 47360 fi 47361 47362 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47363 if test "x$test_cygdrive_prefix" = x; then 47364 # As a simple fix, exclude /usr/bin since it's not a real path. 47365 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 47366 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47367 # a path prefixed by /cygdrive for fixpath to work. 47368 new_path="$CYGWIN_ROOT_PATH$input_path" 47369 fi 47370 fi 47371 47372 # remove trailing .exe if any 47373 new_path="${new_path/%.exe/}" 47374 47375 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47376 47377 # First separate the path from the arguments. This will split at the first 47378 # space. 47379 complete="$BUILD_OBJCOPY" 47380 path="${complete%% *}" 47381 tmp="$complete EOL" 47382 arguments="${tmp#* }" 47383 47384 # Input might be given as Windows format, start by converting to 47385 # unix format. 47386 new_path="$path" 47387 47388 windows_path="$new_path" 47389 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47390 unix_path=`$CYGPATH -u "$windows_path"` 47391 new_path="$unix_path" 47392 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47393 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47394 new_path="$unix_path" 47395 fi 47396 47397 47398 # Now try to locate executable using which 47399 new_path=`$WHICH "$new_path" 2> /dev/null` 47400 47401 if test "x$new_path" = x; then 47402 # Oops. Which didn't find the executable. 47403 # The splitting of arguments from the executable at a space might have been incorrect, 47404 # since paths with space are more likely in Windows. Give it another try with the whole 47405 # argument. 47406 path="$complete" 47407 arguments="EOL" 47408 new_path="$path" 47409 47410 windows_path="$new_path" 47411 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47412 unix_path=`$CYGPATH -u "$windows_path"` 47413 new_path="$unix_path" 47414 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47415 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47416 new_path="$unix_path" 47417 fi 47418 47419 47420 new_path=`$WHICH "$new_path" 2> /dev/null` 47421 # bat and cmd files are not always considered executable in MSYS causing which 47422 # to not find them 47423 if test "x$new_path" = x \ 47424 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47425 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47426 new_path="$path" 47427 47428 windows_path="$new_path" 47429 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47430 unix_path=`$CYGPATH -u "$windows_path"` 47431 new_path="$unix_path" 47432 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47433 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47434 new_path="$unix_path" 47435 fi 47436 47437 fi 47438 47439 if test "x$new_path" = x; then 47440 # It's still not found. Now this is an unrecoverable error. 47441 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 47442 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 47443 has_space=`$ECHO "$complete" | $GREP " "` 47444 if test "x$has_space" != x; then 47445 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47446 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47447 fi 47448 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 47449 fi 47450 fi 47451 47452 # Now new_path has a complete unix path to the binary 47453 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 47454 # Keep paths in /bin as-is, but remove trailing .exe if any 47455 new_path="${new_path/%.exe/}" 47456 # Do not save /bin paths to all_fixpath_prefixes! 47457 else 47458 # Not in mixed or Windows style, start by that. 47459 new_path=`cmd //c echo $new_path` 47460 47461 input_path="$new_path" 47462 # Check if we need to convert this using DOS-style short mode. If the path 47463 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47464 # take no chances and rewrite it. 47465 # Note: m4 eats our [], so we need to use [ and ] instead. 47466 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47467 if test "x$has_forbidden_chars" != x; then 47468 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47469 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47470 fi 47471 47472 # Output is in $new_path 47473 47474 windows_path="$new_path" 47475 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47476 unix_path=`$CYGPATH -u "$windows_path"` 47477 new_path="$unix_path" 47478 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47479 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47480 new_path="$unix_path" 47481 fi 47482 47483 # remove trailing .exe if any 47484 new_path="${new_path/%.exe/}" 47485 47486 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47487 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47488 fi 47489 47490 else 47491 # We're on a unix platform. Hooray! :) 47492 # First separate the path from the arguments. This will split at the first 47493 # space. 47494 complete="$BUILD_OBJCOPY" 47495 path="${complete%% *}" 47496 tmp="$complete EOL" 47497 arguments="${tmp#* }" 47498 47499 # Cannot rely on the command "which" here since it doesn't always work. 47500 is_absolute_path=`$ECHO "$path" | $GREP ^/` 47501 if test -z "$is_absolute_path"; then 47502 # Path to executable is not absolute. Find it. 47503 IFS_save="$IFS" 47504 IFS=: 47505 for p in $PATH; do 47506 if test -f "$p/$path" && test -x "$p/$path"; then 47507 new_path="$p/$path" 47508 break 47509 fi 47510 done 47511 IFS="$IFS_save" 47512 else 47513 # This is an absolute path, we can use it without further modifications. 47514 new_path="$path" 47515 fi 47516 47517 if test "x$new_path" = x; then 47518 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 47519 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 47520 has_space=`$ECHO "$complete" | $GREP " "` 47521 if test "x$has_space" != x; then 47522 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 47523 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 47524 fi 47525 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 47526 fi 47527 fi 47528 47529 # Now join together the path and the arguments once again 47530 if test "x$arguments" != xEOL; then 47531 new_complete="$new_path ${arguments% *}" 47532 else 47533 new_complete="$new_path" 47534 fi 47535 47536 if test "x$complete" != "x$new_complete"; then 47537 BUILD_OBJCOPY="$new_complete" 47538 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&5 47539 $as_echo "$as_me: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&6;} 47540 fi 47541 fi 47542 47543 47544 47545 # Publish this variable in the help. 47546 47547 47548 if [ -z "${BUILD_STRIP+x}" ]; then 47549 # The variable is not set by user, try to locate tool using the code snippet 47550 for ac_prog in strip 47551 do 47552 # Extract the first word of "$ac_prog", so it can be a program name with args. 47553 set dummy $ac_prog; ac_word=$2 47554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47555 $as_echo_n "checking for $ac_word... " >&6; } 47556 if ${ac_cv_path_BUILD_STRIP+:} false; then : 47557 $as_echo_n "(cached) " >&6 47558 else 47559 case $BUILD_STRIP in 47560 [\\/]* | ?:[\\/]*) 47561 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 47562 ;; 47563 *) 47564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47565 for as_dir in $PATH 47566 do 47567 IFS=$as_save_IFS 47568 test -z "$as_dir" && as_dir=. 47569 for ac_exec_ext in '' $ac_executable_extensions; do 47570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47571 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 47572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47573 break 2 47574 fi 47575 done 47576 done 47577 IFS=$as_save_IFS 47578 47579 ;; 47580 esac 47581 fi 47582 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 47583 if test -n "$BUILD_STRIP"; then 47584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 47585 $as_echo "$BUILD_STRIP" >&6; } 47586 else 47587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47588 $as_echo "no" >&6; } 47589 fi 47590 47591 47592 test -n "$BUILD_STRIP" && break 47593 done 47594 47595 else 47596 # The variable is set, but is it from the command line or the environment? 47597 47598 # Try to remove the string !BUILD_STRIP! from our list. 47599 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_STRIP!/} 47600 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 47601 # If it failed, the variable was not from the command line. Ignore it, 47602 # but warn the user (except for BASH, which is always set by the calling BASH). 47603 if test "xBUILD_STRIP" != xBASH; then 47604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&5 47605 $as_echo "$as_me: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&2;} 47606 fi 47607 # Try to locate tool using the code snippet 47608 for ac_prog in strip 47609 do 47610 # Extract the first word of "$ac_prog", so it can be a program name with args. 47611 set dummy $ac_prog; ac_word=$2 47612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47613 $as_echo_n "checking for $ac_word... " >&6; } 47614 if ${ac_cv_path_BUILD_STRIP+:} false; then : 47615 $as_echo_n "(cached) " >&6 47616 else 47617 case $BUILD_STRIP in 47618 [\\/]* | ?:[\\/]*) 47619 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 47620 ;; 47621 *) 47622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47623 for as_dir in $PATH 47624 do 47625 IFS=$as_save_IFS 47626 test -z "$as_dir" && as_dir=. 47627 for ac_exec_ext in '' $ac_executable_extensions; do 47628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47629 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 47630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47631 break 2 47632 fi 47633 done 47634 done 47635 IFS=$as_save_IFS 47636 47637 ;; 47638 esac 47639 fi 47640 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 47641 if test -n "$BUILD_STRIP"; then 47642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 47643 $as_echo "$BUILD_STRIP" >&6; } 47644 else 47645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47646 $as_echo "no" >&6; } 47647 fi 47648 47649 47650 test -n "$BUILD_STRIP" && break 47651 done 47652 47653 else 47654 # If it succeeded, then it was overridden by the user. We will use it 47655 # for the tool. 47656 47657 # First remove it from the list of overridden variables, so we can test 47658 # for unknown variables in the end. 47659 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 47660 47661 # Check if we try to supply an empty value 47662 if test "x$BUILD_STRIP" = x; then 47663 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_STRIP= (no value)" >&5 47664 $as_echo "$as_me: Setting user supplied tool BUILD_STRIP= (no value)" >&6;} 47665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 47666 $as_echo_n "checking for BUILD_STRIP... " >&6; } 47667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 47668 $as_echo "disabled" >&6; } 47669 else 47670 # Check if the provided tool contains a complete path. 47671 tool_specified="$BUILD_STRIP" 47672 tool_basename="${tool_specified##*/}" 47673 if test "x$tool_basename" = "x$tool_specified"; then 47674 # A command without a complete path is provided, search $PATH. 47675 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&5 47676 $as_echo "$as_me: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&6;} 47677 # Extract the first word of "$tool_basename", so it can be a program name with args. 47678 set dummy $tool_basename; ac_word=$2 47679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47680 $as_echo_n "checking for $ac_word... " >&6; } 47681 if ${ac_cv_path_BUILD_STRIP+:} false; then : 47682 $as_echo_n "(cached) " >&6 47683 else 47684 case $BUILD_STRIP in 47685 [\\/]* | ?:[\\/]*) 47686 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 47687 ;; 47688 *) 47689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47690 for as_dir in $PATH 47691 do 47692 IFS=$as_save_IFS 47693 test -z "$as_dir" && as_dir=. 47694 for ac_exec_ext in '' $ac_executable_extensions; do 47695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47696 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 47697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47698 break 2 47699 fi 47700 done 47701 done 47702 IFS=$as_save_IFS 47703 47704 ;; 47705 esac 47706 fi 47707 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 47708 if test -n "$BUILD_STRIP"; then 47709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 47710 $as_echo "$BUILD_STRIP" >&6; } 47711 else 47712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47713 $as_echo "no" >&6; } 47714 fi 47715 47716 47717 if test "x$BUILD_STRIP" = x; then 47718 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 47719 fi 47720 else 47721 # Otherwise we believe it is a complete path. Use it as it is. 47722 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_STRIP=$tool_specified" >&5 47723 $as_echo "$as_me: Will use user supplied tool BUILD_STRIP=$tool_specified" >&6;} 47724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 47725 $as_echo_n "checking for BUILD_STRIP... " >&6; } 47726 if test ! -x "$tool_specified"; then 47727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 47728 $as_echo "not found" >&6; } 47729 as_fn_error $? "User supplied tool BUILD_STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 47730 fi 47731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 47732 $as_echo "$tool_specified" >&6; } 47733 fi 47734 fi 47735 fi 47736 47737 fi 47738 47739 47740 47741 # Only process if variable expands to non-empty 47742 47743 if test "x$BUILD_STRIP" != x; then 47744 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47745 47746 # First separate the path from the arguments. This will split at the first 47747 # space. 47748 complete="$BUILD_STRIP" 47749 path="${complete%% *}" 47750 tmp="$complete EOL" 47751 arguments="${tmp#* }" 47752 47753 # Input might be given as Windows format, start by converting to 47754 # unix format. 47755 new_path=`$CYGPATH -u "$path"` 47756 47757 # Now try to locate executable using which 47758 new_path=`$WHICH "$new_path" 2> /dev/null` 47759 # bat and cmd files are not always considered executable in cygwin causing which 47760 # to not find them 47761 if test "x$new_path" = x \ 47762 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47763 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47764 new_path=`$CYGPATH -u "$path"` 47765 fi 47766 if test "x$new_path" = x; then 47767 # Oops. Which didn't find the executable. 47768 # The splitting of arguments from the executable at a space might have been incorrect, 47769 # since paths with space are more likely in Windows. Give it another try with the whole 47770 # argument. 47771 path="$complete" 47772 arguments="EOL" 47773 new_path=`$CYGPATH -u "$path"` 47774 new_path=`$WHICH "$new_path" 2> /dev/null` 47775 # bat and cmd files are not always considered executable in cygwin causing which 47776 # to not find them 47777 if test "x$new_path" = x \ 47778 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47779 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47780 new_path=`$CYGPATH -u "$path"` 47781 fi 47782 if test "x$new_path" = x; then 47783 # It's still not found. Now this is an unrecoverable error. 47784 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 47785 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 47786 has_space=`$ECHO "$complete" | $GREP " "` 47787 if test "x$has_space" != x; then 47788 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47789 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47790 fi 47791 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 47792 fi 47793 fi 47794 47795 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47796 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47797 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47798 # "foo.exe" is OK but "foo" is an error. 47799 # 47800 # This test is therefore slightly more accurate than "test -f" to check for file presence. 47801 # It is also a way to make sure we got the proper file name for the real test later on. 47802 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47803 if test "x$test_shortpath" = x; then 47804 # Short path failed, file does not exist as specified. 47805 # Try adding .exe or .cmd 47806 if test -f "${new_path}.exe"; then 47807 input_to_shortpath="${new_path}.exe" 47808 elif test -f "${new_path}.cmd"; then 47809 input_to_shortpath="${new_path}.cmd" 47810 else 47811 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&5 47812 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&6;} 47813 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 47814 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 47815 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 47816 fi 47817 else 47818 input_to_shortpath="$new_path" 47819 fi 47820 47821 # Call helper function which possibly converts this using DOS-style short mode. 47822 # If so, the updated path is stored in $new_path. 47823 new_path="$input_to_shortpath" 47824 47825 input_path="$input_to_shortpath" 47826 # Check if we need to convert this using DOS-style short mode. If the path 47827 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47828 # take no chances and rewrite it. 47829 # Note: m4 eats our [], so we need to use [ and ] instead. 47830 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47831 if test "x$has_forbidden_chars" != x; then 47832 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47833 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47834 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47835 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47836 # Going to short mode and back again did indeed matter. Since short mode is 47837 # case insensitive, let's make it lowercase to improve readability. 47838 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47839 # Now convert it back to Unix-style (cygpath) 47840 input_path=`$CYGPATH -u "$shortmode_path"` 47841 new_path="$input_path" 47842 fi 47843 fi 47844 47845 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47846 if test "x$test_cygdrive_prefix" = x; then 47847 # As a simple fix, exclude /usr/bin since it's not a real path. 47848 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 47849 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47850 # a path prefixed by /cygdrive for fixpath to work. 47851 new_path="$CYGWIN_ROOT_PATH$input_path" 47852 fi 47853 fi 47854 47855 # remove trailing .exe if any 47856 new_path="${new_path/%.exe/}" 47857 47858 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47859 47860 # First separate the path from the arguments. This will split at the first 47861 # space. 47862 complete="$BUILD_STRIP" 47863 path="${complete%% *}" 47864 tmp="$complete EOL" 47865 arguments="${tmp#* }" 47866 47867 # Input might be given as Windows format, start by converting to 47868 # unix format. 47869 new_path="$path" 47870 47871 windows_path="$new_path" 47872 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47873 unix_path=`$CYGPATH -u "$windows_path"` 47874 new_path="$unix_path" 47875 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47876 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47877 new_path="$unix_path" 47878 fi 47879 47880 47881 # Now try to locate executable using which 47882 new_path=`$WHICH "$new_path" 2> /dev/null` 47883 47884 if test "x$new_path" = x; then 47885 # Oops. Which didn't find the executable. 47886 # The splitting of arguments from the executable at a space might have been incorrect, 47887 # since paths with space are more likely in Windows. Give it another try with the whole 47888 # argument. 47889 path="$complete" 47890 arguments="EOL" 47891 new_path="$path" 47892 47893 windows_path="$new_path" 47894 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47895 unix_path=`$CYGPATH -u "$windows_path"` 47896 new_path="$unix_path" 47897 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47898 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47899 new_path="$unix_path" 47900 fi 47901 47902 47903 new_path=`$WHICH "$new_path" 2> /dev/null` 47904 # bat and cmd files are not always considered executable in MSYS causing which 47905 # to not find them 47906 if test "x$new_path" = x \ 47907 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47908 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47909 new_path="$path" 47910 47911 windows_path="$new_path" 47912 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47913 unix_path=`$CYGPATH -u "$windows_path"` 47914 new_path="$unix_path" 47915 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47916 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47917 new_path="$unix_path" 47918 fi 47919 47920 fi 47921 47922 if test "x$new_path" = x; then 47923 # It's still not found. Now this is an unrecoverable error. 47924 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 47925 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 47926 has_space=`$ECHO "$complete" | $GREP " "` 47927 if test "x$has_space" != x; then 47928 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47929 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47930 fi 47931 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 47932 fi 47933 fi 47934 47935 # Now new_path has a complete unix path to the binary 47936 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 47937 # Keep paths in /bin as-is, but remove trailing .exe if any 47938 new_path="${new_path/%.exe/}" 47939 # Do not save /bin paths to all_fixpath_prefixes! 47940 else 47941 # Not in mixed or Windows style, start by that. 47942 new_path=`cmd //c echo $new_path` 47943 47944 input_path="$new_path" 47945 # Check if we need to convert this using DOS-style short mode. If the path 47946 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47947 # take no chances and rewrite it. 47948 # Note: m4 eats our [], so we need to use [ and ] instead. 47949 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47950 if test "x$has_forbidden_chars" != x; then 47951 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47952 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47953 fi 47954 47955 # Output is in $new_path 47956 47957 windows_path="$new_path" 47958 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47959 unix_path=`$CYGPATH -u "$windows_path"` 47960 new_path="$unix_path" 47961 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47962 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47963 new_path="$unix_path" 47964 fi 47965 47966 # remove trailing .exe if any 47967 new_path="${new_path/%.exe/}" 47968 47969 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47970 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47971 fi 47972 47973 else 47974 # We're on a unix platform. Hooray! :) 47975 # First separate the path from the arguments. This will split at the first 47976 # space. 47977 complete="$BUILD_STRIP" 47978 path="${complete%% *}" 47979 tmp="$complete EOL" 47980 arguments="${tmp#* }" 47981 47982 # Cannot rely on the command "which" here since it doesn't always work. 47983 is_absolute_path=`$ECHO "$path" | $GREP ^/` 47984 if test -z "$is_absolute_path"; then 47985 # Path to executable is not absolute. Find it. 47986 IFS_save="$IFS" 47987 IFS=: 47988 for p in $PATH; do 47989 if test -f "$p/$path" && test -x "$p/$path"; then 47990 new_path="$p/$path" 47991 break 47992 fi 47993 done 47994 IFS="$IFS_save" 47995 else 47996 # This is an absolute path, we can use it without further modifications. 47997 new_path="$path" 47998 fi 47999 48000 if test "x$new_path" = x; then 48001 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 48002 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 48003 has_space=`$ECHO "$complete" | $GREP " "` 48004 if test "x$has_space" != x; then 48005 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 48006 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 48007 fi 48008 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 48009 fi 48010 fi 48011 48012 # Now join together the path and the arguments once again 48013 if test "x$arguments" != xEOL; then 48014 new_complete="$new_path ${arguments% *}" 48015 else 48016 new_complete="$new_path" 48017 fi 48018 48019 if test "x$complete" != "x$new_complete"; then 48020 BUILD_STRIP="$new_complete" 48021 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_STRIP to \"$new_complete\"" >&5 48022 $as_echo "$as_me: Rewriting BUILD_STRIP to \"$new_complete\"" >&6;} 48023 fi 48024 fi 48025 48026 # Assume the C compiler is the assembler 48027 BUILD_AS="$BUILD_CC -c" 48028 # Just like for the target compiler, use the compiler as linker 48029 BUILD_LD="$BUILD_CC" 48030 BUILD_LDCXX="$BUILD_CXX" 48031 48032 PATH="$OLDPATH" 48033 48034 48035 COMPILER=$BUILD_CC 48036 COMPILER_NAME=BuildC 48037 48038 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48039 # cc -V output typically looks like 48040 # cc: Sun C 5.12 Linux_i386 2011/11/16 48041 # or 48042 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 48043 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 48044 # Check that this is likely to be the Solaris Studio cc. 48045 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 48046 if test $? -ne 0; then 48047 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48048 { $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 48049 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48050 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48051 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48052 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 48053 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 48054 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48055 fi 48056 # Remove usage instructions (if present), and 48057 # collapse compiler output into a single line 48058 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48059 $SED -e 's/ *[Uu]sage:.*//'` 48060 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48061 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 48062 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 48063 # xlc -qversion output typically looks like 48064 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 48065 # Version: 11.01.0000.0015 48066 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 48067 # Check that this is likely to be the IBM XL C compiler. 48068 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 48069 if test $? -ne 0; then 48070 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48071 { $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 48072 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48073 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48074 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48075 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 48076 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 48077 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48078 fi 48079 # Collapse compiler output into a single line 48080 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48081 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48082 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 48083 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48084 # There is no specific version flag, but all output starts with a version string. 48085 # First line typically looks something like: 48086 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 48087 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 48088 # Check that this is likely to be Microsoft CL.EXE. 48089 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 48090 if test $? -ne 0; then 48091 { $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 48092 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48093 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48094 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48095 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48096 fi 48097 # Collapse compiler output into a single line 48098 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48099 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48100 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 48101 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 48102 # gcc --version output typically looks like 48103 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 48104 # Copyright (C) 2013 Free Software Foundation, Inc. 48105 # This is free software; see the source for copying conditions. There is NO 48106 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 48107 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48108 # Check that this is likely to be GCC. 48109 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 48110 if test $? -ne 0; then 48111 { $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 48112 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48113 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 48114 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 48115 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48116 fi 48117 # Remove Copyright and legalese from version string, and 48118 # collapse into a single line 48119 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48120 $SED -e 's/ *Copyright .*//'` 48121 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48122 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 48123 elif test "x$TOOLCHAIN_TYPE" = xclang; then 48124 # clang --version output typically looks like 48125 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 48126 # clang version 3.3 (tags/RELEASE_33/final) 48127 # or 48128 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 48129 # Target: x86_64-pc-linux-gnu 48130 # Thread model: posix 48131 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48132 # Check that this is likely to be clang 48133 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 48134 if test $? -ne 0; then 48135 { $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 48136 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48137 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48138 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48139 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48140 fi 48141 # Collapse compiler output into a single line 48142 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48143 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48144 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 48145 else 48146 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 48147 fi 48148 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 48149 BUILD_CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 48150 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 48151 BUILD_CC_VERSION_STRING="$COMPILER_VERSION_STRING" 48152 48153 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 48154 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 48155 48156 48157 COMPILER=$BUILD_CXX 48158 COMPILER_NAME=BuildC++ 48159 48160 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48161 # cc -V output typically looks like 48162 # cc: Sun C 5.12 Linux_i386 2011/11/16 48163 # or 48164 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 48165 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 48166 # Check that this is likely to be the Solaris Studio cc. 48167 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 48168 if test $? -ne 0; then 48169 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48170 { $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 48171 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48172 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48173 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48174 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 48175 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 48176 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48177 fi 48178 # Remove usage instructions (if present), and 48179 # collapse compiler output into a single line 48180 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48181 $SED -e 's/ *[Uu]sage:.*//'` 48182 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48183 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 48184 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 48185 # xlc -qversion output typically looks like 48186 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 48187 # Version: 11.01.0000.0015 48188 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 48189 # Check that this is likely to be the IBM XL C compiler. 48190 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 48191 if test $? -ne 0; then 48192 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48193 { $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 48194 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48195 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48196 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48197 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 48198 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 48199 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48200 fi 48201 # Collapse compiler output into a single line 48202 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48203 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48204 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 48205 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48206 # There is no specific version flag, but all output starts with a version string. 48207 # First line typically looks something like: 48208 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 48209 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 48210 # Check that this is likely to be Microsoft CL.EXE. 48211 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 48212 if test $? -ne 0; then 48213 { $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 48214 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48215 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48216 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48217 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48218 fi 48219 # Collapse compiler output into a single line 48220 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48221 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48222 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 48223 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 48224 # gcc --version output typically looks like 48225 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 48226 # Copyright (C) 2013 Free Software Foundation, Inc. 48227 # This is free software; see the source for copying conditions. There is NO 48228 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 48229 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48230 # Check that this is likely to be GCC. 48231 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 48232 if test $? -ne 0; then 48233 { $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 48234 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48235 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 48236 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 48237 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48238 fi 48239 # Remove Copyright and legalese from version string, and 48240 # collapse into a single line 48241 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48242 $SED -e 's/ *Copyright .*//'` 48243 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48244 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 48245 elif test "x$TOOLCHAIN_TYPE" = xclang; then 48246 # clang --version output typically looks like 48247 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 48248 # clang version 3.3 (tags/RELEASE_33/final) 48249 # or 48250 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 48251 # Target: x86_64-pc-linux-gnu 48252 # Thread model: posix 48253 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48254 # Check that this is likely to be clang 48255 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 48256 if test $? -ne 0; then 48257 { $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 48258 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48259 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48260 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48261 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48262 fi 48263 # Collapse compiler output into a single line 48264 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48265 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48266 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 48267 else 48268 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 48269 fi 48270 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 48271 BUILD_CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 48272 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 48273 BUILD_CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 48274 48275 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 48276 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 48277 48278 48279 if test "x$BUILD_CC_VERSION_NUMBER" != "x$BUILD_CXX_VERSION_NUMBER"; then 48280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $BUILD_CC_VERSION_NUMBER vs $BUILD_CXX_VERSION_NUMBER." >&5 48281 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $BUILD_CC_VERSION_NUMBER vs $BUILD_CXX_VERSION_NUMBER." >&2;} 48282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 48283 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 48284 fi 48285 48286 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 48287 if [[ "[$]BUILD_CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 48288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&5 48289 $as_echo "$as_me: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 48290 fi 48291 48292 if [[ "[$]BUILD_CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 48293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has a part larger than 99999: $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&5 48294 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 48295 fi 48296 48297 OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$BUILD_CC_VERSION_NUMBER"` 48298 48299 else 48300 # If we are not cross compiling, use the normal target compilers for 48301 # building the build platform executables. 48302 BUILD_CC="$CC" 48303 BUILD_CXX="$CXX" 48304 BUILD_LD="$LD" 48305 BUILD_LDCXX="$LDCXX" 48306 BUILD_NM="$NM" 48307 BUILD_AS="$AS" 48308 BUILD_OBJCOPY="$OBJCOPY" 48309 BUILD_STRIP="$STRIP" 48310 BUILD_SYSROOT_CFLAGS="$SYSROOT_CFLAGS" 48311 BUILD_SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS" 48312 BUILD_AR="$AR" 48313 48314 48315 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 48316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 48317 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 48318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 48319 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 48320 fi 48321 48322 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 48323 if [[ "[$]CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 48324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&5 48325 $as_echo "$as_me: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 48326 fi 48327 48328 if [[ "[$]CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 48329 { $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 48330 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 48331 fi 48332 48333 OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$CC_VERSION_NUMBER"` 48334 48335 fi 48336 48337 48338 48339 48340 48341 48342 48343 48344 48345 48346 48347 48348 48349 48350 # The package path is used only on macosx? 48351 # FIXME: clean this up, and/or move it elsewhere. 48352 PACKAGE_PATH=/opt/local 48353 48354 48355 # Check for extra potential brokenness. 48356 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48357 # On Windows, double-check that we got the right compiler. 48358 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 48359 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 48360 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 48361 if test "x$COMPILER_CPU_TEST" != "x80x86" -a "x$COMPILER_CPU_TEST" != "xx86"; then 48362 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 48363 fi 48364 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 48365 if test "x$COMPILER_CPU_TEST" != "xx64"; then 48366 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 48367 fi 48368 fi 48369 fi 48370 48371 if test "x$TOOLCHAIN_TYPE" = xgcc; then 48372 # If this is a --hash-style=gnu system, use --hash-style=both, why? 48373 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 48374 # This is later checked when setting flags. 48375 48376 # "-Og" suppported for GCC 4.8 and later 48377 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 48378 48379 48380 48381 48382 48383 48384 48385 48386 48387 48388 48389 48390 48391 48392 48393 48394 48395 48396 48397 48398 48399 48400 48401 48402 48403 48404 48405 48406 48407 48408 48409 48410 48411 48412 48413 48414 48415 48416 48417 48418 48419 48420 48421 48422 48423 48424 48425 # Execute function body 48426 48427 48428 48429 48430 48431 48432 48433 48434 48435 48436 48437 48438 48439 48440 48441 48442 48443 48444 48445 48446 48447 48448 48449 48450 48451 48452 48453 48454 48455 48456 48457 48458 48459 48460 48461 48462 48463 48464 48465 48466 48467 48468 48469 48470 48471 48472 48473 48474 # Execute function body 48475 48476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 48477 $as_echo_n "checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 48478 supports=yes 48479 48480 saved_cflags="$CFLAGS" 48481 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 48482 ac_ext=c 48483 ac_cpp='$CPP $CPPFLAGS' 48484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48486 ac_compiler_gnu=$ac_cv_c_compiler_gnu 48487 48488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48489 /* end confdefs.h. */ 48490 int i; 48491 _ACEOF 48492 if ac_fn_c_try_compile "$LINENO"; then : 48493 48494 else 48495 supports=no 48496 fi 48497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48498 ac_ext=cpp 48499 ac_cpp='$CXXCPP $CPPFLAGS' 48500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48503 48504 CFLAGS="$saved_cflags" 48505 48506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 48507 $as_echo "$supports" >&6; } 48508 if test "x$supports" = "xyes" ; then 48509 : 48510 C_COMP_SUPPORTS="yes" 48511 else 48512 : 48513 C_COMP_SUPPORTS="no" 48514 fi 48515 48516 48517 48518 48519 48520 48521 48522 48523 48524 48525 48526 48527 48528 48529 48530 48531 48532 48533 48534 48535 48536 48537 48538 48539 48540 48541 48542 48543 48544 48545 48546 48547 48548 48549 48550 48551 48552 48553 48554 48555 48556 48557 48558 48559 48560 48561 48562 48563 48564 48565 48566 48567 48568 48569 48570 48571 48572 48573 48574 # Execute function body 48575 48576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 48577 $as_echo_n "checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 48578 supports=yes 48579 48580 saved_cxxflags="$CXXFLAGS" 48581 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 48582 ac_ext=cpp 48583 ac_cpp='$CXXCPP $CPPFLAGS' 48584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48587 48588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48589 /* end confdefs.h. */ 48590 int i; 48591 _ACEOF 48592 if ac_fn_cxx_try_compile "$LINENO"; then : 48593 48594 else 48595 supports=no 48596 fi 48597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48598 ac_ext=cpp 48599 ac_cpp='$CXXCPP $CPPFLAGS' 48600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48603 48604 CXXFLAGS="$saved_cxxflags" 48605 48606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 48607 $as_echo "$supports" >&6; } 48608 if test "x$supports" = "xyes" ; then 48609 : 48610 CXX_COMP_SUPPORTS="yes" 48611 else 48612 : 48613 CXX_COMP_SUPPORTS="no" 48614 fi 48615 48616 48617 48618 48619 48620 48621 48622 48623 48624 48625 48626 48627 48628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 48629 $as_echo_n "checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 48630 supports=no 48631 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 48632 48633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 48634 $as_echo "$supports" >&6; } 48635 if test "x$supports" = "xyes" ; then 48636 : 48637 HAS_CFLAG_OPTIMIZE_DEBUG=true 48638 else 48639 : 48640 HAS_CFLAG_OPTIMIZE_DEBUG=false 48641 fi 48642 48643 48644 48645 48646 48647 48648 48649 # "-z relro" supported in GNU binutils 2.17 and later 48650 LINKER_RELRO_FLAG="-Wl,-z,relro" 48651 48652 48653 48654 48655 48656 48657 48658 48659 48660 48661 48662 48663 48664 48665 48666 48667 48668 48669 48670 48671 48672 48673 48674 48675 48676 48677 48678 48679 48680 48681 48682 48683 48684 48685 48686 48687 48688 48689 48690 48691 48692 48693 48694 48695 48696 48697 48698 # Execute function body 48699 48700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 48701 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 48702 supports=yes 48703 48704 saved_ldflags="$LDFLAGS" 48705 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 48706 ac_ext=c 48707 ac_cpp='$CPP $CPPFLAGS' 48708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48710 ac_compiler_gnu=$ac_cv_c_compiler_gnu 48711 48712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48713 /* end confdefs.h. */ 48714 48715 int 48716 main () 48717 { 48718 48719 ; 48720 return 0; 48721 } 48722 _ACEOF 48723 if ac_fn_c_try_link "$LINENO"; then : 48724 48725 else 48726 supports=no 48727 fi 48728 rm -f core conftest.err conftest.$ac_objext \ 48729 conftest$ac_exeext conftest.$ac_ext 48730 ac_ext=cpp 48731 ac_cpp='$CXXCPP $CPPFLAGS' 48732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48735 48736 LDFLAGS="$saved_ldflags" 48737 48738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 48739 $as_echo "$supports" >&6; } 48740 if test "x$supports" = "xyes" ; then 48741 : 48742 HAS_LINKER_RELRO=true 48743 else 48744 : 48745 HAS_LINKER_RELRO=false 48746 fi 48747 48748 48749 48750 48751 48752 48753 48754 48755 48756 48757 48758 48759 48760 # "-z now" supported in GNU binutils 2.11 and later 48761 LINKER_NOW_FLAG="-Wl,-z,now" 48762 48763 48764 48765 48766 48767 48768 48769 48770 48771 48772 48773 48774 48775 48776 48777 48778 48779 48780 48781 48782 48783 48784 48785 48786 48787 48788 48789 48790 48791 48792 48793 48794 48795 48796 48797 48798 48799 48800 48801 48802 48803 48804 48805 48806 48807 48808 48809 # Execute function body 48810 48811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 48812 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 48813 supports=yes 48814 48815 saved_ldflags="$LDFLAGS" 48816 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 48817 ac_ext=c 48818 ac_cpp='$CPP $CPPFLAGS' 48819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48821 ac_compiler_gnu=$ac_cv_c_compiler_gnu 48822 48823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48824 /* end confdefs.h. */ 48825 48826 int 48827 main () 48828 { 48829 48830 ; 48831 return 0; 48832 } 48833 _ACEOF 48834 if ac_fn_c_try_link "$LINENO"; then : 48835 48836 else 48837 supports=no 48838 fi 48839 rm -f core conftest.err conftest.$ac_objext \ 48840 conftest$ac_exeext conftest.$ac_ext 48841 ac_ext=cpp 48842 ac_cpp='$CXXCPP $CPPFLAGS' 48843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48846 48847 LDFLAGS="$saved_ldflags" 48848 48849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 48850 $as_echo "$supports" >&6; } 48851 if test "x$supports" = "xyes" ; then 48852 : 48853 HAS_LINKER_NOW=true 48854 else 48855 : 48856 HAS_LINKER_NOW=false 48857 fi 48858 48859 48860 48861 48862 48863 48864 48865 48866 48867 48868 48869 48870 fi 48871 48872 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 48873 # in executable.' 48874 USING_BROKEN_SUSE_LD=no 48875 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 48876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 48877 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 48878 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 48879 $ECHO "int main() { }" > main.c 48880 if $CXX -Wl,-version-script=version-script.map main.c 2>&5 >&5; then 48881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48882 $as_echo "no" >&6; } 48883 USING_BROKEN_SUSE_LD=no 48884 else 48885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48886 $as_echo "yes" >&6; } 48887 USING_BROKEN_SUSE_LD=yes 48888 fi 48889 $RM version-script.map main.c a.out 48890 fi 48891 48892 48893 # Setup hotspot lecagy names for toolchains 48894 HOTSPOT_TOOLCHAIN_TYPE=$TOOLCHAIN_TYPE 48895 if test "x$TOOLCHAIN_TYPE" = xclang; then 48896 HOTSPOT_TOOLCHAIN_TYPE=gcc 48897 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48898 HOTSPOT_TOOLCHAIN_TYPE=sparcWorks 48899 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48900 HOTSPOT_TOOLCHAIN_TYPE=visCPP 48901 fi 48902 48903 48904 48905 # Setup the JTReg Regression Test Harness. 48906 48907 48908 # Check whether --with-jtreg was given. 48909 if test "${with_jtreg+set}" = set; then : 48910 withval=$with_jtreg; 48911 fi 48912 48913 48914 if test "x$with_jtreg" = xno; then 48915 # jtreg disabled 48916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg test harness" >&5 48917 $as_echo_n "checking for jtreg test harness... " >&6; } 48918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabled" >&5 48919 $as_echo "no, disabled" >&6; } 48920 elif test "x$with_jtreg" != xyes && test "x$with_jtreg" != x; then 48921 # An explicit path is specified, use it. 48922 JT_HOME="$with_jtreg" 48923 if test ! -d "$JT_HOME"; then 48924 as_fn_error $? "jtreg home directory from --with-jtreg=$with_jtreg does not exist" "$LINENO" 5 48925 fi 48926 48927 if test ! -e "$JT_HOME/lib/jtreg.jar"; then 48928 as_fn_error $? "jtreg home directory from --with-jtreg=$with_jtreg is not a valid jtreg home" "$LINENO" 5 48929 fi 48930 48931 JTREGEXE="$JT_HOME/bin/jtreg" 48932 if test ! -x "$JTREGEXE"; then 48933 as_fn_error $? "jtreg home directory from --with-jtreg=$with_jtreg does not contain valid jtreg executable" "$LINENO" 5 48934 fi 48935 48936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg test harness" >&5 48937 $as_echo_n "checking for jtreg test harness... " >&6; } 48938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JT_HOME" >&5 48939 $as_echo "$JT_HOME" >&6; } 48940 else 48941 # Try to locate jtreg 48942 if test "x$JT_HOME" != x; then 48943 # JT_HOME set in environment, use it 48944 if test ! -d "$JT_HOME"; then 48945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring JT_HOME pointing to invalid directory: $JT_HOME" >&5 48946 $as_echo "$as_me: WARNING: Ignoring JT_HOME pointing to invalid directory: $JT_HOME" >&2;} 48947 JT_HOME= 48948 else 48949 if test ! -e "$JT_HOME/lib/jtreg.jar"; then 48950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring JT_HOME which is not a valid jtreg home: $JT_HOME" >&5 48951 $as_echo "$as_me: WARNING: Ignoring JT_HOME which is not a valid jtreg home: $JT_HOME" >&2;} 48952 JT_HOME= 48953 elif test ! -x "$JT_HOME/bin/jtreg"; then 48954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring JT_HOME which does not contain valid jtreg executable: $JT_HOME" >&5 48955 $as_echo "$as_me: WARNING: Ignoring JT_HOME which does not contain valid jtreg executable: $JT_HOME" >&2;} 48956 JT_HOME= 48957 else 48958 JTREGEXE="$JT_HOME/bin/jtreg" 48959 { $as_echo "$as_me:${as_lineno-$LINENO}: Located jtreg using JT_HOME from environment" >&5 48960 $as_echo "$as_me: Located jtreg using JT_HOME from environment" >&6;} 48961 fi 48962 fi 48963 fi 48964 48965 if test "x$JT_HOME" = x; then 48966 # JT_HOME is not set in environment, or was deemed invalid. 48967 # Try to find jtreg on path 48968 48969 48970 # Publish this variable in the help. 48971 48972 48973 if [ -z "${JTREGEXE+x}" ]; then 48974 # The variable is not set by user, try to locate tool using the code snippet 48975 for ac_prog in jtreg 48976 do 48977 # Extract the first word of "$ac_prog", so it can be a program name with args. 48978 set dummy $ac_prog; ac_word=$2 48979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48980 $as_echo_n "checking for $ac_word... " >&6; } 48981 if ${ac_cv_path_JTREGEXE+:} false; then : 48982 $as_echo_n "(cached) " >&6 48983 else 48984 case $JTREGEXE in 48985 [\\/]* | ?:[\\/]*) 48986 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 48987 ;; 48988 *) 48989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48990 for as_dir in $PATH 48991 do 48992 IFS=$as_save_IFS 48993 test -z "$as_dir" && as_dir=. 48994 for ac_exec_ext in '' $ac_executable_extensions; do 48995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48996 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 48997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48998 break 2 48999 fi 49000 done 49001 done 49002 IFS=$as_save_IFS 49003 49004 ;; 49005 esac 49006 fi 49007 JTREGEXE=$ac_cv_path_JTREGEXE 49008 if test -n "$JTREGEXE"; then 49009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 49010 $as_echo "$JTREGEXE" >&6; } 49011 else 49012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49013 $as_echo "no" >&6; } 49014 fi 49015 49016 49017 test -n "$JTREGEXE" && break 49018 done 49019 49020 else 49021 # The variable is set, but is it from the command line or the environment? 49022 49023 # Try to remove the string !JTREGEXE! from our list. 49024 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 49025 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 49026 # If it failed, the variable was not from the command line. Ignore it, 49027 # but warn the user (except for BASH, which is always set by the calling BASH). 49028 if test "xJTREGEXE" != xBASH; then 49029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 49030 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 49031 fi 49032 # Try to locate tool using the code snippet 49033 for ac_prog in jtreg 49034 do 49035 # Extract the first word of "$ac_prog", so it can be a program name with args. 49036 set dummy $ac_prog; ac_word=$2 49037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49038 $as_echo_n "checking for $ac_word... " >&6; } 49039 if ${ac_cv_path_JTREGEXE+:} false; then : 49040 $as_echo_n "(cached) " >&6 49041 else 49042 case $JTREGEXE in 49043 [\\/]* | ?:[\\/]*) 49044 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 49045 ;; 49046 *) 49047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49048 for as_dir in $PATH 49049 do 49050 IFS=$as_save_IFS 49051 test -z "$as_dir" && as_dir=. 49052 for ac_exec_ext in '' $ac_executable_extensions; do 49053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49054 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 49055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49056 break 2 49057 fi 49058 done 49059 done 49060 IFS=$as_save_IFS 49061 49062 ;; 49063 esac 49064 fi 49065 JTREGEXE=$ac_cv_path_JTREGEXE 49066 if test -n "$JTREGEXE"; then 49067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 49068 $as_echo "$JTREGEXE" >&6; } 49069 else 49070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49071 $as_echo "no" >&6; } 49072 fi 49073 49074 49075 test -n "$JTREGEXE" && break 49076 done 49077 49078 else 49079 # If it succeeded, then it was overridden by the user. We will use it 49080 # for the tool. 49081 49082 # First remove it from the list of overridden variables, so we can test 49083 # for unknown variables in the end. 49084 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 49085 49086 # Check if we try to supply an empty value 49087 if test "x$JTREGEXE" = x; then 49088 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JTREGEXE= (no value)" >&5 49089 $as_echo "$as_me: Setting user supplied tool JTREGEXE= (no value)" >&6;} 49090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 49091 $as_echo_n "checking for JTREGEXE... " >&6; } 49092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 49093 $as_echo "disabled" >&6; } 49094 else 49095 # Check if the provided tool contains a complete path. 49096 tool_specified="$JTREGEXE" 49097 tool_basename="${tool_specified##*/}" 49098 if test "x$tool_basename" = "x$tool_specified"; then 49099 # A command without a complete path is provided, search $PATH. 49100 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 49101 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 49102 # Extract the first word of "$tool_basename", so it can be a program name with args. 49103 set dummy $tool_basename; ac_word=$2 49104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49105 $as_echo_n "checking for $ac_word... " >&6; } 49106 if ${ac_cv_path_JTREGEXE+:} false; then : 49107 $as_echo_n "(cached) " >&6 49108 else 49109 case $JTREGEXE in 49110 [\\/]* | ?:[\\/]*) 49111 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 49112 ;; 49113 *) 49114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49115 for as_dir in $PATH 49116 do 49117 IFS=$as_save_IFS 49118 test -z "$as_dir" && as_dir=. 49119 for ac_exec_ext in '' $ac_executable_extensions; do 49120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49121 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 49122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49123 break 2 49124 fi 49125 done 49126 done 49127 IFS=$as_save_IFS 49128 49129 ;; 49130 esac 49131 fi 49132 JTREGEXE=$ac_cv_path_JTREGEXE 49133 if test -n "$JTREGEXE"; then 49134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 49135 $as_echo "$JTREGEXE" >&6; } 49136 else 49137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49138 $as_echo "no" >&6; } 49139 fi 49140 49141 49142 if test "x$JTREGEXE" = x; then 49143 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 49144 fi 49145 else 49146 # Otherwise we believe it is a complete path. Use it as it is. 49147 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 49148 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 49149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 49150 $as_echo_n "checking for JTREGEXE... " >&6; } 49151 if test ! -x "$tool_specified"; then 49152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 49153 $as_echo "not found" >&6; } 49154 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 49155 fi 49156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 49157 $as_echo "$tool_specified" >&6; } 49158 fi 49159 fi 49160 fi 49161 49162 fi 49163 49164 49165 if test "x$JTREGEXE" != x; then 49166 # That's good, now try to derive JT_HOME 49167 JT_HOME=`(cd $($DIRNAME $JTREGEXE)/.. && pwd)` 49168 if test ! -e "$JT_HOME/lib/jtreg.jar"; then 49169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring jtreg from path since a valid jtreg home cannot be found" >&5 49170 $as_echo "$as_me: WARNING: Ignoring jtreg from path since a valid jtreg home cannot be found" >&2;} 49171 JT_HOME= 49172 JTREGEXE= 49173 else 49174 { $as_echo "$as_me:${as_lineno-$LINENO}: Located jtreg using jtreg executable in path" >&5 49175 $as_echo "$as_me: Located jtreg using jtreg executable in path" >&6;} 49176 fi 49177 fi 49178 fi 49179 49180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg test harness" >&5 49181 $as_echo_n "checking for jtreg test harness... " >&6; } 49182 if test "x$JT_HOME" != x; then 49183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JT_HOME" >&5 49184 $as_echo "$JT_HOME" >&6; } 49185 else 49186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, not found" >&5 49187 $as_echo "no, not found" >&6; } 49188 49189 if test "x$with_jtreg" = xyes; then 49190 as_fn_error $? "--with-jtreg was specified, but no jtreg found." "$LINENO" 5 49191 fi 49192 fi 49193 fi 49194 49195 49196 # Only process if variable expands to non-empty 49197 49198 if test "x$JTREGEXE" != x; then 49199 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49200 49201 # First separate the path from the arguments. This will split at the first 49202 # space. 49203 complete="$JTREGEXE" 49204 path="${complete%% *}" 49205 tmp="$complete EOL" 49206 arguments="${tmp#* }" 49207 49208 # Input might be given as Windows format, start by converting to 49209 # unix format. 49210 new_path=`$CYGPATH -u "$path"` 49211 49212 # Now try to locate executable using which 49213 new_path=`$WHICH "$new_path" 2> /dev/null` 49214 # bat and cmd files are not always considered executable in cygwin causing which 49215 # to not find them 49216 if test "x$new_path" = x \ 49217 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 49218 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 49219 new_path=`$CYGPATH -u "$path"` 49220 fi 49221 if test "x$new_path" = x; then 49222 # Oops. Which didn't find the executable. 49223 # The splitting of arguments from the executable at a space might have been incorrect, 49224 # since paths with space are more likely in Windows. Give it another try with the whole 49225 # argument. 49226 path="$complete" 49227 arguments="EOL" 49228 new_path=`$CYGPATH -u "$path"` 49229 new_path=`$WHICH "$new_path" 2> /dev/null` 49230 # bat and cmd files are not always considered executable in cygwin causing which 49231 # to not find them 49232 if test "x$new_path" = x \ 49233 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 49234 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 49235 new_path=`$CYGPATH -u "$path"` 49236 fi 49237 if test "x$new_path" = x; then 49238 # It's still not found. Now this is an unrecoverable error. 49239 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&5 49240 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&6;} 49241 has_space=`$ECHO "$complete" | $GREP " "` 49242 if test "x$has_space" != x; then 49243 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 49244 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 49245 fi 49246 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 49247 fi 49248 fi 49249 49250 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49251 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49252 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49253 # "foo.exe" is OK but "foo" is an error. 49254 # 49255 # This test is therefore slightly more accurate than "test -f" to check for file presence. 49256 # It is also a way to make sure we got the proper file name for the real test later on. 49257 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49258 if test "x$test_shortpath" = x; then 49259 # Short path failed, file does not exist as specified. 49260 # Try adding .exe or .cmd 49261 if test -f "${new_path}.exe"; then 49262 input_to_shortpath="${new_path}.exe" 49263 elif test -f "${new_path}.cmd"; then 49264 input_to_shortpath="${new_path}.cmd" 49265 else 49266 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$new_path\", is invalid." >&5 49267 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$new_path\", is invalid." >&6;} 49268 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 49269 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 49270 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 49271 fi 49272 else 49273 input_to_shortpath="$new_path" 49274 fi 49275 49276 # Call helper function which possibly converts this using DOS-style short mode. 49277 # If so, the updated path is stored in $new_path. 49278 new_path="$input_to_shortpath" 49279 49280 input_path="$input_to_shortpath" 49281 # Check if we need to convert this using DOS-style short mode. If the path 49282 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49283 # take no chances and rewrite it. 49284 # Note: m4 eats our [], so we need to use [ and ] instead. 49285 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49286 if test "x$has_forbidden_chars" != x; then 49287 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49288 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49289 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49290 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49291 # Going to short mode and back again did indeed matter. Since short mode is 49292 # case insensitive, let's make it lowercase to improve readability. 49293 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49294 # Now convert it back to Unix-style (cygpath) 49295 input_path=`$CYGPATH -u "$shortmode_path"` 49296 new_path="$input_path" 49297 fi 49298 fi 49299 49300 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49301 if test "x$test_cygdrive_prefix" = x; then 49302 # As a simple fix, exclude /usr/bin since it's not a real path. 49303 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 49304 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49305 # a path prefixed by /cygdrive for fixpath to work. 49306 new_path="$CYGWIN_ROOT_PATH$input_path" 49307 fi 49308 fi 49309 49310 # remove trailing .exe if any 49311 new_path="${new_path/%.exe/}" 49312 49313 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49314 49315 # First separate the path from the arguments. This will split at the first 49316 # space. 49317 complete="$JTREGEXE" 49318 path="${complete%% *}" 49319 tmp="$complete EOL" 49320 arguments="${tmp#* }" 49321 49322 # Input might be given as Windows format, start by converting to 49323 # unix format. 49324 new_path="$path" 49325 49326 windows_path="$new_path" 49327 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49328 unix_path=`$CYGPATH -u "$windows_path"` 49329 new_path="$unix_path" 49330 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49331 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49332 new_path="$unix_path" 49333 fi 49334 49335 49336 # Now try to locate executable using which 49337 new_path=`$WHICH "$new_path" 2> /dev/null` 49338 49339 if test "x$new_path" = x; then 49340 # Oops. Which didn't find the executable. 49341 # The splitting of arguments from the executable at a space might have been incorrect, 49342 # since paths with space are more likely in Windows. Give it another try with the whole 49343 # argument. 49344 path="$complete" 49345 arguments="EOL" 49346 new_path="$path" 49347 49348 windows_path="$new_path" 49349 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49350 unix_path=`$CYGPATH -u "$windows_path"` 49351 new_path="$unix_path" 49352 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49353 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49354 new_path="$unix_path" 49355 fi 49356 49357 49358 new_path=`$WHICH "$new_path" 2> /dev/null` 49359 # bat and cmd files are not always considered executable in MSYS causing which 49360 # to not find them 49361 if test "x$new_path" = x \ 49362 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 49363 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 49364 new_path="$path" 49365 49366 windows_path="$new_path" 49367 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49368 unix_path=`$CYGPATH -u "$windows_path"` 49369 new_path="$unix_path" 49370 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49371 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49372 new_path="$unix_path" 49373 fi 49374 49375 fi 49376 49377 if test "x$new_path" = x; then 49378 # It's still not found. Now this is an unrecoverable error. 49379 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&5 49380 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&6;} 49381 has_space=`$ECHO "$complete" | $GREP " "` 49382 if test "x$has_space" != x; then 49383 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 49384 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 49385 fi 49386 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 49387 fi 49388 fi 49389 49390 # Now new_path has a complete unix path to the binary 49391 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 49392 # Keep paths in /bin as-is, but remove trailing .exe if any 49393 new_path="${new_path/%.exe/}" 49394 # Do not save /bin paths to all_fixpath_prefixes! 49395 else 49396 # Not in mixed or Windows style, start by that. 49397 new_path=`cmd //c echo $new_path` 49398 49399 input_path="$new_path" 49400 # Check if we need to convert this using DOS-style short mode. If the path 49401 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49402 # take no chances and rewrite it. 49403 # Note: m4 eats our [], so we need to use [ and ] instead. 49404 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49405 if test "x$has_forbidden_chars" != x; then 49406 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49407 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49408 fi 49409 49410 # Output is in $new_path 49411 49412 windows_path="$new_path" 49413 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49414 unix_path=`$CYGPATH -u "$windows_path"` 49415 new_path="$unix_path" 49416 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49417 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49418 new_path="$unix_path" 49419 fi 49420 49421 # remove trailing .exe if any 49422 new_path="${new_path/%.exe/}" 49423 49424 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49425 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49426 fi 49427 49428 else 49429 # We're on a unix platform. Hooray! :) 49430 # First separate the path from the arguments. This will split at the first 49431 # space. 49432 complete="$JTREGEXE" 49433 path="${complete%% *}" 49434 tmp="$complete EOL" 49435 arguments="${tmp#* }" 49436 49437 # Cannot rely on the command "which" here since it doesn't always work. 49438 is_absolute_path=`$ECHO "$path" | $GREP ^/` 49439 if test -z "$is_absolute_path"; then 49440 # Path to executable is not absolute. Find it. 49441 IFS_save="$IFS" 49442 IFS=: 49443 for p in $PATH; do 49444 if test -f "$p/$path" && test -x "$p/$path"; then 49445 new_path="$p/$path" 49446 break 49447 fi 49448 done 49449 IFS="$IFS_save" 49450 else 49451 # This is an absolute path, we can use it without further modifications. 49452 new_path="$path" 49453 fi 49454 49455 if test "x$new_path" = x; then 49456 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&5 49457 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&6;} 49458 has_space=`$ECHO "$complete" | $GREP " "` 49459 if test "x$has_space" != x; then 49460 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 49461 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 49462 fi 49463 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 49464 fi 49465 fi 49466 49467 # Now join together the path and the arguments once again 49468 if test "x$arguments" != xEOL; then 49469 new_complete="$new_path ${arguments% *}" 49470 else 49471 new_complete="$new_path" 49472 fi 49473 49474 if test "x$complete" != "x$new_complete"; then 49475 JTREGEXE="$new_complete" 49476 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JTREGEXE to \"$new_complete\"" >&5 49477 $as_echo "$as_me: Rewriting JTREGEXE to \"$new_complete\"" >&6;} 49478 fi 49479 fi 49480 49481 49482 # Only process if variable expands to non-empty 49483 49484 if test "x$JT_HOME" != x; then 49485 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49486 49487 # Input might be given as Windows format, start by converting to 49488 # unix format. 49489 path="$JT_HOME" 49490 new_path=`$CYGPATH -u "$path"` 49491 49492 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49493 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49494 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49495 # "foo.exe" is OK but "foo" is an error. 49496 # 49497 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49498 # It is also a way to make sure we got the proper file name for the real test later on. 49499 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49500 if test "x$test_shortpath" = x; then 49501 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 49502 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 49503 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 49504 fi 49505 49506 # Call helper function which possibly converts this using DOS-style short mode. 49507 # If so, the updated path is stored in $new_path. 49508 49509 input_path="$new_path" 49510 # Check if we need to convert this using DOS-style short mode. If the path 49511 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49512 # take no chances and rewrite it. 49513 # Note: m4 eats our [], so we need to use [ and ] instead. 49514 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49515 if test "x$has_forbidden_chars" != x; then 49516 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49517 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49518 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49519 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49520 # Going to short mode and back again did indeed matter. Since short mode is 49521 # case insensitive, let's make it lowercase to improve readability. 49522 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49523 # Now convert it back to Unix-style (cygpath) 49524 input_path=`$CYGPATH -u "$shortmode_path"` 49525 new_path="$input_path" 49526 fi 49527 fi 49528 49529 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49530 if test "x$test_cygdrive_prefix" = x; then 49531 # As a simple fix, exclude /usr/bin since it's not a real path. 49532 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49533 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49534 # a path prefixed by /cygdrive for fixpath to work. 49535 new_path="$CYGWIN_ROOT_PATH$input_path" 49536 fi 49537 fi 49538 49539 49540 if test "x$path" != "x$new_path"; then 49541 JT_HOME="$new_path" 49542 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 49543 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 49544 fi 49545 49546 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49547 49548 path="$JT_HOME" 49549 has_colon=`$ECHO $path | $GREP ^.:` 49550 new_path="$path" 49551 if test "x$has_colon" = x; then 49552 # Not in mixed or Windows style, start by that. 49553 new_path=`cmd //c echo $path` 49554 fi 49555 49556 49557 input_path="$new_path" 49558 # Check if we need to convert this using DOS-style short mode. If the path 49559 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49560 # take no chances and rewrite it. 49561 # Note: m4 eats our [], so we need to use [ and ] instead. 49562 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49563 if test "x$has_forbidden_chars" != x; then 49564 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49565 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49566 fi 49567 49568 49569 windows_path="$new_path" 49570 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49571 unix_path=`$CYGPATH -u "$windows_path"` 49572 new_path="$unix_path" 49573 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49574 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49575 new_path="$unix_path" 49576 fi 49577 49578 if test "x$path" != "x$new_path"; then 49579 JT_HOME="$new_path" 49580 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 49581 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 49582 fi 49583 49584 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49585 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49586 49587 else 49588 # We're on a unix platform. Hooray! :) 49589 path="$JT_HOME" 49590 has_space=`$ECHO "$path" | $GREP " "` 49591 if test "x$has_space" != x; then 49592 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 49593 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 49594 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49595 fi 49596 49597 # Use eval to expand a potential ~ 49598 eval path="$path" 49599 if test ! -f "$path" && test ! -d "$path"; then 49600 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 49601 fi 49602 49603 if test -d "$path"; then 49604 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 49605 else 49606 dir="`$DIRNAME "$path"`" 49607 base="`$BASENAME "$path"`" 49608 JT_HOME="`cd "$dir"; $THEPWDCMD -L`/$base" 49609 fi 49610 fi 49611 fi 49612 49613 49614 49615 49616 49617 # Setup Jib dependency tool 49618 49619 49620 # Check whether --with-jib was given. 49621 if test "${with_jib+set}" = set; then : 49622 withval=$with_jib; 49623 fi 49624 49625 49626 if test "x$with_jib" = xno || test "x$with_jib" = x; then 49627 # jib disabled 49628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jib" >&5 49629 $as_echo_n "checking for jib... " >&6; } 49630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49631 $as_echo "no" >&6; } 49632 elif test "x$with_jib" = xyes; then 49633 as_fn_error $? "Must supply a value to --with-jib" "$LINENO" 5 49634 else 49635 JIB_HOME="${with_jib}" 49636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jib" >&5 49637 $as_echo_n "checking for jib... " >&6; } 49638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JIB_HOME}" >&5 49639 $as_echo "${JIB_HOME}" >&6; } 49640 if test ! -d "${JIB_HOME}"; then 49641 as_fn_error $? "--with-jib must be a directory" "$LINENO" 5 49642 fi 49643 JIB_JAR=$(ls ${JIB_HOME}/lib/jib-*.jar) 49644 if test ! -f "${JIB_JAR}"; then 49645 as_fn_error $? "Could not find jib jar file in ${JIB_HOME}" "$LINENO" 5 49646 fi 49647 fi 49648 49649 49650 49651 49652 49653 # COMPILER_TARGET_BITS_FLAG : option for selecting 32- or 64-bit output 49654 # COMPILER_COMMAND_FILE_FLAG : option for passing a command file to the compiler 49655 # COMPILER_BINDCMD_FILE_FLAG : option for specifying a file which saves the binder 49656 # commands produced by the link step (currently AIX only) 49657 if test "x$TOOLCHAIN_TYPE" = xxlc; then 49658 COMPILER_TARGET_BITS_FLAG="-q" 49659 COMPILER_COMMAND_FILE_FLAG="-f" 49660 COMPILER_BINDCMD_FILE_FLAG="-bloadmap:" 49661 else 49662 COMPILER_TARGET_BITS_FLAG="-m" 49663 COMPILER_COMMAND_FILE_FLAG="@" 49664 COMPILER_BINDCMD_FILE_FLAG="" 49665 49666 # The solstudio linker does not support @-files. 49667 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49668 COMPILER_COMMAND_FILE_FLAG= 49669 fi 49670 49671 # Check if @file is supported by gcc 49672 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if @file is supported by gcc" >&5 49674 $as_echo_n "checking if @file is supported by gcc... " >&6; } 49675 # Extra emtpy "" to prevent ECHO from interpreting '--version' as argument 49676 $ECHO "" "--version" > command.file 49677 if $CXX @command.file 2>&5 >&5; then 49678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49679 $as_echo "yes" >&6; } 49680 COMPILER_COMMAND_FILE_FLAG="@" 49681 else 49682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49683 $as_echo "no" >&6; } 49684 COMPILER_COMMAND_FILE_FLAG= 49685 fi 49686 $RM command.file 49687 fi 49688 fi 49689 49690 49691 49692 49693 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 49694 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49695 ARFLAGS="-r" 49696 elif test "x$OPENJDK_TARGET_OS" = xaix; then 49697 ARFLAGS="-X64" 49698 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 49699 # lib.exe is used as AR to create static libraries. 49700 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 49701 else 49702 ARFLAGS="" 49703 fi 49704 49705 49706 ## Setup strip. 49707 # FIXME: should this really be per platform, or should it be per toolchain type? 49708 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 49709 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 49710 if test "x$OPENJDK_TARGET_OS" = xlinux; then 49711 STRIPFLAGS="-g" 49712 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 49713 STRIPFLAGS="-x" 49714 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 49715 STRIPFLAGS="-S" 49716 elif test "x$OPENJDK_TARGET_OS" = xaix; then 49717 STRIPFLAGS="-X32_64" 49718 fi 49719 49720 49721 49722 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49723 CC_OUT_OPTION=-Fo 49724 EXE_OUT_OPTION=-out: 49725 LD_OUT_OPTION=-out: 49726 AR_OUT_OPTION=-out: 49727 else 49728 # The option used to specify the target .o,.a or .so file. 49729 # When compiling, how to specify the to be created object file. 49730 CC_OUT_OPTION='-o$(SPACE)' 49731 # When linking, how to specify the to be created executable. 49732 EXE_OUT_OPTION='-o$(SPACE)' 49733 # When linking, how to specify the to be created dynamically linkable library. 49734 LD_OUT_OPTION='-o$(SPACE)' 49735 # When archiving, how to specify the to be create static archive for object files. 49736 AR_OUT_OPTION='rcs$(SPACE)' 49737 fi 49738 49739 49740 49741 49742 49743 # On Windows, we need to set RC flags. 49744 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49745 RC_FLAGS="-nologo -l0x409" 49746 JVM_RCFLAGS="-nologo" 49747 if test "x$DEBUG_LEVEL" = xrelease; then 49748 RC_FLAGS="$RC_FLAGS -DNDEBUG" 49749 JVM_RCFLAGS="$JVM_RCFLAGS -DNDEBUG" 49750 fi 49751 49752 # The version variables used to create RC_FLAGS may be overridden 49753 # in a custom configure script, or possibly the command line. 49754 # Let those variables be expanded at make time in spec.gmk. 49755 # The \$ are escaped to the shell, and the $(...) variables 49756 # are evaluated by make. 49757 RC_FLAGS="$RC_FLAGS \ 49758 -D\"JDK_VERSION_STRING=\$(VERSION_STRING)\" \ 49759 -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \ 49760 -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 49761 -D\"JDK_VER=\$(VERSION_NUMBER)\" \ 49762 -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 49763 -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(VERSION_MAJOR)\" \ 49764 -D\"JDK_FVER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\"" 49765 49766 JVM_RCFLAGS="$JVM_RCFLAGS \ 49767 -D\"HS_BUILD_ID=\$(VERSION_STRING)\" \ 49768 -D\"HS_COMPANY=\$(COMPANY_NAME)\" \ 49769 -D\"JDK_DOTVER=\$(VERSION_NUMBER_FOUR_POSITIONS)\" \ 49770 -D\"HS_COPYRIGHT=Copyright $COPYRIGHT_YEAR\" \ 49771 -D\"HS_NAME=\$(PRODUCT_NAME) \$(VERSION_SHORT)\" \ 49772 -D\"JDK_VER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\" \ 49773 -D\"HS_FNAME=jvm.dll\" \ 49774 -D\"HS_INTERNAL_NAME=jvm\"" 49775 fi 49776 49777 49778 49779 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49780 # silence copyright notice and other headers. 49781 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 49782 fi 49783 49784 49785 # Now we can test some aspects on the target using configure macros. 49786 49787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 49788 $as_echo_n "checking for ANSI C header files... " >&6; } 49789 if ${ac_cv_header_stdc+:} false; then : 49790 $as_echo_n "(cached) " >&6 49791 else 49792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49793 /* end confdefs.h. */ 49794 #include <stdlib.h> 49795 #include <stdarg.h> 49796 #include <string.h> 49797 #include <float.h> 49798 49799 int 49800 main () 49801 { 49802 49803 ; 49804 return 0; 49805 } 49806 _ACEOF 49807 if ac_fn_cxx_try_compile "$LINENO"; then : 49808 ac_cv_header_stdc=yes 49809 else 49810 ac_cv_header_stdc=no 49811 fi 49812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49813 49814 if test $ac_cv_header_stdc = yes; then 49815 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 49816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49817 /* end confdefs.h. */ 49818 #include <string.h> 49819 49820 _ACEOF 49821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 49822 $EGREP "memchr" >/dev/null 2>&1; then : 49823 49824 else 49825 ac_cv_header_stdc=no 49826 fi 49827 rm -f conftest* 49828 49829 fi 49830 49831 if test $ac_cv_header_stdc = yes; then 49832 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 49833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49834 /* end confdefs.h. */ 49835 #include <stdlib.h> 49836 49837 _ACEOF 49838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 49839 $EGREP "free" >/dev/null 2>&1; then : 49840 49841 else 49842 ac_cv_header_stdc=no 49843 fi 49844 rm -f conftest* 49845 49846 fi 49847 49848 if test $ac_cv_header_stdc = yes; then 49849 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 49850 if test "$cross_compiling" = yes; then : 49851 : 49852 else 49853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49854 /* end confdefs.h. */ 49855 #include <ctype.h> 49856 #include <stdlib.h> 49857 #if ((' ' & 0x0FF) == 0x020) 49858 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 49859 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 49860 #else 49861 # define ISLOWER(c) \ 49862 (('a' <= (c) && (c) <= 'i') \ 49863 || ('j' <= (c) && (c) <= 'r') \ 49864 || ('s' <= (c) && (c) <= 'z')) 49865 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 49866 #endif 49867 49868 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 49869 int 49870 main () 49871 { 49872 int i; 49873 for (i = 0; i < 256; i++) 49874 if (XOR (islower (i), ISLOWER (i)) 49875 || toupper (i) != TOUPPER (i)) 49876 return 2; 49877 return 0; 49878 } 49879 _ACEOF 49880 if ac_fn_cxx_try_run "$LINENO"; then : 49881 49882 else 49883 ac_cv_header_stdc=no 49884 fi 49885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 49886 conftest.$ac_objext conftest.beam conftest.$ac_ext 49887 fi 49888 49889 fi 49890 fi 49891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 49892 $as_echo "$ac_cv_header_stdc" >&6; } 49893 if test $ac_cv_header_stdc = yes; then 49894 49895 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 49896 49897 fi 49898 49899 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 49900 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 49901 inttypes.h stdint.h unistd.h 49902 do : 49903 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 49904 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 49905 " 49906 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 49907 cat >>confdefs.h <<_ACEOF 49908 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 49909 _ACEOF 49910 49911 fi 49912 49913 done 49914 49915 49916 49917 ############################################################################### 49918 # 49919 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 49920 # (The JVM can use 32 or 64 bit Java pointers but that decision 49921 # is made at runtime.) 49922 # 49923 49924 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 49925 # Always specify -m flag on Solaris 49926 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 49927 49928 # When we add flags to the "official" CFLAGS etc, we need to 49929 # keep track of these additions in ADDED_CFLAGS etc. These 49930 # will later be checked to make sure only controlled additions 49931 # have been made to CFLAGS etc. 49932 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49933 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49934 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49935 49936 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 49937 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 49938 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 49939 49940 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 49941 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 49942 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 49943 49944 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 49945 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 49946 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 49947 49948 elif test "x$COMPILE_TYPE" = xreduced; then 49949 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 49950 # Specify -m if running reduced on unix platforms 49951 49952 # When we add flags to the "official" CFLAGS etc, we need to 49953 # keep track of these additions in ADDED_CFLAGS etc. These 49954 # will later be checked to make sure only controlled additions 49955 # have been made to CFLAGS etc. 49956 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49957 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49958 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49959 49960 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 49961 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 49962 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 49963 49964 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 49965 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 49966 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 49967 49968 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 49969 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 49970 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 49971 49972 fi 49973 fi 49974 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49975 JVM_CFLAGS="$JVM_CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49976 JVM_LDFLAGS="$JVM_LDFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49977 JVM_ASFLAGS="$JVM_ASFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49978 fi 49979 49980 # Make compilation sanity check 49981 for ac_header in stdio.h 49982 do : 49983 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 49984 if test "x$ac_cv_header_stdio_h" = xyes; then : 49985 cat >>confdefs.h <<_ACEOF 49986 #define HAVE_STDIO_H 1 49987 _ACEOF 49988 49989 else 49990 49991 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 49992 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 49993 if test "x$COMPILE_TYPE" = xreduced; then 49994 49995 # Print a helpful message on how to acquire the necessary build dependency. 49996 # reduced is the help tag: freetype, cups, alsa etc 49997 MISSING_DEPENDENCY=reduced 49998 49999 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50000 cygwin_help $MISSING_DEPENDENCY 50001 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50002 msys_help $MISSING_DEPENDENCY 50003 else 50004 PKGHANDLER_COMMAND= 50005 50006 case $PKGHANDLER in 50007 apt-get) 50008 apt_help $MISSING_DEPENDENCY ;; 50009 yum) 50010 yum_help $MISSING_DEPENDENCY ;; 50011 brew) 50012 brew_help $MISSING_DEPENDENCY ;; 50013 port) 50014 port_help $MISSING_DEPENDENCY ;; 50015 pkgutil) 50016 pkgutil_help $MISSING_DEPENDENCY ;; 50017 pkgadd) 50018 pkgadd_help $MISSING_DEPENDENCY ;; 50019 esac 50020 50021 if test "x$PKGHANDLER_COMMAND" != x; then 50022 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 50023 fi 50024 fi 50025 50026 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 50027 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 50028 elif test "x$COMPILE_TYPE" = xcross; then 50029 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 50030 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 50031 fi 50032 as_fn_error $? "Cannot continue." "$LINENO" 5 50033 50034 fi 50035 50036 done 50037 50038 50039 # The cast to long int works around a bug in the HP C Compiler 50040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 50041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 50042 # This bug is HP SR number 8606223364. 50043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 50044 $as_echo_n "checking size of int *... " >&6; } 50045 if ${ac_cv_sizeof_int_p+:} false; then : 50046 $as_echo_n "(cached) " >&6 50047 else 50048 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 50049 50050 else 50051 if test "$ac_cv_type_int_p" = yes; then 50052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 50053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 50054 as_fn_error 77 "cannot compute sizeof (int *) 50055 See \`config.log' for more details" "$LINENO" 5; } 50056 else 50057 ac_cv_sizeof_int_p=0 50058 fi 50059 fi 50060 50061 fi 50062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 50063 $as_echo "$ac_cv_sizeof_int_p" >&6; } 50064 50065 50066 50067 cat >>confdefs.h <<_ACEOF 50068 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 50069 _ACEOF 50070 50071 50072 50073 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 50074 if test "x$ac_cv_sizeof_int_p" = x; then 50075 # The test failed, lets stick to the assumed value. 50076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&5 50077 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 50078 else 50079 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 50080 50081 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 50082 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 50083 # Let's try to implicitely set the compilers target architecture and retry the test 50084 { $as_echo "$as_me:${as_lineno-$LINENO}: The tested number of bits in the target ($TESTED_TARGET_CPU_BITS) differs from the number of bits expected to be found in the target ($OPENJDK_TARGET_CPU_BITS)." >&5 50085 $as_echo "$as_me: The tested number of bits in the target ($TESTED_TARGET_CPU_BITS) differs from the number of bits expected to be found in the target ($OPENJDK_TARGET_CPU_BITS)." >&6;} 50086 { $as_echo "$as_me:${as_lineno-$LINENO}: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&5 50087 $as_echo "$as_me: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&6;} 50088 50089 # When we add flags to the "official" CFLAGS etc, we need to 50090 # keep track of these additions in ADDED_CFLAGS etc. These 50091 # will later be checked to make sure only controlled additions 50092 # have been made to CFLAGS etc. 50093 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50094 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50095 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50096 50097 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 50098 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 50099 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 50100 50101 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 50102 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 50103 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 50104 50105 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 50106 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 50107 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 50108 50109 50110 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 50111 unset ac_cv_sizeof_int_p 50112 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 50113 cat >>confdefs.h <<_ACEOF 50114 #undef SIZEOF_INT_P 50115 _ACEOF 50116 50117 # The cast to long int works around a bug in the HP C Compiler 50118 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 50119 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 50120 # This bug is HP SR number 8606223364. 50121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 50122 $as_echo_n "checking size of int *... " >&6; } 50123 if ${ac_cv_sizeof_int_p+:} false; then : 50124 $as_echo_n "(cached) " >&6 50125 else 50126 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 50127 50128 else 50129 if test "$ac_cv_type_int_p" = yes; then 50130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 50131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 50132 as_fn_error 77 "cannot compute sizeof (int *) 50133 See \`config.log' for more details" "$LINENO" 5; } 50134 else 50135 ac_cv_sizeof_int_p=0 50136 fi 50137 fi 50138 50139 fi 50140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 50141 $as_echo "$ac_cv_sizeof_int_p" >&6; } 50142 50143 50144 50145 cat >>confdefs.h <<_ACEOF 50146 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 50147 _ACEOF 50148 50149 50150 50151 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 50152 50153 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 50154 { $as_echo "$as_me:${as_lineno-$LINENO}: The tested number of bits in the target ($TESTED_TARGET_CPU_BITS) differs from the number of bits expected to be found in the target ($OPENJDK_TARGET_CPU_BITS)" >&5 50155 $as_echo "$as_me: The tested number of bits in the target ($TESTED_TARGET_CPU_BITS) differs from the number of bits expected to be found in the target ($OPENJDK_TARGET_CPU_BITS)" >&6;} 50156 if test "x$COMPILE_TYPE" = xreduced; then 50157 50158 # Print a helpful message on how to acquire the necessary build dependency. 50159 # reduced is the help tag: freetype, cups, alsa etc 50160 MISSING_DEPENDENCY=reduced 50161 50162 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50163 cygwin_help $MISSING_DEPENDENCY 50164 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50165 msys_help $MISSING_DEPENDENCY 50166 else 50167 PKGHANDLER_COMMAND= 50168 50169 case $PKGHANDLER in 50170 apt-get) 50171 apt_help $MISSING_DEPENDENCY ;; 50172 yum) 50173 yum_help $MISSING_DEPENDENCY ;; 50174 brew) 50175 brew_help $MISSING_DEPENDENCY ;; 50176 port) 50177 port_help $MISSING_DEPENDENCY ;; 50178 pkgutil) 50179 pkgutil_help $MISSING_DEPENDENCY ;; 50180 pkgadd) 50181 pkgadd_help $MISSING_DEPENDENCY ;; 50182 esac 50183 50184 if test "x$PKGHANDLER_COMMAND" != x; then 50185 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 50186 fi 50187 fi 50188 50189 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 50190 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 50191 elif test "x$COMPILE_TYPE" = xcross; then 50192 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 50193 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 50194 fi 50195 as_fn_error $? "Cannot continue." "$LINENO" 5 50196 fi 50197 fi 50198 fi 50199 50200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 50201 $as_echo_n "checking for target address size... " >&6; } 50202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 50203 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 50204 50205 50206 ############################################################################### 50207 # 50208 # Is the target little of big endian? 50209 # 50210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 50211 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 50212 if ${ac_cv_c_bigendian+:} false; then : 50213 $as_echo_n "(cached) " >&6 50214 else 50215 ac_cv_c_bigendian=unknown 50216 # See if we're dealing with a universal compiler. 50217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50218 /* end confdefs.h. */ 50219 #ifndef __APPLE_CC__ 50220 not a universal capable compiler 50221 #endif 50222 typedef int dummy; 50223 50224 _ACEOF 50225 if ac_fn_cxx_try_compile "$LINENO"; then : 50226 50227 # Check for potential -arch flags. It is not universal unless 50228 # there are at least two -arch flags with different values. 50229 ac_arch= 50230 ac_prev= 50231 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 50232 if test -n "$ac_prev"; then 50233 case $ac_word in 50234 i?86 | x86_64 | ppc | ppc64) 50235 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 50236 ac_arch=$ac_word 50237 else 50238 ac_cv_c_bigendian=universal 50239 break 50240 fi 50241 ;; 50242 esac 50243 ac_prev= 50244 elif test "x$ac_word" = "x-arch"; then 50245 ac_prev=arch 50246 fi 50247 done 50248 fi 50249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50250 if test $ac_cv_c_bigendian = unknown; then 50251 # See if sys/param.h defines the BYTE_ORDER macro. 50252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50253 /* end confdefs.h. */ 50254 #include <sys/types.h> 50255 #include <sys/param.h> 50256 50257 int 50258 main () 50259 { 50260 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 50261 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 50262 && LITTLE_ENDIAN) 50263 bogus endian macros 50264 #endif 50265 50266 ; 50267 return 0; 50268 } 50269 _ACEOF 50270 if ac_fn_cxx_try_compile "$LINENO"; then : 50271 # It does; now see whether it defined to BIG_ENDIAN or not. 50272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50273 /* end confdefs.h. */ 50274 #include <sys/types.h> 50275 #include <sys/param.h> 50276 50277 int 50278 main () 50279 { 50280 #if BYTE_ORDER != BIG_ENDIAN 50281 not big endian 50282 #endif 50283 50284 ; 50285 return 0; 50286 } 50287 _ACEOF 50288 if ac_fn_cxx_try_compile "$LINENO"; then : 50289 ac_cv_c_bigendian=yes 50290 else 50291 ac_cv_c_bigendian=no 50292 fi 50293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50294 fi 50295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50296 fi 50297 if test $ac_cv_c_bigendian = unknown; then 50298 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 50299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50300 /* end confdefs.h. */ 50301 #include <limits.h> 50302 50303 int 50304 main () 50305 { 50306 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 50307 bogus endian macros 50308 #endif 50309 50310 ; 50311 return 0; 50312 } 50313 _ACEOF 50314 if ac_fn_cxx_try_compile "$LINENO"; then : 50315 # It does; now see whether it defined to _BIG_ENDIAN or not. 50316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50317 /* end confdefs.h. */ 50318 #include <limits.h> 50319 50320 int 50321 main () 50322 { 50323 #ifndef _BIG_ENDIAN 50324 not big endian 50325 #endif 50326 50327 ; 50328 return 0; 50329 } 50330 _ACEOF 50331 if ac_fn_cxx_try_compile "$LINENO"; then : 50332 ac_cv_c_bigendian=yes 50333 else 50334 ac_cv_c_bigendian=no 50335 fi 50336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50337 fi 50338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50339 fi 50340 if test $ac_cv_c_bigendian = unknown; then 50341 # Compile a test program. 50342 if test "$cross_compiling" = yes; then : 50343 # Try to guess by grepping values from an object file. 50344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50345 /* end confdefs.h. */ 50346 short int ascii_mm[] = 50347 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 50348 short int ascii_ii[] = 50349 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 50350 int use_ascii (int i) { 50351 return ascii_mm[i] + ascii_ii[i]; 50352 } 50353 short int ebcdic_ii[] = 50354 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 50355 short int ebcdic_mm[] = 50356 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 50357 int use_ebcdic (int i) { 50358 return ebcdic_mm[i] + ebcdic_ii[i]; 50359 } 50360 extern int foo; 50361 50362 int 50363 main () 50364 { 50365 return use_ascii (foo) == use_ebcdic (foo); 50366 ; 50367 return 0; 50368 } 50369 _ACEOF 50370 if ac_fn_cxx_try_compile "$LINENO"; then : 50371 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 50372 ac_cv_c_bigendian=yes 50373 fi 50374 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 50375 if test "$ac_cv_c_bigendian" = unknown; then 50376 ac_cv_c_bigendian=no 50377 else 50378 # finding both strings is unlikely to happen, but who knows? 50379 ac_cv_c_bigendian=unknown 50380 fi 50381 fi 50382 fi 50383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50384 else 50385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50386 /* end confdefs.h. */ 50387 $ac_includes_default 50388 int 50389 main () 50390 { 50391 50392 /* Are we little or big endian? From Harbison&Steele. */ 50393 union 50394 { 50395 long int l; 50396 char c[sizeof (long int)]; 50397 } u; 50398 u.l = 1; 50399 return u.c[sizeof (long int) - 1] == 1; 50400 50401 ; 50402 return 0; 50403 } 50404 _ACEOF 50405 if ac_fn_cxx_try_run "$LINENO"; then : 50406 ac_cv_c_bigendian=no 50407 else 50408 ac_cv_c_bigendian=yes 50409 fi 50410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 50411 conftest.$ac_objext conftest.beam conftest.$ac_ext 50412 fi 50413 50414 fi 50415 fi 50416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 50417 $as_echo "$ac_cv_c_bigendian" >&6; } 50418 case $ac_cv_c_bigendian in #( 50419 yes) 50420 ENDIAN="big";; #( 50421 no) 50422 ENDIAN="little" ;; #( 50423 universal) 50424 ENDIAN="universal_endianness" 50425 ;; #( 50426 *) 50427 ENDIAN="unknown" ;; 50428 esac 50429 50430 50431 if test "x$ENDIAN" = xuniversal_endianness; then 50432 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 50433 fi 50434 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 50435 as_fn_error $? "The tested endian in the target ($ENDIAN) differs from the endian expected to be found in the target ($OPENJDK_TARGET_CPU_ENDIAN)" "$LINENO" 5 50436 fi 50437 50438 50439 # Configure flags for the tools 50440 50441 ############################################################################### 50442 # 50443 # How to compile shared libraries. 50444 # 50445 50446 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50447 PICFLAG="-fPIC" 50448 C_FLAG_REORDER='' 50449 CXX_FLAG_REORDER='' 50450 50451 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50452 # Linking is different on MacOSX 50453 if test "x$STATIC_BUILD" = xtrue; then 50454 SHARED_LIBRARY_FLAGS ='-undefined dynamic_lookup' 50455 else 50456 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 50457 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 50458 fi 50459 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path$(or $1,/.)' 50460 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 50461 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 50462 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 50463 else 50464 # Default works for linux, might work on other platforms as well. 50465 SHARED_LIBRARY_FLAGS='-shared' 50466 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$ORIGIN$1' 50467 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 50468 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 50469 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 50470 fi 50471 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50472 C_FLAG_REORDER='' 50473 CXX_FLAG_REORDER='' 50474 50475 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50476 # Linking is different on MacOSX 50477 PICFLAG='' 50478 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 50479 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path$(or $1,/.)' 50480 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 50481 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 50482 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 50483 50484 if test "x$STATIC_BUILD" = xfalse; then 50485 JVM_CFLAGS="$JVM_CFLAGS -fPIC" 50486 fi 50487 else 50488 # Default works for linux, might work on other platforms as well. 50489 PICFLAG='-fPIC' 50490 SHARED_LIBRARY_FLAGS='-shared' 50491 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$ORIGIN$1' 50492 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 50493 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 50494 50495 # arm specific settings 50496 if test "x$OPENJDK_TARGET_CPU" = "xarm"; then 50497 # '-Wl,-z,origin' isn't used on arm. 50498 SET_SHARED_LIBRARY_ORIGIN='-Wl,-rpath,\$$$$ORIGIN$1' 50499 else 50500 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 50501 fi 50502 50503 fi 50504 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50505 if test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 50506 PICFLAG="-xcode=pic32" 50507 else 50508 PICFLAG="-KPIC" 50509 fi 50510 C_FLAG_REORDER='-xF' 50511 CXX_FLAG_REORDER='-xF' 50512 SHARED_LIBRARY_FLAGS="-G" 50513 SET_EXECUTABLE_ORIGIN='-R\$$ORIGIN$1' 50514 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 50515 SET_SHARED_LIBRARY_NAME='-h $1' 50516 SET_SHARED_LIBRARY_MAPFILE='-M$1' 50517 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50518 # '-qpic' defaults to 'qpic=small'. This means that the compiler generates only 50519 # one instruction for accessing the TOC. If the TOC grows larger than 64K, the linker 50520 # will have to patch this single instruction with a call to some out-of-order code which 50521 # does the load from the TOC. This is of course slow. But in that case we also would have 50522 # to use '-bbigtoc' for linking anyway so we could also change the PICFLAG to 'qpic=large'. 50523 # With 'qpic=large' the compiler will by default generate a two-instruction sequence which 50524 # can be patched directly by the linker and does not require a jump to out-of-order code. 50525 # Another alternative instead of using 'qpic=large -bbigtoc' may be to use '-qminimaltoc' 50526 # instead. This creates a distinct TOC for every compilation unit (and thus requires two 50527 # loads for accessing a global variable). But there are rumors that this may be seen as a 50528 # 'performance feature' because of improved code locality of the symbols used in a 50529 # compilation unit. 50530 PICFLAG="-qpic" 50531 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 50532 C_FLAG_REORDER='' 50533 CXX_FLAG_REORDER='' 50534 SHARED_LIBRARY_FLAGS="-qmkshrobj -bM:SRE -bnoentry" 50535 SET_EXECUTABLE_ORIGIN="" 50536 SET_SHARED_LIBRARY_ORIGIN='' 50537 SET_SHARED_LIBRARY_NAME='' 50538 SET_SHARED_LIBRARY_MAPFILE='' 50539 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50540 PICFLAG="" 50541 C_FLAG_REORDER='' 50542 CXX_FLAG_REORDER='' 50543 SHARED_LIBRARY_FLAGS="-dll" 50544 SET_EXECUTABLE_ORIGIN='' 50545 SET_SHARED_LIBRARY_ORIGIN='' 50546 SET_SHARED_LIBRARY_NAME='' 50547 SET_SHARED_LIBRARY_MAPFILE='-def:$1' 50548 fi 50549 50550 50551 50552 50553 50554 50555 50556 50557 50558 # The (cross) compiler is now configured, we can now test capabilities 50559 # of the target platform. 50560 50561 50562 50563 ############################################################################### 50564 # 50565 # Setup the opt flags for different compilers 50566 # and different operating systems. 50567 # 50568 50569 # FIXME: this was indirectly the old default, but just inherited. 50570 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50571 # C_FLAG_DEPS="-MMD -MF" 50572 # fi 50573 50574 # Generate make dependency files 50575 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50576 C_FLAG_DEPS="-MMD -MF" 50577 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50578 C_FLAG_DEPS="-MMD -MF" 50579 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50580 C_FLAG_DEPS="-xMMD -xMF" 50581 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50582 C_FLAG_DEPS="-qmakedep=gcc -MF" 50583 fi 50584 CXX_FLAG_DEPS="$C_FLAG_DEPS" 50585 50586 50587 50588 # Debug symbols 50589 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50590 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 50591 # reduce from default "-g2" option to save space 50592 CFLAGS_DEBUG_SYMBOLS="-g1" 50593 CXXFLAGS_DEBUG_SYMBOLS="-g1" 50594 else 50595 CFLAGS_DEBUG_SYMBOLS="-g" 50596 CXXFLAGS_DEBUG_SYMBOLS="-g" 50597 fi 50598 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50599 CFLAGS_DEBUG_SYMBOLS="-g" 50600 CXXFLAGS_DEBUG_SYMBOLS="-g" 50601 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50602 CFLAGS_DEBUG_SYMBOLS="-g -xs" 50603 # -g0 enables debug symbols without disabling inlining. 50604 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 50605 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50606 CFLAGS_DEBUG_SYMBOLS="-g" 50607 CXXFLAGS_DEBUG_SYMBOLS="-g" 50608 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50609 CFLAGS_DEBUG_SYMBOLS="-Zi" 50610 CXXFLAGS_DEBUG_SYMBOLS="-Zi" 50611 fi 50612 50613 50614 50615 # Debug symbols for JVM_CFLAGS 50616 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50617 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -xs" 50618 if test "x$DEBUG_LEVEL" = xslowdebug; then 50619 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 50620 else 50621 # -g0 does not disable inlining, which -g does. 50622 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g0" 50623 fi 50624 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50625 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -Z7 -d2Zi+" 50626 else 50627 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 50628 fi 50629 50630 50631 # bounds, memory and behavior checking options 50632 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50633 case $DEBUG_LEVEL in 50634 release ) 50635 # no adjustment 50636 ;; 50637 fastdebug ) 50638 # no adjustment 50639 ;; 50640 slowdebug ) 50641 # FIXME: By adding this to C(XX)FLAGS_DEBUG_OPTIONS/JVM_CFLAGS_SYMBOLS it 50642 # get's added conditionally on whether we produce debug symbols or not. 50643 # This is most likely not really correct. 50644 50645 # Add runtime stack smashing and undefined behavior checks. 50646 # Not all versions of gcc support -fstack-protector 50647 STACK_PROTECTOR_CFLAG="-fstack-protector-all" 50648 50649 50650 50651 50652 50653 50654 50655 50656 50657 50658 50659 50660 50661 50662 50663 50664 50665 50666 50667 50668 50669 50670 50671 50672 50673 50674 50675 50676 50677 50678 50679 50680 50681 50682 50683 50684 50685 50686 50687 50688 50689 50690 # Execute function body 50691 50692 50693 50694 50695 50696 50697 50698 50699 50700 50701 50702 50703 50704 50705 50706 50707 50708 50709 50710 50711 50712 50713 50714 50715 50716 50717 50718 50719 50720 50721 50722 50723 50724 50725 50726 50727 50728 50729 50730 50731 50732 50733 50734 50735 50736 50737 50738 50739 # Execute function body 50740 50741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 50742 $as_echo_n "checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 50743 supports=yes 50744 50745 saved_cflags="$CFLAGS" 50746 CFLAGS="$CFLAGS $STACK_PROTECTOR_CFLAG -Werror" 50747 ac_ext=c 50748 ac_cpp='$CPP $CPPFLAGS' 50749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50751 ac_compiler_gnu=$ac_cv_c_compiler_gnu 50752 50753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50754 /* end confdefs.h. */ 50755 int i; 50756 _ACEOF 50757 if ac_fn_c_try_compile "$LINENO"; then : 50758 50759 else 50760 supports=no 50761 fi 50762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50763 ac_ext=cpp 50764 ac_cpp='$CXXCPP $CPPFLAGS' 50765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50768 50769 CFLAGS="$saved_cflags" 50770 50771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 50772 $as_echo "$supports" >&6; } 50773 if test "x$supports" = "xyes" ; then 50774 : 50775 C_COMP_SUPPORTS="yes" 50776 else 50777 : 50778 C_COMP_SUPPORTS="no" 50779 fi 50780 50781 50782 50783 50784 50785 50786 50787 50788 50789 50790 50791 50792 50793 50794 50795 50796 50797 50798 50799 50800 50801 50802 50803 50804 50805 50806 50807 50808 50809 50810 50811 50812 50813 50814 50815 50816 50817 50818 50819 50820 50821 50822 50823 50824 50825 50826 50827 50828 50829 50830 50831 50832 50833 50834 50835 50836 50837 50838 50839 # Execute function body 50840 50841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 50842 $as_echo_n "checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 50843 supports=yes 50844 50845 saved_cxxflags="$CXXFLAGS" 50846 CXXFLAGS="$CXXFLAG $STACK_PROTECTOR_CFLAG -Werror" 50847 ac_ext=cpp 50848 ac_cpp='$CXXCPP $CPPFLAGS' 50849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50852 50853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50854 /* end confdefs.h. */ 50855 int i; 50856 _ACEOF 50857 if ac_fn_cxx_try_compile "$LINENO"; then : 50858 50859 else 50860 supports=no 50861 fi 50862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50863 ac_ext=cpp 50864 ac_cpp='$CXXCPP $CPPFLAGS' 50865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50868 50869 CXXFLAGS="$saved_cxxflags" 50870 50871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 50872 $as_echo "$supports" >&6; } 50873 if test "x$supports" = "xyes" ; then 50874 : 50875 CXX_COMP_SUPPORTS="yes" 50876 else 50877 : 50878 CXX_COMP_SUPPORTS="no" 50879 fi 50880 50881 50882 50883 50884 50885 50886 50887 50888 50889 50890 50891 50892 50893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 50894 $as_echo_n "checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 50895 supports=no 50896 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 50897 50898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 50899 $as_echo "$supports" >&6; } 50900 if test "x$supports" = "xyes" ; then 50901 : 50902 50903 else 50904 : 50905 STACK_PROTECTOR_CFLAG="" 50906 fi 50907 50908 50909 50910 50911 50912 50913 50914 CFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 50915 CXXFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 50916 if test "x$STACK_PROTECTOR_CFLAG" != x; then 50917 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS $STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 50918 fi 50919 ;; 50920 esac 50921 fi 50922 50923 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50924 if test "x$DEBUG_LEVEL" != xrelease; then 50925 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 50926 JVM_CFLAGS="$JVM_CFLAGS -homeparams" 50927 fi 50928 fi 50929 fi 50930 50931 # Optimization levels 50932 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50933 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 50934 50935 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 50936 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 50937 C_O_FLAG_HIGHEST_JVM="-xO4" 50938 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 50939 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 50940 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 50941 C_O_FLAG_DEBUG="-xregs=no%frameptr" 50942 C_O_FLAG_DEBUG_JVM="" 50943 C_O_FLAG_NONE="-xregs=no%frameptr" 50944 CXX_O_FLAG_HIGHEST_JVM="-xO4" 50945 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 50946 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 50947 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 50948 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 50949 CXX_O_FLAG_DEBUG_JVM="" 50950 CXX_O_FLAG_NONE="-xregs=no%frameptr" 50951 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 50952 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 50953 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 50954 fi 50955 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 50956 C_O_FLAG_HIGHEST_JVM="-xO4" 50957 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 50958 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 50959 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 50960 C_O_FLAG_DEBUG="" 50961 C_O_FLAG_DEBUG_JVM="" 50962 C_O_FLAG_NONE="" 50963 CXX_O_FLAG_HIGHEST_JVM="-xO4" 50964 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 50965 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 50966 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 50967 CXX_O_FLAG_DEBUG="" 50968 CXX_O_FLAG_DEBUG_JVM="" 50969 CXX_O_FLAG_NONE="" 50970 fi 50971 else 50972 # The remaining toolchains share opt flags between CC and CXX; 50973 # setup for C and duplicate afterwards. 50974 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50975 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50976 # On MacOSX we optimize for size, something 50977 # we should do for all platforms? 50978 C_O_FLAG_HIGHEST_JVM="-Os" 50979 C_O_FLAG_HIGHEST="-Os" 50980 C_O_FLAG_HI="-Os" 50981 C_O_FLAG_NORM="-Os" 50982 C_O_FLAG_SIZE="-Os" 50983 else 50984 C_O_FLAG_HIGHEST_JVM="-O3" 50985 C_O_FLAG_HIGHEST="-O3" 50986 C_O_FLAG_HI="-O3" 50987 C_O_FLAG_NORM="-O2" 50988 C_O_FLAG_SIZE="-Os" 50989 fi 50990 C_O_FLAG_DEBUG="-O0" 50991 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50992 C_O_FLAG_DEBUG_JVM="" 50993 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 50994 C_O_FLAG_DEBUG_JVM="-O0" 50995 fi 50996 C_O_FLAG_NONE="-O0" 50997 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50998 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50999 # On MacOSX we optimize for size, something 51000 # we should do for all platforms? 51001 C_O_FLAG_HIGHEST_JVM="-Os" 51002 C_O_FLAG_HIGHEST="-Os" 51003 C_O_FLAG_HI="-Os" 51004 C_O_FLAG_NORM="-Os" 51005 C_O_FLAG_SIZE="-Os" 51006 else 51007 C_O_FLAG_HIGHEST_JVM="-O3" 51008 C_O_FLAG_HIGHEST="-O3" 51009 C_O_FLAG_HI="-O3" 51010 C_O_FLAG_NORM="-O2" 51011 C_O_FLAG_SIZE="-Os" 51012 fi 51013 C_O_FLAG_DEBUG="-O0" 51014 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51015 C_O_FLAG_DEBUG_JVM="" 51016 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 51017 C_O_FLAG_DEBUG_JVM="-O0" 51018 fi 51019 C_O_FLAG_NONE="-O0" 51020 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51021 C_O_FLAG_HIGHEST_JVM="-O3 -qhot=level=1 -qinline -qinlglue" 51022 C_O_FLAG_HIGHEST="-O3 -qhot=level=1 -qinline -qinlglue" 51023 C_O_FLAG_HI="-O3 -qinline -qinlglue" 51024 C_O_FLAG_NORM="-O2" 51025 C_O_FLAG_DEBUG="-qnoopt" 51026 # FIXME: Value below not verified. 51027 C_O_FLAG_DEBUG_JVM="" 51028 C_O_FLAG_NONE="-qnoopt" 51029 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51030 C_O_FLAG_HIGHEST_JVM="-O2 -Oy-" 51031 C_O_FLAG_HIGHEST="-O2" 51032 C_O_FLAG_HI="-O1" 51033 C_O_FLAG_NORM="-O1" 51034 C_O_FLAG_DEBUG="-Od" 51035 C_O_FLAG_DEBUG_JVM="" 51036 C_O_FLAG_NONE="-Od" 51037 C_O_FLAG_SIZE="-Os" 51038 fi 51039 CXX_O_FLAG_HIGHEST_JVM="$C_O_FLAG_HIGHEST_JVM" 51040 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 51041 CXX_O_FLAG_HI="$C_O_FLAG_HI" 51042 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 51043 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 51044 CXX_O_FLAG_DEBUG_JVM="$C_O_FLAG_DEBUG_JVM" 51045 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 51046 CXX_O_FLAG_SIZE="$C_O_FLAG_SIZE" 51047 fi 51048 51049 # Adjust optimization flags according to debug level. 51050 case $DEBUG_LEVEL in 51051 release ) 51052 # no adjustment 51053 ;; 51054 fastdebug ) 51055 # Not quite so much optimization 51056 C_O_FLAG_HI="$C_O_FLAG_NORM" 51057 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 51058 ;; 51059 slowdebug ) 51060 # Disable optimization 51061 C_O_FLAG_HIGHEST_JVM="$C_O_FLAG_DEBUG_JVM" 51062 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 51063 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 51064 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 51065 C_O_FLAG_SIZE="$C_O_FLAG_DEBUG" 51066 CXX_O_FLAG_HIGHEST_JVM="$CXX_O_FLAG_DEBUG_JVM" 51067 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 51068 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 51069 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 51070 CXX_O_FLAG_SIZE="$CXX_O_FLAG_DEBUG" 51071 ;; 51072 esac 51073 51074 51075 51076 51077 51078 51079 51080 51081 51082 51083 51084 51085 51086 51087 51088 51089 51090 51091 51092 51093 # Check whether --with-abi-profile was given. 51094 if test "${with_abi_profile+set}" = set; then : 51095 withval=$with_abi_profile; 51096 fi 51097 51098 51099 if test "x$with_abi_profile" != x; then 51100 if test "x$OPENJDK_TARGET_CPU" != xarm && \ 51101 test "x$OPENJDK_TARGET_CPU" != xaarch64; then 51102 as_fn_error $? "--with-abi-profile only available on arm/aarch64" "$LINENO" 5 51103 fi 51104 51105 OPENJDK_TARGET_ABI_PROFILE=$with_abi_profile 51106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ABI profle" >&5 51107 $as_echo_n "checking for ABI profle... " >&6; } 51108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_ABI_PROFILE" >&5 51109 $as_echo "$OPENJDK_TARGET_ABI_PROFILE" >&6; } 51110 51111 if test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-vfp-sflt; then 51112 ARM_FLOAT_TYPE=vfp-sflt 51113 ARM_ARCH_TYPE_FLAGS='-march=armv7-a -mthumb' 51114 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-vfp-hflt; then 51115 ARM_FLOAT_TYPE=vfp-hflt 51116 ARM_ARCH_TYPE_FLAGS='-march=armv7-a -mthumb' 51117 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-sflt; then 51118 ARM_FLOAT_TYPE=sflt 51119 ARM_ARCH_TYPE_FLAGS='-march=armv5t -marm' 51120 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarmv5-vfp-sflt; then 51121 ARM_FLOAT_TYPE=vfp-sflt 51122 ARM_ARCH_TYPE_FLAGS='-march=armv5t -marm' 51123 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarmv6-vfp-hflt; then 51124 ARM_FLOAT_TYPE=vfp-hflt 51125 ARM_ARCH_TYPE_FLAGS='-march=armv6 -marm' 51126 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm64; then 51127 # No special flags, just need to trigger setting JDK_ARCH_ABI_PROP_NAME 51128 ARM_FLOAT_TYPE= 51129 ARM_ARCH_TYPE_FLAGS= 51130 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xaarch64; then 51131 # No special flags, just need to trigger setting JDK_ARCH_ABI_PROP_NAME 51132 ARM_FLOAT_TYPE= 51133 ARM_ARCH_TYPE_FLAGS= 51134 else 51135 as_fn_error $? "Invalid ABI profile: \"$OPENJDK_TARGET_ABI_PROFILE\"" "$LINENO" 5 51136 fi 51137 51138 if test "x$ARM_FLOAT_TYPE" = xvfp-sflt; then 51139 ARM_FLOAT_TYPE_FLAGS='-mfloat-abi=softfp -mfpu=vfp -DFLOAT_ARCH=-vfp-sflt' 51140 elif test "x$ARM_FLOAT_TYPE" = xvfp-hflt; then 51141 ARM_FLOAT_TYPE_FLAGS='-mfloat-abi=hard -mfpu=vfp -DFLOAT_ARCH=-vfp-hflt' 51142 elif test "x$ARM_FLOAT_TYPE" = xsflt; then 51143 ARM_FLOAT_TYPE_FLAGS='-msoft-float -mfpu=vfp' 51144 fi 51145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ARM_FLOAT_TYPE floating point flags" >&5 51146 $as_echo_n "checking for $ARM_FLOAT_TYPE floating point flags... " >&6; } 51147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARM_FLOAT_TYPE_FLAGS" >&5 51148 $as_echo "$ARM_FLOAT_TYPE_FLAGS" >&6; } 51149 51150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arch type flags" >&5 51151 $as_echo_n "checking for arch type flags... " >&6; } 51152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARM_ARCH_TYPE_FLAGS" >&5 51153 $as_echo "$ARM_ARCH_TYPE_FLAGS" >&6; } 51154 51155 # Now set JDK_ARCH_ABI_PROP_NAME. This is equivalent to the last part of the 51156 # autoconf target triplet. 51157 JDK_ARCH_ABI_PROP_NAME=`$ECHO $OPENJDK_TARGET_AUTOCONF_NAME | $SED -e 's/.*-\([^-]*\)$/\1/'` 51158 # Sanity check that it is a known ABI. 51159 if test "x$JDK_ARCH_ABI_PROP_NAME" != xgnu && \ 51160 test "x$JDK_ARCH_ABI_PROP_NAME" != xgnueabi && \ 51161 test "x$JDK_ARCH_ABI_PROP_NAME" != xgnueabihf; then 51162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown autoconf target triplet ABI: \"$JDK_ARCH_ABI_PROP_NAME\"" >&5 51163 $as_echo "$as_me: WARNING: Unknown autoconf target triplet ABI: \"$JDK_ARCH_ABI_PROP_NAME\"" >&2;} 51164 fi 51165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ABI property name" >&5 51166 $as_echo_n "checking for ABI property name... " >&6; } 51167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_ARCH_ABI_PROP_NAME" >&5 51168 $as_echo "$JDK_ARCH_ABI_PROP_NAME" >&6; } 51169 51170 51171 # Pass these on to the open part of configure as if they were set using 51172 # --with-extra-c[xx]flags. 51173 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS" 51174 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS" 51175 # Get rid of annoying "note: the mangling of 'va_list' has changed in GCC 4.4" 51176 # FIXME: This should not really be set using extra_cflags. 51177 if test "x$OPENJDK_TARGET_CPU" = xarm; then 51178 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-psabi" 51179 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -Wno-psabi" 51180 fi 51181 # Also add JDK_ARCH_ABI_PROP_NAME define, but only to CFLAGS. 51182 EXTRA_CFLAGS="$EXTRA_CFLAGS -DJDK_ARCH_ABI_PROP_NAME='\"\$(JDK_ARCH_ABI_PROP_NAME)\"'" 51183 # And pass the architecture flags to the linker as well 51184 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS" 51185 fi 51186 51187 # When building with an abi profile, the name of that profile is appended on the 51188 # bundle platform, which is used in bundle names. 51189 if test "x$OPENJDK_TARGET_ABI_PROFILE" != x; then 51190 OPENJDK_TARGET_BUNDLE_PLATFORM="$OPENJDK_TARGET_OS_BUNDLE-$OPENJDK_TARGET_ABI_PROFILE" 51191 fi 51192 51193 51194 # Optional POSIX functionality needed by the JVM 51195 # 51196 # Check if clock_gettime is available and in which library. This indicates 51197 # availability of CLOCK_MONOTONIC for hotspot. But we don't need to link, so 51198 # don't let it update LIBS. 51199 save_LIBS="$LIBS" 51200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 51201 $as_echo_n "checking for library containing clock_gettime... " >&6; } 51202 if ${ac_cv_search_clock_gettime+:} false; then : 51203 $as_echo_n "(cached) " >&6 51204 else 51205 ac_func_search_save_LIBS=$LIBS 51206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51207 /* end confdefs.h. */ 51208 51209 /* Override any GCC internal prototype to avoid an error. 51210 Use char because int might match the return type of a GCC 51211 builtin and then its argument prototype would still apply. */ 51212 #ifdef __cplusplus 51213 extern "C" 51214 #endif 51215 char clock_gettime (); 51216 int 51217 main () 51218 { 51219 return clock_gettime (); 51220 ; 51221 return 0; 51222 } 51223 _ACEOF 51224 for ac_lib in '' rt; do 51225 if test -z "$ac_lib"; then 51226 ac_res="none required" 51227 else 51228 ac_res=-l$ac_lib 51229 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 51230 fi 51231 if ac_fn_cxx_try_link "$LINENO"; then : 51232 ac_cv_search_clock_gettime=$ac_res 51233 fi 51234 rm -f core conftest.err conftest.$ac_objext \ 51235 conftest$ac_exeext 51236 if ${ac_cv_search_clock_gettime+:} false; then : 51237 break 51238 fi 51239 done 51240 if ${ac_cv_search_clock_gettime+:} false; then : 51241 51242 else 51243 ac_cv_search_clock_gettime=no 51244 fi 51245 rm conftest.$ac_ext 51246 LIBS=$ac_func_search_save_LIBS 51247 fi 51248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 51249 $as_echo "$ac_cv_search_clock_gettime" >&6; } 51250 ac_res=$ac_cv_search_clock_gettime 51251 if test "$ac_res" != no; then : 51252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 51253 HAS_CLOCK_GETTIME=true 51254 fi 51255 51256 if test "x$LIBS" = "x-lrt "; then 51257 CLOCK_GETTIME_IN_LIBRT=true 51258 fi 51259 LIBS="$save_LIBS" 51260 51261 51262 # Special extras... 51263 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51264 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 51265 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 51266 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 51267 fi 51268 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 51269 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 51270 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51271 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 51272 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 51273 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 51274 CXXSTD_CXXFLAG="-std=gnu++98" 51275 51276 51277 51278 51279 51280 51281 51282 51283 51284 51285 51286 51287 51288 51289 51290 51291 51292 51293 51294 51295 51296 51297 51298 51299 51300 51301 51302 51303 51304 51305 51306 51307 51308 51309 51310 51311 51312 51313 51314 51315 51316 51317 # Execute function body 51318 51319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"" >&5 51320 $as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"... " >&6; } 51321 supports=yes 51322 51323 saved_cxxflags="$CXXFLAGS" 51324 CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG -Werror" 51325 ac_ext=cpp 51326 ac_cpp='$CXXCPP $CPPFLAGS' 51327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51330 51331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51332 /* end confdefs.h. */ 51333 int i; 51334 _ACEOF 51335 if ac_fn_cxx_try_compile "$LINENO"; then : 51336 51337 else 51338 supports=no 51339 fi 51340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51341 ac_ext=cpp 51342 ac_cpp='$CXXCPP $CPPFLAGS' 51343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51346 51347 CXXFLAGS="$saved_cxxflags" 51348 51349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51350 $as_echo "$supports" >&6; } 51351 if test "x$supports" = "xyes" ; then 51352 : 51353 51354 else 51355 : 51356 CXXSTD_CXXFLAG="" 51357 fi 51358 51359 51360 51361 51362 51363 51364 51365 51366 51367 51368 51369 51370 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${CXXSTD_CXXFLAG}" 51371 JVM_CFLAGS="${JVM_CFLAGS} ${CXXSTD_CXXFLAG}" 51372 51373 fi 51374 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 51375 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 51376 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 51377 fi 51378 51379 CFLAGS_JDK="${CFLAGS_JDK} ${EXTRA_CFLAGS}" 51380 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${EXTRA_CXXFLAGS}" 51381 LDFLAGS_JDK="${LDFLAGS_JDK} ${EXTRA_LDFLAGS}" 51382 51383 ############################################################################### 51384 # 51385 # Now setup the CFLAGS and LDFLAGS for the JDK build. 51386 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 51387 # 51388 51389 # Setup compiler/platform specific flags into 51390 # CFLAGS_JDK - C Compiler flags 51391 # CXXFLAGS_JDK - C++ Compiler flags 51392 # COMMON_CCXXFLAGS_JDK - common to C and C++ 51393 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51394 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 51395 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT" 51396 JVM_CFLAGS="$JVM_CFLAGS -fcheck-new" 51397 if test "x$OPENJDK_TARGET_CPU" = xx86; then 51398 # Force compatibility with i586 on 32 bit intel platforms. 51399 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 51400 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 51401 fi 51402 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 51403 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 51404 case $OPENJDK_TARGET_CPU_ARCH in 51405 arm ) 51406 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 51407 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 51408 COMMON_CCXXFLAGS_JDK="${COMMON_CCXXFLAGS_JDK} -fsigned-char" 51409 ;; 51410 ppc ) 51411 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 51412 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 51413 ;; 51414 s390 ) 51415 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer -mbackchain -march=z10" 51416 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 51417 ;; 51418 * ) 51419 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 51420 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 51421 ;; 51422 esac 51423 51424 51425 51426 51427 51428 51429 51430 51431 51432 51433 51434 51435 51436 51437 51438 51439 51440 51441 51442 51443 51444 51445 51446 51447 51448 51449 51450 51451 51452 51453 51454 51455 51456 51457 51458 51459 51460 51461 51462 51463 51464 51465 51466 51467 51468 51469 51470 51471 51472 51473 51474 51475 51476 51477 # Execute function body 51478 51479 # Need to assign to a variable since m4 is blocked from modifying parts in []. 51480 REFERENCE_VERSION=6 51481 51482 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 51483 as_fn_error $? "Internal error: Cannot compare to 6, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 51484 fi 51485 51486 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 51487 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 51488 fi 51489 51490 # Version comparison method inspired by http://stackoverflow.com/a/24067243 51491 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 51492 51493 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 51494 : 51495 51496 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 51497 # runs afoul of the more aggressive versions of these optimisations. 51498 # Notably, value range propagation now assumes that the this pointer of C++ 51499 # member functions is non-null. 51500 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 51501 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 51502 { $as_echo "$as_me:${as_lineno-$LINENO}: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&5 51503 $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&6;} 51504 CFLAGS_JDK="$CFLAGS_JDK ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 51505 JVM_CFLAGS="$JVM_CFLAGS ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 51506 51507 else 51508 : 51509 51510 fi 51511 51512 51513 51514 51515 51516 51517 51518 51519 51520 51521 51522 51523 51524 51525 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51526 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 51527 51528 # Restrict the debug information created by Clang to avoid 51529 # too big object files and speed the build up a little bit 51530 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 51531 JVM_CFLAGS="$JVM_CFLAGS -flimit-debug-info" 51532 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51533 if test "x$OPENJDK_TARGET_CPU" = xx86; then 51534 # Force compatibility with i586 on 32 bit intel platforms. 51535 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 51536 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 51537 fi 51538 JVM_CFLAGS="$JVM_CFLAGS -Wno-sometimes-uninitialized" 51539 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 51540 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 51541 case $OPENJDK_TARGET_CPU_ARCH in 51542 ppc ) 51543 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 51544 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 51545 ;; 51546 * ) 51547 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 51548 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 51549 ;; 51550 esac 51551 fi 51552 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51553 JVM_CFLAGS="$JVM_CFLAGS -DSPARC_WORKS" 51554 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 51555 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 51556 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 51557 fi 51558 51559 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 51560 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 51561 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51562 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT" 51563 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 51564 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 51565 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51566 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK \ 51567 -MD -Zc:wchar_t- -W3 -wd4800 \ 51568 -DWIN32_LEAN_AND_MEAN \ 51569 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 51570 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 51571 -DWIN32 -DIAL" 51572 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 51573 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 51574 else 51575 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 51576 fi 51577 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 51578 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 51579 # studio. 51580 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 51581 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 51582 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 51583 JVM_CFLAGS="$JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 51584 fi 51585 fi 51586 51587 ############################################################################### 51588 51589 # Adjust flags according to debug level. 51590 case $DEBUG_LEVEL in 51591 fastdebug | slowdebug ) 51592 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 51593 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 51594 ;; 51595 release ) 51596 ;; 51597 * ) 51598 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 51599 ;; 51600 esac 51601 51602 # Set some common defines. These works for all compilers, but assume 51603 # -D is universally accepted. 51604 51605 # Setup endianness 51606 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 51607 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 51608 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 51609 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 51610 # Note: -Dmacro is the same as #define macro 1 51611 # -Dmacro= is the same as #define macro 51612 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 51613 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 51614 else 51615 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 51616 fi 51617 else 51618 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 51619 # are defined in the system? 51620 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 51621 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 51622 else 51623 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 51624 fi 51625 fi 51626 51627 # Always enable optional macros for VM. 51628 JVM_CFLAGS="$JVM_CFLAGS -D__STDC_FORMAT_MACROS" 51629 JVM_CFLAGS="$JVM_CFLAGS -D__STDC_LIMIT_MACROS" 51630 JVM_CFLAGS="$JVM_CFLAGS -D__STDC_CONSTANT_MACROS" 51631 51632 # Setup target OS define. Use OS target name but in upper case. 51633 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 51634 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 51635 51636 # Setup target CPU 51637 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 51638 $OPENJDK_TARGET_ADD_LP64 \ 51639 -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 51640 51641 # Setup debug/release defines 51642 if test "x$DEBUG_LEVEL" = xrelease; then 51643 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 51644 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 51645 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 51646 fi 51647 else 51648 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 51649 fi 51650 51651 # Optional POSIX functionality needed by the VM 51652 51653 if test "x$HAS_CLOCK_GETTIME" = "xtrue"; then 51654 JVM_CFLAGS="$JVM_CFLAGS -DSUPPORTS_CLOCK_MONOTONIC" 51655 if test "x$CLOCK_GETTIME_IN_LIBRT" = "xtrue"; then 51656 JVM_CFLAGS="$JVM_CFLAGS -DNEEDS_LIBRT" 51657 fi 51658 fi 51659 51660 51661 # Set some additional per-OS defines. 51662 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51663 JVM_CFLAGS="$JVM_CFLAGS -DLINUX" 51664 JVM_CFLAGS="$JVM_CFLAGS -pipe $PICFLAG -fno-rtti -fno-exceptions \ 51665 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 51666 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 51667 JVM_CFLAGS="$JVM_CFLAGS -DSOLARIS" 51668 JVM_CFLAGS="$JVM_CFLAGS -template=no%extdef -features=no%split_init \ 51669 -D_Crun_inline_placement -library=stlport4 $PICFLAG -mt -features=no%except" 51670 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 51671 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 51672 JVM_CFLAGS="$JVM_CFLAGS -D_ALLBSD_SOURCE" 51673 JVM_CFLAGS="$JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 51674 JVM_CFLAGS="$JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 51675 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 51676 -fno-omit-frame-pointer" 51677 elif test "x$OPENJDK_TARGET_OS" = xaix; then 51678 JVM_CFLAGS="$JVM_CFLAGS -DAIX" 51679 JVM_CFLAGS="$JVM_CFLAGS -qtune=balanced \ 51680 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 51681 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 51682 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 51683 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 51684 # so for slowdebug we build with '-qpic=large -bbigtoc'. 51685 if test "x$DEBUG_LEVEL" = xslowdebug; then 51686 JVM_CFLAGS="$JVM_CFLAGS -qpic=large" 51687 fi 51688 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 51689 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 51690 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 51691 JVM_CFLAGS="$JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 51692 JVM_CFLAGS="$JVM_CFLAGS -nologo -W3 -MD -MP" 51693 fi 51694 51695 # Set some additional per-CPU defines. 51696 if test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = xwindows-x86; then 51697 JVM_CFLAGS="$JVM_CFLAGS -arch:IA32" 51698 elif test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = xsolaris-sparcv9; then 51699 JVM_CFLAGS="$JVM_CFLAGS -xarch=sparc" 51700 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 51701 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51702 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 51703 # fixes `relocation truncated to fit' error for gcc 4.1. 51704 JVM_CFLAGS="$JVM_CFLAGS -mminimal-toc" 51705 # Use ppc64 instructions, but schedule for power5 51706 JVM_CFLAGS="$JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 51707 elif test "x$OPENJDK_TARGET_OS" = xaix; then 51708 JVM_CFLAGS="$JVM_CFLAGS -qarch=ppc64" 51709 fi 51710 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 51711 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51712 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 51713 # Little endian machine uses ELFv2 ABI. 51714 JVM_CFLAGS="$JVM_CFLAGS -DABI_ELFv2" 51715 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 51716 JVM_CFLAGS="$JVM_CFLAGS -mcpu=power8 -mtune=power8" 51717 fi 51718 elif test "x$OPENJDK_TARGET_CPU" = xs390x; then 51719 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51720 JVM_CFLAGS="$JVM_CFLAGS -mbackchain -march=z10" 51721 fi 51722 fi 51723 51724 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 51725 JVM_CFLAGS="$JVM_CFLAGS -DVM_LITTLE_ENDIAN" 51726 fi 51727 51728 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 51729 if test "x$OPENJDK_TARGET_OS" != xsolaris && test "x$OPENJDK_TARGET_OS" != xaix; then 51730 # Solaris does not have _LP64=1 in the old build. 51731 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 51732 JVM_CFLAGS="$JVM_CFLAGS -D_LP64=1" 51733 fi 51734 fi 51735 51736 # Set JVM_CFLAGS warning handling 51737 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51738 JVM_CFLAGS="$JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 51739 -Wunused-value -Woverloaded-virtual" 51740 51741 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51742 51743 51744 51745 51746 51747 51748 51749 51750 51751 51752 51753 51754 51755 51756 51757 51758 51759 51760 51761 51762 51763 51764 51765 51766 51767 51768 51769 51770 51771 51772 51773 51774 51775 51776 51777 51778 51779 51780 51781 51782 51783 51784 51785 51786 51787 51788 51789 51790 51791 51792 51793 51794 51795 51796 # Execute function body 51797 51798 # Need to assign to a variable since m4 is blocked from modifying parts in []. 51799 REFERENCE_VERSION=4.8 51800 51801 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 51802 as_fn_error $? "Internal error: Cannot compare to 4.8, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 51803 fi 51804 51805 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 51806 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 51807 fi 51808 51809 # Version comparison method inspired by http://stackoverflow.com/a/24067243 51810 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 51811 51812 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 51813 : 51814 51815 # These flags either do not work or give spurious warnings prior to gcc 4.8. 51816 JVM_CFLAGS="$JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 51817 51818 51819 else 51820 : 51821 51822 fi 51823 51824 51825 51826 51827 51828 51829 51830 51831 51832 51833 51834 51835 51836 51837 fi 51838 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 51839 # Non-zero builds have stricter warnings 51840 JVM_CFLAGS="$JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 51841 else 51842 if test "x$TOOLCHAIN_TYPE" = xclang; then 51843 # Some versions of llvm do not like -Wundef 51844 JVM_CFLAGS="$JVM_CFLAGS -Wno-undef" 51845 fi 51846 fi 51847 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 51848 JVM_CFLAGS="$JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 51849 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 51850 fi 51851 51852 # Additional macosx handling 51853 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51854 # MACOSX_VERSION_MIN is the c++ and ld is -mmacosx-version-min argument. The expected 51855 # format is X.Y.Z. It's hard-coded to the minimum OSX version on which the 51856 # JDK can be built and makes the linked binaries compatible even if built on 51857 # a newer version of the OS. 51858 MACOSX_VERSION_MIN=10.7.0 51859 51860 51861 # Setting --with-macosx-version-max=<version> makes it an error to build or 51862 # link to macosx APIs that are newer than the given OS version. The expected 51863 # format for <version> is either nn.n.n or nn.nn.nn. See /usr/include/AvailabilityMacros.h. 51864 51865 # Check whether --with-macosx-version-max was given. 51866 if test "${with_macosx_version_max+set}" = set; then : 51867 withval=$with_macosx_version_max; 51868 if echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9]\.[0-9]\$"; then 51869 MACOSX_VERSION_MAX=$with_macosx_version_max 51870 elif echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\$"; then 51871 MACOSX_VERSION_MAX=$with_macosx_version_max 51872 elif test "x$with_macosx_version_max" = "xno"; then 51873 # Use build system default 51874 MACOSX_VERSION_MAX= 51875 else 51876 as_fn_error $? "osx version format must be nn.n.n or nn.nn.nn" "$LINENO" 5 51877 fi 51878 51879 else 51880 MACOSX_VERSION_MAX= 51881 51882 fi 51883 51884 51885 51886 # Let the flags variables get resolved in make for easier override on make 51887 # command line. AvailabilityMacros.h versions have no dots, ex: 1070. 51888 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 51889 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 51890 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 51891 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 51892 JVM_CFLAGS="$JVM_CFLAGS \ 51893 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 51894 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 51895 51896 if test -n "$MACOSX_VERSION_MAX"; then 51897 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 51898 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 51899 JVM_CFLAGS="$JVM_CFLAGS \ 51900 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 51901 fi 51902 fi 51903 51904 # Setup some hard coded includes 51905 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 51906 -I\$(SUPPORT_OUTPUTDIR)/modules_include/java.base \ 51907 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 51908 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS/native/include \ 51909 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/include \ 51910 -I${JDK_TOPDIR}/src/java.base/share/native/libjava \ 51911 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/libjava" 51912 51913 # The shared libraries are compiled using the picflag. 51914 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 51915 $CFLAGS_JDK $EXTRA_CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 51916 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 51917 $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 51918 51919 # Executable flags 51920 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $EXTRA_CFLAGS_JDK" 51921 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK" 51922 51923 51924 51925 51926 51927 51928 # Setup LDFLAGS et al. 51929 # 51930 51931 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51932 LDFLAGS_MICROSOFT="-nologo -opt:ref" 51933 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 51934 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 51935 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 51936 LDFLAGS_SAFESH="-safeseh" 51937 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SAFESH" 51938 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SAFESH" 51939 # NOTE: Old build added -machine. Probably not needed. 51940 JVM_LDFLAGS="$JVM_LDFLAGS -machine:I386" 51941 else 51942 JVM_LDFLAGS="$JVM_LDFLAGS -machine:AMD64" 51943 fi 51944 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51945 JVM_LDFLAGS="$JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 51946 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51947 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 51948 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 51949 fi 51950 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 51951 # If this is a --hash-style=gnu system, use --hash-style=both, why? 51952 # We have previously set HAS_GNU_HASH if this is the case 51953 if test -n "$HAS_GNU_HASH"; then 51954 LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 51955 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_HASH_STYLE" 51956 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_HASH_STYLE" 51957 fi 51958 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51959 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 51960 fi 51961 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51962 # And since we now know that the linker is gnu, then add -z defs, to forbid 51963 # undefined symbols in object files. 51964 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 51965 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 51966 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 51967 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 51968 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 51969 if test "x$OPENJDK_TARGET_CPU" = xx86; then 51970 JVM_LDFLAGS="$JVM_LDFLAGS -march=i586" 51971 fi 51972 case $DEBUG_LEVEL in 51973 release ) 51974 # tell linker to optimize libraries. 51975 # Should this be supplied to the OSS linker as well? 51976 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 51977 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 51978 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 51979 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 51980 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 51981 fi 51982 ;; 51983 slowdebug ) 51984 # Hotspot always let the linker optimize 51985 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 51986 if test "x$HAS_LINKER_NOW" = "xtrue"; then 51987 # do relocations at load 51988 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 51989 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 51990 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_NOW_FLAG" 51991 fi 51992 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 51993 # mark relocations read only 51994 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 51995 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 51996 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 51997 fi 51998 ;; 51999 fastdebug ) 52000 # Hotspot always let the linker optimize 52001 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 52002 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52003 # mark relocations read only 52004 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 52005 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 52006 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 52007 fi 52008 ;; 52009 * ) 52010 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 52011 ;; 52012 esac 52013 fi 52014 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52015 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 52016 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -ztext" 52017 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 52018 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 52019 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 52020 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 52021 JVM_LDFLAGS="$JVM_LDFLAGS -xarch=sparc" 52022 fi 52023 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 52024 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok" 52025 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_XLC" 52026 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_XLC" 52027 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 52028 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 52029 # so for slowdebug we build with '-qpic=large -bbigtoc'. 52030 if test "x$DEBUG_LEVEL" = xslowdebug; then 52031 JVM_LDFLAGS="$JVM_LDFLAGS -bbigtoc" 52032 fi 52033 fi 52034 52035 # Customize LDFLAGS for executables 52036 52037 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 52038 52039 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52040 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 52041 LDFLAGS_STACK_SIZE=1048576 52042 else 52043 LDFLAGS_STACK_SIZE=327680 52044 fi 52045 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 52046 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 52047 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 52048 fi 52049 52050 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} ${EXTRA_LDFLAGS_JDK}" 52051 52052 # Customize LDFLAGS for libs 52053 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 52054 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 52055 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${LDFLAGS_NO_EXEC_STACK}" 52056 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52057 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52058 -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 52059 JDKLIB_LIBS="" 52060 else 52061 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52062 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base" 52063 52064 if test "xTARGET" = "xTARGET"; then 52065 # On some platforms (mac) the linker warns about non existing -L dirs. 52066 # For any of the variants server, client or minimal, the dir matches the 52067 # variant name. The "main" variant should be used for linking. For the 52068 # rest, the dir is just server. 52069 if [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] \ 52070 || [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 52071 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52072 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/$JVM_VARIANT_MAIN" 52073 else 52074 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52075 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 52076 fi 52077 elif test "xTARGET" = "xBUILD"; then 52078 # When building a buildjdk, it's always only the server variant 52079 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52080 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 52081 fi 52082 52083 JDKLIB_LIBS="-ljava -ljvm" 52084 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52085 JDKLIB_LIBS="$JDKLIB_LIBS -lc" 52086 fi 52087 52088 fi 52089 52090 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${JAVA_BASE_LDFLAGS}" 52091 52092 # Set JVM_LIBS (per os) 52093 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52094 JVM_LIBS="$JVM_LIBS -lm -ldl -lpthread" 52095 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 52096 # FIXME: This hard-coded path is not really proper. 52097 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 52098 SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 52099 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 52100 SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 52101 fi 52102 JVM_LIBS="$JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 52103 -lthread -ldoor -lc -ldemangle -lnsl -lrt" 52104 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 52105 JVM_LIBS="$JVM_LIBS -lm" 52106 elif test "x$OPENJDK_TARGET_OS" = xaix; then 52107 JVM_LIBS="$JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 52108 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 52109 JVM_LIBS="$JVM_LIBS -lm" 52110 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 52111 JVM_LIBS="$JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 52112 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 52113 wsock32.lib winmm.lib version.lib psapi.lib" 52114 fi 52115 52116 # Set JVM_ASFLAGS 52117 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52118 if test "x$OPENJDK_TARGET_CPU" = xx86; then 52119 JVM_ASFLAGS="$JVM_ASFLAGS -march=i586" 52120 fi 52121 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 52122 JVM_ASFLAGS="$JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 52123 fi 52124 52125 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${EXTRA_LDFLAGS_JDK}" 52126 52127 52128 52129 52130 52131 52132 52133 52134 52135 52136 52137 52138 52139 52140 52141 52142 # Special extras... 52143 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52144 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 52145 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 52146 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 52147 fi 52148 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 52149 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 52150 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 52151 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 52152 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 52153 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 52154 OPENJDK_BUILD_CXXSTD_CXXFLAG="-std=gnu++98" 52155 52156 52157 52158 52159 52160 52161 52162 52163 52164 52165 52166 52167 52168 52169 52170 52171 52172 52173 52174 52175 52176 52177 52178 52179 52180 52181 52182 52183 52184 52185 52186 52187 52188 52189 52190 52191 52192 52193 52194 52195 52196 52197 # Execute function body 52198 52199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"" >&5 52200 $as_echo_n "checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"... " >&6; } 52201 supports=yes 52202 52203 saved_cxxflags="$CXXFLAGS" 52204 CXXFLAGS="$CXXFLAG $OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror" 52205 ac_ext=cpp 52206 ac_cpp='$CXXCPP $CPPFLAGS' 52207 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52208 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52209 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52210 52211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52212 /* end confdefs.h. */ 52213 int i; 52214 _ACEOF 52215 if ac_fn_cxx_try_compile "$LINENO"; then : 52216 52217 else 52218 supports=no 52219 fi 52220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52221 ac_ext=cpp 52222 ac_cpp='$CXXCPP $CPPFLAGS' 52223 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52224 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52225 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52226 52227 CXXFLAGS="$saved_cxxflags" 52228 52229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52230 $as_echo "$supports" >&6; } 52231 if test "x$supports" = "xyes" ; then 52232 : 52233 52234 else 52235 : 52236 OPENJDK_BUILD_CXXSTD_CXXFLAG="" 52237 fi 52238 52239 52240 52241 52242 52243 52244 52245 52246 52247 52248 52249 52250 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_CXXSTD_CXXFLAG}" 52251 OPENJDK_BUILD_JVM_CFLAGS="${OPENJDK_BUILD_JVM_CFLAGS} ${OPENJDK_BUILD_CXXSTD_CXXFLAG}" 52252 52253 fi 52254 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 52255 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -D__solaris__" 52256 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -D__solaris__" 52257 fi 52258 52259 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CFLAGS}" 52260 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CXXFLAGS}" 52261 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_LDFLAGS}" 52262 52263 ############################################################################### 52264 # 52265 # Now setup the CFLAGS and LDFLAGS for the JDK build. 52266 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 52267 # 52268 52269 # Setup compiler/platform specific flags into 52270 # OPENJDK_BUILD_CFLAGS_JDK - C Compiler flags 52271 # OPENJDK_BUILD_CXXFLAGS_JDK - C++ Compiler flags 52272 # OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK - common to C and C++ 52273 if test "x$TOOLCHAIN_TYPE" = xgcc; then 52274 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 52275 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT" 52276 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fcheck-new" 52277 if test "x$OPENJDK_BUILD_CPU" = xx86; then 52278 # Force compatibility with i586 on 32 bit intel platforms. 52279 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 52280 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 52281 fi 52282 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 52283 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 52284 case $OPENJDK_BUILD_CPU_ARCH in 52285 arm ) 52286 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 52287 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 52288 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="${OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK} -fsigned-char" 52289 ;; 52290 ppc ) 52291 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 52292 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 52293 ;; 52294 s390 ) 52295 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer -mbackchain -march=z10" 52296 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 52297 ;; 52298 * ) 52299 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 52300 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 52301 ;; 52302 esac 52303 52304 52305 52306 52307 52308 52309 52310 52311 52312 52313 52314 52315 52316 52317 52318 52319 52320 52321 52322 52323 52324 52325 52326 52327 52328 52329 52330 52331 52332 52333 52334 52335 52336 52337 52338 52339 52340 52341 52342 52343 52344 52345 52346 52347 52348 52349 52350 52351 52352 52353 52354 52355 52356 52357 # Execute function body 52358 52359 # Need to assign to a variable since m4 is blocked from modifying parts in []. 52360 REFERENCE_VERSION=6 52361 52362 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 52363 as_fn_error $? "Internal error: Cannot compare to 6, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 52364 fi 52365 52366 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 52367 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 52368 fi 52369 52370 # Version comparison method inspired by http://stackoverflow.com/a/24067243 52371 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 52372 52373 if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 52374 : 52375 52376 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 52377 # runs afoul of the more aggressive versions of these optimisations. 52378 # Notably, value range propagation now assumes that the this pointer of C++ 52379 # member functions is non-null. 52380 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 52381 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 52382 { $as_echo "$as_me:${as_lineno-$LINENO}: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&5 52383 $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&6;} 52384 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 52385 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 52386 52387 else 52388 : 52389 52390 fi 52391 52392 52393 52394 52395 52396 52397 52398 52399 52400 52401 52402 52403 52404 52405 elif test "x$TOOLCHAIN_TYPE" = xclang; then 52406 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 52407 52408 # Restrict the debug information created by Clang to avoid 52409 # too big object files and speed the build up a little bit 52410 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 52411 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -flimit-debug-info" 52412 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52413 if test "x$OPENJDK_BUILD_CPU" = xx86; then 52414 # Force compatibility with i586 on 32 bit intel platforms. 52415 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 52416 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 52417 fi 52418 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-sometimes-uninitialized" 52419 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 52420 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 52421 case $OPENJDK_BUILD_CPU_ARCH in 52422 ppc ) 52423 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 52424 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 52425 ;; 52426 * ) 52427 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 52428 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 52429 ;; 52430 esac 52431 fi 52432 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52433 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSPARC_WORKS" 52434 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 52435 if test "x$OPENJDK_BUILD_CPU_ARCH" = xx86; then 52436 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_BUILD_CPU_LEGACY_LIB" 52437 fi 52438 52439 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 52440 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 52441 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 52442 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT" 52443 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 52444 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 52445 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52446 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 52447 -MD -Zc:wchar_t- -W3 -wd4800 \ 52448 -DWIN32_LEAN_AND_MEAN \ 52449 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 52450 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 52451 -DWIN32 -DIAL" 52452 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 52453 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 52454 else 52455 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 52456 fi 52457 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 52458 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 52459 # studio. 52460 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 52461 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 52462 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 52463 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 52464 fi 52465 fi 52466 52467 ############################################################################### 52468 52469 # Adjust flags according to debug level. 52470 case $DEBUG_LEVEL in 52471 fastdebug | slowdebug ) 52472 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 52473 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 52474 ;; 52475 release ) 52476 ;; 52477 * ) 52478 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 52479 ;; 52480 esac 52481 52482 # Set some common defines. These works for all compilers, but assume 52483 # -D is universally accepted. 52484 52485 # Setup endianness 52486 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 52487 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 52488 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 52489 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 52490 # Note: -Dmacro is the same as #define macro 1 52491 # -Dmacro= is the same as #define macro 52492 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 52493 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 52494 else 52495 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 52496 fi 52497 else 52498 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 52499 # are defined in the system? 52500 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 52501 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 52502 else 52503 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 52504 fi 52505 fi 52506 52507 # Always enable optional macros for VM. 52508 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D__STDC_FORMAT_MACROS" 52509 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D__STDC_LIMIT_MACROS" 52510 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D__STDC_CONSTANT_MACROS" 52511 52512 # Setup target OS define. Use OS target name but in upper case. 52513 OPENJDK_BUILD_OS_UPPERCASE=`$ECHO $OPENJDK_BUILD_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 52514 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D$OPENJDK_BUILD_OS_UPPERCASE" 52515 52516 # Setup target CPU 52517 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 52518 $OPENJDK_BUILD_ADD_LP64 \ 52519 -DARCH='\"$OPENJDK_BUILD_CPU_LEGACY\"' -D$OPENJDK_BUILD_CPU_LEGACY" 52520 52521 # Setup debug/release defines 52522 if test "x$DEBUG_LEVEL" = xrelease; then 52523 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DNDEBUG" 52524 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 52525 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRIMMED" 52526 fi 52527 else 52528 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DDEBUG" 52529 fi 52530 52531 # Optional POSIX functionality needed by the VM 52532 52533 if test "x$HAS_CLOCK_GETTIME" = "xtrue"; then 52534 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSUPPORTS_CLOCK_MONOTONIC" 52535 if test "x$CLOCK_GETTIME_IN_LIBRT" = "xtrue"; then 52536 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DNEEDS_LIBRT" 52537 fi 52538 fi 52539 52540 52541 # Set some additional per-OS defines. 52542 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52543 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DLINUX" 52544 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -pipe $PICFLAG -fno-rtti -fno-exceptions \ 52545 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 52546 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 52547 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSOLARIS" 52548 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -template=no%extdef -features=no%split_init \ 52549 -D_Crun_inline_placement -library=stlport4 $PICFLAG -mt -features=no%except" 52550 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 52551 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 52552 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_ALLBSD_SOURCE" 52553 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 52554 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 52555 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 52556 -fno-omit-frame-pointer" 52557 elif test "x$OPENJDK_BUILD_OS" = xaix; then 52558 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DAIX" 52559 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qtune=balanced \ 52560 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 52561 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 52562 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 52563 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 52564 # so for slowdebug we build with '-qpic=large -bbigtoc'. 52565 if test "x$DEBUG_LEVEL" = xslowdebug; then 52566 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qpic=large" 52567 fi 52568 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 52569 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 52570 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 52571 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 52572 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -nologo -W3 -MD -MP" 52573 fi 52574 52575 # Set some additional per-CPU defines. 52576 if test "x$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" = xwindows-x86; then 52577 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -arch:IA32" 52578 elif test "x$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" = xsolaris-sparcv9; then 52579 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -xarch=sparc" 52580 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 52581 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52582 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 52583 # fixes `relocation truncated to fit' error for gcc 4.1. 52584 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mminimal-toc" 52585 # Use ppc64 instructions, but schedule for power5 52586 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 52587 elif test "x$OPENJDK_BUILD_OS" = xaix; then 52588 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qarch=ppc64" 52589 fi 52590 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 52591 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52592 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 52593 # Little endian machine uses ELFv2 ABI. 52594 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DABI_ELFv2" 52595 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 52596 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=power8 -mtune=power8" 52597 fi 52598 elif test "x$OPENJDK_BUILD_CPU" = xs390x; then 52599 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52600 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mbackchain -march=z10" 52601 fi 52602 fi 52603 52604 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 52605 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DVM_LITTLE_ENDIAN" 52606 fi 52607 52608 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 52609 if test "x$OPENJDK_BUILD_OS" != xsolaris && test "x$OPENJDK_BUILD_OS" != xaix; then 52610 # Solaris does not have _LP64=1 in the old build. 52611 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 52612 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_LP64=1" 52613 fi 52614 fi 52615 52616 # Set OPENJDK_BUILD_JVM_CFLAGS warning handling 52617 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52618 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 52619 -Wunused-value -Woverloaded-virtual" 52620 52621 if test "x$TOOLCHAIN_TYPE" = xgcc; then 52622 52623 52624 52625 52626 52627 52628 52629 52630 52631 52632 52633 52634 52635 52636 52637 52638 52639 52640 52641 52642 52643 52644 52645 52646 52647 52648 52649 52650 52651 52652 52653 52654 52655 52656 52657 52658 52659 52660 52661 52662 52663 52664 52665 52666 52667 52668 52669 52670 52671 52672 52673 52674 52675 52676 # Execute function body 52677 52678 # Need to assign to a variable since m4 is blocked from modifying parts in []. 52679 REFERENCE_VERSION=4.8 52680 52681 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 52682 as_fn_error $? "Internal error: Cannot compare to 4.8, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 52683 fi 52684 52685 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 52686 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 52687 fi 52688 52689 # Version comparison method inspired by http://stackoverflow.com/a/24067243 52690 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 52691 52692 if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 52693 : 52694 52695 # These flags either do not work or give spurious warnings prior to gcc 4.8. 52696 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 52697 52698 52699 else 52700 : 52701 52702 fi 52703 52704 52705 52706 52707 52708 52709 52710 52711 52712 52713 52714 52715 52716 52717 fi 52718 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 52719 # Non-zero builds have stricter warnings 52720 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 52721 else 52722 if test "x$TOOLCHAIN_TYPE" = xclang; then 52723 # Some versions of llvm do not like -Wundef 52724 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-undef" 52725 fi 52726 fi 52727 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 52728 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 52729 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 52730 fi 52731 52732 # Additional macosx handling 52733 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 52734 # MACOSX_VERSION_MIN is the c++ and ld is -mmacosx-version-min argument. The expected 52735 # format is X.Y.Z. It's hard-coded to the minimum OSX version on which the 52736 # JDK can be built and makes the linked binaries compatible even if built on 52737 # a newer version of the OS. 52738 MACOSX_VERSION_MIN=10.7.0 52739 52740 52741 # Setting --with-macosx-version-max=<version> makes it an error to build or 52742 # link to macosx APIs that are newer than the given OS version. The expected 52743 # format for <version> is either nn.n.n or nn.nn.nn. See /usr/include/AvailabilityMacros.h. 52744 52745 # Check whether --with-macosx-version-max was given. 52746 if test "${with_macosx_version_max+set}" = set; then : 52747 withval=$with_macosx_version_max; 52748 if echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9]\.[0-9]\$"; then 52749 MACOSX_VERSION_MAX=$with_macosx_version_max 52750 elif echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\$"; then 52751 MACOSX_VERSION_MAX=$with_macosx_version_max 52752 elif test "x$with_macosx_version_max" = "xno"; then 52753 # Use build system default 52754 MACOSX_VERSION_MAX= 52755 else 52756 as_fn_error $? "osx version format must be nn.n.n or nn.nn.nn" "$LINENO" 5 52757 fi 52758 52759 else 52760 MACOSX_VERSION_MAX= 52761 52762 fi 52763 52764 52765 52766 # Let the flags variables get resolved in make for easier override on make 52767 # command line. AvailabilityMacros.h versions have no dots, ex: 1070. 52768 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 52769 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 52770 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 52771 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 52772 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS \ 52773 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 52774 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 52775 52776 if test -n "$MACOSX_VERSION_MAX"; then 52777 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 52778 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 52779 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS \ 52780 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 52781 fi 52782 fi 52783 52784 # Setup some hard coded includes 52785 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 52786 -I\$(SUPPORT_OUTPUTDIR)/modules_include/java.base \ 52787 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 52788 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_BUILD_OS/native/include \ 52789 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_BUILD_OS_TYPE/native/include \ 52790 -I${JDK_TOPDIR}/src/java.base/share/native/libjava \ 52791 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_BUILD_OS_TYPE/native/libjava" 52792 52793 # The shared libraries are compiled using the picflag. 52794 OPENJDK_BUILD_CFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 52795 $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA" 52796 OPENJDK_BUILD_CXXFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 52797 $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA" 52798 52799 # Executable flags 52800 OPENJDK_BUILD_CFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK" 52801 OPENJDK_BUILD_CXXFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK" 52802 52803 52804 52805 52806 52807 52808 # Setup LDFLAGS et al. 52809 # 52810 52811 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52812 LDFLAGS_MICROSOFT="-nologo -opt:ref" 52813 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 52814 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 52815 if test "x$OPENJDK_BUILD_CPU_BITS" = "x32"; then 52816 LDFLAGS_SAFESH="-safeseh" 52817 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SAFESH" 52818 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SAFESH" 52819 # NOTE: Old build added -machine. Probably not needed. 52820 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:I386" 52821 else 52822 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:AMD64" 52823 fi 52824 elif test "x$TOOLCHAIN_TYPE" = xclang; then 52825 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 52826 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 52827 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 52828 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 52829 fi 52830 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 52831 # If this is a --hash-style=gnu system, use --hash-style=both, why? 52832 # We have previously set HAS_GNU_HASH if this is the case 52833 if test -n "$HAS_GNU_HASH"; then 52834 OPENJDK_BUILD_LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 52835 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 52836 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 52837 fi 52838 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 52839 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 52840 fi 52841 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52842 # And since we now know that the linker is gnu, then add -z defs, to forbid 52843 # undefined symbols in object files. 52844 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 52845 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 52846 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 52847 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 52848 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 52849 if test "x$OPENJDK_BUILD_CPU" = xx86; then 52850 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -march=i586" 52851 fi 52852 case $DEBUG_LEVEL in 52853 release ) 52854 # tell linker to optimize libraries. 52855 # Should this be supplied to the OSS linker as well? 52856 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 52857 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 52858 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 52859 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52860 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 52861 fi 52862 ;; 52863 slowdebug ) 52864 # Hotspot always let the linker optimize 52865 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 52866 if test "x$HAS_LINKER_NOW" = "xtrue"; then 52867 # do relocations at load 52868 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_NOW_FLAG" 52869 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 52870 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_NOW_FLAG" 52871 fi 52872 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52873 # mark relocations read only 52874 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 52875 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 52876 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 52877 fi 52878 ;; 52879 fastdebug ) 52880 # Hotspot always let the linker optimize 52881 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 52882 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52883 # mark relocations read only 52884 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 52885 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 52886 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 52887 fi 52888 ;; 52889 * ) 52890 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 52891 ;; 52892 esac 52893 fi 52894 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52895 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 52896 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -ztext" 52897 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 52898 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 52899 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 52900 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 52901 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -xarch=sparc" 52902 fi 52903 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 52904 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok" 52905 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_XLC" 52906 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_XLC" 52907 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 52908 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 52909 # so for slowdebug we build with '-qpic=large -bbigtoc'. 52910 if test "x$DEBUG_LEVEL" = xslowdebug; then 52911 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -bbigtoc" 52912 fi 52913 fi 52914 52915 # Customize LDFLAGS for executables 52916 52917 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDK}" 52918 52919 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52920 if test "x$OPENJDK_BUILD_CPU_BITS" = "x64"; then 52921 LDFLAGS_STACK_SIZE=1048576 52922 else 52923 LDFLAGS_STACK_SIZE=327680 52924 fi 52925 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 52926 elif test "x$OPENJDK_BUILD_OS" = xlinux; then 52927 OPENJDK_BUILD_LDFLAGS_JDKEXE="$OPENJDK_BUILD_LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 52928 fi 52929 52930 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 52931 52932 # Customize LDFLAGS for libs 52933 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDK}" 52934 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 52935 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${LDFLAGS_NO_EXEC_STACK}" 52936 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52937 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 52938 -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 52939 OPENJDK_BUILD_JDKLIB_LIBS="" 52940 else 52941 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 52942 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base" 52943 52944 if test "xBUILD" = "xTARGET"; then 52945 # On some platforms (mac) the linker warns about non existing -L dirs. 52946 # For any of the variants server, client or minimal, the dir matches the 52947 # variant name. The "main" variant should be used for linking. For the 52948 # rest, the dir is just server. 52949 if [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] \ 52950 || [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 52951 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 52952 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/$JVM_VARIANT_MAIN" 52953 else 52954 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 52955 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 52956 fi 52957 elif test "xBUILD" = "xBUILD"; then 52958 # When building a buildjdk, it's always only the server variant 52959 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 52960 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 52961 fi 52962 52963 OPENJDK_BUILD_JDKLIB_LIBS="-ljava -ljvm" 52964 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52965 OPENJDK_BUILD_JDKLIB_LIBS="$OPENJDK_BUILD_JDKLIB_LIBS -lc" 52966 fi 52967 52968 fi 52969 52970 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_JAVA_BASE_LDFLAGS}" 52971 52972 # Set OPENJDK_BUILD_JVM_LIBS (per os) 52973 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52974 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm -ldl -lpthread" 52975 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 52976 # FIXME: This hard-coded path is not really proper. 52977 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 52978 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 52979 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 52980 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 52981 fi 52982 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 52983 -lthread -ldoor -lc -ldemangle -lnsl -lrt" 52984 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 52985 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 52986 elif test "x$OPENJDK_BUILD_OS" = xaix; then 52987 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 52988 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 52989 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 52990 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 52991 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 52992 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 52993 wsock32.lib winmm.lib version.lib psapi.lib" 52994 fi 52995 52996 # Set OPENJDK_BUILD_JVM_ASFLAGS 52997 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52998 if test "x$OPENJDK_BUILD_CPU" = xx86; then 52999 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -march=i586" 53000 fi 53001 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 53002 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 53003 fi 53004 53005 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 53006 53007 53008 53009 53010 53011 53012 53013 53014 53015 53016 53017 53018 53019 53020 53021 53022 # Tests are only ever compiled for TARGET 53023 # Flags for compiling test libraries 53024 CFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 53025 CXXFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 53026 53027 # Flags for compiling test executables 53028 CFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 53029 CXXFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 53030 53031 53032 53033 53034 53035 53036 LDFLAGS_TESTLIB="$LDFLAGS_JDKLIB" 53037 LDFLAGS_TESTEXE="$LDFLAGS_JDKEXE $JAVA_BASE_LDFLAGS" 53038 53039 53040 53041 53042 53043 53044 # Check that the compiler supports -mX (or -qX on AIX) flags 53045 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 53046 53047 53048 53049 53050 53051 53052 53053 53054 53055 53056 53057 53058 53059 53060 53061 53062 53063 53064 53065 53066 53067 53068 53069 53070 53071 53072 53073 53074 53075 53076 53077 53078 53079 53080 53081 53082 53083 53084 53085 53086 53087 53088 53089 53090 53091 53092 53093 # Execute function body 53094 53095 53096 53097 53098 53099 53100 53101 53102 53103 53104 53105 53106 53107 53108 53109 53110 53111 53112 53113 53114 53115 53116 53117 53118 53119 53120 53121 53122 53123 53124 53125 53126 53127 53128 53129 53130 53131 53132 53133 53134 53135 53136 53137 53138 53139 53140 53141 53142 # Execute function body 53143 53144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 53145 $as_echo_n "checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 53146 supports=yes 53147 53148 saved_cflags="$CFLAGS" 53149 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 53150 ac_ext=c 53151 ac_cpp='$CPP $CPPFLAGS' 53152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53154 ac_compiler_gnu=$ac_cv_c_compiler_gnu 53155 53156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53157 /* end confdefs.h. */ 53158 int i; 53159 _ACEOF 53160 if ac_fn_c_try_compile "$LINENO"; then : 53161 53162 else 53163 supports=no 53164 fi 53165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53166 ac_ext=cpp 53167 ac_cpp='$CXXCPP $CPPFLAGS' 53168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53171 53172 CFLAGS="$saved_cflags" 53173 53174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53175 $as_echo "$supports" >&6; } 53176 if test "x$supports" = "xyes" ; then 53177 : 53178 C_COMP_SUPPORTS="yes" 53179 else 53180 : 53181 C_COMP_SUPPORTS="no" 53182 fi 53183 53184 53185 53186 53187 53188 53189 53190 53191 53192 53193 53194 53195 53196 53197 53198 53199 53200 53201 53202 53203 53204 53205 53206 53207 53208 53209 53210 53211 53212 53213 53214 53215 53216 53217 53218 53219 53220 53221 53222 53223 53224 53225 53226 53227 53228 53229 53230 53231 53232 53233 53234 53235 53236 53237 53238 53239 53240 53241 53242 # Execute function body 53243 53244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 53245 $as_echo_n "checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 53246 supports=yes 53247 53248 saved_cxxflags="$CXXFLAGS" 53249 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 53250 ac_ext=cpp 53251 ac_cpp='$CXXCPP $CPPFLAGS' 53252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53255 53256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53257 /* end confdefs.h. */ 53258 int i; 53259 _ACEOF 53260 if ac_fn_cxx_try_compile "$LINENO"; then : 53261 53262 else 53263 supports=no 53264 fi 53265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53266 ac_ext=cpp 53267 ac_cpp='$CXXCPP $CPPFLAGS' 53268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53271 53272 CXXFLAGS="$saved_cxxflags" 53273 53274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53275 $as_echo "$supports" >&6; } 53276 if test "x$supports" = "xyes" ; then 53277 : 53278 CXX_COMP_SUPPORTS="yes" 53279 else 53280 : 53281 CXX_COMP_SUPPORTS="no" 53282 fi 53283 53284 53285 53286 53287 53288 53289 53290 53291 53292 53293 53294 53295 53296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 53297 $as_echo_n "checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 53298 supports=no 53299 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 53300 53301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53302 $as_echo "$supports" >&6; } 53303 if test "x$supports" = "xyes" ; then 53304 : 53305 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 53306 else 53307 : 53308 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 53309 fi 53310 53311 53312 53313 53314 53315 53316 53317 53318 # Check whether --enable-warnings-as-errors was given. 53319 if test "${enable_warnings_as_errors+set}" = set; then : 53320 enableval=$enable_warnings_as_errors; 53321 fi 53322 53323 53324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native warnings are errors" >&5 53325 $as_echo_n "checking if native warnings are errors... " >&6; } 53326 if test "x$enable_warnings_as_errors" = "xyes"; then 53327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (explicitly set)" >&5 53328 $as_echo "yes (explicitly set)" >&6; } 53329 WARNINGS_AS_ERRORS=true 53330 elif test "x$enable_warnings_as_errors" = "xno"; then 53331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53332 $as_echo "no" >&6; } 53333 WARNINGS_AS_ERRORS=false 53334 elif test "x$enable_warnings_as_errors" = "x"; then 53335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 53336 $as_echo "yes (default)" >&6; } 53337 WARNINGS_AS_ERRORS=true 53338 else 53339 as_fn_error $? "--enable-warnings-as-errors accepts no argument" "$LINENO" 5 53340 fi 53341 53342 53343 53344 case "${TOOLCHAIN_TYPE}" in 53345 microsoft) 53346 DISABLE_WARNING_PREFIX="-wd" 53347 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 53348 ;; 53349 solstudio) 53350 DISABLE_WARNING_PREFIX="-erroff=" 53351 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 53352 ;; 53353 gcc) 53354 # Prior to gcc 4.4, a -Wno-X where X is unknown for that version of gcc will cause an error 53355 53356 53357 53358 53359 53360 53361 53362 53363 53364 53365 53366 53367 53368 53369 53370 53371 53372 53373 53374 53375 53376 53377 53378 53379 53380 53381 53382 53383 53384 53385 53386 53387 53388 53389 53390 53391 53392 53393 53394 53395 53396 53397 53398 53399 53400 53401 53402 # Execute function body 53403 53404 53405 53406 53407 53408 53409 53410 53411 53412 53413 53414 53415 53416 53417 53418 53419 53420 53421 53422 53423 53424 53425 53426 53427 53428 53429 53430 53431 53432 53433 53434 53435 53436 53437 53438 53439 53440 53441 53442 53443 53444 53445 53446 53447 53448 53449 53450 53451 # Execute function body 53452 53453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 53454 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 53455 supports=yes 53456 53457 saved_cflags="$CFLAGS" 53458 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 53459 ac_ext=c 53460 ac_cpp='$CPP $CPPFLAGS' 53461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53463 ac_compiler_gnu=$ac_cv_c_compiler_gnu 53464 53465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53466 /* end confdefs.h. */ 53467 int i; 53468 _ACEOF 53469 if ac_fn_c_try_compile "$LINENO"; then : 53470 53471 else 53472 supports=no 53473 fi 53474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53475 ac_ext=cpp 53476 ac_cpp='$CXXCPP $CPPFLAGS' 53477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53480 53481 CFLAGS="$saved_cflags" 53482 53483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53484 $as_echo "$supports" >&6; } 53485 if test "x$supports" = "xyes" ; then 53486 : 53487 C_COMP_SUPPORTS="yes" 53488 else 53489 : 53490 C_COMP_SUPPORTS="no" 53491 fi 53492 53493 53494 53495 53496 53497 53498 53499 53500 53501 53502 53503 53504 53505 53506 53507 53508 53509 53510 53511 53512 53513 53514 53515 53516 53517 53518 53519 53520 53521 53522 53523 53524 53525 53526 53527 53528 53529 53530 53531 53532 53533 53534 53535 53536 53537 53538 53539 53540 53541 53542 53543 53544 53545 53546 53547 53548 53549 53550 53551 # Execute function body 53552 53553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 53554 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 53555 supports=yes 53556 53557 saved_cxxflags="$CXXFLAGS" 53558 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 53559 ac_ext=cpp 53560 ac_cpp='$CXXCPP $CPPFLAGS' 53561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53564 53565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53566 /* end confdefs.h. */ 53567 int i; 53568 _ACEOF 53569 if ac_fn_cxx_try_compile "$LINENO"; then : 53570 53571 else 53572 supports=no 53573 fi 53574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53575 ac_ext=cpp 53576 ac_cpp='$CXXCPP $CPPFLAGS' 53577 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53578 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53579 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53580 53581 CXXFLAGS="$saved_cxxflags" 53582 53583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53584 $as_echo "$supports" >&6; } 53585 if test "x$supports" = "xyes" ; then 53586 : 53587 CXX_COMP_SUPPORTS="yes" 53588 else 53589 : 53590 CXX_COMP_SUPPORTS="no" 53591 fi 53592 53593 53594 53595 53596 53597 53598 53599 53600 53601 53602 53603 53604 53605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 53606 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 53607 supports=no 53608 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 53609 53610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53611 $as_echo "$supports" >&6; } 53612 if test "x$supports" = "xyes" ; then 53613 : 53614 GCC_CAN_DISABLE_WARNINGS=true 53615 else 53616 : 53617 GCC_CAN_DISABLE_WARNINGS=false 53618 53619 fi 53620 53621 53622 53623 53624 53625 53626 if test "x$GCC_CAN_DISABLE_WARNINGS" = "xtrue"; then 53627 DISABLE_WARNING_PREFIX="-Wno-" 53628 else 53629 DISABLE_WARNING_PREFIX= 53630 fi 53631 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 53632 # Repeate the check for the BUILD_CC and BUILD_CXX. Need to also reset 53633 # CFLAGS since any target specific flags will likely not work with the 53634 # build compiler 53635 CC_OLD="$CC" 53636 CXX_OLD="$CXX" 53637 CC="$BUILD_CC" 53638 CXX="$BUILD_CXX" 53639 CFLAGS_OLD="$CFLAGS" 53640 CFLAGS="" 53641 53642 53643 53644 53645 53646 53647 53648 53649 53650 53651 53652 53653 53654 53655 53656 53657 53658 53659 53660 53661 53662 53663 53664 53665 53666 53667 53668 53669 53670 53671 53672 53673 53674 53675 53676 53677 53678 53679 53680 53681 53682 53683 53684 53685 53686 53687 53688 # Execute function body 53689 53690 53691 53692 53693 53694 53695 53696 53697 53698 53699 53700 53701 53702 53703 53704 53705 53706 53707 53708 53709 53710 53711 53712 53713 53714 53715 53716 53717 53718 53719 53720 53721 53722 53723 53724 53725 53726 53727 53728 53729 53730 53731 53732 53733 53734 53735 53736 53737 # Execute function body 53738 53739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 53740 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 53741 supports=yes 53742 53743 saved_cflags="$CFLAGS" 53744 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 53745 ac_ext=c 53746 ac_cpp='$CPP $CPPFLAGS' 53747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53749 ac_compiler_gnu=$ac_cv_c_compiler_gnu 53750 53751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53752 /* end confdefs.h. */ 53753 int i; 53754 _ACEOF 53755 if ac_fn_c_try_compile "$LINENO"; then : 53756 53757 else 53758 supports=no 53759 fi 53760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53761 ac_ext=cpp 53762 ac_cpp='$CXXCPP $CPPFLAGS' 53763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53766 53767 CFLAGS="$saved_cflags" 53768 53769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53770 $as_echo "$supports" >&6; } 53771 if test "x$supports" = "xyes" ; then 53772 : 53773 C_COMP_SUPPORTS="yes" 53774 else 53775 : 53776 C_COMP_SUPPORTS="no" 53777 fi 53778 53779 53780 53781 53782 53783 53784 53785 53786 53787 53788 53789 53790 53791 53792 53793 53794 53795 53796 53797 53798 53799 53800 53801 53802 53803 53804 53805 53806 53807 53808 53809 53810 53811 53812 53813 53814 53815 53816 53817 53818 53819 53820 53821 53822 53823 53824 53825 53826 53827 53828 53829 53830 53831 53832 53833 53834 53835 53836 53837 # Execute function body 53838 53839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 53840 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 53841 supports=yes 53842 53843 saved_cxxflags="$CXXFLAGS" 53844 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 53845 ac_ext=cpp 53846 ac_cpp='$CXXCPP $CPPFLAGS' 53847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53850 53851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53852 /* end confdefs.h. */ 53853 int i; 53854 _ACEOF 53855 if ac_fn_cxx_try_compile "$LINENO"; then : 53856 53857 else 53858 supports=no 53859 fi 53860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53861 ac_ext=cpp 53862 ac_cpp='$CXXCPP $CPPFLAGS' 53863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53866 53867 CXXFLAGS="$saved_cxxflags" 53868 53869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53870 $as_echo "$supports" >&6; } 53871 if test "x$supports" = "xyes" ; then 53872 : 53873 CXX_COMP_SUPPORTS="yes" 53874 else 53875 : 53876 CXX_COMP_SUPPORTS="no" 53877 fi 53878 53879 53880 53881 53882 53883 53884 53885 53886 53887 53888 53889 53890 53891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 53892 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 53893 supports=no 53894 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 53895 53896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53897 $as_echo "$supports" >&6; } 53898 if test "x$supports" = "xyes" ; then 53899 : 53900 BUILD_CC_CAN_DISABLE_WARNINGS=true 53901 else 53902 : 53903 BUILD_CC_CAN_DISABLE_WARNINGS=false 53904 53905 fi 53906 53907 53908 53909 53910 53911 53912 if test "x$BUILD_CC_CAN_DISABLE_WARNINGS" = "xtrue"; then 53913 BUILD_CC_DISABLE_WARNING_PREFIX="-Wno-" 53914 else 53915 BUILD_CC_DISABLE_WARNING_PREFIX= 53916 fi 53917 CC="$CC_OLD" 53918 CXX="$CXX_OLD" 53919 CFLAGS="$CFLAGS_OLD" 53920 ;; 53921 clang) 53922 DISABLE_WARNING_PREFIX="-Wno-" 53923 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 53924 ;; 53925 xlc) 53926 DISABLE_WARNING_PREFIX="-qsuppress=" 53927 CFLAGS_WARNINGS_ARE_ERRORS="-qhalt=w" 53928 ;; 53929 esac 53930 53931 53932 53933 53934 53935 # Setup debug symbols (need objcopy from the toolchain for that) 53936 53937 # 53938 # NATIVE_DEBUG_SYMBOLS 53939 # This must be done after the toolchain is setup, since we're looking at objcopy. 53940 # 53941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of native debug symbols to use" >&5 53942 $as_echo_n "checking what type of native debug symbols to use... " >&6; } 53943 53944 # Check whether --with-native-debug-symbols was given. 53945 if test "${with_native_debug_symbols+set}" = set; then : 53946 withval=$with_native_debug_symbols; 53947 if test "x$OPENJDK_TARGET_OS" = xaix; then 53948 if test "x$withval" = xexternal || test "x$withval" = xzipped; then 53949 as_fn_error $? "AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols" "$LINENO" 5 53950 fi 53951 fi 53952 53953 else 53954 53955 if test "x$OPENJDK_TARGET_OS" = xaix; then 53956 # AIX doesn't support 'zipped' so use 'internal' as default 53957 with_native_debug_symbols="internal" 53958 else 53959 if test "x$STATIC_BUILD" = xtrue; then 53960 with_native_debug_symbols="none" 53961 else 53962 with_native_debug_symbols="zipped" 53963 fi 53964 fi 53965 53966 fi 53967 53968 NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols 53969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE_DEBUG_SYMBOLS" >&5 53970 $as_echo "$NATIVE_DEBUG_SYMBOLS" >&6; } 53971 53972 if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then 53973 53974 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 53975 if test "x$OBJCOPY" = x; then 53976 # enabling of enable-debug-symbols and can't find objcopy 53977 # this is an error 53978 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 53979 fi 53980 fi 53981 53982 COMPILE_WITH_DEBUG_SYMBOLS=true 53983 COPY_DEBUG_SYMBOLS=true 53984 ZIP_EXTERNAL_DEBUG_SYMBOLS=true 53985 elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then 53986 COMPILE_WITH_DEBUG_SYMBOLS=false 53987 COPY_DEBUG_SYMBOLS=false 53988 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 53989 elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then 53990 COMPILE_WITH_DEBUG_SYMBOLS=true 53991 COPY_DEBUG_SYMBOLS=false 53992 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 53993 elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then 53994 53995 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 53996 if test "x$OBJCOPY" = x; then 53997 # enabling of enable-debug-symbols and can't find objcopy 53998 # this is an error 53999 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 54000 fi 54001 fi 54002 54003 COMPILE_WITH_DEBUG_SYMBOLS=true 54004 COPY_DEBUG_SYMBOLS=true 54005 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 54006 else 54007 as_fn_error $? "Allowed native debug symbols are: none, internal, external, zipped" "$LINENO" 5 54008 fi 54009 54010 # --enable-debug-symbols is deprecated. 54011 # Please use --with-native-debug-symbols=[internal,external,zipped] . 54012 54013 # Check whether --enable-debug-symbols was given. 54014 if test "${enable_debug_symbols+set}" = set; then : 54015 enableval=$enable_debug_symbols; 54016 fi 54017 54018 if test "x$enable_debug_symbols" != x; then 54019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&5 54020 $as_echo "$as_me: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&2;} 54021 54022 if test "xPlease use --with-native-debug-symbols=[internal,external,zipped] ." != x; then 54023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&5 54024 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&2;} 54025 fi 54026 54027 fi 54028 54029 54030 # --enable-zip-debug-info is deprecated. 54031 # Please use --with-native-debug-symbols=zipped . 54032 54033 # Check whether --enable-zip-debug-info was given. 54034 if test "${enable_zip_debug_info+set}" = set; then : 54035 enableval=$enable_zip_debug_info; 54036 fi 54037 54038 if test "x$enable_zip_debug_info" != x; then 54039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&5 54040 $as_echo "$as_me: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&2;} 54041 54042 if test "xPlease use --with-native-debug-symbols=zipped ." != x; then 54043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=zipped ." >&5 54044 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=zipped ." >&2;} 54045 fi 54046 54047 fi 54048 54049 54050 54051 54052 54053 54054 54055 # Check whether --enable-native-coverage was given. 54056 if test "${enable_native_coverage+set}" = set; then : 54057 enableval=$enable_native_coverage; 54058 fi 54059 54060 GCOV_ENABLED="false" 54061 if test "x$enable_native_coverage" = "xyes"; then 54062 if test "x$TOOLCHAIN_TYPE" = "xgcc"; then 54063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 54064 $as_echo_n "checking if native coverage is enabled... " >&6; } 54065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 54066 $as_echo "yes" >&6; } 54067 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline" 54068 GCOV_LDFLAGS="-fprofile-arcs" 54069 JVM_CFLAGS="$JVM_CFLAGS $GCOV_CFLAGS" 54070 JVM_LDFLAGS="$JVM_LDFLAGS $GCOV_LDFLAGS" 54071 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $GCOV_CFLAGS" 54072 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $GCOV_CFLAGS" 54073 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $GCOV_CFLAGS" 54074 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS" 54075 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS" 54076 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS" 54077 GCOV_ENABLED="true" 54078 else 54079 as_fn_error $? "--enable-native-coverage only works with toolchain type gcc" "$LINENO" 5 54080 fi 54081 elif test "x$enable_native_coverage" = "xno"; then 54082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 54083 $as_echo_n "checking if native coverage is enabled... " >&6; } 54084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54085 $as_echo "no" >&6; } 54086 elif test "x$enable_native_coverage" != "x"; then 54087 as_fn_error $? "--enable-native-coverage can only be assigned \"yes\" or \"no\"" "$LINENO" 5 54088 fi 54089 54090 54091 54092 54093 # Need toolchain to setup dtrace 54094 54095 # Test for dtrace dependencies 54096 # Check whether --enable-dtrace was given. 54097 if test "${enable_dtrace+set}" = set; then : 54098 enableval=$enable_dtrace; 54099 fi 54100 54101 54102 DTRACE_DEP_MISSING=false 54103 54104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dtrace tool" >&5 54105 $as_echo_n "checking for dtrace tool... " >&6; } 54106 if test "x$DTRACE" != "x" && test -x "$DTRACE"; then 54107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 54108 $as_echo "$DTRACE" >&6; } 54109 else 54110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, cannot build dtrace" >&5 54111 $as_echo "not found, cannot build dtrace" >&6; } 54112 DTRACE_DEP_MISSING=true 54113 fi 54114 54115 for ac_header in sys/sdt.h 54116 do : 54117 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" 54118 if test "x$ac_cv_header_sys_sdt_h" = xyes; then : 54119 cat >>confdefs.h <<_ACEOF 54120 #define HAVE_SYS_SDT_H 1 54121 _ACEOF 54122 DTRACE_HEADERS_OK=yes 54123 else 54124 DTRACE_HEADERS_OK=no 54125 fi 54126 54127 done 54128 54129 if test "x$DTRACE_HEADERS_OK" != "xyes"; then 54130 DTRACE_DEP_MISSING=true 54131 fi 54132 54133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dtrace should be built" >&5 54134 $as_echo_n "checking if dtrace should be built... " >&6; } 54135 if test "x$enable_dtrace" = "xyes"; then 54136 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then 54137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 54138 $as_echo "no, missing dependencies" >&6; } 54139 54140 # Print a helpful message on how to acquire the necessary build dependency. 54141 # dtrace is the help tag: freetype, cups, alsa etc 54142 MISSING_DEPENDENCY=dtrace 54143 54144 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54145 cygwin_help $MISSING_DEPENDENCY 54146 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54147 msys_help $MISSING_DEPENDENCY 54148 else 54149 PKGHANDLER_COMMAND= 54150 54151 case $PKGHANDLER in 54152 apt-get) 54153 apt_help $MISSING_DEPENDENCY ;; 54154 yum) 54155 yum_help $MISSING_DEPENDENCY ;; 54156 brew) 54157 brew_help $MISSING_DEPENDENCY ;; 54158 port) 54159 port_help $MISSING_DEPENDENCY ;; 54160 pkgutil) 54161 pkgutil_help $MISSING_DEPENDENCY ;; 54162 pkgadd) 54163 pkgadd_help $MISSING_DEPENDENCY ;; 54164 esac 54165 54166 if test "x$PKGHANDLER_COMMAND" != x; then 54167 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 54168 fi 54169 fi 54170 54171 as_fn_error $? "Cannot enable dtrace with missing dependencies. See above. $HELP_MSG" "$LINENO" 5 54172 else 54173 INCLUDE_DTRACE=true 54174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 54175 $as_echo "yes, forced" >&6; } 54176 fi 54177 elif test "x$enable_dtrace" = "xno"; then 54178 INCLUDE_DTRACE=false 54179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 54180 $as_echo "no, forced" >&6; } 54181 elif test "x$enable_dtrace" = "xauto" || test "x$enable_dtrace" = "x"; then 54182 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then 54183 INCLUDE_DTRACE=false 54184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 54185 $as_echo "no, missing dependencies" >&6; } 54186 else 54187 INCLUDE_DTRACE=true 54188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5 54189 $as_echo "yes, dependencies present" >&6; } 54190 fi 54191 else 54192 as_fn_error $? "Invalid value for --enable-dtrace: $enable_dtrace" "$LINENO" 5 54193 fi 54194 54195 54196 # Check whether --enable-aot was given. 54197 if test "${enable_aot+set}" = set; then : 54198 enableval=$enable_aot; 54199 fi 54200 54201 54202 if test "x$enable_aot" = "x" || test "x$enable_aot" = "xauto"; then 54203 ENABLE_AOT="true" 54204 elif test "x$enable_aot" = "xyes"; then 54205 ENABLE_AOT="true" 54206 elif test "x$enable_aot" = "xno"; then 54207 ENABLE_AOT="false" 54208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if aot should be enabled" >&5 54209 $as_echo_n "checking if aot should be enabled... " >&6; } 54210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 54211 $as_echo "no, forced" >&6; } 54212 else 54213 as_fn_error $? "Invalid value for --enable-aot: $enable_aot" "$LINENO" 5 54214 fi 54215 54216 if test "x$ENABLE_AOT" = "xtrue"; then 54217 # Only enable AOT on X64 platforms. 54218 if test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 54219 if test -e "$HOTSPOT_TOPDIR/src/jdk.aot"; then 54220 if test -e "$HOTSPOT_TOPDIR/src/jdk.internal.vm.compiler"; then 54221 ENABLE_AOT="true" 54222 else 54223 ENABLE_AOT="false" 54224 if test "x$enable_aot" = "xyes"; then 54225 as_fn_error $? "Cannot build AOT without hotspot/src/jdk.internal.vm.compiler sources. Remove --enable-aot." "$LINENO" 5 54226 fi 54227 fi 54228 else 54229 ENABLE_AOT="false" 54230 if test "x$enable_aot" = "xyes"; then 54231 as_fn_error $? "Cannot build AOT without hotspot/src/jdk.aot sources. Remove --enable-aot." "$LINENO" 5 54232 fi 54233 fi 54234 else 54235 ENABLE_AOT="false" 54236 if test "x$enable_aot" = "xyes"; then 54237 as_fn_error $? "AOT is currently only supported on x86_64. Remove --enable-aot." "$LINENO" 5 54238 fi 54239 fi 54240 fi 54241 54242 54243 54244 54245 # Check whether --enable-cds was given. 54246 if test "${enable_cds+set}" = set; then : 54247 enableval=$enable_cds; 54248 fi 54249 54250 54251 if test "x$enable_cds" = "x" || test "x$enable_cds" = "xyes"; then 54252 ENABLE_CDS="true" 54253 elif test "x$enable_cds" = "xno"; then 54254 ENABLE_CDS="false" 54255 else 54256 as_fn_error $? "Invalid value for --enable-cds: $enable_cds" "$LINENO" 5 54257 fi 54258 54259 54260 54261 54262 # Check whether --enable-hotspot-gtest was given. 54263 if test "${enable_hotspot_gtest+set}" = set; then : 54264 enableval=$enable_hotspot_gtest; 54265 fi 54266 54267 54268 if test -e "$HOTSPOT_TOPDIR/test/native"; then 54269 GTEST_DIR_EXISTS="true" 54270 else 54271 GTEST_DIR_EXISTS="false" 54272 fi 54273 54274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Hotspot gtest unit tests should be built" >&5 54275 $as_echo_n "checking if Hotspot gtest unit tests should be built... " >&6; } 54276 if test "x$enable_hotspot_gtest" = "xyes"; then 54277 if test "x$GTEST_DIR_EXISTS" = "xtrue"; then 54278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 54279 $as_echo "yes, forced" >&6; } 54280 BUILD_GTEST="true" 54281 else 54282 as_fn_error $? "Cannot build gtest without the test source" "$LINENO" 5 54283 fi 54284 elif test "x$enable_hotspot_gtest" = "xno"; then 54285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 54286 $as_echo "no, forced" >&6; } 54287 BUILD_GTEST="false" 54288 elif test "x$enable_hotspot_gtest" = "x"; then 54289 if test "x$GTEST_DIR_EXISTS" = "xtrue"; then 54290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 54291 $as_echo "yes" >&6; } 54292 BUILD_GTEST="true" 54293 else 54294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54295 $as_echo "no" >&6; } 54296 BUILD_GTEST="false" 54297 fi 54298 else 54299 as_fn_error $? "--enable-gtest must be either yes or no" "$LINENO" 5 54300 fi 54301 54302 54303 54304 54305 ############################################################################### 54306 # 54307 # Check dependencies for external and internal libraries. 54308 # 54309 ############################################################################### 54310 54311 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 54312 54313 # When using cygwin or msys, we need a wrapper binary that renames 54314 # /cygdrive/c/ arguments into c:/ arguments and peeks into 54315 # @files and rewrites these too! This wrapper binary is 54316 # called fixpath. 54317 FIXPATH= 54318 if test "x$OPENJDK_BUILD_OS" = xwindows; then 54319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 54320 $as_echo_n "checking if fixpath can be created... " >&6; } 54321 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 54322 FIXPATH_BIN="$CONFIGURESUPPORT_OUTPUTDIR/bin/fixpath.exe" 54323 FIXPATH_DIR="$CONFIGURESUPPORT_OUTPUTDIR/fixpath" 54324 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 54325 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 54326 FIXPATH="$FIXPATH_BIN -c" 54327 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 54328 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 54329 # @ was chosen as separator to minimize risk of other tools messing around with it 54330 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" \ 54331 | tr ' ' '\n' | $GREP '^/./' | $SORT | $UNIQ` 54332 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 54333 FIXPATH="$FIXPATH_BIN -m$fixpath_argument_list" 54334 fi 54335 FIXPATH_SRC_W="$FIXPATH_SRC" 54336 FIXPATH_BIN_W="$FIXPATH_BIN" 54337 54338 unix_path="$FIXPATH_SRC_W" 54339 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54340 windows_path=`$CYGPATH -m "$unix_path"` 54341 FIXPATH_SRC_W="$windows_path" 54342 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54343 windows_path=`cmd //c echo $unix_path` 54344 FIXPATH_SRC_W="$windows_path" 54345 fi 54346 54347 54348 unix_path="$FIXPATH_BIN_W" 54349 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54350 windows_path=`$CYGPATH -m "$unix_path"` 54351 FIXPATH_BIN_W="$windows_path" 54352 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54353 windows_path=`cmd //c echo $unix_path` 54354 FIXPATH_BIN_W="$windows_path" 54355 fi 54356 54357 $RM -rf $FIXPATH_BIN $FIXPATH_DIR 54358 $MKDIR -p $FIXPATH_DIR $CONFIGURESUPPORT_OUTPUTDIR/bin 54359 cd $FIXPATH_DIR 54360 $CC $FIXPATH_SRC_W -Fe$FIXPATH_BIN_W > $FIXPATH_DIR/fixpath1.log 2>&1 54361 cd $CURDIR 54362 54363 if test ! -x $FIXPATH_BIN; then 54364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54365 $as_echo "no" >&6; } 54366 cat $FIXPATH_DIR/fixpath1.log 54367 as_fn_error $? "Could not create $FIXPATH_BIN" "$LINENO" 5 54368 fi 54369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 54370 $as_echo "yes" >&6; } 54371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 54372 $as_echo_n "checking if fixpath.exe works... " >&6; } 54373 cd $FIXPATH_DIR 54374 $FIXPATH $CC $FIXPATH_SRC -Fe$FIXPATH_DIR/fixpath2.exe \ 54375 > $FIXPATH_DIR/fixpath2.log 2>&1 54376 cd $CURDIR 54377 if test ! -x $FIXPATH_DIR/fixpath2.exe; then 54378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54379 $as_echo "no" >&6; } 54380 cat $FIXPATH_DIR/fixpath2.log 54381 as_fn_error $? "fixpath did not work!" "$LINENO" 5 54382 fi 54383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 54384 $as_echo "yes" >&6; } 54385 54386 FIXPATH_DETACH_FLAG="--detach" 54387 fi 54388 54389 54390 54391 54392 54393 54394 # Check if X11 is needed 54395 if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then 54396 # No X11 support on windows or macosx 54397 NEEDS_LIB_X11=false 54398 else 54399 # All other instances need X11, even if building headless only, libawt still 54400 # needs X11 headers. 54401 NEEDS_LIB_X11=true 54402 fi 54403 54404 # Check if cups is needed 54405 if test "x$OPENJDK_TARGET_OS" = xwindows; then 54406 # Windows have a separate print system 54407 NEEDS_LIB_CUPS=false 54408 else 54409 NEEDS_LIB_CUPS=true 54410 fi 54411 54412 # A custom hook may have set this already 54413 if test "x$NEEDS_LIB_FREETYPE" = "x"; then 54414 NEEDS_LIB_FREETYPE=true 54415 fi 54416 54417 # Check if alsa is needed 54418 if test "x$OPENJDK_TARGET_OS" = xlinux; then 54419 NEEDS_LIB_ALSA=true 54420 else 54421 NEEDS_LIB_ALSA=false 54422 fi 54423 54424 # Check if ffi is needed 54425 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 54426 NEEDS_LIB_FFI=true 54427 else 54428 NEEDS_LIB_FFI=false 54429 fi 54430 54431 54432 # statically link libstdc++ before C++ ABI is stablized on Linux unless 54433 # dynamic build is configured on command line. 54434 54435 # Check whether --with-stdc++lib was given. 54436 if test "${with_stdc__lib+set}" = set; then : 54437 withval=$with_stdc__lib; 54438 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 54439 && test "x$with_stdc__lib" != xdefault; then 54440 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 54441 fi 54442 54443 else 54444 with_stdc__lib=default 54445 54446 fi 54447 54448 54449 if test "x$OPENJDK_TARGET_OS" = xlinux; then 54450 # Test if stdc++ can be linked statically. 54451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 54452 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 54453 STATIC_STDCXX_FLAGS="-static-libstdc++ -static-libgcc" 54454 ac_ext=cpp 54455 ac_cpp='$CXXCPP $CPPFLAGS' 54456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54459 54460 OLD_LIBS="$LIBS" 54461 LIBS="$STATIC_STDCXX_FLAGS" 54462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54463 /* end confdefs.h. */ 54464 54465 int 54466 main () 54467 { 54468 return 0; 54469 ; 54470 return 0; 54471 } 54472 _ACEOF 54473 if ac_fn_cxx_try_link "$LINENO"; then : 54474 has_static_libstdcxx=yes 54475 else 54476 has_static_libstdcxx=no 54477 fi 54478 rm -f core conftest.err conftest.$ac_objext \ 54479 conftest$ac_exeext conftest.$ac_ext 54480 LIBS="$OLD_LIBS" 54481 ac_ext=cpp 54482 ac_cpp='$CXXCPP $CPPFLAGS' 54483 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54484 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54485 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54486 54487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 54488 $as_echo "$has_static_libstdcxx" >&6; } 54489 54490 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 54491 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 54492 fi 54493 54494 # If dynamic was requested, it's available since it would fail above otherwise. 54495 # If dynamic wasn't requested, go with static unless it isn't available. 54496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 54497 $as_echo_n "checking how to link with libstdc++... " >&6; } 54498 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno \ 54499 || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 54500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 54501 $as_echo "dynamic" >&6; } 54502 else 54503 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 54504 JVM_LDFLAGS="$JVM_LDFLAGS $STATIC_STDCXX_FLAGS" 54505 # Ideally, we should test stdc++ for the BUILD toolchain separately. For now 54506 # just use the same setting as for the TARGET toolchain. 54507 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $STATIC_STDCXX_FLAGS" 54508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 54509 $as_echo "static" >&6; } 54510 fi 54511 fi 54512 54513 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 54514 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 54515 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 54516 fi 54517 54518 54519 54520 # Setup Windows runtime dlls 54521 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 54522 54523 54524 # Check whether --with-msvcr-dll was given. 54525 if test "${with_msvcr_dll+set}" = set; then : 54526 withval=$with_msvcr_dll; 54527 fi 54528 54529 54530 if test "x$with_msvcr_dll" != x; then 54531 # If given explicitly by user, do not probe. If not present, fail directly. 54532 54533 DLL_NAME="$MSVCR_NAME" 54534 POSSIBLE_MSVC_DLL="$with_msvcr_dll" 54535 METHOD="--with-msvcr-dll" 54536 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54537 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54538 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54539 54540 # Need to check if the found msvcr is correct architecture 54541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54542 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54543 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54544 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54545 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54546 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54547 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54548 CORRECT_MSVCR_ARCH="PE32 executable" 54549 else 54550 CORRECT_MSVCR_ARCH="PE32+ executable" 54551 fi 54552 else 54553 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54554 CORRECT_MSVCR_ARCH=386 54555 else 54556 CORRECT_MSVCR_ARCH=x86-64 54557 fi 54558 fi 54559 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54561 $as_echo "ok" >&6; } 54562 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54563 54564 # Only process if variable expands to non-empty 54565 54566 if test "x$MSVC_DLL" != x; then 54567 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54568 54569 # Input might be given as Windows format, start by converting to 54570 # unix format. 54571 path="$MSVC_DLL" 54572 new_path=`$CYGPATH -u "$path"` 54573 54574 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54575 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54576 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54577 # "foo.exe" is OK but "foo" is an error. 54578 # 54579 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54580 # It is also a way to make sure we got the proper file name for the real test later on. 54581 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54582 if test "x$test_shortpath" = x; then 54583 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54584 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54585 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54586 fi 54587 54588 # Call helper function which possibly converts this using DOS-style short mode. 54589 # If so, the updated path is stored in $new_path. 54590 54591 input_path="$new_path" 54592 # Check if we need to convert this using DOS-style short mode. If the path 54593 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54594 # take no chances and rewrite it. 54595 # Note: m4 eats our [], so we need to use [ and ] instead. 54596 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54597 if test "x$has_forbidden_chars" != x; then 54598 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54599 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54600 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54601 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54602 # Going to short mode and back again did indeed matter. Since short mode is 54603 # case insensitive, let's make it lowercase to improve readability. 54604 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54605 # Now convert it back to Unix-style (cygpath) 54606 input_path=`$CYGPATH -u "$shortmode_path"` 54607 new_path="$input_path" 54608 fi 54609 fi 54610 54611 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54612 if test "x$test_cygdrive_prefix" = x; then 54613 # As a simple fix, exclude /usr/bin since it's not a real path. 54614 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54615 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54616 # a path prefixed by /cygdrive for fixpath to work. 54617 new_path="$CYGWIN_ROOT_PATH$input_path" 54618 fi 54619 fi 54620 54621 54622 if test "x$path" != "x$new_path"; then 54623 MSVC_DLL="$new_path" 54624 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54625 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54626 fi 54627 54628 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54629 54630 path="$MSVC_DLL" 54631 has_colon=`$ECHO $path | $GREP ^.:` 54632 new_path="$path" 54633 if test "x$has_colon" = x; then 54634 # Not in mixed or Windows style, start by that. 54635 new_path=`cmd //c echo $path` 54636 fi 54637 54638 54639 input_path="$new_path" 54640 # Check if we need to convert this using DOS-style short mode. If the path 54641 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54642 # take no chances and rewrite it. 54643 # Note: m4 eats our [], so we need to use [ and ] instead. 54644 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54645 if test "x$has_forbidden_chars" != x; then 54646 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54647 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54648 fi 54649 54650 54651 windows_path="$new_path" 54652 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54653 unix_path=`$CYGPATH -u "$windows_path"` 54654 new_path="$unix_path" 54655 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54656 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54657 new_path="$unix_path" 54658 fi 54659 54660 if test "x$path" != "x$new_path"; then 54661 MSVC_DLL="$new_path" 54662 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54663 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54664 fi 54665 54666 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54667 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54668 54669 else 54670 # We're on a unix platform. Hooray! :) 54671 path="$MSVC_DLL" 54672 has_space=`$ECHO "$path" | $GREP " "` 54673 if test "x$has_space" != x; then 54674 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54675 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54676 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54677 fi 54678 54679 # Use eval to expand a potential ~ 54680 eval path="$path" 54681 if test ! -f "$path" && test ! -d "$path"; then 54682 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54683 fi 54684 54685 if test -d "$path"; then 54686 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54687 else 54688 dir="`$DIRNAME "$path"`" 54689 base="`$BASENAME "$path"`" 54690 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54691 fi 54692 fi 54693 fi 54694 54695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54696 $as_echo_n "checking for $DLL_NAME... " >&6; } 54697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54698 $as_echo "$MSVC_DLL" >&6; } 54699 else 54700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54701 $as_echo "incorrect, ignoring" >&6; } 54702 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54703 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54704 fi 54705 fi 54706 54707 if test "x$MSVC_DLL" = x; then 54708 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by --with-msvcr-dll" "$LINENO" 5 54709 fi 54710 MSVCR_DLL="$MSVC_DLL" 54711 elif test "x$DEVKIT_MSVCR_DLL" != x; then 54712 54713 DLL_NAME="$MSVCR_NAME" 54714 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCR_DLL" 54715 METHOD="devkit" 54716 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54717 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54718 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54719 54720 # Need to check if the found msvcr is correct architecture 54721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54722 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54723 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54724 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54725 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54726 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54727 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54728 CORRECT_MSVCR_ARCH="PE32 executable" 54729 else 54730 CORRECT_MSVCR_ARCH="PE32+ executable" 54731 fi 54732 else 54733 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54734 CORRECT_MSVCR_ARCH=386 54735 else 54736 CORRECT_MSVCR_ARCH=x86-64 54737 fi 54738 fi 54739 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54741 $as_echo "ok" >&6; } 54742 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54743 54744 # Only process if variable expands to non-empty 54745 54746 if test "x$MSVC_DLL" != x; then 54747 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54748 54749 # Input might be given as Windows format, start by converting to 54750 # unix format. 54751 path="$MSVC_DLL" 54752 new_path=`$CYGPATH -u "$path"` 54753 54754 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54755 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54756 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54757 # "foo.exe" is OK but "foo" is an error. 54758 # 54759 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54760 # It is also a way to make sure we got the proper file name for the real test later on. 54761 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54762 if test "x$test_shortpath" = x; then 54763 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54764 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54765 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54766 fi 54767 54768 # Call helper function which possibly converts this using DOS-style short mode. 54769 # If so, the updated path is stored in $new_path. 54770 54771 input_path="$new_path" 54772 # Check if we need to convert this using DOS-style short mode. If the path 54773 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54774 # take no chances and rewrite it. 54775 # Note: m4 eats our [], so we need to use [ and ] instead. 54776 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54777 if test "x$has_forbidden_chars" != x; then 54778 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54779 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54780 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54781 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54782 # Going to short mode and back again did indeed matter. Since short mode is 54783 # case insensitive, let's make it lowercase to improve readability. 54784 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54785 # Now convert it back to Unix-style (cygpath) 54786 input_path=`$CYGPATH -u "$shortmode_path"` 54787 new_path="$input_path" 54788 fi 54789 fi 54790 54791 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54792 if test "x$test_cygdrive_prefix" = x; then 54793 # As a simple fix, exclude /usr/bin since it's not a real path. 54794 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54795 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54796 # a path prefixed by /cygdrive for fixpath to work. 54797 new_path="$CYGWIN_ROOT_PATH$input_path" 54798 fi 54799 fi 54800 54801 54802 if test "x$path" != "x$new_path"; then 54803 MSVC_DLL="$new_path" 54804 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54805 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54806 fi 54807 54808 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54809 54810 path="$MSVC_DLL" 54811 has_colon=`$ECHO $path | $GREP ^.:` 54812 new_path="$path" 54813 if test "x$has_colon" = x; then 54814 # Not in mixed or Windows style, start by that. 54815 new_path=`cmd //c echo $path` 54816 fi 54817 54818 54819 input_path="$new_path" 54820 # Check if we need to convert this using DOS-style short mode. If the path 54821 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54822 # take no chances and rewrite it. 54823 # Note: m4 eats our [], so we need to use [ and ] instead. 54824 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54825 if test "x$has_forbidden_chars" != x; then 54826 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54827 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54828 fi 54829 54830 54831 windows_path="$new_path" 54832 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54833 unix_path=`$CYGPATH -u "$windows_path"` 54834 new_path="$unix_path" 54835 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54836 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54837 new_path="$unix_path" 54838 fi 54839 54840 if test "x$path" != "x$new_path"; then 54841 MSVC_DLL="$new_path" 54842 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54843 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54844 fi 54845 54846 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54847 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54848 54849 else 54850 # We're on a unix platform. Hooray! :) 54851 path="$MSVC_DLL" 54852 has_space=`$ECHO "$path" | $GREP " "` 54853 if test "x$has_space" != x; then 54854 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54855 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54856 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54857 fi 54858 54859 # Use eval to expand a potential ~ 54860 eval path="$path" 54861 if test ! -f "$path" && test ! -d "$path"; then 54862 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54863 fi 54864 54865 if test -d "$path"; then 54866 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54867 else 54868 dir="`$DIRNAME "$path"`" 54869 base="`$BASENAME "$path"`" 54870 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54871 fi 54872 fi 54873 fi 54874 54875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54876 $as_echo_n "checking for $DLL_NAME... " >&6; } 54877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54878 $as_echo "$MSVC_DLL" >&6; } 54879 else 54880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54881 $as_echo "incorrect, ignoring" >&6; } 54882 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54883 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54884 fi 54885 fi 54886 54887 if test "x$MSVC_DLL" = x; then 54888 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by devkit" "$LINENO" 5 54889 fi 54890 MSVCR_DLL="$MSVC_DLL" 54891 else 54892 54893 DLL_NAME="${MSVCR_NAME}" 54894 MSVC_DLL= 54895 54896 if test "x$MSVC_DLL" = x; then 54897 # Probe: Using well-known location from Visual Studio 10.0 54898 if test "x$VCINSTALLDIR" != x; then 54899 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 54900 54901 windows_path="$CYGWIN_VC_INSTALL_DIR" 54902 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54903 unix_path=`$CYGPATH -u "$windows_path"` 54904 CYGWIN_VC_INSTALL_DIR="$unix_path" 54905 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54906 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54907 CYGWIN_VC_INSTALL_DIR="$unix_path" 54908 fi 54909 54910 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 54911 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 54912 else 54913 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 54914 fi 54915 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 54916 54917 DLL_NAME="$DLL_NAME" 54918 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 54919 METHOD="well-known location in VCINSTALLDIR" 54920 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54921 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54922 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54923 54924 # Need to check if the found msvcr is correct architecture 54925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54926 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54927 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54928 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54929 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54930 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54931 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54932 CORRECT_MSVCR_ARCH="PE32 executable" 54933 else 54934 CORRECT_MSVCR_ARCH="PE32+ executable" 54935 fi 54936 else 54937 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54938 CORRECT_MSVCR_ARCH=386 54939 else 54940 CORRECT_MSVCR_ARCH=x86-64 54941 fi 54942 fi 54943 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54945 $as_echo "ok" >&6; } 54946 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54947 54948 # Only process if variable expands to non-empty 54949 54950 if test "x$MSVC_DLL" != x; then 54951 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54952 54953 # Input might be given as Windows format, start by converting to 54954 # unix format. 54955 path="$MSVC_DLL" 54956 new_path=`$CYGPATH -u "$path"` 54957 54958 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54959 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54960 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54961 # "foo.exe" is OK but "foo" is an error. 54962 # 54963 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54964 # It is also a way to make sure we got the proper file name for the real test later on. 54965 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54966 if test "x$test_shortpath" = x; then 54967 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54968 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54969 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54970 fi 54971 54972 # Call helper function which possibly converts this using DOS-style short mode. 54973 # If so, the updated path is stored in $new_path. 54974 54975 input_path="$new_path" 54976 # Check if we need to convert this using DOS-style short mode. If the path 54977 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54978 # take no chances and rewrite it. 54979 # Note: m4 eats our [], so we need to use [ and ] instead. 54980 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54981 if test "x$has_forbidden_chars" != x; then 54982 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54983 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54984 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54985 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54986 # Going to short mode and back again did indeed matter. Since short mode is 54987 # case insensitive, let's make it lowercase to improve readability. 54988 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54989 # Now convert it back to Unix-style (cygpath) 54990 input_path=`$CYGPATH -u "$shortmode_path"` 54991 new_path="$input_path" 54992 fi 54993 fi 54994 54995 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54996 if test "x$test_cygdrive_prefix" = x; then 54997 # As a simple fix, exclude /usr/bin since it's not a real path. 54998 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54999 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55000 # a path prefixed by /cygdrive for fixpath to work. 55001 new_path="$CYGWIN_ROOT_PATH$input_path" 55002 fi 55003 fi 55004 55005 55006 if test "x$path" != "x$new_path"; then 55007 MSVC_DLL="$new_path" 55008 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55009 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55010 fi 55011 55012 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55013 55014 path="$MSVC_DLL" 55015 has_colon=`$ECHO $path | $GREP ^.:` 55016 new_path="$path" 55017 if test "x$has_colon" = x; then 55018 # Not in mixed or Windows style, start by that. 55019 new_path=`cmd //c echo $path` 55020 fi 55021 55022 55023 input_path="$new_path" 55024 # Check if we need to convert this using DOS-style short mode. If the path 55025 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55026 # take no chances and rewrite it. 55027 # Note: m4 eats our [], so we need to use [ and ] instead. 55028 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55029 if test "x$has_forbidden_chars" != x; then 55030 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55031 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55032 fi 55033 55034 55035 windows_path="$new_path" 55036 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55037 unix_path=`$CYGPATH -u "$windows_path"` 55038 new_path="$unix_path" 55039 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55040 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55041 new_path="$unix_path" 55042 fi 55043 55044 if test "x$path" != "x$new_path"; then 55045 MSVC_DLL="$new_path" 55046 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55047 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55048 fi 55049 55050 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55051 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55052 55053 else 55054 # We're on a unix platform. Hooray! :) 55055 path="$MSVC_DLL" 55056 has_space=`$ECHO "$path" | $GREP " "` 55057 if test "x$has_space" != x; then 55058 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55059 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55060 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55061 fi 55062 55063 # Use eval to expand a potential ~ 55064 eval path="$path" 55065 if test ! -f "$path" && test ! -d "$path"; then 55066 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55067 fi 55068 55069 if test -d "$path"; then 55070 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55071 else 55072 dir="`$DIRNAME "$path"`" 55073 base="`$BASENAME "$path"`" 55074 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55075 fi 55076 fi 55077 fi 55078 55079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55080 $as_echo_n "checking for $DLL_NAME... " >&6; } 55081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55082 $as_echo "$MSVC_DLL" >&6; } 55083 else 55084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55085 $as_echo "incorrect, ignoring" >&6; } 55086 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55087 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55088 fi 55089 fi 55090 55091 fi 55092 fi 55093 55094 if test "x$MSVC_DLL" = x; then 55095 # Probe: Check in the Boot JDK directory. 55096 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 55097 55098 DLL_NAME="$DLL_NAME" 55099 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55100 METHOD="well-known location in Boot JDK" 55101 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55102 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55103 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55104 55105 # Need to check if the found msvcr is correct architecture 55106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55107 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55108 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55109 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55110 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55111 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55112 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55113 CORRECT_MSVCR_ARCH="PE32 executable" 55114 else 55115 CORRECT_MSVCR_ARCH="PE32+ executable" 55116 fi 55117 else 55118 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55119 CORRECT_MSVCR_ARCH=386 55120 else 55121 CORRECT_MSVCR_ARCH=x86-64 55122 fi 55123 fi 55124 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55126 $as_echo "ok" >&6; } 55127 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55128 55129 # Only process if variable expands to non-empty 55130 55131 if test "x$MSVC_DLL" != x; then 55132 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55133 55134 # Input might be given as Windows format, start by converting to 55135 # unix format. 55136 path="$MSVC_DLL" 55137 new_path=`$CYGPATH -u "$path"` 55138 55139 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55140 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55141 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55142 # "foo.exe" is OK but "foo" is an error. 55143 # 55144 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55145 # It is also a way to make sure we got the proper file name for the real test later on. 55146 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55147 if test "x$test_shortpath" = x; then 55148 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55149 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55150 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55151 fi 55152 55153 # Call helper function which possibly converts this using DOS-style short mode. 55154 # If so, the updated path is stored in $new_path. 55155 55156 input_path="$new_path" 55157 # Check if we need to convert this using DOS-style short mode. If the path 55158 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55159 # take no chances and rewrite it. 55160 # Note: m4 eats our [], so we need to use [ and ] instead. 55161 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55162 if test "x$has_forbidden_chars" != x; then 55163 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55164 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55165 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55166 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55167 # Going to short mode and back again did indeed matter. Since short mode is 55168 # case insensitive, let's make it lowercase to improve readability. 55169 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55170 # Now convert it back to Unix-style (cygpath) 55171 input_path=`$CYGPATH -u "$shortmode_path"` 55172 new_path="$input_path" 55173 fi 55174 fi 55175 55176 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55177 if test "x$test_cygdrive_prefix" = x; then 55178 # As a simple fix, exclude /usr/bin since it's not a real path. 55179 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55180 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55181 # a path prefixed by /cygdrive for fixpath to work. 55182 new_path="$CYGWIN_ROOT_PATH$input_path" 55183 fi 55184 fi 55185 55186 55187 if test "x$path" != "x$new_path"; then 55188 MSVC_DLL="$new_path" 55189 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55190 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55191 fi 55192 55193 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55194 55195 path="$MSVC_DLL" 55196 has_colon=`$ECHO $path | $GREP ^.:` 55197 new_path="$path" 55198 if test "x$has_colon" = x; then 55199 # Not in mixed or Windows style, start by that. 55200 new_path=`cmd //c echo $path` 55201 fi 55202 55203 55204 input_path="$new_path" 55205 # Check if we need to convert this using DOS-style short mode. If the path 55206 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55207 # take no chances and rewrite it. 55208 # Note: m4 eats our [], so we need to use [ and ] instead. 55209 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55210 if test "x$has_forbidden_chars" != x; then 55211 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55212 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55213 fi 55214 55215 55216 windows_path="$new_path" 55217 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55218 unix_path=`$CYGPATH -u "$windows_path"` 55219 new_path="$unix_path" 55220 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55221 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55222 new_path="$unix_path" 55223 fi 55224 55225 if test "x$path" != "x$new_path"; then 55226 MSVC_DLL="$new_path" 55227 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55228 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55229 fi 55230 55231 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55232 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55233 55234 else 55235 # We're on a unix platform. Hooray! :) 55236 path="$MSVC_DLL" 55237 has_space=`$ECHO "$path" | $GREP " "` 55238 if test "x$has_space" != x; then 55239 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55240 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55241 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55242 fi 55243 55244 # Use eval to expand a potential ~ 55245 eval path="$path" 55246 if test ! -f "$path" && test ! -d "$path"; then 55247 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55248 fi 55249 55250 if test -d "$path"; then 55251 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55252 else 55253 dir="`$DIRNAME "$path"`" 55254 base="`$BASENAME "$path"`" 55255 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55256 fi 55257 fi 55258 fi 55259 55260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55261 $as_echo_n "checking for $DLL_NAME... " >&6; } 55262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55263 $as_echo "$MSVC_DLL" >&6; } 55264 else 55265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55266 $as_echo "incorrect, ignoring" >&6; } 55267 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55268 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55269 fi 55270 fi 55271 55272 fi 55273 55274 if test "x$MSVC_DLL" = x; then 55275 # Probe: Look in the Windows system32 directory 55276 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 55277 55278 windows_path="$CYGWIN_SYSTEMROOT" 55279 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55280 unix_path=`$CYGPATH -u "$windows_path"` 55281 CYGWIN_SYSTEMROOT="$unix_path" 55282 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55283 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55284 CYGWIN_SYSTEMROOT="$unix_path" 55285 fi 55286 55287 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 55288 55289 DLL_NAME="$DLL_NAME" 55290 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55291 METHOD="well-known location in SYSTEMROOT" 55292 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55293 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55294 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55295 55296 # Need to check if the found msvcr is correct architecture 55297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55298 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55299 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55300 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55301 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55302 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55303 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55304 CORRECT_MSVCR_ARCH="PE32 executable" 55305 else 55306 CORRECT_MSVCR_ARCH="PE32+ executable" 55307 fi 55308 else 55309 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55310 CORRECT_MSVCR_ARCH=386 55311 else 55312 CORRECT_MSVCR_ARCH=x86-64 55313 fi 55314 fi 55315 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55317 $as_echo "ok" >&6; } 55318 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55319 55320 # Only process if variable expands to non-empty 55321 55322 if test "x$MSVC_DLL" != x; then 55323 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55324 55325 # Input might be given as Windows format, start by converting to 55326 # unix format. 55327 path="$MSVC_DLL" 55328 new_path=`$CYGPATH -u "$path"` 55329 55330 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55331 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55332 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55333 # "foo.exe" is OK but "foo" is an error. 55334 # 55335 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55336 # It is also a way to make sure we got the proper file name for the real test later on. 55337 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55338 if test "x$test_shortpath" = x; then 55339 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55340 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55341 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55342 fi 55343 55344 # Call helper function which possibly converts this using DOS-style short mode. 55345 # If so, the updated path is stored in $new_path. 55346 55347 input_path="$new_path" 55348 # Check if we need to convert this using DOS-style short mode. If the path 55349 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55350 # take no chances and rewrite it. 55351 # Note: m4 eats our [], so we need to use [ and ] instead. 55352 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55353 if test "x$has_forbidden_chars" != x; then 55354 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55355 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55356 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55357 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55358 # Going to short mode and back again did indeed matter. Since short mode is 55359 # case insensitive, let's make it lowercase to improve readability. 55360 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55361 # Now convert it back to Unix-style (cygpath) 55362 input_path=`$CYGPATH -u "$shortmode_path"` 55363 new_path="$input_path" 55364 fi 55365 fi 55366 55367 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55368 if test "x$test_cygdrive_prefix" = x; then 55369 # As a simple fix, exclude /usr/bin since it's not a real path. 55370 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55371 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55372 # a path prefixed by /cygdrive for fixpath to work. 55373 new_path="$CYGWIN_ROOT_PATH$input_path" 55374 fi 55375 fi 55376 55377 55378 if test "x$path" != "x$new_path"; then 55379 MSVC_DLL="$new_path" 55380 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55381 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55382 fi 55383 55384 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55385 55386 path="$MSVC_DLL" 55387 has_colon=`$ECHO $path | $GREP ^.:` 55388 new_path="$path" 55389 if test "x$has_colon" = x; then 55390 # Not in mixed or Windows style, start by that. 55391 new_path=`cmd //c echo $path` 55392 fi 55393 55394 55395 input_path="$new_path" 55396 # Check if we need to convert this using DOS-style short mode. If the path 55397 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55398 # take no chances and rewrite it. 55399 # Note: m4 eats our [], so we need to use [ and ] instead. 55400 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55401 if test "x$has_forbidden_chars" != x; then 55402 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55403 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55404 fi 55405 55406 55407 windows_path="$new_path" 55408 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55409 unix_path=`$CYGPATH -u "$windows_path"` 55410 new_path="$unix_path" 55411 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55412 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55413 new_path="$unix_path" 55414 fi 55415 55416 if test "x$path" != "x$new_path"; then 55417 MSVC_DLL="$new_path" 55418 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55419 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55420 fi 55421 55422 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55423 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55424 55425 else 55426 # We're on a unix platform. Hooray! :) 55427 path="$MSVC_DLL" 55428 has_space=`$ECHO "$path" | $GREP " "` 55429 if test "x$has_space" != x; then 55430 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55431 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55432 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55433 fi 55434 55435 # Use eval to expand a potential ~ 55436 eval path="$path" 55437 if test ! -f "$path" && test ! -d "$path"; then 55438 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55439 fi 55440 55441 if test -d "$path"; then 55442 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55443 else 55444 dir="`$DIRNAME "$path"`" 55445 base="`$BASENAME "$path"`" 55446 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55447 fi 55448 fi 55449 fi 55450 55451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55452 $as_echo_n "checking for $DLL_NAME... " >&6; } 55453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55454 $as_echo "$MSVC_DLL" >&6; } 55455 else 55456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55457 $as_echo "incorrect, ignoring" >&6; } 55458 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55459 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55460 fi 55461 fi 55462 55463 fi 55464 55465 if test "x$MSVC_DLL" = x; then 55466 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 55467 if test "x$VS100COMNTOOLS" != x; then 55468 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 55469 55470 windows_path="$CYGWIN_VS_TOOLS_DIR" 55471 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55472 unix_path=`$CYGPATH -u "$windows_path"` 55473 CYGWIN_VS_TOOLS_DIR="$unix_path" 55474 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55475 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55476 CYGWIN_VS_TOOLS_DIR="$unix_path" 55477 fi 55478 55479 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55480 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 55481 | $GREP -i /x64/ | $HEAD --lines 1` 55482 else 55483 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 55484 | $GREP -i /x86/ | $HEAD --lines 1` 55485 fi 55486 55487 DLL_NAME="$DLL_NAME" 55488 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55489 METHOD="search of VS100COMNTOOLS" 55490 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55491 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55492 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55493 55494 # Need to check if the found msvcr is correct architecture 55495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55496 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55497 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55498 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55499 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55500 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55501 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55502 CORRECT_MSVCR_ARCH="PE32 executable" 55503 else 55504 CORRECT_MSVCR_ARCH="PE32+ executable" 55505 fi 55506 else 55507 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55508 CORRECT_MSVCR_ARCH=386 55509 else 55510 CORRECT_MSVCR_ARCH=x86-64 55511 fi 55512 fi 55513 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55515 $as_echo "ok" >&6; } 55516 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55517 55518 # Only process if variable expands to non-empty 55519 55520 if test "x$MSVC_DLL" != x; then 55521 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55522 55523 # Input might be given as Windows format, start by converting to 55524 # unix format. 55525 path="$MSVC_DLL" 55526 new_path=`$CYGPATH -u "$path"` 55527 55528 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55529 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55530 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55531 # "foo.exe" is OK but "foo" is an error. 55532 # 55533 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55534 # It is also a way to make sure we got the proper file name for the real test later on. 55535 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55536 if test "x$test_shortpath" = x; then 55537 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55538 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55539 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55540 fi 55541 55542 # Call helper function which possibly converts this using DOS-style short mode. 55543 # If so, the updated path is stored in $new_path. 55544 55545 input_path="$new_path" 55546 # Check if we need to convert this using DOS-style short mode. If the path 55547 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55548 # take no chances and rewrite it. 55549 # Note: m4 eats our [], so we need to use [ and ] instead. 55550 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55551 if test "x$has_forbidden_chars" != x; then 55552 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55553 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55554 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55555 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55556 # Going to short mode and back again did indeed matter. Since short mode is 55557 # case insensitive, let's make it lowercase to improve readability. 55558 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55559 # Now convert it back to Unix-style (cygpath) 55560 input_path=`$CYGPATH -u "$shortmode_path"` 55561 new_path="$input_path" 55562 fi 55563 fi 55564 55565 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55566 if test "x$test_cygdrive_prefix" = x; then 55567 # As a simple fix, exclude /usr/bin since it's not a real path. 55568 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55569 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55570 # a path prefixed by /cygdrive for fixpath to work. 55571 new_path="$CYGWIN_ROOT_PATH$input_path" 55572 fi 55573 fi 55574 55575 55576 if test "x$path" != "x$new_path"; then 55577 MSVC_DLL="$new_path" 55578 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55579 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55580 fi 55581 55582 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55583 55584 path="$MSVC_DLL" 55585 has_colon=`$ECHO $path | $GREP ^.:` 55586 new_path="$path" 55587 if test "x$has_colon" = x; then 55588 # Not in mixed or Windows style, start by that. 55589 new_path=`cmd //c echo $path` 55590 fi 55591 55592 55593 input_path="$new_path" 55594 # Check if we need to convert this using DOS-style short mode. If the path 55595 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55596 # take no chances and rewrite it. 55597 # Note: m4 eats our [], so we need to use [ and ] instead. 55598 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55599 if test "x$has_forbidden_chars" != x; then 55600 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55601 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55602 fi 55603 55604 55605 windows_path="$new_path" 55606 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55607 unix_path=`$CYGPATH -u "$windows_path"` 55608 new_path="$unix_path" 55609 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55610 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55611 new_path="$unix_path" 55612 fi 55613 55614 if test "x$path" != "x$new_path"; then 55615 MSVC_DLL="$new_path" 55616 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55617 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55618 fi 55619 55620 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55621 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55622 55623 else 55624 # We're on a unix platform. Hooray! :) 55625 path="$MSVC_DLL" 55626 has_space=`$ECHO "$path" | $GREP " "` 55627 if test "x$has_space" != x; then 55628 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55629 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55630 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55631 fi 55632 55633 # Use eval to expand a potential ~ 55634 eval path="$path" 55635 if test ! -f "$path" && test ! -d "$path"; then 55636 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55637 fi 55638 55639 if test -d "$path"; then 55640 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55641 else 55642 dir="`$DIRNAME "$path"`" 55643 base="`$BASENAME "$path"`" 55644 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55645 fi 55646 fi 55647 fi 55648 55649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55650 $as_echo_n "checking for $DLL_NAME... " >&6; } 55651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55652 $as_echo "$MSVC_DLL" >&6; } 55653 else 55654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55655 $as_echo "incorrect, ignoring" >&6; } 55656 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55657 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55658 fi 55659 fi 55660 55661 fi 55662 fi 55663 55664 if test "x$MSVC_DLL" = x; then 55665 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 55666 # (This was the original behaviour; kept since it might turn something up) 55667 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 55668 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55669 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55670 | $GREP x64 | $HEAD --lines 1` 55671 else 55672 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55673 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 55674 if test "x$POSSIBLE_MSVC_DLL" = x; then 55675 # We're grasping at straws now... 55676 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55677 | $HEAD --lines 1` 55678 fi 55679 fi 55680 55681 55682 DLL_NAME="$DLL_NAME" 55683 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55684 METHOD="search of VCINSTALLDIR" 55685 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55686 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55687 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55688 55689 # Need to check if the found msvcr is correct architecture 55690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55691 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55692 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55693 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55694 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55695 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55696 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55697 CORRECT_MSVCR_ARCH="PE32 executable" 55698 else 55699 CORRECT_MSVCR_ARCH="PE32+ executable" 55700 fi 55701 else 55702 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55703 CORRECT_MSVCR_ARCH=386 55704 else 55705 CORRECT_MSVCR_ARCH=x86-64 55706 fi 55707 fi 55708 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55710 $as_echo "ok" >&6; } 55711 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55712 55713 # Only process if variable expands to non-empty 55714 55715 if test "x$MSVC_DLL" != x; then 55716 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55717 55718 # Input might be given as Windows format, start by converting to 55719 # unix format. 55720 path="$MSVC_DLL" 55721 new_path=`$CYGPATH -u "$path"` 55722 55723 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55724 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55725 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55726 # "foo.exe" is OK but "foo" is an error. 55727 # 55728 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55729 # It is also a way to make sure we got the proper file name for the real test later on. 55730 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55731 if test "x$test_shortpath" = x; then 55732 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55733 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55734 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55735 fi 55736 55737 # Call helper function which possibly converts this using DOS-style short mode. 55738 # If so, the updated path is stored in $new_path. 55739 55740 input_path="$new_path" 55741 # Check if we need to convert this using DOS-style short mode. If the path 55742 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55743 # take no chances and rewrite it. 55744 # Note: m4 eats our [], so we need to use [ and ] instead. 55745 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55746 if test "x$has_forbidden_chars" != x; then 55747 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55748 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55749 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55750 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55751 # Going to short mode and back again did indeed matter. Since short mode is 55752 # case insensitive, let's make it lowercase to improve readability. 55753 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55754 # Now convert it back to Unix-style (cygpath) 55755 input_path=`$CYGPATH -u "$shortmode_path"` 55756 new_path="$input_path" 55757 fi 55758 fi 55759 55760 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55761 if test "x$test_cygdrive_prefix" = x; then 55762 # As a simple fix, exclude /usr/bin since it's not a real path. 55763 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55764 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55765 # a path prefixed by /cygdrive for fixpath to work. 55766 new_path="$CYGWIN_ROOT_PATH$input_path" 55767 fi 55768 fi 55769 55770 55771 if test "x$path" != "x$new_path"; then 55772 MSVC_DLL="$new_path" 55773 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55774 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55775 fi 55776 55777 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55778 55779 path="$MSVC_DLL" 55780 has_colon=`$ECHO $path | $GREP ^.:` 55781 new_path="$path" 55782 if test "x$has_colon" = x; then 55783 # Not in mixed or Windows style, start by that. 55784 new_path=`cmd //c echo $path` 55785 fi 55786 55787 55788 input_path="$new_path" 55789 # Check if we need to convert this using DOS-style short mode. If the path 55790 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55791 # take no chances and rewrite it. 55792 # Note: m4 eats our [], so we need to use [ and ] instead. 55793 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55794 if test "x$has_forbidden_chars" != x; then 55795 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55796 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55797 fi 55798 55799 55800 windows_path="$new_path" 55801 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55802 unix_path=`$CYGPATH -u "$windows_path"` 55803 new_path="$unix_path" 55804 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55805 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55806 new_path="$unix_path" 55807 fi 55808 55809 if test "x$path" != "x$new_path"; then 55810 MSVC_DLL="$new_path" 55811 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55812 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55813 fi 55814 55815 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55816 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55817 55818 else 55819 # We're on a unix platform. Hooray! :) 55820 path="$MSVC_DLL" 55821 has_space=`$ECHO "$path" | $GREP " "` 55822 if test "x$has_space" != x; then 55823 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55824 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55825 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55826 fi 55827 55828 # Use eval to expand a potential ~ 55829 eval path="$path" 55830 if test ! -f "$path" && test ! -d "$path"; then 55831 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55832 fi 55833 55834 if test -d "$path"; then 55835 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55836 else 55837 dir="`$DIRNAME "$path"`" 55838 base="`$BASENAME "$path"`" 55839 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55840 fi 55841 fi 55842 fi 55843 55844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55845 $as_echo_n "checking for $DLL_NAME... " >&6; } 55846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55847 $as_echo "$MSVC_DLL" >&6; } 55848 else 55849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55850 $as_echo "incorrect, ignoring" >&6; } 55851 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55852 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55853 fi 55854 fi 55855 55856 fi 55857 fi 55858 55859 if test "x$MSVC_DLL" = x; then 55860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55861 $as_echo_n "checking for $DLL_NAME... " >&6; } 55862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 55863 $as_echo "no" >&6; } 55864 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 55865 fi 55866 55867 MSVCR_DLL="$MSVC_DLL" 55868 fi 55869 55870 55871 55872 # Check whether --with-msvcp-dll was given. 55873 if test "${with_msvcp_dll+set}" = set; then : 55874 withval=$with_msvcp_dll; 55875 fi 55876 55877 55878 if test "x$MSVCP_NAME" != "x"; then 55879 if test "x$with_msvcp_dll" != x; then 55880 # If given explicitly by user, do not probe. If not present, fail directly. 55881 55882 DLL_NAME="$MSVCP_NAME" 55883 POSSIBLE_MSVC_DLL="$with_msvcp_dll" 55884 METHOD="--with-msvcp-dll" 55885 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55886 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55887 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55888 55889 # Need to check if the found msvcr is correct architecture 55890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55891 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55892 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55893 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55894 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55895 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55896 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55897 CORRECT_MSVCR_ARCH="PE32 executable" 55898 else 55899 CORRECT_MSVCR_ARCH="PE32+ executable" 55900 fi 55901 else 55902 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55903 CORRECT_MSVCR_ARCH=386 55904 else 55905 CORRECT_MSVCR_ARCH=x86-64 55906 fi 55907 fi 55908 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55910 $as_echo "ok" >&6; } 55911 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55912 55913 # Only process if variable expands to non-empty 55914 55915 if test "x$MSVC_DLL" != x; then 55916 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55917 55918 # Input might be given as Windows format, start by converting to 55919 # unix format. 55920 path="$MSVC_DLL" 55921 new_path=`$CYGPATH -u "$path"` 55922 55923 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55924 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55925 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55926 # "foo.exe" is OK but "foo" is an error. 55927 # 55928 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55929 # It is also a way to make sure we got the proper file name for the real test later on. 55930 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55931 if test "x$test_shortpath" = x; then 55932 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55933 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55934 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55935 fi 55936 55937 # Call helper function which possibly converts this using DOS-style short mode. 55938 # If so, the updated path is stored in $new_path. 55939 55940 input_path="$new_path" 55941 # Check if we need to convert this using DOS-style short mode. If the path 55942 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55943 # take no chances and rewrite it. 55944 # Note: m4 eats our [], so we need to use [ and ] instead. 55945 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55946 if test "x$has_forbidden_chars" != x; then 55947 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55948 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55949 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55950 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55951 # Going to short mode and back again did indeed matter. Since short mode is 55952 # case insensitive, let's make it lowercase to improve readability. 55953 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55954 # Now convert it back to Unix-style (cygpath) 55955 input_path=`$CYGPATH -u "$shortmode_path"` 55956 new_path="$input_path" 55957 fi 55958 fi 55959 55960 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55961 if test "x$test_cygdrive_prefix" = x; then 55962 # As a simple fix, exclude /usr/bin since it's not a real path. 55963 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55964 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55965 # a path prefixed by /cygdrive for fixpath to work. 55966 new_path="$CYGWIN_ROOT_PATH$input_path" 55967 fi 55968 fi 55969 55970 55971 if test "x$path" != "x$new_path"; then 55972 MSVC_DLL="$new_path" 55973 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55974 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55975 fi 55976 55977 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55978 55979 path="$MSVC_DLL" 55980 has_colon=`$ECHO $path | $GREP ^.:` 55981 new_path="$path" 55982 if test "x$has_colon" = x; then 55983 # Not in mixed or Windows style, start by that. 55984 new_path=`cmd //c echo $path` 55985 fi 55986 55987 55988 input_path="$new_path" 55989 # Check if we need to convert this using DOS-style short mode. If the path 55990 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55991 # take no chances and rewrite it. 55992 # Note: m4 eats our [], so we need to use [ and ] instead. 55993 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55994 if test "x$has_forbidden_chars" != x; then 55995 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55996 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55997 fi 55998 55999 56000 windows_path="$new_path" 56001 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56002 unix_path=`$CYGPATH -u "$windows_path"` 56003 new_path="$unix_path" 56004 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56005 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56006 new_path="$unix_path" 56007 fi 56008 56009 if test "x$path" != "x$new_path"; then 56010 MSVC_DLL="$new_path" 56011 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56012 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56013 fi 56014 56015 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56016 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56017 56018 else 56019 # We're on a unix platform. Hooray! :) 56020 path="$MSVC_DLL" 56021 has_space=`$ECHO "$path" | $GREP " "` 56022 if test "x$has_space" != x; then 56023 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56024 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56025 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56026 fi 56027 56028 # Use eval to expand a potential ~ 56029 eval path="$path" 56030 if test ! -f "$path" && test ! -d "$path"; then 56031 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56032 fi 56033 56034 if test -d "$path"; then 56035 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56036 else 56037 dir="`$DIRNAME "$path"`" 56038 base="`$BASENAME "$path"`" 56039 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56040 fi 56041 fi 56042 fi 56043 56044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56045 $as_echo_n "checking for $DLL_NAME... " >&6; } 56046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56047 $as_echo "$MSVC_DLL" >&6; } 56048 else 56049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56050 $as_echo "incorrect, ignoring" >&6; } 56051 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56052 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56053 fi 56054 fi 56055 56056 if test "x$MSVC_DLL" = x; then 56057 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by --with-msvcp-dll" "$LINENO" 5 56058 fi 56059 MSVCP_DLL="$MSVC_DLL" 56060 elif test "x$DEVKIT_MSVCP_DLL" != x; then 56061 56062 DLL_NAME="$MSVCP_NAME" 56063 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCP_DLL" 56064 METHOD="devkit" 56065 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56066 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56067 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56068 56069 # Need to check if the found msvcr is correct architecture 56070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56071 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56072 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56073 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56074 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56075 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56076 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56077 CORRECT_MSVCR_ARCH="PE32 executable" 56078 else 56079 CORRECT_MSVCR_ARCH="PE32+ executable" 56080 fi 56081 else 56082 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56083 CORRECT_MSVCR_ARCH=386 56084 else 56085 CORRECT_MSVCR_ARCH=x86-64 56086 fi 56087 fi 56088 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56090 $as_echo "ok" >&6; } 56091 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56092 56093 # Only process if variable expands to non-empty 56094 56095 if test "x$MSVC_DLL" != x; then 56096 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56097 56098 # Input might be given as Windows format, start by converting to 56099 # unix format. 56100 path="$MSVC_DLL" 56101 new_path=`$CYGPATH -u "$path"` 56102 56103 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56104 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56105 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56106 # "foo.exe" is OK but "foo" is an error. 56107 # 56108 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56109 # It is also a way to make sure we got the proper file name for the real test later on. 56110 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56111 if test "x$test_shortpath" = x; then 56112 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56113 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56114 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56115 fi 56116 56117 # Call helper function which possibly converts this using DOS-style short mode. 56118 # If so, the updated path is stored in $new_path. 56119 56120 input_path="$new_path" 56121 # Check if we need to convert this using DOS-style short mode. If the path 56122 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56123 # take no chances and rewrite it. 56124 # Note: m4 eats our [], so we need to use [ and ] instead. 56125 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56126 if test "x$has_forbidden_chars" != x; then 56127 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56128 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56129 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56130 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56131 # Going to short mode and back again did indeed matter. Since short mode is 56132 # case insensitive, let's make it lowercase to improve readability. 56133 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56134 # Now convert it back to Unix-style (cygpath) 56135 input_path=`$CYGPATH -u "$shortmode_path"` 56136 new_path="$input_path" 56137 fi 56138 fi 56139 56140 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56141 if test "x$test_cygdrive_prefix" = x; then 56142 # As a simple fix, exclude /usr/bin since it's not a real path. 56143 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56144 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56145 # a path prefixed by /cygdrive for fixpath to work. 56146 new_path="$CYGWIN_ROOT_PATH$input_path" 56147 fi 56148 fi 56149 56150 56151 if test "x$path" != "x$new_path"; then 56152 MSVC_DLL="$new_path" 56153 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56154 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56155 fi 56156 56157 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56158 56159 path="$MSVC_DLL" 56160 has_colon=`$ECHO $path | $GREP ^.:` 56161 new_path="$path" 56162 if test "x$has_colon" = x; then 56163 # Not in mixed or Windows style, start by that. 56164 new_path=`cmd //c echo $path` 56165 fi 56166 56167 56168 input_path="$new_path" 56169 # Check if we need to convert this using DOS-style short mode. If the path 56170 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56171 # take no chances and rewrite it. 56172 # Note: m4 eats our [], so we need to use [ and ] instead. 56173 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56174 if test "x$has_forbidden_chars" != x; then 56175 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56176 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56177 fi 56178 56179 56180 windows_path="$new_path" 56181 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56182 unix_path=`$CYGPATH -u "$windows_path"` 56183 new_path="$unix_path" 56184 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56185 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56186 new_path="$unix_path" 56187 fi 56188 56189 if test "x$path" != "x$new_path"; then 56190 MSVC_DLL="$new_path" 56191 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56192 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56193 fi 56194 56195 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56196 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56197 56198 else 56199 # We're on a unix platform. Hooray! :) 56200 path="$MSVC_DLL" 56201 has_space=`$ECHO "$path" | $GREP " "` 56202 if test "x$has_space" != x; then 56203 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56204 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56205 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56206 fi 56207 56208 # Use eval to expand a potential ~ 56209 eval path="$path" 56210 if test ! -f "$path" && test ! -d "$path"; then 56211 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56212 fi 56213 56214 if test -d "$path"; then 56215 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56216 else 56217 dir="`$DIRNAME "$path"`" 56218 base="`$BASENAME "$path"`" 56219 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56220 fi 56221 fi 56222 fi 56223 56224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56225 $as_echo_n "checking for $DLL_NAME... " >&6; } 56226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56227 $as_echo "$MSVC_DLL" >&6; } 56228 else 56229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56230 $as_echo "incorrect, ignoring" >&6; } 56231 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56232 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56233 fi 56234 fi 56235 56236 if test "x$MSVC_DLL" = x; then 56237 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by devkit" "$LINENO" 5 56238 fi 56239 MSVCP_DLL="$MSVC_DLL" 56240 else 56241 56242 DLL_NAME="${MSVCP_NAME}" 56243 MSVC_DLL= 56244 56245 if test "x$MSVC_DLL" = x; then 56246 # Probe: Using well-known location from Visual Studio 10.0 56247 if test "x$VCINSTALLDIR" != x; then 56248 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 56249 56250 windows_path="$CYGWIN_VC_INSTALL_DIR" 56251 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56252 unix_path=`$CYGPATH -u "$windows_path"` 56253 CYGWIN_VC_INSTALL_DIR="$unix_path" 56254 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56255 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56256 CYGWIN_VC_INSTALL_DIR="$unix_path" 56257 fi 56258 56259 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 56260 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 56261 else 56262 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 56263 fi 56264 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 56265 56266 DLL_NAME="$DLL_NAME" 56267 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56268 METHOD="well-known location in VCINSTALLDIR" 56269 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56270 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56271 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56272 56273 # Need to check if the found msvcr is correct architecture 56274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56275 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56276 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56277 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56278 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56279 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56280 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56281 CORRECT_MSVCR_ARCH="PE32 executable" 56282 else 56283 CORRECT_MSVCR_ARCH="PE32+ executable" 56284 fi 56285 else 56286 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56287 CORRECT_MSVCR_ARCH=386 56288 else 56289 CORRECT_MSVCR_ARCH=x86-64 56290 fi 56291 fi 56292 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56294 $as_echo "ok" >&6; } 56295 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56296 56297 # Only process if variable expands to non-empty 56298 56299 if test "x$MSVC_DLL" != x; then 56300 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56301 56302 # Input might be given as Windows format, start by converting to 56303 # unix format. 56304 path="$MSVC_DLL" 56305 new_path=`$CYGPATH -u "$path"` 56306 56307 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56308 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56309 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56310 # "foo.exe" is OK but "foo" is an error. 56311 # 56312 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56313 # It is also a way to make sure we got the proper file name for the real test later on. 56314 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56315 if test "x$test_shortpath" = x; then 56316 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56317 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56318 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56319 fi 56320 56321 # Call helper function which possibly converts this using DOS-style short mode. 56322 # If so, the updated path is stored in $new_path. 56323 56324 input_path="$new_path" 56325 # Check if we need to convert this using DOS-style short mode. If the path 56326 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56327 # take no chances and rewrite it. 56328 # Note: m4 eats our [], so we need to use [ and ] instead. 56329 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56330 if test "x$has_forbidden_chars" != x; then 56331 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56332 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56333 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56334 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56335 # Going to short mode and back again did indeed matter. Since short mode is 56336 # case insensitive, let's make it lowercase to improve readability. 56337 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56338 # Now convert it back to Unix-style (cygpath) 56339 input_path=`$CYGPATH -u "$shortmode_path"` 56340 new_path="$input_path" 56341 fi 56342 fi 56343 56344 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56345 if test "x$test_cygdrive_prefix" = x; then 56346 # As a simple fix, exclude /usr/bin since it's not a real path. 56347 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56348 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56349 # a path prefixed by /cygdrive for fixpath to work. 56350 new_path="$CYGWIN_ROOT_PATH$input_path" 56351 fi 56352 fi 56353 56354 56355 if test "x$path" != "x$new_path"; then 56356 MSVC_DLL="$new_path" 56357 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56358 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56359 fi 56360 56361 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56362 56363 path="$MSVC_DLL" 56364 has_colon=`$ECHO $path | $GREP ^.:` 56365 new_path="$path" 56366 if test "x$has_colon" = x; then 56367 # Not in mixed or Windows style, start by that. 56368 new_path=`cmd //c echo $path` 56369 fi 56370 56371 56372 input_path="$new_path" 56373 # Check if we need to convert this using DOS-style short mode. If the path 56374 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56375 # take no chances and rewrite it. 56376 # Note: m4 eats our [], so we need to use [ and ] instead. 56377 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56378 if test "x$has_forbidden_chars" != x; then 56379 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56380 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56381 fi 56382 56383 56384 windows_path="$new_path" 56385 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56386 unix_path=`$CYGPATH -u "$windows_path"` 56387 new_path="$unix_path" 56388 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56389 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56390 new_path="$unix_path" 56391 fi 56392 56393 if test "x$path" != "x$new_path"; then 56394 MSVC_DLL="$new_path" 56395 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56396 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56397 fi 56398 56399 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56400 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56401 56402 else 56403 # We're on a unix platform. Hooray! :) 56404 path="$MSVC_DLL" 56405 has_space=`$ECHO "$path" | $GREP " "` 56406 if test "x$has_space" != x; then 56407 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56408 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56409 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56410 fi 56411 56412 # Use eval to expand a potential ~ 56413 eval path="$path" 56414 if test ! -f "$path" && test ! -d "$path"; then 56415 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56416 fi 56417 56418 if test -d "$path"; then 56419 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56420 else 56421 dir="`$DIRNAME "$path"`" 56422 base="`$BASENAME "$path"`" 56423 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56424 fi 56425 fi 56426 fi 56427 56428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56429 $as_echo_n "checking for $DLL_NAME... " >&6; } 56430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56431 $as_echo "$MSVC_DLL" >&6; } 56432 else 56433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56434 $as_echo "incorrect, ignoring" >&6; } 56435 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56436 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56437 fi 56438 fi 56439 56440 fi 56441 fi 56442 56443 if test "x$MSVC_DLL" = x; then 56444 # Probe: Check in the Boot JDK directory. 56445 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 56446 56447 DLL_NAME="$DLL_NAME" 56448 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56449 METHOD="well-known location in Boot JDK" 56450 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56451 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56452 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56453 56454 # Need to check if the found msvcr is correct architecture 56455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56456 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56457 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56458 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56459 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56460 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56461 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56462 CORRECT_MSVCR_ARCH="PE32 executable" 56463 else 56464 CORRECT_MSVCR_ARCH="PE32+ executable" 56465 fi 56466 else 56467 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56468 CORRECT_MSVCR_ARCH=386 56469 else 56470 CORRECT_MSVCR_ARCH=x86-64 56471 fi 56472 fi 56473 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56475 $as_echo "ok" >&6; } 56476 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56477 56478 # Only process if variable expands to non-empty 56479 56480 if test "x$MSVC_DLL" != x; then 56481 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56482 56483 # Input might be given as Windows format, start by converting to 56484 # unix format. 56485 path="$MSVC_DLL" 56486 new_path=`$CYGPATH -u "$path"` 56487 56488 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56489 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56490 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56491 # "foo.exe" is OK but "foo" is an error. 56492 # 56493 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56494 # It is also a way to make sure we got the proper file name for the real test later on. 56495 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56496 if test "x$test_shortpath" = x; then 56497 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56498 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56499 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56500 fi 56501 56502 # Call helper function which possibly converts this using DOS-style short mode. 56503 # If so, the updated path is stored in $new_path. 56504 56505 input_path="$new_path" 56506 # Check if we need to convert this using DOS-style short mode. If the path 56507 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56508 # take no chances and rewrite it. 56509 # Note: m4 eats our [], so we need to use [ and ] instead. 56510 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56511 if test "x$has_forbidden_chars" != x; then 56512 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56513 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56514 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56515 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56516 # Going to short mode and back again did indeed matter. Since short mode is 56517 # case insensitive, let's make it lowercase to improve readability. 56518 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56519 # Now convert it back to Unix-style (cygpath) 56520 input_path=`$CYGPATH -u "$shortmode_path"` 56521 new_path="$input_path" 56522 fi 56523 fi 56524 56525 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56526 if test "x$test_cygdrive_prefix" = x; then 56527 # As a simple fix, exclude /usr/bin since it's not a real path. 56528 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56529 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56530 # a path prefixed by /cygdrive for fixpath to work. 56531 new_path="$CYGWIN_ROOT_PATH$input_path" 56532 fi 56533 fi 56534 56535 56536 if test "x$path" != "x$new_path"; then 56537 MSVC_DLL="$new_path" 56538 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56539 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56540 fi 56541 56542 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56543 56544 path="$MSVC_DLL" 56545 has_colon=`$ECHO $path | $GREP ^.:` 56546 new_path="$path" 56547 if test "x$has_colon" = x; then 56548 # Not in mixed or Windows style, start by that. 56549 new_path=`cmd //c echo $path` 56550 fi 56551 56552 56553 input_path="$new_path" 56554 # Check if we need to convert this using DOS-style short mode. If the path 56555 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56556 # take no chances and rewrite it. 56557 # Note: m4 eats our [], so we need to use [ and ] instead. 56558 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56559 if test "x$has_forbidden_chars" != x; then 56560 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56561 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56562 fi 56563 56564 56565 windows_path="$new_path" 56566 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56567 unix_path=`$CYGPATH -u "$windows_path"` 56568 new_path="$unix_path" 56569 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56570 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56571 new_path="$unix_path" 56572 fi 56573 56574 if test "x$path" != "x$new_path"; then 56575 MSVC_DLL="$new_path" 56576 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56577 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56578 fi 56579 56580 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56581 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56582 56583 else 56584 # We're on a unix platform. Hooray! :) 56585 path="$MSVC_DLL" 56586 has_space=`$ECHO "$path" | $GREP " "` 56587 if test "x$has_space" != x; then 56588 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56589 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56590 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56591 fi 56592 56593 # Use eval to expand a potential ~ 56594 eval path="$path" 56595 if test ! -f "$path" && test ! -d "$path"; then 56596 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56597 fi 56598 56599 if test -d "$path"; then 56600 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56601 else 56602 dir="`$DIRNAME "$path"`" 56603 base="`$BASENAME "$path"`" 56604 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56605 fi 56606 fi 56607 fi 56608 56609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56610 $as_echo_n "checking for $DLL_NAME... " >&6; } 56611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56612 $as_echo "$MSVC_DLL" >&6; } 56613 else 56614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56615 $as_echo "incorrect, ignoring" >&6; } 56616 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56617 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56618 fi 56619 fi 56620 56621 fi 56622 56623 if test "x$MSVC_DLL" = x; then 56624 # Probe: Look in the Windows system32 directory 56625 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 56626 56627 windows_path="$CYGWIN_SYSTEMROOT" 56628 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56629 unix_path=`$CYGPATH -u "$windows_path"` 56630 CYGWIN_SYSTEMROOT="$unix_path" 56631 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56632 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56633 CYGWIN_SYSTEMROOT="$unix_path" 56634 fi 56635 56636 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 56637 56638 DLL_NAME="$DLL_NAME" 56639 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56640 METHOD="well-known location in SYSTEMROOT" 56641 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56642 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56643 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56644 56645 # Need to check if the found msvcr is correct architecture 56646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56647 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56648 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56649 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56650 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56651 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56652 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56653 CORRECT_MSVCR_ARCH="PE32 executable" 56654 else 56655 CORRECT_MSVCR_ARCH="PE32+ executable" 56656 fi 56657 else 56658 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56659 CORRECT_MSVCR_ARCH=386 56660 else 56661 CORRECT_MSVCR_ARCH=x86-64 56662 fi 56663 fi 56664 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56666 $as_echo "ok" >&6; } 56667 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56668 56669 # Only process if variable expands to non-empty 56670 56671 if test "x$MSVC_DLL" != x; then 56672 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56673 56674 # Input might be given as Windows format, start by converting to 56675 # unix format. 56676 path="$MSVC_DLL" 56677 new_path=`$CYGPATH -u "$path"` 56678 56679 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56680 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56681 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56682 # "foo.exe" is OK but "foo" is an error. 56683 # 56684 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56685 # It is also a way to make sure we got the proper file name for the real test later on. 56686 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56687 if test "x$test_shortpath" = x; then 56688 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56689 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56690 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56691 fi 56692 56693 # Call helper function which possibly converts this using DOS-style short mode. 56694 # If so, the updated path is stored in $new_path. 56695 56696 input_path="$new_path" 56697 # Check if we need to convert this using DOS-style short mode. If the path 56698 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56699 # take no chances and rewrite it. 56700 # Note: m4 eats our [], so we need to use [ and ] instead. 56701 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56702 if test "x$has_forbidden_chars" != x; then 56703 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56704 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56705 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56706 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56707 # Going to short mode and back again did indeed matter. Since short mode is 56708 # case insensitive, let's make it lowercase to improve readability. 56709 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56710 # Now convert it back to Unix-style (cygpath) 56711 input_path=`$CYGPATH -u "$shortmode_path"` 56712 new_path="$input_path" 56713 fi 56714 fi 56715 56716 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56717 if test "x$test_cygdrive_prefix" = x; then 56718 # As a simple fix, exclude /usr/bin since it's not a real path. 56719 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56720 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56721 # a path prefixed by /cygdrive for fixpath to work. 56722 new_path="$CYGWIN_ROOT_PATH$input_path" 56723 fi 56724 fi 56725 56726 56727 if test "x$path" != "x$new_path"; then 56728 MSVC_DLL="$new_path" 56729 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56730 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56731 fi 56732 56733 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56734 56735 path="$MSVC_DLL" 56736 has_colon=`$ECHO $path | $GREP ^.:` 56737 new_path="$path" 56738 if test "x$has_colon" = x; then 56739 # Not in mixed or Windows style, start by that. 56740 new_path=`cmd //c echo $path` 56741 fi 56742 56743 56744 input_path="$new_path" 56745 # Check if we need to convert this using DOS-style short mode. If the path 56746 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56747 # take no chances and rewrite it. 56748 # Note: m4 eats our [], so we need to use [ and ] instead. 56749 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56750 if test "x$has_forbidden_chars" != x; then 56751 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56752 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56753 fi 56754 56755 56756 windows_path="$new_path" 56757 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56758 unix_path=`$CYGPATH -u "$windows_path"` 56759 new_path="$unix_path" 56760 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56761 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56762 new_path="$unix_path" 56763 fi 56764 56765 if test "x$path" != "x$new_path"; then 56766 MSVC_DLL="$new_path" 56767 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56768 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56769 fi 56770 56771 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56772 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56773 56774 else 56775 # We're on a unix platform. Hooray! :) 56776 path="$MSVC_DLL" 56777 has_space=`$ECHO "$path" | $GREP " "` 56778 if test "x$has_space" != x; then 56779 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56780 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56781 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56782 fi 56783 56784 # Use eval to expand a potential ~ 56785 eval path="$path" 56786 if test ! -f "$path" && test ! -d "$path"; then 56787 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56788 fi 56789 56790 if test -d "$path"; then 56791 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56792 else 56793 dir="`$DIRNAME "$path"`" 56794 base="`$BASENAME "$path"`" 56795 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56796 fi 56797 fi 56798 fi 56799 56800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56801 $as_echo_n "checking for $DLL_NAME... " >&6; } 56802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56803 $as_echo "$MSVC_DLL" >&6; } 56804 else 56805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56806 $as_echo "incorrect, ignoring" >&6; } 56807 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56808 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56809 fi 56810 fi 56811 56812 fi 56813 56814 if test "x$MSVC_DLL" = x; then 56815 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 56816 if test "x$VS100COMNTOOLS" != x; then 56817 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 56818 56819 windows_path="$CYGWIN_VS_TOOLS_DIR" 56820 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56821 unix_path=`$CYGPATH -u "$windows_path"` 56822 CYGWIN_VS_TOOLS_DIR="$unix_path" 56823 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56824 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56825 CYGWIN_VS_TOOLS_DIR="$unix_path" 56826 fi 56827 56828 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 56829 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 56830 | $GREP -i /x64/ | $HEAD --lines 1` 56831 else 56832 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 56833 | $GREP -i /x86/ | $HEAD --lines 1` 56834 fi 56835 56836 DLL_NAME="$DLL_NAME" 56837 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56838 METHOD="search of VS100COMNTOOLS" 56839 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56840 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56841 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56842 56843 # Need to check if the found msvcr is correct architecture 56844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56845 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56846 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56847 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56848 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56849 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56850 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56851 CORRECT_MSVCR_ARCH="PE32 executable" 56852 else 56853 CORRECT_MSVCR_ARCH="PE32+ executable" 56854 fi 56855 else 56856 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56857 CORRECT_MSVCR_ARCH=386 56858 else 56859 CORRECT_MSVCR_ARCH=x86-64 56860 fi 56861 fi 56862 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56864 $as_echo "ok" >&6; } 56865 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56866 56867 # Only process if variable expands to non-empty 56868 56869 if test "x$MSVC_DLL" != x; then 56870 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56871 56872 # Input might be given as Windows format, start by converting to 56873 # unix format. 56874 path="$MSVC_DLL" 56875 new_path=`$CYGPATH -u "$path"` 56876 56877 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56878 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56879 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56880 # "foo.exe" is OK but "foo" is an error. 56881 # 56882 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56883 # It is also a way to make sure we got the proper file name for the real test later on. 56884 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56885 if test "x$test_shortpath" = x; then 56886 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56887 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56888 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56889 fi 56890 56891 # Call helper function which possibly converts this using DOS-style short mode. 56892 # If so, the updated path is stored in $new_path. 56893 56894 input_path="$new_path" 56895 # Check if we need to convert this using DOS-style short mode. If the path 56896 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56897 # take no chances and rewrite it. 56898 # Note: m4 eats our [], so we need to use [ and ] instead. 56899 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56900 if test "x$has_forbidden_chars" != x; then 56901 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56902 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56903 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56904 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56905 # Going to short mode and back again did indeed matter. Since short mode is 56906 # case insensitive, let's make it lowercase to improve readability. 56907 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56908 # Now convert it back to Unix-style (cygpath) 56909 input_path=`$CYGPATH -u "$shortmode_path"` 56910 new_path="$input_path" 56911 fi 56912 fi 56913 56914 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56915 if test "x$test_cygdrive_prefix" = x; then 56916 # As a simple fix, exclude /usr/bin since it's not a real path. 56917 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56918 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56919 # a path prefixed by /cygdrive for fixpath to work. 56920 new_path="$CYGWIN_ROOT_PATH$input_path" 56921 fi 56922 fi 56923 56924 56925 if test "x$path" != "x$new_path"; then 56926 MSVC_DLL="$new_path" 56927 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56928 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56929 fi 56930 56931 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56932 56933 path="$MSVC_DLL" 56934 has_colon=`$ECHO $path | $GREP ^.:` 56935 new_path="$path" 56936 if test "x$has_colon" = x; then 56937 # Not in mixed or Windows style, start by that. 56938 new_path=`cmd //c echo $path` 56939 fi 56940 56941 56942 input_path="$new_path" 56943 # Check if we need to convert this using DOS-style short mode. If the path 56944 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56945 # take no chances and rewrite it. 56946 # Note: m4 eats our [], so we need to use [ and ] instead. 56947 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56948 if test "x$has_forbidden_chars" != x; then 56949 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56950 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56951 fi 56952 56953 56954 windows_path="$new_path" 56955 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56956 unix_path=`$CYGPATH -u "$windows_path"` 56957 new_path="$unix_path" 56958 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56959 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56960 new_path="$unix_path" 56961 fi 56962 56963 if test "x$path" != "x$new_path"; then 56964 MSVC_DLL="$new_path" 56965 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56966 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56967 fi 56968 56969 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56970 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56971 56972 else 56973 # We're on a unix platform. Hooray! :) 56974 path="$MSVC_DLL" 56975 has_space=`$ECHO "$path" | $GREP " "` 56976 if test "x$has_space" != x; then 56977 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56978 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56979 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56980 fi 56981 56982 # Use eval to expand a potential ~ 56983 eval path="$path" 56984 if test ! -f "$path" && test ! -d "$path"; then 56985 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56986 fi 56987 56988 if test -d "$path"; then 56989 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56990 else 56991 dir="`$DIRNAME "$path"`" 56992 base="`$BASENAME "$path"`" 56993 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56994 fi 56995 fi 56996 fi 56997 56998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56999 $as_echo_n "checking for $DLL_NAME... " >&6; } 57000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57001 $as_echo "$MSVC_DLL" >&6; } 57002 else 57003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57004 $as_echo "incorrect, ignoring" >&6; } 57005 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57006 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57007 fi 57008 fi 57009 57010 fi 57011 fi 57012 57013 if test "x$MSVC_DLL" = x; then 57014 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 57015 # (This was the original behaviour; kept since it might turn something up) 57016 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 57017 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 57018 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 57019 | $GREP x64 | $HEAD --lines 1` 57020 else 57021 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 57022 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 57023 if test "x$POSSIBLE_MSVC_DLL" = x; then 57024 # We're grasping at straws now... 57025 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 57026 | $HEAD --lines 1` 57027 fi 57028 fi 57029 57030 57031 DLL_NAME="$DLL_NAME" 57032 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 57033 METHOD="search of VCINSTALLDIR" 57034 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 57035 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 57036 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 57037 57038 # Need to check if the found msvcr is correct architecture 57039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 57040 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 57041 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 57042 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57043 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 57044 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 57045 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57046 CORRECT_MSVCR_ARCH="PE32 executable" 57047 else 57048 CORRECT_MSVCR_ARCH="PE32+ executable" 57049 fi 57050 else 57051 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57052 CORRECT_MSVCR_ARCH=386 57053 else 57054 CORRECT_MSVCR_ARCH=x86-64 57055 fi 57056 fi 57057 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 57058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 57059 $as_echo "ok" >&6; } 57060 MSVC_DLL="$POSSIBLE_MSVC_DLL" 57061 57062 # Only process if variable expands to non-empty 57063 57064 if test "x$MSVC_DLL" != x; then 57065 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57066 57067 # Input might be given as Windows format, start by converting to 57068 # unix format. 57069 path="$MSVC_DLL" 57070 new_path=`$CYGPATH -u "$path"` 57071 57072 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57073 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57074 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57075 # "foo.exe" is OK but "foo" is an error. 57076 # 57077 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57078 # It is also a way to make sure we got the proper file name for the real test later on. 57079 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57080 if test "x$test_shortpath" = x; then 57081 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57082 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57083 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 57084 fi 57085 57086 # Call helper function which possibly converts this using DOS-style short mode. 57087 # If so, the updated path is stored in $new_path. 57088 57089 input_path="$new_path" 57090 # Check if we need to convert this using DOS-style short mode. If the path 57091 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57092 # take no chances and rewrite it. 57093 # Note: m4 eats our [], so we need to use [ and ] instead. 57094 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57095 if test "x$has_forbidden_chars" != x; then 57096 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57097 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57098 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57099 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57100 # Going to short mode and back again did indeed matter. Since short mode is 57101 # case insensitive, let's make it lowercase to improve readability. 57102 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57103 # Now convert it back to Unix-style (cygpath) 57104 input_path=`$CYGPATH -u "$shortmode_path"` 57105 new_path="$input_path" 57106 fi 57107 fi 57108 57109 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57110 if test "x$test_cygdrive_prefix" = x; then 57111 # As a simple fix, exclude /usr/bin since it's not a real path. 57112 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57113 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57114 # a path prefixed by /cygdrive for fixpath to work. 57115 new_path="$CYGWIN_ROOT_PATH$input_path" 57116 fi 57117 fi 57118 57119 57120 if test "x$path" != "x$new_path"; then 57121 MSVC_DLL="$new_path" 57122 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57123 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57124 fi 57125 57126 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57127 57128 path="$MSVC_DLL" 57129 has_colon=`$ECHO $path | $GREP ^.:` 57130 new_path="$path" 57131 if test "x$has_colon" = x; then 57132 # Not in mixed or Windows style, start by that. 57133 new_path=`cmd //c echo $path` 57134 fi 57135 57136 57137 input_path="$new_path" 57138 # Check if we need to convert this using DOS-style short mode. If the path 57139 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57140 # take no chances and rewrite it. 57141 # Note: m4 eats our [], so we need to use [ and ] instead. 57142 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57143 if test "x$has_forbidden_chars" != x; then 57144 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57145 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57146 fi 57147 57148 57149 windows_path="$new_path" 57150 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57151 unix_path=`$CYGPATH -u "$windows_path"` 57152 new_path="$unix_path" 57153 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57154 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57155 new_path="$unix_path" 57156 fi 57157 57158 if test "x$path" != "x$new_path"; then 57159 MSVC_DLL="$new_path" 57160 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57161 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57162 fi 57163 57164 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57165 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57166 57167 else 57168 # We're on a unix platform. Hooray! :) 57169 path="$MSVC_DLL" 57170 has_space=`$ECHO "$path" | $GREP " "` 57171 if test "x$has_space" != x; then 57172 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57173 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57174 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57175 fi 57176 57177 # Use eval to expand a potential ~ 57178 eval path="$path" 57179 if test ! -f "$path" && test ! -d "$path"; then 57180 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 57181 fi 57182 57183 if test -d "$path"; then 57184 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 57185 else 57186 dir="`$DIRNAME "$path"`" 57187 base="`$BASENAME "$path"`" 57188 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 57189 fi 57190 fi 57191 fi 57192 57193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57194 $as_echo_n "checking for $DLL_NAME... " >&6; } 57195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57196 $as_echo "$MSVC_DLL" >&6; } 57197 else 57198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57199 $as_echo "incorrect, ignoring" >&6; } 57200 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57201 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57202 fi 57203 fi 57204 57205 fi 57206 fi 57207 57208 if test "x$MSVC_DLL" = x; then 57209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57210 $as_echo_n "checking for $DLL_NAME... " >&6; } 57211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 57212 $as_echo "no" >&6; } 57213 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 57214 fi 57215 57216 MSVCP_DLL="$MSVC_DLL" 57217 fi 57218 57219 fi 57220 57221 fi 57222 57223 57224 if test "x$NEEDS_LIB_X11" = xfalse; then 57225 if (test "x${with_x}" != x && test "x${with_x}" != xno); then 57226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 is not used, so --with-x is ignored" >&5 57227 $as_echo "$as_me: WARNING: X11 is not used, so --with-x is ignored" >&2;} 57228 fi 57229 X_CFLAGS= 57230 X_LIBS= 57231 else 57232 57233 if test "x${with_x}" = xno; then 57234 as_fn_error $? "It is not possible to disable the use of X11. Remove the --without-x option." "$LINENO" 5 57235 fi 57236 57237 if test "x${with_x}" != x && test "x${with_x}" != xyes; then 57238 # The user has specified a X11 base directory. Use it for includes and 57239 # libraries, unless explicitly overridden. 57240 if test "x$x_includes" = xNONE; then 57241 x_includes="${with_x}/include" 57242 fi 57243 if test "x$x_libraries" = xNONE; then 57244 x_libraries="${with_x}/lib" 57245 fi 57246 else 57247 # Check if the user has specified sysroot, but not --with-x, --x-includes or --x-libraries. 57248 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 57249 # --x-libraries for the sysroot, if that seems to be correct. 57250 if test "x$SYSROOT" != "x"; then 57251 if test "x$x_includes" = xNONE; then 57252 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 57253 x_includes="$SYSROOT/usr/X11R6/include" 57254 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 57255 x_includes="$SYSROOT/usr/include" 57256 fi 57257 fi 57258 if test "x$x_libraries" = xNONE; then 57259 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 57260 x_libraries="$SYSROOT/usr/X11R6/lib" 57261 elif test -f "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 57262 x_libraries="$SYSROOT/usr/lib64" 57263 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 57264 x_libraries="$SYSROOT/usr/lib" 57265 fi 57266 fi 57267 fi 57268 fi 57269 57270 # Now let autoconf do it's magic 57271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 57272 $as_echo_n "checking for X... " >&6; } 57273 57274 57275 # Check whether --with-x was given. 57276 if test "${with_x+set}" = set; then : 57277 withval=$with_x; 57278 fi 57279 57280 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 57281 if test "x$with_x" = xno; then 57282 # The user explicitly disabled X. 57283 have_x=disabled 57284 else 57285 case $x_includes,$x_libraries in #( 57286 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 57287 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 57288 $as_echo_n "(cached) " >&6 57289 else 57290 # One or both of the vars are not set, and there is no cached value. 57291 ac_x_includes=no ac_x_libraries=no 57292 rm -f -r conftest.dir 57293 if mkdir conftest.dir; then 57294 cd conftest.dir 57295 cat >Imakefile <<'_ACEOF' 57296 incroot: 57297 @echo incroot='${INCROOT}' 57298 usrlibdir: 57299 @echo usrlibdir='${USRLIBDIR}' 57300 libdir: 57301 @echo libdir='${LIBDIR}' 57302 _ACEOF 57303 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 57304 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 57305 for ac_var in incroot usrlibdir libdir; do 57306 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 57307 done 57308 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 57309 for ac_extension in a so sl dylib la dll; do 57310 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 57311 test -f "$ac_im_libdir/libX11.$ac_extension"; then 57312 ac_im_usrlibdir=$ac_im_libdir; break 57313 fi 57314 done 57315 # Screen out bogus values from the imake configuration. They are 57316 # bogus both because they are the default anyway, and because 57317 # using them would break gcc on systems where it needs fixed includes. 57318 case $ac_im_incroot in 57319 /usr/include) ac_x_includes= ;; 57320 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 57321 esac 57322 case $ac_im_usrlibdir in 57323 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 57324 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 57325 esac 57326 fi 57327 cd .. 57328 rm -f -r conftest.dir 57329 fi 57330 57331 # Standard set of common directories for X headers. 57332 # Check X11 before X11Rn because it is often a symlink to the current release. 57333 ac_x_header_dirs=' 57334 /usr/X11/include 57335 /usr/X11R7/include 57336 /usr/X11R6/include 57337 /usr/X11R5/include 57338 /usr/X11R4/include 57339 57340 /usr/include/X11 57341 /usr/include/X11R7 57342 /usr/include/X11R6 57343 /usr/include/X11R5 57344 /usr/include/X11R4 57345 57346 /usr/local/X11/include 57347 /usr/local/X11R7/include 57348 /usr/local/X11R6/include 57349 /usr/local/X11R5/include 57350 /usr/local/X11R4/include 57351 57352 /usr/local/include/X11 57353 /usr/local/include/X11R7 57354 /usr/local/include/X11R6 57355 /usr/local/include/X11R5 57356 /usr/local/include/X11R4 57357 57358 /usr/X386/include 57359 /usr/x386/include 57360 /usr/XFree86/include/X11 57361 57362 /usr/include 57363 /usr/local/include 57364 /usr/unsupported/include 57365 /usr/athena/include 57366 /usr/local/x11r5/include 57367 /usr/lpp/Xamples/include 57368 57369 /usr/openwin/include 57370 /usr/openwin/share/include' 57371 57372 if test "$ac_x_includes" = no; then 57373 # Guess where to find include files, by looking for Xlib.h. 57374 # First, try using that file with no special directory specified. 57375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57376 /* end confdefs.h. */ 57377 #include <X11/Xlib.h> 57378 _ACEOF 57379 if ac_fn_cxx_try_cpp "$LINENO"; then : 57380 # We can compile using X headers with no special include directory. 57381 ac_x_includes= 57382 else 57383 for ac_dir in $ac_x_header_dirs; do 57384 if test -r "$ac_dir/X11/Xlib.h"; then 57385 ac_x_includes=$ac_dir 57386 break 57387 fi 57388 done 57389 fi 57390 rm -f conftest.err conftest.i conftest.$ac_ext 57391 fi # $ac_x_includes = no 57392 57393 if test "$ac_x_libraries" = no; then 57394 # Check for the libraries. 57395 # See if we find them without any special options. 57396 # Don't add to $LIBS permanently. 57397 ac_save_LIBS=$LIBS 57398 LIBS="-lX11 $LIBS" 57399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57400 /* end confdefs.h. */ 57401 #include <X11/Xlib.h> 57402 int 57403 main () 57404 { 57405 XrmInitialize () 57406 ; 57407 return 0; 57408 } 57409 _ACEOF 57410 if ac_fn_cxx_try_link "$LINENO"; then : 57411 LIBS=$ac_save_LIBS 57412 # We can link X programs with no special library path. 57413 ac_x_libraries= 57414 else 57415 LIBS=$ac_save_LIBS 57416 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 57417 do 57418 # Don't even attempt the hair of trying to link an X program! 57419 for ac_extension in a so sl dylib la dll; do 57420 if test -r "$ac_dir/libX11.$ac_extension"; then 57421 ac_x_libraries=$ac_dir 57422 break 2 57423 fi 57424 done 57425 done 57426 fi 57427 rm -f core conftest.err conftest.$ac_objext \ 57428 conftest$ac_exeext conftest.$ac_ext 57429 fi # $ac_x_libraries = no 57430 57431 case $ac_x_includes,$ac_x_libraries in #( 57432 no,* | *,no | *\'*) 57433 # Didn't find X, or a directory has "'" in its name. 57434 ac_cv_have_x="have_x=no";; #( 57435 *) 57436 # Record where we found X for the cache. 57437 ac_cv_have_x="have_x=yes\ 57438 ac_x_includes='$ac_x_includes'\ 57439 ac_x_libraries='$ac_x_libraries'" 57440 esac 57441 fi 57442 ;; #( 57443 *) have_x=yes;; 57444 esac 57445 eval "$ac_cv_have_x" 57446 fi # $with_x != no 57447 57448 if test "$have_x" != yes; then 57449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 57450 $as_echo "$have_x" >&6; } 57451 no_x=yes 57452 else 57453 # If each of the values was on the command line, it overrides each guess. 57454 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 57455 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 57456 # Update the cache value to reflect the command line values. 57457 ac_cv_have_x="have_x=yes\ 57458 ac_x_includes='$x_includes'\ 57459 ac_x_libraries='$x_libraries'" 57460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 57461 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 57462 fi 57463 57464 if test "$no_x" = yes; then 57465 # Not all programs may use this symbol, but it does not hurt to define it. 57466 57467 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 57468 57469 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 57470 else 57471 if test -n "$x_includes"; then 57472 X_CFLAGS="$X_CFLAGS -I$x_includes" 57473 fi 57474 57475 # It would also be nice to do this for all -L options, not just this one. 57476 if test -n "$x_libraries"; then 57477 X_LIBS="$X_LIBS -L$x_libraries" 57478 # For Solaris; some versions of Sun CC require a space after -R and 57479 # others require no space. Words are not sufficient . . . . 57480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 57481 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 57482 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 57483 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 57484 ac_cxx_werror_flag=yes 57485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57486 /* end confdefs.h. */ 57487 57488 int 57489 main () 57490 { 57491 57492 ; 57493 return 0; 57494 } 57495 _ACEOF 57496 if ac_fn_cxx_try_link "$LINENO"; then : 57497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 57498 $as_echo "no" >&6; } 57499 X_LIBS="$X_LIBS -R$x_libraries" 57500 else 57501 LIBS="$ac_xsave_LIBS -R $x_libraries" 57502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57503 /* end confdefs.h. */ 57504 57505 int 57506 main () 57507 { 57508 57509 ; 57510 return 0; 57511 } 57512 _ACEOF 57513 if ac_fn_cxx_try_link "$LINENO"; then : 57514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 57515 $as_echo "yes" >&6; } 57516 X_LIBS="$X_LIBS -R $x_libraries" 57517 else 57518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 57519 $as_echo "neither works" >&6; } 57520 fi 57521 rm -f core conftest.err conftest.$ac_objext \ 57522 conftest$ac_exeext conftest.$ac_ext 57523 fi 57524 rm -f core conftest.err conftest.$ac_objext \ 57525 conftest$ac_exeext conftest.$ac_ext 57526 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 57527 LIBS=$ac_xsave_LIBS 57528 fi 57529 57530 # Check for system-dependent libraries X programs must link with. 57531 # Do this before checking for the system-independent R6 libraries 57532 # (-lICE), since we may need -lsocket or whatever for X linking. 57533 57534 if test "$ISC" = yes; then 57535 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 57536 else 57537 # Martyn Johnson says this is needed for Ultrix, if the X 57538 # libraries were built with DECnet support. And Karl Berry says 57539 # the Alpha needs dnet_stub (dnet does not exist). 57540 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 57541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57542 /* end confdefs.h. */ 57543 57544 /* Override any GCC internal prototype to avoid an error. 57545 Use char because int might match the return type of a GCC 57546 builtin and then its argument prototype would still apply. */ 57547 #ifdef __cplusplus 57548 extern "C" 57549 #endif 57550 char XOpenDisplay (); 57551 int 57552 main () 57553 { 57554 return XOpenDisplay (); 57555 ; 57556 return 0; 57557 } 57558 _ACEOF 57559 if ac_fn_cxx_try_link "$LINENO"; then : 57560 57561 else 57562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 57563 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 57564 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 57565 $as_echo_n "(cached) " >&6 57566 else 57567 ac_check_lib_save_LIBS=$LIBS 57568 LIBS="-ldnet $LIBS" 57569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57570 /* end confdefs.h. */ 57571 57572 /* Override any GCC internal prototype to avoid an error. 57573 Use char because int might match the return type of a GCC 57574 builtin and then its argument prototype would still apply. */ 57575 #ifdef __cplusplus 57576 extern "C" 57577 #endif 57578 char dnet_ntoa (); 57579 int 57580 main () 57581 { 57582 return dnet_ntoa (); 57583 ; 57584 return 0; 57585 } 57586 _ACEOF 57587 if ac_fn_cxx_try_link "$LINENO"; then : 57588 ac_cv_lib_dnet_dnet_ntoa=yes 57589 else 57590 ac_cv_lib_dnet_dnet_ntoa=no 57591 fi 57592 rm -f core conftest.err conftest.$ac_objext \ 57593 conftest$ac_exeext conftest.$ac_ext 57594 LIBS=$ac_check_lib_save_LIBS 57595 fi 57596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 57597 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 57598 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 57599 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 57600 fi 57601 57602 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 57603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 57604 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 57605 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 57606 $as_echo_n "(cached) " >&6 57607 else 57608 ac_check_lib_save_LIBS=$LIBS 57609 LIBS="-ldnet_stub $LIBS" 57610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57611 /* end confdefs.h. */ 57612 57613 /* Override any GCC internal prototype to avoid an error. 57614 Use char because int might match the return type of a GCC 57615 builtin and then its argument prototype would still apply. */ 57616 #ifdef __cplusplus 57617 extern "C" 57618 #endif 57619 char dnet_ntoa (); 57620 int 57621 main () 57622 { 57623 return dnet_ntoa (); 57624 ; 57625 return 0; 57626 } 57627 _ACEOF 57628 if ac_fn_cxx_try_link "$LINENO"; then : 57629 ac_cv_lib_dnet_stub_dnet_ntoa=yes 57630 else 57631 ac_cv_lib_dnet_stub_dnet_ntoa=no 57632 fi 57633 rm -f core conftest.err conftest.$ac_objext \ 57634 conftest$ac_exeext conftest.$ac_ext 57635 LIBS=$ac_check_lib_save_LIBS 57636 fi 57637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 57638 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 57639 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 57640 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 57641 fi 57642 57643 fi 57644 fi 57645 rm -f core conftest.err conftest.$ac_objext \ 57646 conftest$ac_exeext conftest.$ac_ext 57647 LIBS="$ac_xsave_LIBS" 57648 57649 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 57650 # to get the SysV transport functions. 57651 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 57652 # needs -lnsl. 57653 # The nsl library prevents programs from opening the X display 57654 # on Irix 5.2, according to T.E. Dickey. 57655 # The functions gethostbyname, getservbyname, and inet_addr are 57656 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 57657 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 57658 if test "x$ac_cv_func_gethostbyname" = xyes; then : 57659 57660 fi 57661 57662 if test $ac_cv_func_gethostbyname = no; then 57663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 57664 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 57665 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 57666 $as_echo_n "(cached) " >&6 57667 else 57668 ac_check_lib_save_LIBS=$LIBS 57669 LIBS="-lnsl $LIBS" 57670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57671 /* end confdefs.h. */ 57672 57673 /* Override any GCC internal prototype to avoid an error. 57674 Use char because int might match the return type of a GCC 57675 builtin and then its argument prototype would still apply. */ 57676 #ifdef __cplusplus 57677 extern "C" 57678 #endif 57679 char gethostbyname (); 57680 int 57681 main () 57682 { 57683 return gethostbyname (); 57684 ; 57685 return 0; 57686 } 57687 _ACEOF 57688 if ac_fn_cxx_try_link "$LINENO"; then : 57689 ac_cv_lib_nsl_gethostbyname=yes 57690 else 57691 ac_cv_lib_nsl_gethostbyname=no 57692 fi 57693 rm -f core conftest.err conftest.$ac_objext \ 57694 conftest$ac_exeext conftest.$ac_ext 57695 LIBS=$ac_check_lib_save_LIBS 57696 fi 57697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 57698 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 57699 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 57700 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 57701 fi 57702 57703 if test $ac_cv_lib_nsl_gethostbyname = no; then 57704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 57705 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 57706 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 57707 $as_echo_n "(cached) " >&6 57708 else 57709 ac_check_lib_save_LIBS=$LIBS 57710 LIBS="-lbsd $LIBS" 57711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57712 /* end confdefs.h. */ 57713 57714 /* Override any GCC internal prototype to avoid an error. 57715 Use char because int might match the return type of a GCC 57716 builtin and then its argument prototype would still apply. */ 57717 #ifdef __cplusplus 57718 extern "C" 57719 #endif 57720 char gethostbyname (); 57721 int 57722 main () 57723 { 57724 return gethostbyname (); 57725 ; 57726 return 0; 57727 } 57728 _ACEOF 57729 if ac_fn_cxx_try_link "$LINENO"; then : 57730 ac_cv_lib_bsd_gethostbyname=yes 57731 else 57732 ac_cv_lib_bsd_gethostbyname=no 57733 fi 57734 rm -f core conftest.err conftest.$ac_objext \ 57735 conftest$ac_exeext conftest.$ac_ext 57736 LIBS=$ac_check_lib_save_LIBS 57737 fi 57738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 57739 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 57740 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 57741 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 57742 fi 57743 57744 fi 57745 fi 57746 57747 # lieder@skyler.mavd.honeywell.com says without -lsocket, 57748 # socket/setsockopt and other routines are undefined under SCO ODT 57749 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 57750 # on later versions), says Simon Leinen: it contains gethostby* 57751 # variants that don't use the name server (or something). -lsocket 57752 # must be given before -lnsl if both are needed. We assume that 57753 # if connect needs -lnsl, so does gethostbyname. 57754 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 57755 if test "x$ac_cv_func_connect" = xyes; then : 57756 57757 fi 57758 57759 if test $ac_cv_func_connect = no; then 57760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 57761 $as_echo_n "checking for connect in -lsocket... " >&6; } 57762 if ${ac_cv_lib_socket_connect+:} false; then : 57763 $as_echo_n "(cached) " >&6 57764 else 57765 ac_check_lib_save_LIBS=$LIBS 57766 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 57767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57768 /* end confdefs.h. */ 57769 57770 /* Override any GCC internal prototype to avoid an error. 57771 Use char because int might match the return type of a GCC 57772 builtin and then its argument prototype would still apply. */ 57773 #ifdef __cplusplus 57774 extern "C" 57775 #endif 57776 char connect (); 57777 int 57778 main () 57779 { 57780 return connect (); 57781 ; 57782 return 0; 57783 } 57784 _ACEOF 57785 if ac_fn_cxx_try_link "$LINENO"; then : 57786 ac_cv_lib_socket_connect=yes 57787 else 57788 ac_cv_lib_socket_connect=no 57789 fi 57790 rm -f core conftest.err conftest.$ac_objext \ 57791 conftest$ac_exeext conftest.$ac_ext 57792 LIBS=$ac_check_lib_save_LIBS 57793 fi 57794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 57795 $as_echo "$ac_cv_lib_socket_connect" >&6; } 57796 if test "x$ac_cv_lib_socket_connect" = xyes; then : 57797 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 57798 fi 57799 57800 fi 57801 57802 # Guillermo Gomez says -lposix is necessary on A/UX. 57803 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 57804 if test "x$ac_cv_func_remove" = xyes; then : 57805 57806 fi 57807 57808 if test $ac_cv_func_remove = no; then 57809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 57810 $as_echo_n "checking for remove in -lposix... " >&6; } 57811 if ${ac_cv_lib_posix_remove+:} false; then : 57812 $as_echo_n "(cached) " >&6 57813 else 57814 ac_check_lib_save_LIBS=$LIBS 57815 LIBS="-lposix $LIBS" 57816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57817 /* end confdefs.h. */ 57818 57819 /* Override any GCC internal prototype to avoid an error. 57820 Use char because int might match the return type of a GCC 57821 builtin and then its argument prototype would still apply. */ 57822 #ifdef __cplusplus 57823 extern "C" 57824 #endif 57825 char remove (); 57826 int 57827 main () 57828 { 57829 return remove (); 57830 ; 57831 return 0; 57832 } 57833 _ACEOF 57834 if ac_fn_cxx_try_link "$LINENO"; then : 57835 ac_cv_lib_posix_remove=yes 57836 else 57837 ac_cv_lib_posix_remove=no 57838 fi 57839 rm -f core conftest.err conftest.$ac_objext \ 57840 conftest$ac_exeext conftest.$ac_ext 57841 LIBS=$ac_check_lib_save_LIBS 57842 fi 57843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 57844 $as_echo "$ac_cv_lib_posix_remove" >&6; } 57845 if test "x$ac_cv_lib_posix_remove" = xyes; then : 57846 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 57847 fi 57848 57849 fi 57850 57851 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 57852 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 57853 if test "x$ac_cv_func_shmat" = xyes; then : 57854 57855 fi 57856 57857 if test $ac_cv_func_shmat = no; then 57858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 57859 $as_echo_n "checking for shmat in -lipc... " >&6; } 57860 if ${ac_cv_lib_ipc_shmat+:} false; then : 57861 $as_echo_n "(cached) " >&6 57862 else 57863 ac_check_lib_save_LIBS=$LIBS 57864 LIBS="-lipc $LIBS" 57865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57866 /* end confdefs.h. */ 57867 57868 /* Override any GCC internal prototype to avoid an error. 57869 Use char because int might match the return type of a GCC 57870 builtin and then its argument prototype would still apply. */ 57871 #ifdef __cplusplus 57872 extern "C" 57873 #endif 57874 char shmat (); 57875 int 57876 main () 57877 { 57878 return shmat (); 57879 ; 57880 return 0; 57881 } 57882 _ACEOF 57883 if ac_fn_cxx_try_link "$LINENO"; then : 57884 ac_cv_lib_ipc_shmat=yes 57885 else 57886 ac_cv_lib_ipc_shmat=no 57887 fi 57888 rm -f core conftest.err conftest.$ac_objext \ 57889 conftest$ac_exeext conftest.$ac_ext 57890 LIBS=$ac_check_lib_save_LIBS 57891 fi 57892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 57893 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 57894 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 57895 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 57896 fi 57897 57898 fi 57899 fi 57900 57901 # Check for libraries that X11R6 Xt/Xaw programs need. 57902 ac_save_LDFLAGS=$LDFLAGS 57903 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 57904 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 57905 # check for ICE first), but we must link in the order -lSM -lICE or 57906 # we get undefined symbols. So assume we have SM if we have ICE. 57907 # These have to be linked with before -lX11, unlike the other 57908 # libraries we check for below, so use a different variable. 57909 # John Interrante, Karl Berry 57910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 57911 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 57912 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 57913 $as_echo_n "(cached) " >&6 57914 else 57915 ac_check_lib_save_LIBS=$LIBS 57916 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 57917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57918 /* end confdefs.h. */ 57919 57920 /* Override any GCC internal prototype to avoid an error. 57921 Use char because int might match the return type of a GCC 57922 builtin and then its argument prototype would still apply. */ 57923 #ifdef __cplusplus 57924 extern "C" 57925 #endif 57926 char IceConnectionNumber (); 57927 int 57928 main () 57929 { 57930 return IceConnectionNumber (); 57931 ; 57932 return 0; 57933 } 57934 _ACEOF 57935 if ac_fn_cxx_try_link "$LINENO"; then : 57936 ac_cv_lib_ICE_IceConnectionNumber=yes 57937 else 57938 ac_cv_lib_ICE_IceConnectionNumber=no 57939 fi 57940 rm -f core conftest.err conftest.$ac_objext \ 57941 conftest$ac_exeext conftest.$ac_ext 57942 LIBS=$ac_check_lib_save_LIBS 57943 fi 57944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 57945 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 57946 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 57947 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 57948 fi 57949 57950 LDFLAGS=$ac_save_LDFLAGS 57951 57952 fi 57953 57954 57955 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 57956 # this doesn't make sense so we remove it. 57957 if test "x$COMPILE_TYPE" = xcross; then 57958 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 57959 fi 57960 57961 if test "x$no_x" = xyes; then 57962 57963 # Print a helpful message on how to acquire the necessary build dependency. 57964 # x11 is the help tag: freetype, cups, alsa etc 57965 MISSING_DEPENDENCY=x11 57966 57967 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57968 cygwin_help $MISSING_DEPENDENCY 57969 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57970 msys_help $MISSING_DEPENDENCY 57971 else 57972 PKGHANDLER_COMMAND= 57973 57974 case $PKGHANDLER in 57975 apt-get) 57976 apt_help $MISSING_DEPENDENCY ;; 57977 yum) 57978 yum_help $MISSING_DEPENDENCY ;; 57979 brew) 57980 brew_help $MISSING_DEPENDENCY ;; 57981 port) 57982 port_help $MISSING_DEPENDENCY ;; 57983 pkgutil) 57984 pkgutil_help $MISSING_DEPENDENCY ;; 57985 pkgadd) 57986 pkgadd_help $MISSING_DEPENDENCY ;; 57987 esac 57988 57989 if test "x$PKGHANDLER_COMMAND" != x; then 57990 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 57991 fi 57992 fi 57993 57994 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 57995 fi 57996 57997 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 57998 OPENWIN_HOME="/usr/openwin" 57999 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 58000 X_LIBS="-L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 58001 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 58002 fi 58003 58004 ac_ext=c 58005 ac_cpp='$CPP $CPPFLAGS' 58006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 58007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 58008 ac_compiler_gnu=$ac_cv_c_compiler_gnu 58009 58010 OLD_CFLAGS="$CFLAGS" 58011 CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS" 58012 58013 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 58014 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 58015 do : 58016 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 58017 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 58018 # include <X11/Xlib.h> 58019 # include <X11/Xutil.h> 58020 58021 58022 " 58023 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 58024 cat >>confdefs.h <<_ACEOF 58025 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 58026 _ACEOF 58027 X11_HEADERS_OK=yes 58028 else 58029 X11_HEADERS_OK=no; break 58030 fi 58031 58032 done 58033 58034 58035 if test "x$X11_HEADERS_OK" = xno; then 58036 58037 # Print a helpful message on how to acquire the necessary build dependency. 58038 # x11 is the help tag: freetype, cups, alsa etc 58039 MISSING_DEPENDENCY=x11 58040 58041 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58042 cygwin_help $MISSING_DEPENDENCY 58043 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58044 msys_help $MISSING_DEPENDENCY 58045 else 58046 PKGHANDLER_COMMAND= 58047 58048 case $PKGHANDLER in 58049 apt-get) 58050 apt_help $MISSING_DEPENDENCY ;; 58051 yum) 58052 yum_help $MISSING_DEPENDENCY ;; 58053 brew) 58054 brew_help $MISSING_DEPENDENCY ;; 58055 port) 58056 port_help $MISSING_DEPENDENCY ;; 58057 pkgutil) 58058 pkgutil_help $MISSING_DEPENDENCY ;; 58059 pkgadd) 58060 pkgadd_help $MISSING_DEPENDENCY ;; 58061 esac 58062 58063 if test "x$PKGHANDLER_COMMAND" != x; then 58064 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 58065 fi 58066 fi 58067 58068 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 58069 fi 58070 58071 # If XLinearGradient isn't available in Xrender.h, signal that it needs to be 58072 # defined in libawt_xawt. 58073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XlinearGradient is defined in Xrender.h" >&5 58074 $as_echo_n "checking if XlinearGradient is defined in Xrender.h... " >&6; } 58075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58076 /* end confdefs.h. */ 58077 #include <X11/extensions/Xrender.h> 58078 int 58079 main () 58080 { 58081 XLinearGradient x; 58082 ; 58083 return 0; 58084 } 58085 _ACEOF 58086 if ac_fn_c_try_compile "$LINENO"; then : 58087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 58088 $as_echo "yes" >&6; } 58089 else 58090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58091 $as_echo "no" >&6; } 58092 X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS" 58093 fi 58094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 58095 58096 CFLAGS="$OLD_CFLAGS" 58097 ac_ext=cpp 58098 ac_cpp='$CXXCPP $CPPFLAGS' 58099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 58100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 58101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 58102 58103 fi # NEEDS_LIB_X11 58104 58105 58106 58107 58108 58109 58110 # Check whether --with-cups was given. 58111 if test "${with_cups+set}" = set; then : 58112 withval=$with_cups; 58113 fi 58114 58115 58116 # Check whether --with-cups-include was given. 58117 if test "${with_cups_include+set}" = set; then : 58118 withval=$with_cups_include; 58119 fi 58120 58121 58122 if test "x$NEEDS_LIB_CUPS" = xfalse; then 58123 if (test "x${with_cups}" != x && test "x${with_cups}" != xno) || \ 58124 (test "x${with_cups_include}" != x && test "x${with_cups_include}" != xno); then 58125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups[-*] is ignored" >&5 58126 $as_echo "$as_me: WARNING: cups not used, so --with-cups[-*] is ignored" >&2;} 58127 fi 58128 CUPS_CFLAGS= 58129 else 58130 CUPS_FOUND=no 58131 58132 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 58133 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 58134 fi 58135 58136 if test "x${with_cups}" != x; then 58137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 58138 $as_echo_n "checking for cups headers... " >&6; } 58139 if test -s "${with_cups}/include/cups/cups.h"; then 58140 CUPS_CFLAGS="-I${with_cups}/include" 58141 CUPS_FOUND=yes 58142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 58143 $as_echo "$CUPS_FOUND" >&6; } 58144 else 58145 as_fn_error $? "Can't find 'include/cups/cups.h' under ${with_cups} given with the --with-cups option." "$LINENO" 5 58146 fi 58147 fi 58148 if test "x${with_cups_include}" != x; then 58149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 58150 $as_echo_n "checking for cups headers... " >&6; } 58151 if test -s "${with_cups_include}/cups/cups.h"; then 58152 CUPS_CFLAGS="-I${with_cups_include}" 58153 CUPS_FOUND=yes 58154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 58155 $as_echo "$CUPS_FOUND" >&6; } 58156 else 58157 as_fn_error $? "Can't find 'cups/cups.h' under ${with_cups_include} given with the --with-cups-include option." "$LINENO" 5 58158 fi 58159 fi 58160 if test "x$CUPS_FOUND" = xno; then 58161 # Are the cups headers installed in the default /usr/include location? 58162 for ac_header in cups/cups.h cups/ppd.h 58163 do : 58164 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 58165 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 58166 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 58167 cat >>confdefs.h <<_ACEOF 58168 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 58169 _ACEOF 58170 58171 CUPS_FOUND=yes 58172 CUPS_CFLAGS= 58173 DEFAULT_CUPS=yes 58174 58175 fi 58176 58177 done 58178 58179 fi 58180 if test "x$CUPS_FOUND" = xno; then 58181 58182 # Print a helpful message on how to acquire the necessary build dependency. 58183 # cups is the help tag: freetype, cups, alsa etc 58184 MISSING_DEPENDENCY=cups 58185 58186 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58187 cygwin_help $MISSING_DEPENDENCY 58188 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58189 msys_help $MISSING_DEPENDENCY 58190 else 58191 PKGHANDLER_COMMAND= 58192 58193 case $PKGHANDLER in 58194 apt-get) 58195 apt_help $MISSING_DEPENDENCY ;; 58196 yum) 58197 yum_help $MISSING_DEPENDENCY ;; 58198 brew) 58199 brew_help $MISSING_DEPENDENCY ;; 58200 port) 58201 port_help $MISSING_DEPENDENCY ;; 58202 pkgutil) 58203 pkgutil_help $MISSING_DEPENDENCY ;; 58204 pkgadd) 58205 pkgadd_help $MISSING_DEPENDENCY ;; 58206 esac 58207 58208 if test "x$PKGHANDLER_COMMAND" != x; then 58209 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 58210 fi 58211 fi 58212 58213 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 58214 fi 58215 fi 58216 58217 58218 58219 58220 58221 # Check whether --with-freetype was given. 58222 if test "${with_freetype+set}" = set; then : 58223 withval=$with_freetype; 58224 fi 58225 58226 58227 # Check whether --with-freetype-include was given. 58228 if test "${with_freetype_include+set}" = set; then : 58229 withval=$with_freetype_include; 58230 fi 58231 58232 58233 # Check whether --with-freetype-lib was given. 58234 if test "${with_freetype_lib+set}" = set; then : 58235 withval=$with_freetype_lib; 58236 fi 58237 58238 58239 # Check whether --with-freetype-src was given. 58240 if test "${with_freetype_src+set}" = set; then : 58241 withval=$with_freetype_src; 58242 fi 58243 58244 # Check whether --enable-freetype-bundling was given. 58245 if test "${enable_freetype_bundling+set}" = set; then : 58246 enableval=$enable_freetype_bundling; 58247 fi 58248 58249 58250 # Check whether --with-freetype-license was given. 58251 if test "${with_freetype_license+set}" = set; then : 58252 withval=$with_freetype_license; 58253 fi 58254 58255 58256 # Need to specify explicitly since it needs to be overridden on some versions of macosx 58257 FREETYPE_BASE_NAME=freetype 58258 FREETYPE_CFLAGS= 58259 FREETYPE_LIBS= 58260 FREETYPE_BUNDLE_LIB_PATH= 58261 58262 if test "x$NEEDS_LIB_FREETYPE" = xfalse; then 58263 if (test "x$with_freetype" != x && test "x$with_freetype" != xno) || \ 58264 (test "x$with_freetype_include" != x && test "x$with_freetype_include" != xno) || \ 58265 (test "x$with_freetype_lib" != x && test "x$with_freetype_lib" != xno) || \ 58266 (test "x$with_freetype_src" != x && test "x$with_freetype_src" != xno); then 58267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&5 58268 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&2;} 58269 fi 58270 if (test "x$enable_freetype_bundling" != x && test "x$enable_freetype_bundling" != xno); then 58271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 58272 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 58273 fi 58274 else 58275 # freetype is needed to build; go get it! 58276 58277 BUNDLE_FREETYPE="$enable_freetype_bundling" 58278 58279 if test "x$with_freetype_src" != x; then 58280 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58281 # Try to build freetype if --with-freetype-src was given on Windows 58282 58283 FREETYPE_SRC_PATH="$with_freetype_src" 58284 BUILD_FREETYPE=yes 58285 58286 # Check if the freetype sources are acessible.. 58287 if ! test -d $FREETYPE_SRC_PATH; then 58288 { $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 58289 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 58290 BUILD_FREETYPE=no 58291 fi 58292 # ..and contain a vc2010 project file 58293 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 58294 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 58295 { $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 58296 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 58297 BUILD_FREETYPE=no 58298 fi 58299 # Now check if configure found a version of 'msbuild.exe' 58300 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 58301 { $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 58302 $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;} 58303 BUILD_FREETYPE=no 58304 fi 58305 58306 # Ready to go.. 58307 if test "x$BUILD_FREETYPE" = xyes; then 58308 # msbuild requires trailing slashes for output directories 58309 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 58310 freetype_lib_path_unix="$freetype_lib_path" 58311 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 58312 58313 unix_path="$vcxproj_path" 58314 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58315 windows_path=`$CYGPATH -m "$unix_path"` 58316 vcxproj_path="$windows_path" 58317 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58318 windows_path=`cmd //c echo $unix_path` 58319 vcxproj_path="$windows_path" 58320 fi 58321 58322 58323 unix_path="$freetype_lib_path" 58324 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58325 windows_path=`$CYGPATH -m "$unix_path"` 58326 freetype_lib_path="$windows_path" 58327 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58328 windows_path=`cmd //c echo $unix_path` 58329 freetype_lib_path="$windows_path" 58330 fi 58331 58332 58333 unix_path="$freetype_obj_path" 58334 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58335 windows_path=`$CYGPATH -m "$unix_path"` 58336 freetype_obj_path="$windows_path" 58337 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58338 windows_path=`cmd //c echo $unix_path` 58339 freetype_obj_path="$windows_path" 58340 fi 58341 58342 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 58343 freetype_platform=x64 58344 else 58345 freetype_platform=win32 58346 fi 58347 58348 # The original freetype project file is for VS 2010 (i.e. 'v100'), 58349 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 58350 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 58351 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 58352 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 58353 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 58354 58355 # First we try to build the freetype.dll 58356 $ECHO -e "@echo off\n"\ 58357 "$MSBUILD $vcxproj_path "\ 58358 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 58359 "/p:Configuration=\"Release Multithreaded\" "\ 58360 "/p:Platform=$freetype_platform "\ 58361 "/p:ConfigurationType=DynamicLibrary "\ 58362 "/p:TargetName=freetype "\ 58363 "/p:OutDir=\"$freetype_lib_path\" "\ 58364 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 58365 cmd /c freetype.bat 58366 58367 if test -s "$freetype_lib_path_unix/freetype.dll"; then 58368 # If that succeeds we also build freetype.lib 58369 $ECHO -e "@echo off\n"\ 58370 "$MSBUILD $vcxproj_path "\ 58371 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 58372 "/p:Configuration=\"Release Multithreaded\" "\ 58373 "/p:Platform=$freetype_platform "\ 58374 "/p:ConfigurationType=StaticLibrary "\ 58375 "/p:TargetName=freetype "\ 58376 "/p:OutDir=\"$freetype_lib_path\" "\ 58377 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 58378 cmd /c freetype.bat 58379 58380 if test -s "$freetype_lib_path_unix/freetype.lib"; then 58381 # Once we build both, lib and dll, set freetype lib and include path appropriately 58382 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 58383 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 58384 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 58385 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 58386 else 58387 BUILD_FREETYPE=no 58388 fi 58389 else 58390 BUILD_FREETYPE=no 58391 fi 58392 fi 58393 58394 if test "x$BUILD_FREETYPE" = xyes; then 58395 # Okay, we built it. Check that it works. 58396 58397 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58398 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58399 METHOD="--with-freetype-src" 58400 58401 # Let's start with an optimistic view of the world :-) 58402 FOUND_FREETYPE=yes 58403 58404 # First look for the canonical freetype main include file ft2build.h. 58405 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58406 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 58407 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 58408 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58409 # Fail. 58410 FOUND_FREETYPE=no 58411 fi 58412 fi 58413 58414 if test "x$FOUND_FREETYPE" = xyes; then 58415 # Include file found, let's continue the sanity check. 58416 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 58417 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 58418 58419 # Reset to default value 58420 FREETYPE_BASE_NAME=freetype 58421 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58422 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58423 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 58424 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58425 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58426 # for the .6 version explicitly. 58427 FREETYPE_BASE_NAME=freetype.6 58428 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58429 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58430 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58431 else 58432 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58433 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58434 FOUND_FREETYPE=no 58435 fi 58436 else 58437 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58438 # On Windows, we will need both .lib and .dll file. 58439 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58440 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58441 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58442 FOUND_FREETYPE=no 58443 fi 58444 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58445 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58446 # Found lib in isa dir, use that instead. 58447 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58448 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58449 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58450 fi 58451 fi 58452 fi 58453 58454 if test "x$FOUND_FREETYPE" = xyes; then 58455 58456 # Only process if variable expands to non-empty 58457 58458 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58459 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58460 58461 # Input might be given as Windows format, start by converting to 58462 # unix format. 58463 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58464 new_path=`$CYGPATH -u "$path"` 58465 58466 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58467 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58468 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58469 # "foo.exe" is OK but "foo" is an error. 58470 # 58471 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58472 # It is also a way to make sure we got the proper file name for the real test later on. 58473 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58474 if test "x$test_shortpath" = x; then 58475 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58476 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58477 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58478 fi 58479 58480 # Call helper function which possibly converts this using DOS-style short mode. 58481 # If so, the updated path is stored in $new_path. 58482 58483 input_path="$new_path" 58484 # Check if we need to convert this using DOS-style short mode. If the path 58485 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58486 # take no chances and rewrite it. 58487 # Note: m4 eats our [], so we need to use [ and ] instead. 58488 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58489 if test "x$has_forbidden_chars" != x; then 58490 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58491 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58492 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58493 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58494 # Going to short mode and back again did indeed matter. Since short mode is 58495 # case insensitive, let's make it lowercase to improve readability. 58496 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58497 # Now convert it back to Unix-style (cygpath) 58498 input_path=`$CYGPATH -u "$shortmode_path"` 58499 new_path="$input_path" 58500 fi 58501 fi 58502 58503 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58504 if test "x$test_cygdrive_prefix" = x; then 58505 # As a simple fix, exclude /usr/bin since it's not a real path. 58506 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58507 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58508 # a path prefixed by /cygdrive for fixpath to work. 58509 new_path="$CYGWIN_ROOT_PATH$input_path" 58510 fi 58511 fi 58512 58513 58514 if test "x$path" != "x$new_path"; then 58515 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58516 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58517 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58518 fi 58519 58520 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58521 58522 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58523 has_colon=`$ECHO $path | $GREP ^.:` 58524 new_path="$path" 58525 if test "x$has_colon" = x; then 58526 # Not in mixed or Windows style, start by that. 58527 new_path=`cmd //c echo $path` 58528 fi 58529 58530 58531 input_path="$new_path" 58532 # Check if we need to convert this using DOS-style short mode. If the path 58533 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58534 # take no chances and rewrite it. 58535 # Note: m4 eats our [], so we need to use [ and ] instead. 58536 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58537 if test "x$has_forbidden_chars" != x; then 58538 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58539 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58540 fi 58541 58542 58543 windows_path="$new_path" 58544 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58545 unix_path=`$CYGPATH -u "$windows_path"` 58546 new_path="$unix_path" 58547 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58548 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58549 new_path="$unix_path" 58550 fi 58551 58552 if test "x$path" != "x$new_path"; then 58553 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58554 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58555 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58556 fi 58557 58558 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58559 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58560 58561 else 58562 # We're on a unix platform. Hooray! :) 58563 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58564 has_space=`$ECHO "$path" | $GREP " "` 58565 if test "x$has_space" != x; then 58566 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58567 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58568 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58569 fi 58570 58571 # Use eval to expand a potential ~ 58572 eval path="$path" 58573 if test ! -f "$path" && test ! -d "$path"; then 58574 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58575 fi 58576 58577 if test -d "$path"; then 58578 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 58579 else 58580 dir="`$DIRNAME "$path"`" 58581 base="`$BASENAME "$path"`" 58582 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58583 fi 58584 fi 58585 fi 58586 58587 58588 # Only process if variable expands to non-empty 58589 58590 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58591 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58592 58593 # Input might be given as Windows format, start by converting to 58594 # unix format. 58595 path="$POTENTIAL_FREETYPE_LIB_PATH" 58596 new_path=`$CYGPATH -u "$path"` 58597 58598 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58599 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58600 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58601 # "foo.exe" is OK but "foo" is an error. 58602 # 58603 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58604 # It is also a way to make sure we got the proper file name for the real test later on. 58605 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58606 if test "x$test_shortpath" = x; then 58607 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58608 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58609 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 58610 fi 58611 58612 # Call helper function which possibly converts this using DOS-style short mode. 58613 # If so, the updated path is stored in $new_path. 58614 58615 input_path="$new_path" 58616 # Check if we need to convert this using DOS-style short mode. If the path 58617 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58618 # take no chances and rewrite it. 58619 # Note: m4 eats our [], so we need to use [ and ] instead. 58620 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58621 if test "x$has_forbidden_chars" != x; then 58622 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58623 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58624 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58625 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58626 # Going to short mode and back again did indeed matter. Since short mode is 58627 # case insensitive, let's make it lowercase to improve readability. 58628 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58629 # Now convert it back to Unix-style (cygpath) 58630 input_path=`$CYGPATH -u "$shortmode_path"` 58631 new_path="$input_path" 58632 fi 58633 fi 58634 58635 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58636 if test "x$test_cygdrive_prefix" = x; then 58637 # As a simple fix, exclude /usr/bin since it's not a real path. 58638 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58639 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58640 # a path prefixed by /cygdrive for fixpath to work. 58641 new_path="$CYGWIN_ROOT_PATH$input_path" 58642 fi 58643 fi 58644 58645 58646 if test "x$path" != "x$new_path"; then 58647 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58648 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58649 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58650 fi 58651 58652 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58653 58654 path="$POTENTIAL_FREETYPE_LIB_PATH" 58655 has_colon=`$ECHO $path | $GREP ^.:` 58656 new_path="$path" 58657 if test "x$has_colon" = x; then 58658 # Not in mixed or Windows style, start by that. 58659 new_path=`cmd //c echo $path` 58660 fi 58661 58662 58663 input_path="$new_path" 58664 # Check if we need to convert this using DOS-style short mode. If the path 58665 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58666 # take no chances and rewrite it. 58667 # Note: m4 eats our [], so we need to use [ and ] instead. 58668 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58669 if test "x$has_forbidden_chars" != x; then 58670 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58671 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58672 fi 58673 58674 58675 windows_path="$new_path" 58676 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58677 unix_path=`$CYGPATH -u "$windows_path"` 58678 new_path="$unix_path" 58679 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58680 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58681 new_path="$unix_path" 58682 fi 58683 58684 if test "x$path" != "x$new_path"; then 58685 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58686 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58687 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58688 fi 58689 58690 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58691 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58692 58693 else 58694 # We're on a unix platform. Hooray! :) 58695 path="$POTENTIAL_FREETYPE_LIB_PATH" 58696 has_space=`$ECHO "$path" | $GREP " "` 58697 if test "x$has_space" != x; then 58698 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58699 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58700 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58701 fi 58702 58703 # Use eval to expand a potential ~ 58704 eval path="$path" 58705 if test ! -f "$path" && test ! -d "$path"; then 58706 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58707 fi 58708 58709 if test -d "$path"; then 58710 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 58711 else 58712 dir="`$DIRNAME "$path"`" 58713 base="`$BASENAME "$path"`" 58714 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58715 fi 58716 fi 58717 fi 58718 58719 58720 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 58722 $as_echo_n "checking for freetype includes... " >&6; } 58723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 58724 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 58725 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 58727 $as_echo_n "checking for freetype libraries... " >&6; } 58728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 58729 $as_echo "$FREETYPE_LIB_PATH" >&6; } 58730 fi 58731 58732 if test "x$FOUND_FREETYPE" != xyes; then 58733 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 58734 fi 58735 else 58736 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 58737 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 58738 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 58739 fi 58740 else 58741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 58742 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 58743 fi 58744 fi 58745 58746 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 58747 # User has specified settings 58748 58749 if test "x$BUNDLE_FREETYPE" = x; then 58750 # If not specified, default is to bundle freetype 58751 BUNDLE_FREETYPE=yes 58752 fi 58753 58754 if test "x$with_freetype" != x; then 58755 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 58756 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 58757 fi 58758 58759 # Allow --with-freetype-lib and --with-freetype-include to override 58760 if test "x$with_freetype_include" != x; then 58761 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 58762 fi 58763 if test "x$with_freetype_lib" != x; then 58764 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 58765 fi 58766 58767 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58768 # Okay, we got it. Check that it works. 58769 58770 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58771 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58772 METHOD="--with-freetype" 58773 58774 # Let's start with an optimistic view of the world :-) 58775 FOUND_FREETYPE=yes 58776 58777 # First look for the canonical freetype main include file ft2build.h. 58778 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58779 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 58780 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 58781 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58782 # Fail. 58783 FOUND_FREETYPE=no 58784 fi 58785 fi 58786 58787 if test "x$FOUND_FREETYPE" = xyes; then 58788 # Include file found, let's continue the sanity check. 58789 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 58790 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 58791 58792 # Reset to default value 58793 FREETYPE_BASE_NAME=freetype 58794 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58795 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58796 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 58797 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58798 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58799 # for the .6 version explicitly. 58800 FREETYPE_BASE_NAME=freetype.6 58801 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58802 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58803 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58804 else 58805 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58806 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58807 FOUND_FREETYPE=no 58808 fi 58809 else 58810 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58811 # On Windows, we will need both .lib and .dll file. 58812 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58813 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58814 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58815 FOUND_FREETYPE=no 58816 fi 58817 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58818 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58819 # Found lib in isa dir, use that instead. 58820 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58821 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58822 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58823 fi 58824 fi 58825 fi 58826 58827 if test "x$FOUND_FREETYPE" = xyes; then 58828 58829 # Only process if variable expands to non-empty 58830 58831 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58832 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58833 58834 # Input might be given as Windows format, start by converting to 58835 # unix format. 58836 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58837 new_path=`$CYGPATH -u "$path"` 58838 58839 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58840 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58841 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58842 # "foo.exe" is OK but "foo" is an error. 58843 # 58844 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58845 # It is also a way to make sure we got the proper file name for the real test later on. 58846 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58847 if test "x$test_shortpath" = x; then 58848 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58849 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58850 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58851 fi 58852 58853 # Call helper function which possibly converts this using DOS-style short mode. 58854 # If so, the updated path is stored in $new_path. 58855 58856 input_path="$new_path" 58857 # Check if we need to convert this using DOS-style short mode. If the path 58858 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58859 # take no chances and rewrite it. 58860 # Note: m4 eats our [], so we need to use [ and ] instead. 58861 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58862 if test "x$has_forbidden_chars" != x; then 58863 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58864 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58865 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58866 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58867 # Going to short mode and back again did indeed matter. Since short mode is 58868 # case insensitive, let's make it lowercase to improve readability. 58869 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58870 # Now convert it back to Unix-style (cygpath) 58871 input_path=`$CYGPATH -u "$shortmode_path"` 58872 new_path="$input_path" 58873 fi 58874 fi 58875 58876 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58877 if test "x$test_cygdrive_prefix" = x; then 58878 # As a simple fix, exclude /usr/bin since it's not a real path. 58879 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58880 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58881 # a path prefixed by /cygdrive for fixpath to work. 58882 new_path="$CYGWIN_ROOT_PATH$input_path" 58883 fi 58884 fi 58885 58886 58887 if test "x$path" != "x$new_path"; then 58888 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58889 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58890 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58891 fi 58892 58893 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58894 58895 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58896 has_colon=`$ECHO $path | $GREP ^.:` 58897 new_path="$path" 58898 if test "x$has_colon" = x; then 58899 # Not in mixed or Windows style, start by that. 58900 new_path=`cmd //c echo $path` 58901 fi 58902 58903 58904 input_path="$new_path" 58905 # Check if we need to convert this using DOS-style short mode. If the path 58906 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58907 # take no chances and rewrite it. 58908 # Note: m4 eats our [], so we need to use [ and ] instead. 58909 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58910 if test "x$has_forbidden_chars" != x; then 58911 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58912 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58913 fi 58914 58915 58916 windows_path="$new_path" 58917 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58918 unix_path=`$CYGPATH -u "$windows_path"` 58919 new_path="$unix_path" 58920 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58921 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58922 new_path="$unix_path" 58923 fi 58924 58925 if test "x$path" != "x$new_path"; then 58926 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58927 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58928 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58929 fi 58930 58931 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58932 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58933 58934 else 58935 # We're on a unix platform. Hooray! :) 58936 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58937 has_space=`$ECHO "$path" | $GREP " "` 58938 if test "x$has_space" != x; then 58939 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58940 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58941 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58942 fi 58943 58944 # Use eval to expand a potential ~ 58945 eval path="$path" 58946 if test ! -f "$path" && test ! -d "$path"; then 58947 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58948 fi 58949 58950 if test -d "$path"; then 58951 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 58952 else 58953 dir="`$DIRNAME "$path"`" 58954 base="`$BASENAME "$path"`" 58955 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58956 fi 58957 fi 58958 fi 58959 58960 58961 # Only process if variable expands to non-empty 58962 58963 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58964 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58965 58966 # Input might be given as Windows format, start by converting to 58967 # unix format. 58968 path="$POTENTIAL_FREETYPE_LIB_PATH" 58969 new_path=`$CYGPATH -u "$path"` 58970 58971 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58972 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58973 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58974 # "foo.exe" is OK but "foo" is an error. 58975 # 58976 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58977 # It is also a way to make sure we got the proper file name for the real test later on. 58978 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58979 if test "x$test_shortpath" = x; then 58980 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58981 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58982 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 58983 fi 58984 58985 # Call helper function which possibly converts this using DOS-style short mode. 58986 # If so, the updated path is stored in $new_path. 58987 58988 input_path="$new_path" 58989 # Check if we need to convert this using DOS-style short mode. If the path 58990 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58991 # take no chances and rewrite it. 58992 # Note: m4 eats our [], so we need to use [ and ] instead. 58993 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58994 if test "x$has_forbidden_chars" != x; then 58995 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58996 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58997 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58998 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58999 # Going to short mode and back again did indeed matter. Since short mode is 59000 # case insensitive, let's make it lowercase to improve readability. 59001 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59002 # Now convert it back to Unix-style (cygpath) 59003 input_path=`$CYGPATH -u "$shortmode_path"` 59004 new_path="$input_path" 59005 fi 59006 fi 59007 59008 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59009 if test "x$test_cygdrive_prefix" = x; then 59010 # As a simple fix, exclude /usr/bin since it's not a real path. 59011 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59012 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59013 # a path prefixed by /cygdrive for fixpath to work. 59014 new_path="$CYGWIN_ROOT_PATH$input_path" 59015 fi 59016 fi 59017 59018 59019 if test "x$path" != "x$new_path"; then 59020 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59021 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59022 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59023 fi 59024 59025 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59026 59027 path="$POTENTIAL_FREETYPE_LIB_PATH" 59028 has_colon=`$ECHO $path | $GREP ^.:` 59029 new_path="$path" 59030 if test "x$has_colon" = x; then 59031 # Not in mixed or Windows style, start by that. 59032 new_path=`cmd //c echo $path` 59033 fi 59034 59035 59036 input_path="$new_path" 59037 # Check if we need to convert this using DOS-style short mode. If the path 59038 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59039 # take no chances and rewrite it. 59040 # Note: m4 eats our [], so we need to use [ and ] instead. 59041 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59042 if test "x$has_forbidden_chars" != x; then 59043 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59044 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59045 fi 59046 59047 59048 windows_path="$new_path" 59049 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59050 unix_path=`$CYGPATH -u "$windows_path"` 59051 new_path="$unix_path" 59052 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59053 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59054 new_path="$unix_path" 59055 fi 59056 59057 if test "x$path" != "x$new_path"; then 59058 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59059 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59060 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59061 fi 59062 59063 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59064 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59065 59066 else 59067 # We're on a unix platform. Hooray! :) 59068 path="$POTENTIAL_FREETYPE_LIB_PATH" 59069 has_space=`$ECHO "$path" | $GREP " "` 59070 if test "x$has_space" != x; then 59071 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59072 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59073 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59074 fi 59075 59076 # Use eval to expand a potential ~ 59077 eval path="$path" 59078 if test ! -f "$path" && test ! -d "$path"; then 59079 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59080 fi 59081 59082 if test -d "$path"; then 59083 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59084 else 59085 dir="`$DIRNAME "$path"`" 59086 base="`$BASENAME "$path"`" 59087 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59088 fi 59089 fi 59090 fi 59091 59092 59093 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59095 $as_echo_n "checking for freetype includes... " >&6; } 59096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59097 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59098 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59100 $as_echo_n "checking for freetype libraries... " >&6; } 59101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59102 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59103 fi 59104 59105 if test "x$FOUND_FREETYPE" != xyes; then 59106 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 59107 fi 59108 else 59109 # User specified only one of lib or include. This is an error. 59110 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 59111 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 59112 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 59113 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 59114 else 59115 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 59116 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 59117 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 59118 fi 59119 fi 59120 else 59121 # User did not specify settings, but we need freetype. Try to locate it. 59122 59123 if test "x$BUNDLE_FREETYPE" = x; then 59124 # If not specified, default is to bundle freetype only on windows 59125 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59126 BUNDLE_FREETYPE=yes 59127 else 59128 BUNDLE_FREETYPE=no 59129 fi 59130 fi 59131 59132 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 59133 if test "x$SYSROOT" = x; then 59134 if test "x$FOUND_FREETYPE" != xyes; then 59135 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 59136 if test "x$PKG_CONFIG" != x; then 59137 59138 pkg_failed=no 59139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 59140 $as_echo_n "checking for FREETYPE... " >&6; } 59141 59142 if test -n "$FREETYPE_CFLAGS"; then 59143 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 59144 elif test -n "$PKG_CONFIG"; then 59145 if test -n "$PKG_CONFIG" && \ 59146 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 59147 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 59148 ac_status=$? 59149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 59150 test $ac_status = 0; }; then 59151 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 59152 else 59153 pkg_failed=yes 59154 fi 59155 else 59156 pkg_failed=untried 59157 fi 59158 if test -n "$FREETYPE_LIBS"; then 59159 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 59160 elif test -n "$PKG_CONFIG"; then 59161 if test -n "$PKG_CONFIG" && \ 59162 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 59163 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 59164 ac_status=$? 59165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 59166 test $ac_status = 0; }; then 59167 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 59168 else 59169 pkg_failed=yes 59170 fi 59171 else 59172 pkg_failed=untried 59173 fi 59174 59175 59176 59177 if test $pkg_failed = yes; then 59178 59179 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 59180 _pkg_short_errors_supported=yes 59181 else 59182 _pkg_short_errors_supported=no 59183 fi 59184 if test $_pkg_short_errors_supported = yes; then 59185 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 59186 else 59187 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 59188 fi 59189 # Put the nasty error message in config.log where it belongs 59190 echo "$FREETYPE_PKG_ERRORS" >&5 59191 59192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 59193 $as_echo "no" >&6; } 59194 FOUND_FREETYPE=no 59195 elif test $pkg_failed = untried; then 59196 FOUND_FREETYPE=no 59197 else 59198 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 59199 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 59200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 59201 $as_echo "yes" >&6; } 59202 FOUND_FREETYPE=yes 59203 fi 59204 if test "x$FOUND_FREETYPE" = xyes; then 59205 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 59206 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 59207 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 59208 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 59209 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 59210 fi 59211 # PKG_CHECK_MODULES will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 59212 if test "x$BUNDLE_FREETYPE" = xyes; then 59213 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 59214 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 59215 FOUND_FREETYPE=no 59216 else 59217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 59218 $as_echo_n "checking for freetype... " >&6; } 59219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 59220 $as_echo "yes (using pkg-config)" >&6; } 59221 fi 59222 fi 59223 fi 59224 fi 59225 fi 59226 59227 if test "x$FOUND_FREETYPE" != xyes; then 59228 # Check in well-known locations 59229 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59230 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 59231 59232 windows_path="$FREETYPE_BASE_DIR" 59233 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59234 unix_path=`$CYGPATH -u "$windows_path"` 59235 FREETYPE_BASE_DIR="$unix_path" 59236 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59237 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59238 FREETYPE_BASE_DIR="$unix_path" 59239 fi 59240 59241 59242 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59243 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 59244 METHOD="well-known location" 59245 59246 # Let's start with an optimistic view of the world :-) 59247 FOUND_FREETYPE=yes 59248 59249 # First look for the canonical freetype main include file ft2build.h. 59250 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59251 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59252 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59253 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59254 # Fail. 59255 FOUND_FREETYPE=no 59256 fi 59257 fi 59258 59259 if test "x$FOUND_FREETYPE" = xyes; then 59260 # Include file found, let's continue the sanity check. 59261 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59262 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59263 59264 # Reset to default value 59265 FREETYPE_BASE_NAME=freetype 59266 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59267 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59268 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59269 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59270 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59271 # for the .6 version explicitly. 59272 FREETYPE_BASE_NAME=freetype.6 59273 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59274 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59275 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59276 else 59277 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59278 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59279 FOUND_FREETYPE=no 59280 fi 59281 else 59282 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59283 # On Windows, we will need both .lib and .dll file. 59284 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59285 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59286 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59287 FOUND_FREETYPE=no 59288 fi 59289 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59290 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59291 # Found lib in isa dir, use that instead. 59292 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59293 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59294 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59295 fi 59296 fi 59297 fi 59298 59299 if test "x$FOUND_FREETYPE" = xyes; then 59300 59301 # Only process if variable expands to non-empty 59302 59303 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59304 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59305 59306 # Input might be given as Windows format, start by converting to 59307 # unix format. 59308 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59309 new_path=`$CYGPATH -u "$path"` 59310 59311 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59312 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59313 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59314 # "foo.exe" is OK but "foo" is an error. 59315 # 59316 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59317 # It is also a way to make sure we got the proper file name for the real test later on. 59318 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59319 if test "x$test_shortpath" = x; then 59320 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59321 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59322 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59323 fi 59324 59325 # Call helper function which possibly converts this using DOS-style short mode. 59326 # If so, the updated path is stored in $new_path. 59327 59328 input_path="$new_path" 59329 # Check if we need to convert this using DOS-style short mode. If the path 59330 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59331 # take no chances and rewrite it. 59332 # Note: m4 eats our [], so we need to use [ and ] instead. 59333 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59334 if test "x$has_forbidden_chars" != x; then 59335 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59336 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59337 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59338 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59339 # Going to short mode and back again did indeed matter. Since short mode is 59340 # case insensitive, let's make it lowercase to improve readability. 59341 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59342 # Now convert it back to Unix-style (cygpath) 59343 input_path=`$CYGPATH -u "$shortmode_path"` 59344 new_path="$input_path" 59345 fi 59346 fi 59347 59348 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59349 if test "x$test_cygdrive_prefix" = x; then 59350 # As a simple fix, exclude /usr/bin since it's not a real path. 59351 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59352 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59353 # a path prefixed by /cygdrive for fixpath to work. 59354 new_path="$CYGWIN_ROOT_PATH$input_path" 59355 fi 59356 fi 59357 59358 59359 if test "x$path" != "x$new_path"; then 59360 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59361 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59362 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59363 fi 59364 59365 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59366 59367 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59368 has_colon=`$ECHO $path | $GREP ^.:` 59369 new_path="$path" 59370 if test "x$has_colon" = x; then 59371 # Not in mixed or Windows style, start by that. 59372 new_path=`cmd //c echo $path` 59373 fi 59374 59375 59376 input_path="$new_path" 59377 # Check if we need to convert this using DOS-style short mode. If the path 59378 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59379 # take no chances and rewrite it. 59380 # Note: m4 eats our [], so we need to use [ and ] instead. 59381 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59382 if test "x$has_forbidden_chars" != x; then 59383 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59384 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59385 fi 59386 59387 59388 windows_path="$new_path" 59389 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59390 unix_path=`$CYGPATH -u "$windows_path"` 59391 new_path="$unix_path" 59392 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59393 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59394 new_path="$unix_path" 59395 fi 59396 59397 if test "x$path" != "x$new_path"; then 59398 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59399 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59400 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59401 fi 59402 59403 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59404 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59405 59406 else 59407 # We're on a unix platform. Hooray! :) 59408 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59409 has_space=`$ECHO "$path" | $GREP " "` 59410 if test "x$has_space" != x; then 59411 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59412 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59413 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59414 fi 59415 59416 # Use eval to expand a potential ~ 59417 eval path="$path" 59418 if test ! -f "$path" && test ! -d "$path"; then 59419 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59420 fi 59421 59422 if test -d "$path"; then 59423 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59424 else 59425 dir="`$DIRNAME "$path"`" 59426 base="`$BASENAME "$path"`" 59427 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59428 fi 59429 fi 59430 fi 59431 59432 59433 # Only process if variable expands to non-empty 59434 59435 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59436 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59437 59438 # Input might be given as Windows format, start by converting to 59439 # unix format. 59440 path="$POTENTIAL_FREETYPE_LIB_PATH" 59441 new_path=`$CYGPATH -u "$path"` 59442 59443 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59444 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59445 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59446 # "foo.exe" is OK but "foo" is an error. 59447 # 59448 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59449 # It is also a way to make sure we got the proper file name for the real test later on. 59450 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59451 if test "x$test_shortpath" = x; then 59452 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59453 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59454 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59455 fi 59456 59457 # Call helper function which possibly converts this using DOS-style short mode. 59458 # If so, the updated path is stored in $new_path. 59459 59460 input_path="$new_path" 59461 # Check if we need to convert this using DOS-style short mode. If the path 59462 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59463 # take no chances and rewrite it. 59464 # Note: m4 eats our [], so we need to use [ and ] instead. 59465 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59466 if test "x$has_forbidden_chars" != x; then 59467 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59468 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59469 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59470 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59471 # Going to short mode and back again did indeed matter. Since short mode is 59472 # case insensitive, let's make it lowercase to improve readability. 59473 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59474 # Now convert it back to Unix-style (cygpath) 59475 input_path=`$CYGPATH -u "$shortmode_path"` 59476 new_path="$input_path" 59477 fi 59478 fi 59479 59480 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59481 if test "x$test_cygdrive_prefix" = x; then 59482 # As a simple fix, exclude /usr/bin since it's not a real path. 59483 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59484 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59485 # a path prefixed by /cygdrive for fixpath to work. 59486 new_path="$CYGWIN_ROOT_PATH$input_path" 59487 fi 59488 fi 59489 59490 59491 if test "x$path" != "x$new_path"; then 59492 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59493 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59494 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59495 fi 59496 59497 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59498 59499 path="$POTENTIAL_FREETYPE_LIB_PATH" 59500 has_colon=`$ECHO $path | $GREP ^.:` 59501 new_path="$path" 59502 if test "x$has_colon" = x; then 59503 # Not in mixed or Windows style, start by that. 59504 new_path=`cmd //c echo $path` 59505 fi 59506 59507 59508 input_path="$new_path" 59509 # Check if we need to convert this using DOS-style short mode. If the path 59510 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59511 # take no chances and rewrite it. 59512 # Note: m4 eats our [], so we need to use [ and ] instead. 59513 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59514 if test "x$has_forbidden_chars" != x; then 59515 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59516 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59517 fi 59518 59519 59520 windows_path="$new_path" 59521 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59522 unix_path=`$CYGPATH -u "$windows_path"` 59523 new_path="$unix_path" 59524 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59525 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59526 new_path="$unix_path" 59527 fi 59528 59529 if test "x$path" != "x$new_path"; then 59530 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59531 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59532 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59533 fi 59534 59535 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59536 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59537 59538 else 59539 # We're on a unix platform. Hooray! :) 59540 path="$POTENTIAL_FREETYPE_LIB_PATH" 59541 has_space=`$ECHO "$path" | $GREP " "` 59542 if test "x$has_space" != x; then 59543 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59544 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59545 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59546 fi 59547 59548 # Use eval to expand a potential ~ 59549 eval path="$path" 59550 if test ! -f "$path" && test ! -d "$path"; then 59551 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59552 fi 59553 59554 if test -d "$path"; then 59555 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59556 else 59557 dir="`$DIRNAME "$path"`" 59558 base="`$BASENAME "$path"`" 59559 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59560 fi 59561 fi 59562 fi 59563 59564 59565 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59567 $as_echo_n "checking for freetype includes... " >&6; } 59568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59569 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59570 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59572 $as_echo_n "checking for freetype libraries... " >&6; } 59573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59574 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59575 fi 59576 59577 if test "x$FOUND_FREETYPE" != xyes; then 59578 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 59579 59580 windows_path="$FREETYPE_BASE_DIR" 59581 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59582 unix_path=`$CYGPATH -u "$windows_path"` 59583 FREETYPE_BASE_DIR="$unix_path" 59584 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59585 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59586 FREETYPE_BASE_DIR="$unix_path" 59587 fi 59588 59589 59590 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59591 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 59592 METHOD="well-known location" 59593 59594 # Let's start with an optimistic view of the world :-) 59595 FOUND_FREETYPE=yes 59596 59597 # First look for the canonical freetype main include file ft2build.h. 59598 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59599 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59600 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59601 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59602 # Fail. 59603 FOUND_FREETYPE=no 59604 fi 59605 fi 59606 59607 if test "x$FOUND_FREETYPE" = xyes; then 59608 # Include file found, let's continue the sanity check. 59609 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59610 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59611 59612 # Reset to default value 59613 FREETYPE_BASE_NAME=freetype 59614 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59615 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59616 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59617 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59618 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59619 # for the .6 version explicitly. 59620 FREETYPE_BASE_NAME=freetype.6 59621 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59622 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59623 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59624 else 59625 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59626 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59627 FOUND_FREETYPE=no 59628 fi 59629 else 59630 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59631 # On Windows, we will need both .lib and .dll file. 59632 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59633 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59634 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59635 FOUND_FREETYPE=no 59636 fi 59637 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59638 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59639 # Found lib in isa dir, use that instead. 59640 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59641 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59642 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59643 fi 59644 fi 59645 fi 59646 59647 if test "x$FOUND_FREETYPE" = xyes; then 59648 59649 # Only process if variable expands to non-empty 59650 59651 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59652 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59653 59654 # Input might be given as Windows format, start by converting to 59655 # unix format. 59656 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59657 new_path=`$CYGPATH -u "$path"` 59658 59659 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59660 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59661 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59662 # "foo.exe" is OK but "foo" is an error. 59663 # 59664 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59665 # It is also a way to make sure we got the proper file name for the real test later on. 59666 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59667 if test "x$test_shortpath" = x; then 59668 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59669 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59670 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59671 fi 59672 59673 # Call helper function which possibly converts this using DOS-style short mode. 59674 # If so, the updated path is stored in $new_path. 59675 59676 input_path="$new_path" 59677 # Check if we need to convert this using DOS-style short mode. If the path 59678 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59679 # take no chances and rewrite it. 59680 # Note: m4 eats our [], so we need to use [ and ] instead. 59681 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59682 if test "x$has_forbidden_chars" != x; then 59683 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59684 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59685 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59686 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59687 # Going to short mode and back again did indeed matter. Since short mode is 59688 # case insensitive, let's make it lowercase to improve readability. 59689 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59690 # Now convert it back to Unix-style (cygpath) 59691 input_path=`$CYGPATH -u "$shortmode_path"` 59692 new_path="$input_path" 59693 fi 59694 fi 59695 59696 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59697 if test "x$test_cygdrive_prefix" = x; then 59698 # As a simple fix, exclude /usr/bin since it's not a real path. 59699 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59700 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59701 # a path prefixed by /cygdrive for fixpath to work. 59702 new_path="$CYGWIN_ROOT_PATH$input_path" 59703 fi 59704 fi 59705 59706 59707 if test "x$path" != "x$new_path"; then 59708 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59709 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59710 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59711 fi 59712 59713 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59714 59715 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59716 has_colon=`$ECHO $path | $GREP ^.:` 59717 new_path="$path" 59718 if test "x$has_colon" = x; then 59719 # Not in mixed or Windows style, start by that. 59720 new_path=`cmd //c echo $path` 59721 fi 59722 59723 59724 input_path="$new_path" 59725 # Check if we need to convert this using DOS-style short mode. If the path 59726 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59727 # take no chances and rewrite it. 59728 # Note: m4 eats our [], so we need to use [ and ] instead. 59729 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59730 if test "x$has_forbidden_chars" != x; then 59731 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59732 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59733 fi 59734 59735 59736 windows_path="$new_path" 59737 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59738 unix_path=`$CYGPATH -u "$windows_path"` 59739 new_path="$unix_path" 59740 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59741 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59742 new_path="$unix_path" 59743 fi 59744 59745 if test "x$path" != "x$new_path"; then 59746 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59747 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59748 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59749 fi 59750 59751 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59752 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59753 59754 else 59755 # We're on a unix platform. Hooray! :) 59756 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59757 has_space=`$ECHO "$path" | $GREP " "` 59758 if test "x$has_space" != x; then 59759 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59760 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59761 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59762 fi 59763 59764 # Use eval to expand a potential ~ 59765 eval path="$path" 59766 if test ! -f "$path" && test ! -d "$path"; then 59767 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59768 fi 59769 59770 if test -d "$path"; then 59771 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59772 else 59773 dir="`$DIRNAME "$path"`" 59774 base="`$BASENAME "$path"`" 59775 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59776 fi 59777 fi 59778 fi 59779 59780 59781 # Only process if variable expands to non-empty 59782 59783 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59784 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59785 59786 # Input might be given as Windows format, start by converting to 59787 # unix format. 59788 path="$POTENTIAL_FREETYPE_LIB_PATH" 59789 new_path=`$CYGPATH -u "$path"` 59790 59791 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59792 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59793 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59794 # "foo.exe" is OK but "foo" is an error. 59795 # 59796 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59797 # It is also a way to make sure we got the proper file name for the real test later on. 59798 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59799 if test "x$test_shortpath" = x; then 59800 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59801 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59802 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59803 fi 59804 59805 # Call helper function which possibly converts this using DOS-style short mode. 59806 # If so, the updated path is stored in $new_path. 59807 59808 input_path="$new_path" 59809 # Check if we need to convert this using DOS-style short mode. If the path 59810 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59811 # take no chances and rewrite it. 59812 # Note: m4 eats our [], so we need to use [ and ] instead. 59813 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59814 if test "x$has_forbidden_chars" != x; then 59815 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59816 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59817 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59818 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59819 # Going to short mode and back again did indeed matter. Since short mode is 59820 # case insensitive, let's make it lowercase to improve readability. 59821 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59822 # Now convert it back to Unix-style (cygpath) 59823 input_path=`$CYGPATH -u "$shortmode_path"` 59824 new_path="$input_path" 59825 fi 59826 fi 59827 59828 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59829 if test "x$test_cygdrive_prefix" = x; then 59830 # As a simple fix, exclude /usr/bin since it's not a real path. 59831 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59832 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59833 # a path prefixed by /cygdrive for fixpath to work. 59834 new_path="$CYGWIN_ROOT_PATH$input_path" 59835 fi 59836 fi 59837 59838 59839 if test "x$path" != "x$new_path"; then 59840 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59841 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59842 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59843 fi 59844 59845 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59846 59847 path="$POTENTIAL_FREETYPE_LIB_PATH" 59848 has_colon=`$ECHO $path | $GREP ^.:` 59849 new_path="$path" 59850 if test "x$has_colon" = x; then 59851 # Not in mixed or Windows style, start by that. 59852 new_path=`cmd //c echo $path` 59853 fi 59854 59855 59856 input_path="$new_path" 59857 # Check if we need to convert this using DOS-style short mode. If the path 59858 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59859 # take no chances and rewrite it. 59860 # Note: m4 eats our [], so we need to use [ and ] instead. 59861 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59862 if test "x$has_forbidden_chars" != x; then 59863 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59864 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59865 fi 59866 59867 59868 windows_path="$new_path" 59869 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59870 unix_path=`$CYGPATH -u "$windows_path"` 59871 new_path="$unix_path" 59872 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59873 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59874 new_path="$unix_path" 59875 fi 59876 59877 if test "x$path" != "x$new_path"; then 59878 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59879 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59880 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59881 fi 59882 59883 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59884 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59885 59886 else 59887 # We're on a unix platform. Hooray! :) 59888 path="$POTENTIAL_FREETYPE_LIB_PATH" 59889 has_space=`$ECHO "$path" | $GREP " "` 59890 if test "x$has_space" != x; then 59891 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59892 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59893 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59894 fi 59895 59896 # Use eval to expand a potential ~ 59897 eval path="$path" 59898 if test ! -f "$path" && test ! -d "$path"; then 59899 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59900 fi 59901 59902 if test -d "$path"; then 59903 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59904 else 59905 dir="`$DIRNAME "$path"`" 59906 base="`$BASENAME "$path"`" 59907 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59908 fi 59909 fi 59910 fi 59911 59912 59913 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59915 $as_echo_n "checking for freetype includes... " >&6; } 59916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59917 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59918 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59920 $as_echo_n "checking for freetype libraries... " >&6; } 59921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59922 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59923 fi 59924 59925 fi 59926 if test "x$FOUND_FREETYPE" != xyes; then 59927 FREETYPE_BASE_DIR="$HOME/freetype" 59928 59929 windows_path="$FREETYPE_BASE_DIR" 59930 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59931 unix_path=`$CYGPATH -u "$windows_path"` 59932 FREETYPE_BASE_DIR="$unix_path" 59933 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59934 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59935 FREETYPE_BASE_DIR="$unix_path" 59936 fi 59937 59938 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 59939 59940 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59941 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 59942 METHOD="well-known location" 59943 59944 # Let's start with an optimistic view of the world :-) 59945 FOUND_FREETYPE=yes 59946 59947 # First look for the canonical freetype main include file ft2build.h. 59948 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59949 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59950 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59951 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59952 # Fail. 59953 FOUND_FREETYPE=no 59954 fi 59955 fi 59956 59957 if test "x$FOUND_FREETYPE" = xyes; then 59958 # Include file found, let's continue the sanity check. 59959 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59960 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59961 59962 # Reset to default value 59963 FREETYPE_BASE_NAME=freetype 59964 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59965 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59966 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59967 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59968 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59969 # for the .6 version explicitly. 59970 FREETYPE_BASE_NAME=freetype.6 59971 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59972 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59973 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59974 else 59975 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59976 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59977 FOUND_FREETYPE=no 59978 fi 59979 else 59980 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59981 # On Windows, we will need both .lib and .dll file. 59982 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59983 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59984 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59985 FOUND_FREETYPE=no 59986 fi 59987 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59988 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59989 # Found lib in isa dir, use that instead. 59990 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59991 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59992 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59993 fi 59994 fi 59995 fi 59996 59997 if test "x$FOUND_FREETYPE" = xyes; then 59998 59999 # Only process if variable expands to non-empty 60000 60001 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60002 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60003 60004 # Input might be given as Windows format, start by converting to 60005 # unix format. 60006 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60007 new_path=`$CYGPATH -u "$path"` 60008 60009 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60010 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60011 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60012 # "foo.exe" is OK but "foo" is an error. 60013 # 60014 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60015 # It is also a way to make sure we got the proper file name for the real test later on. 60016 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60017 if test "x$test_shortpath" = x; then 60018 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60019 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60020 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60021 fi 60022 60023 # Call helper function which possibly converts this using DOS-style short mode. 60024 # If so, the updated path is stored in $new_path. 60025 60026 input_path="$new_path" 60027 # Check if we need to convert this using DOS-style short mode. If the path 60028 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60029 # take no chances and rewrite it. 60030 # Note: m4 eats our [], so we need to use [ and ] instead. 60031 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60032 if test "x$has_forbidden_chars" != x; then 60033 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60034 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60035 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60036 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60037 # Going to short mode and back again did indeed matter. Since short mode is 60038 # case insensitive, let's make it lowercase to improve readability. 60039 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60040 # Now convert it back to Unix-style (cygpath) 60041 input_path=`$CYGPATH -u "$shortmode_path"` 60042 new_path="$input_path" 60043 fi 60044 fi 60045 60046 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60047 if test "x$test_cygdrive_prefix" = x; then 60048 # As a simple fix, exclude /usr/bin since it's not a real path. 60049 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60050 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60051 # a path prefixed by /cygdrive for fixpath to work. 60052 new_path="$CYGWIN_ROOT_PATH$input_path" 60053 fi 60054 fi 60055 60056 60057 if test "x$path" != "x$new_path"; then 60058 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60059 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60060 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60061 fi 60062 60063 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60064 60065 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60066 has_colon=`$ECHO $path | $GREP ^.:` 60067 new_path="$path" 60068 if test "x$has_colon" = x; then 60069 # Not in mixed or Windows style, start by that. 60070 new_path=`cmd //c echo $path` 60071 fi 60072 60073 60074 input_path="$new_path" 60075 # Check if we need to convert this using DOS-style short mode. If the path 60076 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60077 # take no chances and rewrite it. 60078 # Note: m4 eats our [], so we need to use [ and ] instead. 60079 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60080 if test "x$has_forbidden_chars" != x; then 60081 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60082 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60083 fi 60084 60085 60086 windows_path="$new_path" 60087 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60088 unix_path=`$CYGPATH -u "$windows_path"` 60089 new_path="$unix_path" 60090 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60091 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60092 new_path="$unix_path" 60093 fi 60094 60095 if test "x$path" != "x$new_path"; then 60096 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60097 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60098 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60099 fi 60100 60101 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60102 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60103 60104 else 60105 # We're on a unix platform. Hooray! :) 60106 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60107 has_space=`$ECHO "$path" | $GREP " "` 60108 if test "x$has_space" != x; then 60109 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60110 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60111 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60112 fi 60113 60114 # Use eval to expand a potential ~ 60115 eval path="$path" 60116 if test ! -f "$path" && test ! -d "$path"; then 60117 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60118 fi 60119 60120 if test -d "$path"; then 60121 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60122 else 60123 dir="`$DIRNAME "$path"`" 60124 base="`$BASENAME "$path"`" 60125 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60126 fi 60127 fi 60128 fi 60129 60130 60131 # Only process if variable expands to non-empty 60132 60133 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60134 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60135 60136 # Input might be given as Windows format, start by converting to 60137 # unix format. 60138 path="$POTENTIAL_FREETYPE_LIB_PATH" 60139 new_path=`$CYGPATH -u "$path"` 60140 60141 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60142 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60143 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60144 # "foo.exe" is OK but "foo" is an error. 60145 # 60146 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60147 # It is also a way to make sure we got the proper file name for the real test later on. 60148 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60149 if test "x$test_shortpath" = x; then 60150 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60151 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60152 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60153 fi 60154 60155 # Call helper function which possibly converts this using DOS-style short mode. 60156 # If so, the updated path is stored in $new_path. 60157 60158 input_path="$new_path" 60159 # Check if we need to convert this using DOS-style short mode. If the path 60160 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60161 # take no chances and rewrite it. 60162 # Note: m4 eats our [], so we need to use [ and ] instead. 60163 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60164 if test "x$has_forbidden_chars" != x; then 60165 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60166 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60167 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60168 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60169 # Going to short mode and back again did indeed matter. Since short mode is 60170 # case insensitive, let's make it lowercase to improve readability. 60171 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60172 # Now convert it back to Unix-style (cygpath) 60173 input_path=`$CYGPATH -u "$shortmode_path"` 60174 new_path="$input_path" 60175 fi 60176 fi 60177 60178 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60179 if test "x$test_cygdrive_prefix" = x; then 60180 # As a simple fix, exclude /usr/bin since it's not a real path. 60181 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60182 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60183 # a path prefixed by /cygdrive for fixpath to work. 60184 new_path="$CYGWIN_ROOT_PATH$input_path" 60185 fi 60186 fi 60187 60188 60189 if test "x$path" != "x$new_path"; then 60190 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60191 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60192 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60193 fi 60194 60195 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60196 60197 path="$POTENTIAL_FREETYPE_LIB_PATH" 60198 has_colon=`$ECHO $path | $GREP ^.:` 60199 new_path="$path" 60200 if test "x$has_colon" = x; then 60201 # Not in mixed or Windows style, start by that. 60202 new_path=`cmd //c echo $path` 60203 fi 60204 60205 60206 input_path="$new_path" 60207 # Check if we need to convert this using DOS-style short mode. If the path 60208 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60209 # take no chances and rewrite it. 60210 # Note: m4 eats our [], so we need to use [ and ] instead. 60211 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60212 if test "x$has_forbidden_chars" != x; then 60213 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60214 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60215 fi 60216 60217 60218 windows_path="$new_path" 60219 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60220 unix_path=`$CYGPATH -u "$windows_path"` 60221 new_path="$unix_path" 60222 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60223 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60224 new_path="$unix_path" 60225 fi 60226 60227 if test "x$path" != "x$new_path"; then 60228 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60229 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60230 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60231 fi 60232 60233 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60234 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60235 60236 else 60237 # We're on a unix platform. Hooray! :) 60238 path="$POTENTIAL_FREETYPE_LIB_PATH" 60239 has_space=`$ECHO "$path" | $GREP " "` 60240 if test "x$has_space" != x; then 60241 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60242 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60243 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60244 fi 60245 60246 # Use eval to expand a potential ~ 60247 eval path="$path" 60248 if test ! -f "$path" && test ! -d "$path"; then 60249 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60250 fi 60251 60252 if test -d "$path"; then 60253 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60254 else 60255 dir="`$DIRNAME "$path"`" 60256 base="`$BASENAME "$path"`" 60257 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60258 fi 60259 fi 60260 fi 60261 60262 60263 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60265 $as_echo_n "checking for freetype includes... " >&6; } 60266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60267 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60268 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60270 $as_echo_n "checking for freetype libraries... " >&6; } 60271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60272 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60273 fi 60274 60275 else 60276 60277 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60278 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 60279 METHOD="well-known location" 60280 60281 # Let's start with an optimistic view of the world :-) 60282 FOUND_FREETYPE=yes 60283 60284 # First look for the canonical freetype main include file ft2build.h. 60285 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60286 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60287 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60288 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60289 # Fail. 60290 FOUND_FREETYPE=no 60291 fi 60292 fi 60293 60294 if test "x$FOUND_FREETYPE" = xyes; then 60295 # Include file found, let's continue the sanity check. 60296 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60297 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60298 60299 # Reset to default value 60300 FREETYPE_BASE_NAME=freetype 60301 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60302 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60303 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60304 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60305 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60306 # for the .6 version explicitly. 60307 FREETYPE_BASE_NAME=freetype.6 60308 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60309 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60310 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60311 else 60312 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60313 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60314 FOUND_FREETYPE=no 60315 fi 60316 else 60317 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60318 # On Windows, we will need both .lib and .dll file. 60319 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60320 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60321 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60322 FOUND_FREETYPE=no 60323 fi 60324 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60325 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60326 # Found lib in isa dir, use that instead. 60327 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60328 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60329 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60330 fi 60331 fi 60332 fi 60333 60334 if test "x$FOUND_FREETYPE" = xyes; then 60335 60336 # Only process if variable expands to non-empty 60337 60338 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60339 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60340 60341 # Input might be given as Windows format, start by converting to 60342 # unix format. 60343 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60344 new_path=`$CYGPATH -u "$path"` 60345 60346 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60347 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60348 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60349 # "foo.exe" is OK but "foo" is an error. 60350 # 60351 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60352 # It is also a way to make sure we got the proper file name for the real test later on. 60353 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60354 if test "x$test_shortpath" = x; then 60355 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60356 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60357 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60358 fi 60359 60360 # Call helper function which possibly converts this using DOS-style short mode. 60361 # If so, the updated path is stored in $new_path. 60362 60363 input_path="$new_path" 60364 # Check if we need to convert this using DOS-style short mode. If the path 60365 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60366 # take no chances and rewrite it. 60367 # Note: m4 eats our [], so we need to use [ and ] instead. 60368 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60369 if test "x$has_forbidden_chars" != x; then 60370 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60371 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60372 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60373 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60374 # Going to short mode and back again did indeed matter. Since short mode is 60375 # case insensitive, let's make it lowercase to improve readability. 60376 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60377 # Now convert it back to Unix-style (cygpath) 60378 input_path=`$CYGPATH -u "$shortmode_path"` 60379 new_path="$input_path" 60380 fi 60381 fi 60382 60383 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60384 if test "x$test_cygdrive_prefix" = x; then 60385 # As a simple fix, exclude /usr/bin since it's not a real path. 60386 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60387 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60388 # a path prefixed by /cygdrive for fixpath to work. 60389 new_path="$CYGWIN_ROOT_PATH$input_path" 60390 fi 60391 fi 60392 60393 60394 if test "x$path" != "x$new_path"; then 60395 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60396 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60397 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60398 fi 60399 60400 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60401 60402 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60403 has_colon=`$ECHO $path | $GREP ^.:` 60404 new_path="$path" 60405 if test "x$has_colon" = x; then 60406 # Not in mixed or Windows style, start by that. 60407 new_path=`cmd //c echo $path` 60408 fi 60409 60410 60411 input_path="$new_path" 60412 # Check if we need to convert this using DOS-style short mode. If the path 60413 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60414 # take no chances and rewrite it. 60415 # Note: m4 eats our [], so we need to use [ and ] instead. 60416 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60417 if test "x$has_forbidden_chars" != x; then 60418 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60419 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60420 fi 60421 60422 60423 windows_path="$new_path" 60424 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60425 unix_path=`$CYGPATH -u "$windows_path"` 60426 new_path="$unix_path" 60427 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60428 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60429 new_path="$unix_path" 60430 fi 60431 60432 if test "x$path" != "x$new_path"; then 60433 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60434 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60435 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60436 fi 60437 60438 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60439 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60440 60441 else 60442 # We're on a unix platform. Hooray! :) 60443 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60444 has_space=`$ECHO "$path" | $GREP " "` 60445 if test "x$has_space" != x; then 60446 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60447 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60448 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60449 fi 60450 60451 # Use eval to expand a potential ~ 60452 eval path="$path" 60453 if test ! -f "$path" && test ! -d "$path"; then 60454 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60455 fi 60456 60457 if test -d "$path"; then 60458 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60459 else 60460 dir="`$DIRNAME "$path"`" 60461 base="`$BASENAME "$path"`" 60462 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60463 fi 60464 fi 60465 fi 60466 60467 60468 # Only process if variable expands to non-empty 60469 60470 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60471 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60472 60473 # Input might be given as Windows format, start by converting to 60474 # unix format. 60475 path="$POTENTIAL_FREETYPE_LIB_PATH" 60476 new_path=`$CYGPATH -u "$path"` 60477 60478 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60479 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60480 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60481 # "foo.exe" is OK but "foo" is an error. 60482 # 60483 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60484 # It is also a way to make sure we got the proper file name for the real test later on. 60485 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60486 if test "x$test_shortpath" = x; then 60487 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60488 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60489 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60490 fi 60491 60492 # Call helper function which possibly converts this using DOS-style short mode. 60493 # If so, the updated path is stored in $new_path. 60494 60495 input_path="$new_path" 60496 # Check if we need to convert this using DOS-style short mode. If the path 60497 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60498 # take no chances and rewrite it. 60499 # Note: m4 eats our [], so we need to use [ and ] instead. 60500 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60501 if test "x$has_forbidden_chars" != x; then 60502 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60503 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60504 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60505 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60506 # Going to short mode and back again did indeed matter. Since short mode is 60507 # case insensitive, let's make it lowercase to improve readability. 60508 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60509 # Now convert it back to Unix-style (cygpath) 60510 input_path=`$CYGPATH -u "$shortmode_path"` 60511 new_path="$input_path" 60512 fi 60513 fi 60514 60515 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60516 if test "x$test_cygdrive_prefix" = x; then 60517 # As a simple fix, exclude /usr/bin since it's not a real path. 60518 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60519 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60520 # a path prefixed by /cygdrive for fixpath to work. 60521 new_path="$CYGWIN_ROOT_PATH$input_path" 60522 fi 60523 fi 60524 60525 60526 if test "x$path" != "x$new_path"; then 60527 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60528 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60529 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60530 fi 60531 60532 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60533 60534 path="$POTENTIAL_FREETYPE_LIB_PATH" 60535 has_colon=`$ECHO $path | $GREP ^.:` 60536 new_path="$path" 60537 if test "x$has_colon" = x; then 60538 # Not in mixed or Windows style, start by that. 60539 new_path=`cmd //c echo $path` 60540 fi 60541 60542 60543 input_path="$new_path" 60544 # Check if we need to convert this using DOS-style short mode. If the path 60545 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60546 # take no chances and rewrite it. 60547 # Note: m4 eats our [], so we need to use [ and ] instead. 60548 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60549 if test "x$has_forbidden_chars" != x; then 60550 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60551 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60552 fi 60553 60554 60555 windows_path="$new_path" 60556 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60557 unix_path=`$CYGPATH -u "$windows_path"` 60558 new_path="$unix_path" 60559 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60560 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60561 new_path="$unix_path" 60562 fi 60563 60564 if test "x$path" != "x$new_path"; then 60565 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60566 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60567 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60568 fi 60569 60570 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60571 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60572 60573 else 60574 # We're on a unix platform. Hooray! :) 60575 path="$POTENTIAL_FREETYPE_LIB_PATH" 60576 has_space=`$ECHO "$path" | $GREP " "` 60577 if test "x$has_space" != x; then 60578 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60579 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60580 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60581 fi 60582 60583 # Use eval to expand a potential ~ 60584 eval path="$path" 60585 if test ! -f "$path" && test ! -d "$path"; then 60586 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60587 fi 60588 60589 if test -d "$path"; then 60590 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60591 else 60592 dir="`$DIRNAME "$path"`" 60593 base="`$BASENAME "$path"`" 60594 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60595 fi 60596 fi 60597 fi 60598 60599 60600 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60602 $as_echo_n "checking for freetype includes... " >&6; } 60603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60604 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60605 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60607 $as_echo_n "checking for freetype libraries... " >&6; } 60608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60609 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60610 fi 60611 60612 fi 60613 if test "x$FOUND_FREETYPE" != xyes && test -d $FREETYPE_BASE_DIR \ 60614 && test -s "$FREETYPE_BASE_DIR/builds/windows/vc2010/freetype.vcxproj" && test "x$MSBUILD" != x; then 60615 # Source is available, as a last resort try to build freetype in default location 60616 60617 FREETYPE_SRC_PATH="$FREETYPE_BASE_DIR" 60618 BUILD_FREETYPE=yes 60619 60620 # Check if the freetype sources are acessible.. 60621 if ! test -d $FREETYPE_SRC_PATH; then 60622 { $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 60623 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 60624 BUILD_FREETYPE=no 60625 fi 60626 # ..and contain a vc2010 project file 60627 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 60628 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 60629 { $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 60630 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 60631 BUILD_FREETYPE=no 60632 fi 60633 # Now check if configure found a version of 'msbuild.exe' 60634 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 60635 { $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 60636 $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;} 60637 BUILD_FREETYPE=no 60638 fi 60639 60640 # Ready to go.. 60641 if test "x$BUILD_FREETYPE" = xyes; then 60642 # msbuild requires trailing slashes for output directories 60643 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 60644 freetype_lib_path_unix="$freetype_lib_path" 60645 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 60646 60647 unix_path="$vcxproj_path" 60648 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60649 windows_path=`$CYGPATH -m "$unix_path"` 60650 vcxproj_path="$windows_path" 60651 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60652 windows_path=`cmd //c echo $unix_path` 60653 vcxproj_path="$windows_path" 60654 fi 60655 60656 60657 unix_path="$freetype_lib_path" 60658 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60659 windows_path=`$CYGPATH -m "$unix_path"` 60660 freetype_lib_path="$windows_path" 60661 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60662 windows_path=`cmd //c echo $unix_path` 60663 freetype_lib_path="$windows_path" 60664 fi 60665 60666 60667 unix_path="$freetype_obj_path" 60668 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60669 windows_path=`$CYGPATH -m "$unix_path"` 60670 freetype_obj_path="$windows_path" 60671 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60672 windows_path=`cmd //c echo $unix_path` 60673 freetype_obj_path="$windows_path" 60674 fi 60675 60676 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 60677 freetype_platform=x64 60678 else 60679 freetype_platform=win32 60680 fi 60681 60682 # The original freetype project file is for VS 2010 (i.e. 'v100'), 60683 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 60684 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 60685 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 60686 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 60687 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 60688 60689 # First we try to build the freetype.dll 60690 $ECHO -e "@echo off\n"\ 60691 "$MSBUILD $vcxproj_path "\ 60692 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 60693 "/p:Configuration=\"Release Multithreaded\" "\ 60694 "/p:Platform=$freetype_platform "\ 60695 "/p:ConfigurationType=DynamicLibrary "\ 60696 "/p:TargetName=freetype "\ 60697 "/p:OutDir=\"$freetype_lib_path\" "\ 60698 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 60699 cmd /c freetype.bat 60700 60701 if test -s "$freetype_lib_path_unix/freetype.dll"; then 60702 # If that succeeds we also build freetype.lib 60703 $ECHO -e "@echo off\n"\ 60704 "$MSBUILD $vcxproj_path "\ 60705 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 60706 "/p:Configuration=\"Release Multithreaded\" "\ 60707 "/p:Platform=$freetype_platform "\ 60708 "/p:ConfigurationType=StaticLibrary "\ 60709 "/p:TargetName=freetype "\ 60710 "/p:OutDir=\"$freetype_lib_path\" "\ 60711 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 60712 cmd /c freetype.bat 60713 60714 if test -s "$freetype_lib_path_unix/freetype.lib"; then 60715 # Once we build both, lib and dll, set freetype lib and include path appropriately 60716 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 60717 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 60718 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 60719 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 60720 else 60721 BUILD_FREETYPE=no 60722 fi 60723 else 60724 BUILD_FREETYPE=no 60725 fi 60726 fi 60727 60728 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 60729 60730 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60731 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 60732 METHOD="well-known location" 60733 60734 # Let's start with an optimistic view of the world :-) 60735 FOUND_FREETYPE=yes 60736 60737 # First look for the canonical freetype main include file ft2build.h. 60738 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60739 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60740 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60741 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60742 # Fail. 60743 FOUND_FREETYPE=no 60744 fi 60745 fi 60746 60747 if test "x$FOUND_FREETYPE" = xyes; then 60748 # Include file found, let's continue the sanity check. 60749 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60750 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60751 60752 # Reset to default value 60753 FREETYPE_BASE_NAME=freetype 60754 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60755 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60756 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60757 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60758 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60759 # for the .6 version explicitly. 60760 FREETYPE_BASE_NAME=freetype.6 60761 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60762 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60763 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60764 else 60765 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60766 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60767 FOUND_FREETYPE=no 60768 fi 60769 else 60770 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60771 # On Windows, we will need both .lib and .dll file. 60772 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60773 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60774 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60775 FOUND_FREETYPE=no 60776 fi 60777 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60778 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60779 # Found lib in isa dir, use that instead. 60780 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60781 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60782 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60783 fi 60784 fi 60785 fi 60786 60787 if test "x$FOUND_FREETYPE" = xyes; then 60788 60789 # Only process if variable expands to non-empty 60790 60791 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60792 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60793 60794 # Input might be given as Windows format, start by converting to 60795 # unix format. 60796 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60797 new_path=`$CYGPATH -u "$path"` 60798 60799 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60800 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60801 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60802 # "foo.exe" is OK but "foo" is an error. 60803 # 60804 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60805 # It is also a way to make sure we got the proper file name for the real test later on. 60806 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60807 if test "x$test_shortpath" = x; then 60808 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60809 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60810 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60811 fi 60812 60813 # Call helper function which possibly converts this using DOS-style short mode. 60814 # If so, the updated path is stored in $new_path. 60815 60816 input_path="$new_path" 60817 # Check if we need to convert this using DOS-style short mode. If the path 60818 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60819 # take no chances and rewrite it. 60820 # Note: m4 eats our [], so we need to use [ and ] instead. 60821 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60822 if test "x$has_forbidden_chars" != x; then 60823 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60824 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60825 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60826 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60827 # Going to short mode and back again did indeed matter. Since short mode is 60828 # case insensitive, let's make it lowercase to improve readability. 60829 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60830 # Now convert it back to Unix-style (cygpath) 60831 input_path=`$CYGPATH -u "$shortmode_path"` 60832 new_path="$input_path" 60833 fi 60834 fi 60835 60836 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60837 if test "x$test_cygdrive_prefix" = x; then 60838 # As a simple fix, exclude /usr/bin since it's not a real path. 60839 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60840 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60841 # a path prefixed by /cygdrive for fixpath to work. 60842 new_path="$CYGWIN_ROOT_PATH$input_path" 60843 fi 60844 fi 60845 60846 60847 if test "x$path" != "x$new_path"; then 60848 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60849 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60850 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60851 fi 60852 60853 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60854 60855 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60856 has_colon=`$ECHO $path | $GREP ^.:` 60857 new_path="$path" 60858 if test "x$has_colon" = x; then 60859 # Not in mixed or Windows style, start by that. 60860 new_path=`cmd //c echo $path` 60861 fi 60862 60863 60864 input_path="$new_path" 60865 # Check if we need to convert this using DOS-style short mode. If the path 60866 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60867 # take no chances and rewrite it. 60868 # Note: m4 eats our [], so we need to use [ and ] instead. 60869 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60870 if test "x$has_forbidden_chars" != x; then 60871 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60872 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60873 fi 60874 60875 60876 windows_path="$new_path" 60877 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60878 unix_path=`$CYGPATH -u "$windows_path"` 60879 new_path="$unix_path" 60880 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60881 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60882 new_path="$unix_path" 60883 fi 60884 60885 if test "x$path" != "x$new_path"; then 60886 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60887 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60888 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60889 fi 60890 60891 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60892 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60893 60894 else 60895 # We're on a unix platform. Hooray! :) 60896 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60897 has_space=`$ECHO "$path" | $GREP " "` 60898 if test "x$has_space" != x; then 60899 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60900 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60901 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60902 fi 60903 60904 # Use eval to expand a potential ~ 60905 eval path="$path" 60906 if test ! -f "$path" && test ! -d "$path"; then 60907 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60908 fi 60909 60910 if test -d "$path"; then 60911 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60912 else 60913 dir="`$DIRNAME "$path"`" 60914 base="`$BASENAME "$path"`" 60915 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60916 fi 60917 fi 60918 fi 60919 60920 60921 # Only process if variable expands to non-empty 60922 60923 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60924 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60925 60926 # Input might be given as Windows format, start by converting to 60927 # unix format. 60928 path="$POTENTIAL_FREETYPE_LIB_PATH" 60929 new_path=`$CYGPATH -u "$path"` 60930 60931 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60932 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60933 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60934 # "foo.exe" is OK but "foo" is an error. 60935 # 60936 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60937 # It is also a way to make sure we got the proper file name for the real test later on. 60938 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60939 if test "x$test_shortpath" = x; then 60940 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60941 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60942 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60943 fi 60944 60945 # Call helper function which possibly converts this using DOS-style short mode. 60946 # If so, the updated path is stored in $new_path. 60947 60948 input_path="$new_path" 60949 # Check if we need to convert this using DOS-style short mode. If the path 60950 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60951 # take no chances and rewrite it. 60952 # Note: m4 eats our [], so we need to use [ and ] instead. 60953 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60954 if test "x$has_forbidden_chars" != x; then 60955 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60956 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60957 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60958 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60959 # Going to short mode and back again did indeed matter. Since short mode is 60960 # case insensitive, let's make it lowercase to improve readability. 60961 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60962 # Now convert it back to Unix-style (cygpath) 60963 input_path=`$CYGPATH -u "$shortmode_path"` 60964 new_path="$input_path" 60965 fi 60966 fi 60967 60968 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60969 if test "x$test_cygdrive_prefix" = x; then 60970 # As a simple fix, exclude /usr/bin since it's not a real path. 60971 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60972 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60973 # a path prefixed by /cygdrive for fixpath to work. 60974 new_path="$CYGWIN_ROOT_PATH$input_path" 60975 fi 60976 fi 60977 60978 60979 if test "x$path" != "x$new_path"; then 60980 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60981 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60982 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60983 fi 60984 60985 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60986 60987 path="$POTENTIAL_FREETYPE_LIB_PATH" 60988 has_colon=`$ECHO $path | $GREP ^.:` 60989 new_path="$path" 60990 if test "x$has_colon" = x; then 60991 # Not in mixed or Windows style, start by that. 60992 new_path=`cmd //c echo $path` 60993 fi 60994 60995 60996 input_path="$new_path" 60997 # Check if we need to convert this using DOS-style short mode. If the path 60998 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60999 # take no chances and rewrite it. 61000 # Note: m4 eats our [], so we need to use [ and ] instead. 61001 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61002 if test "x$has_forbidden_chars" != x; then 61003 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61004 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61005 fi 61006 61007 61008 windows_path="$new_path" 61009 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61010 unix_path=`$CYGPATH -u "$windows_path"` 61011 new_path="$unix_path" 61012 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61013 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61014 new_path="$unix_path" 61015 fi 61016 61017 if test "x$path" != "x$new_path"; then 61018 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61019 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61020 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61021 fi 61022 61023 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61024 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61025 61026 else 61027 # We're on a unix platform. Hooray! :) 61028 path="$POTENTIAL_FREETYPE_LIB_PATH" 61029 has_space=`$ECHO "$path" | $GREP " "` 61030 if test "x$has_space" != x; then 61031 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61032 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61033 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61034 fi 61035 61036 # Use eval to expand a potential ~ 61037 eval path="$path" 61038 if test ! -f "$path" && test ! -d "$path"; then 61039 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61040 fi 61041 61042 if test -d "$path"; then 61043 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61044 else 61045 dir="`$DIRNAME "$path"`" 61046 base="`$BASENAME "$path"`" 61047 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61048 fi 61049 fi 61050 fi 61051 61052 61053 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61055 $as_echo_n "checking for freetype includes... " >&6; } 61056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61057 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61058 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61060 $as_echo_n "checking for freetype libraries... " >&6; } 61061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61062 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61063 fi 61064 61065 else 61066 61067 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61068 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 61069 METHOD="well-known location" 61070 61071 # Let's start with an optimistic view of the world :-) 61072 FOUND_FREETYPE=yes 61073 61074 # First look for the canonical freetype main include file ft2build.h. 61075 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61076 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61077 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61078 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61079 # Fail. 61080 FOUND_FREETYPE=no 61081 fi 61082 fi 61083 61084 if test "x$FOUND_FREETYPE" = xyes; then 61085 # Include file found, let's continue the sanity check. 61086 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61087 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61088 61089 # Reset to default value 61090 FREETYPE_BASE_NAME=freetype 61091 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61092 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61093 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61094 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61095 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61096 # for the .6 version explicitly. 61097 FREETYPE_BASE_NAME=freetype.6 61098 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61099 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61100 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61101 else 61102 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61103 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61104 FOUND_FREETYPE=no 61105 fi 61106 else 61107 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61108 # On Windows, we will need both .lib and .dll file. 61109 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61110 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61111 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61112 FOUND_FREETYPE=no 61113 fi 61114 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61115 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61116 # Found lib in isa dir, use that instead. 61117 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61118 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61119 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61120 fi 61121 fi 61122 fi 61123 61124 if test "x$FOUND_FREETYPE" = xyes; then 61125 61126 # Only process if variable expands to non-empty 61127 61128 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61129 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61130 61131 # Input might be given as Windows format, start by converting to 61132 # unix format. 61133 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61134 new_path=`$CYGPATH -u "$path"` 61135 61136 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61137 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61138 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61139 # "foo.exe" is OK but "foo" is an error. 61140 # 61141 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61142 # It is also a way to make sure we got the proper file name for the real test later on. 61143 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61144 if test "x$test_shortpath" = x; then 61145 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61146 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61147 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61148 fi 61149 61150 # Call helper function which possibly converts this using DOS-style short mode. 61151 # If so, the updated path is stored in $new_path. 61152 61153 input_path="$new_path" 61154 # Check if we need to convert this using DOS-style short mode. If the path 61155 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61156 # take no chances and rewrite it. 61157 # Note: m4 eats our [], so we need to use [ and ] instead. 61158 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61159 if test "x$has_forbidden_chars" != x; then 61160 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61161 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61162 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61163 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61164 # Going to short mode and back again did indeed matter. Since short mode is 61165 # case insensitive, let's make it lowercase to improve readability. 61166 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61167 # Now convert it back to Unix-style (cygpath) 61168 input_path=`$CYGPATH -u "$shortmode_path"` 61169 new_path="$input_path" 61170 fi 61171 fi 61172 61173 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61174 if test "x$test_cygdrive_prefix" = x; then 61175 # As a simple fix, exclude /usr/bin since it's not a real path. 61176 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61177 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61178 # a path prefixed by /cygdrive for fixpath to work. 61179 new_path="$CYGWIN_ROOT_PATH$input_path" 61180 fi 61181 fi 61182 61183 61184 if test "x$path" != "x$new_path"; then 61185 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61186 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61187 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61188 fi 61189 61190 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61191 61192 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61193 has_colon=`$ECHO $path | $GREP ^.:` 61194 new_path="$path" 61195 if test "x$has_colon" = x; then 61196 # Not in mixed or Windows style, start by that. 61197 new_path=`cmd //c echo $path` 61198 fi 61199 61200 61201 input_path="$new_path" 61202 # Check if we need to convert this using DOS-style short mode. If the path 61203 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61204 # take no chances and rewrite it. 61205 # Note: m4 eats our [], so we need to use [ and ] instead. 61206 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61207 if test "x$has_forbidden_chars" != x; then 61208 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61209 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61210 fi 61211 61212 61213 windows_path="$new_path" 61214 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61215 unix_path=`$CYGPATH -u "$windows_path"` 61216 new_path="$unix_path" 61217 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61218 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61219 new_path="$unix_path" 61220 fi 61221 61222 if test "x$path" != "x$new_path"; then 61223 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61224 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61225 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61226 fi 61227 61228 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61229 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61230 61231 else 61232 # We're on a unix platform. Hooray! :) 61233 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61234 has_space=`$ECHO "$path" | $GREP " "` 61235 if test "x$has_space" != x; then 61236 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61237 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61238 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61239 fi 61240 61241 # Use eval to expand a potential ~ 61242 eval path="$path" 61243 if test ! -f "$path" && test ! -d "$path"; then 61244 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61245 fi 61246 61247 if test -d "$path"; then 61248 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61249 else 61250 dir="`$DIRNAME "$path"`" 61251 base="`$BASENAME "$path"`" 61252 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61253 fi 61254 fi 61255 fi 61256 61257 61258 # Only process if variable expands to non-empty 61259 61260 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61261 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61262 61263 # Input might be given as Windows format, start by converting to 61264 # unix format. 61265 path="$POTENTIAL_FREETYPE_LIB_PATH" 61266 new_path=`$CYGPATH -u "$path"` 61267 61268 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61269 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61270 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61271 # "foo.exe" is OK but "foo" is an error. 61272 # 61273 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61274 # It is also a way to make sure we got the proper file name for the real test later on. 61275 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61276 if test "x$test_shortpath" = x; then 61277 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61278 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61279 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61280 fi 61281 61282 # Call helper function which possibly converts this using DOS-style short mode. 61283 # If so, the updated path is stored in $new_path. 61284 61285 input_path="$new_path" 61286 # Check if we need to convert this using DOS-style short mode. If the path 61287 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61288 # take no chances and rewrite it. 61289 # Note: m4 eats our [], so we need to use [ and ] instead. 61290 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61291 if test "x$has_forbidden_chars" != x; then 61292 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61293 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61294 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61295 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61296 # Going to short mode and back again did indeed matter. Since short mode is 61297 # case insensitive, let's make it lowercase to improve readability. 61298 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61299 # Now convert it back to Unix-style (cygpath) 61300 input_path=`$CYGPATH -u "$shortmode_path"` 61301 new_path="$input_path" 61302 fi 61303 fi 61304 61305 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61306 if test "x$test_cygdrive_prefix" = x; then 61307 # As a simple fix, exclude /usr/bin since it's not a real path. 61308 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61309 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61310 # a path prefixed by /cygdrive for fixpath to work. 61311 new_path="$CYGWIN_ROOT_PATH$input_path" 61312 fi 61313 fi 61314 61315 61316 if test "x$path" != "x$new_path"; then 61317 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61318 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61319 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61320 fi 61321 61322 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61323 61324 path="$POTENTIAL_FREETYPE_LIB_PATH" 61325 has_colon=`$ECHO $path | $GREP ^.:` 61326 new_path="$path" 61327 if test "x$has_colon" = x; then 61328 # Not in mixed or Windows style, start by that. 61329 new_path=`cmd //c echo $path` 61330 fi 61331 61332 61333 input_path="$new_path" 61334 # Check if we need to convert this using DOS-style short mode. If the path 61335 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61336 # take no chances and rewrite it. 61337 # Note: m4 eats our [], so we need to use [ and ] instead. 61338 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61339 if test "x$has_forbidden_chars" != x; then 61340 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61341 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61342 fi 61343 61344 61345 windows_path="$new_path" 61346 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61347 unix_path=`$CYGPATH -u "$windows_path"` 61348 new_path="$unix_path" 61349 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61350 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61351 new_path="$unix_path" 61352 fi 61353 61354 if test "x$path" != "x$new_path"; then 61355 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61356 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61357 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61358 fi 61359 61360 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61361 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61362 61363 else 61364 # We're on a unix platform. Hooray! :) 61365 path="$POTENTIAL_FREETYPE_LIB_PATH" 61366 has_space=`$ECHO "$path" | $GREP " "` 61367 if test "x$has_space" != x; then 61368 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61369 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61370 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61371 fi 61372 61373 # Use eval to expand a potential ~ 61374 eval path="$path" 61375 if test ! -f "$path" && test ! -d "$path"; then 61376 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61377 fi 61378 61379 if test -d "$path"; then 61380 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61381 else 61382 dir="`$DIRNAME "$path"`" 61383 base="`$BASENAME "$path"`" 61384 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61385 fi 61386 fi 61387 fi 61388 61389 61390 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61392 $as_echo_n "checking for freetype includes... " >&6; } 61393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61394 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61395 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61397 $as_echo_n "checking for freetype libraries... " >&6; } 61398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61399 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61400 fi 61401 61402 fi 61403 fi 61404 fi 61405 else 61406 FREETYPE_BASE_DIR="$SYSROOT/usr" 61407 61408 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61409 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 61410 METHOD="well-known location" 61411 61412 # Let's start with an optimistic view of the world :-) 61413 FOUND_FREETYPE=yes 61414 61415 # First look for the canonical freetype main include file ft2build.h. 61416 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61417 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61418 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61419 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61420 # Fail. 61421 FOUND_FREETYPE=no 61422 fi 61423 fi 61424 61425 if test "x$FOUND_FREETYPE" = xyes; then 61426 # Include file found, let's continue the sanity check. 61427 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61428 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61429 61430 # Reset to default value 61431 FREETYPE_BASE_NAME=freetype 61432 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61433 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61434 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61435 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61436 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61437 # for the .6 version explicitly. 61438 FREETYPE_BASE_NAME=freetype.6 61439 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61440 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61441 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61442 else 61443 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61444 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61445 FOUND_FREETYPE=no 61446 fi 61447 else 61448 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61449 # On Windows, we will need both .lib and .dll file. 61450 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61451 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61452 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61453 FOUND_FREETYPE=no 61454 fi 61455 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61456 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61457 # Found lib in isa dir, use that instead. 61458 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61459 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61460 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61461 fi 61462 fi 61463 fi 61464 61465 if test "x$FOUND_FREETYPE" = xyes; then 61466 61467 # Only process if variable expands to non-empty 61468 61469 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61470 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61471 61472 # Input might be given as Windows format, start by converting to 61473 # unix format. 61474 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61475 new_path=`$CYGPATH -u "$path"` 61476 61477 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61478 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61479 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61480 # "foo.exe" is OK but "foo" is an error. 61481 # 61482 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61483 # It is also a way to make sure we got the proper file name for the real test later on. 61484 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61485 if test "x$test_shortpath" = x; then 61486 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61487 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61488 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61489 fi 61490 61491 # Call helper function which possibly converts this using DOS-style short mode. 61492 # If so, the updated path is stored in $new_path. 61493 61494 input_path="$new_path" 61495 # Check if we need to convert this using DOS-style short mode. If the path 61496 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61497 # take no chances and rewrite it. 61498 # Note: m4 eats our [], so we need to use [ and ] instead. 61499 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61500 if test "x$has_forbidden_chars" != x; then 61501 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61502 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61503 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61504 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61505 # Going to short mode and back again did indeed matter. Since short mode is 61506 # case insensitive, let's make it lowercase to improve readability. 61507 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61508 # Now convert it back to Unix-style (cygpath) 61509 input_path=`$CYGPATH -u "$shortmode_path"` 61510 new_path="$input_path" 61511 fi 61512 fi 61513 61514 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61515 if test "x$test_cygdrive_prefix" = x; then 61516 # As a simple fix, exclude /usr/bin since it's not a real path. 61517 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61518 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61519 # a path prefixed by /cygdrive for fixpath to work. 61520 new_path="$CYGWIN_ROOT_PATH$input_path" 61521 fi 61522 fi 61523 61524 61525 if test "x$path" != "x$new_path"; then 61526 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61527 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61528 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61529 fi 61530 61531 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61532 61533 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61534 has_colon=`$ECHO $path | $GREP ^.:` 61535 new_path="$path" 61536 if test "x$has_colon" = x; then 61537 # Not in mixed or Windows style, start by that. 61538 new_path=`cmd //c echo $path` 61539 fi 61540 61541 61542 input_path="$new_path" 61543 # Check if we need to convert this using DOS-style short mode. If the path 61544 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61545 # take no chances and rewrite it. 61546 # Note: m4 eats our [], so we need to use [ and ] instead. 61547 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61548 if test "x$has_forbidden_chars" != x; then 61549 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61550 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61551 fi 61552 61553 61554 windows_path="$new_path" 61555 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61556 unix_path=`$CYGPATH -u "$windows_path"` 61557 new_path="$unix_path" 61558 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61559 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61560 new_path="$unix_path" 61561 fi 61562 61563 if test "x$path" != "x$new_path"; then 61564 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61565 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61566 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61567 fi 61568 61569 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61570 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61571 61572 else 61573 # We're on a unix platform. Hooray! :) 61574 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61575 has_space=`$ECHO "$path" | $GREP " "` 61576 if test "x$has_space" != x; then 61577 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61578 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61579 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61580 fi 61581 61582 # Use eval to expand a potential ~ 61583 eval path="$path" 61584 if test ! -f "$path" && test ! -d "$path"; then 61585 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61586 fi 61587 61588 if test -d "$path"; then 61589 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61590 else 61591 dir="`$DIRNAME "$path"`" 61592 base="`$BASENAME "$path"`" 61593 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61594 fi 61595 fi 61596 fi 61597 61598 61599 # Only process if variable expands to non-empty 61600 61601 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61602 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61603 61604 # Input might be given as Windows format, start by converting to 61605 # unix format. 61606 path="$POTENTIAL_FREETYPE_LIB_PATH" 61607 new_path=`$CYGPATH -u "$path"` 61608 61609 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61610 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61611 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61612 # "foo.exe" is OK but "foo" is an error. 61613 # 61614 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61615 # It is also a way to make sure we got the proper file name for the real test later on. 61616 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61617 if test "x$test_shortpath" = x; then 61618 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61619 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61620 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61621 fi 61622 61623 # Call helper function which possibly converts this using DOS-style short mode. 61624 # If so, the updated path is stored in $new_path. 61625 61626 input_path="$new_path" 61627 # Check if we need to convert this using DOS-style short mode. If the path 61628 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61629 # take no chances and rewrite it. 61630 # Note: m4 eats our [], so we need to use [ and ] instead. 61631 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61632 if test "x$has_forbidden_chars" != x; then 61633 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61634 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61635 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61636 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61637 # Going to short mode and back again did indeed matter. Since short mode is 61638 # case insensitive, let's make it lowercase to improve readability. 61639 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61640 # Now convert it back to Unix-style (cygpath) 61641 input_path=`$CYGPATH -u "$shortmode_path"` 61642 new_path="$input_path" 61643 fi 61644 fi 61645 61646 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61647 if test "x$test_cygdrive_prefix" = x; then 61648 # As a simple fix, exclude /usr/bin since it's not a real path. 61649 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61650 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61651 # a path prefixed by /cygdrive for fixpath to work. 61652 new_path="$CYGWIN_ROOT_PATH$input_path" 61653 fi 61654 fi 61655 61656 61657 if test "x$path" != "x$new_path"; then 61658 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61659 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61660 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61661 fi 61662 61663 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61664 61665 path="$POTENTIAL_FREETYPE_LIB_PATH" 61666 has_colon=`$ECHO $path | $GREP ^.:` 61667 new_path="$path" 61668 if test "x$has_colon" = x; then 61669 # Not in mixed or Windows style, start by that. 61670 new_path=`cmd //c echo $path` 61671 fi 61672 61673 61674 input_path="$new_path" 61675 # Check if we need to convert this using DOS-style short mode. If the path 61676 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61677 # take no chances and rewrite it. 61678 # Note: m4 eats our [], so we need to use [ and ] instead. 61679 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61680 if test "x$has_forbidden_chars" != x; then 61681 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61682 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61683 fi 61684 61685 61686 windows_path="$new_path" 61687 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61688 unix_path=`$CYGPATH -u "$windows_path"` 61689 new_path="$unix_path" 61690 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61691 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61692 new_path="$unix_path" 61693 fi 61694 61695 if test "x$path" != "x$new_path"; then 61696 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61697 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61698 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61699 fi 61700 61701 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61702 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61703 61704 else 61705 # We're on a unix platform. Hooray! :) 61706 path="$POTENTIAL_FREETYPE_LIB_PATH" 61707 has_space=`$ECHO "$path" | $GREP " "` 61708 if test "x$has_space" != x; then 61709 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61710 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61711 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61712 fi 61713 61714 # Use eval to expand a potential ~ 61715 eval path="$path" 61716 if test ! -f "$path" && test ! -d "$path"; then 61717 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61718 fi 61719 61720 if test -d "$path"; then 61721 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61722 else 61723 dir="`$DIRNAME "$path"`" 61724 base="`$BASENAME "$path"`" 61725 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61726 fi 61727 fi 61728 fi 61729 61730 61731 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61733 $as_echo_n "checking for freetype includes... " >&6; } 61734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61735 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61736 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61738 $as_echo_n "checking for freetype libraries... " >&6; } 61739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61740 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61741 fi 61742 61743 61744 if test "x$FOUND_FREETYPE" != xyes; then 61745 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 61746 61747 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61748 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 61749 METHOD="well-known location" 61750 61751 # Let's start with an optimistic view of the world :-) 61752 FOUND_FREETYPE=yes 61753 61754 # First look for the canonical freetype main include file ft2build.h. 61755 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61756 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61757 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61758 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61759 # Fail. 61760 FOUND_FREETYPE=no 61761 fi 61762 fi 61763 61764 if test "x$FOUND_FREETYPE" = xyes; then 61765 # Include file found, let's continue the sanity check. 61766 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61767 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61768 61769 # Reset to default value 61770 FREETYPE_BASE_NAME=freetype 61771 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61772 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61773 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61774 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61775 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61776 # for the .6 version explicitly. 61777 FREETYPE_BASE_NAME=freetype.6 61778 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61779 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61780 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61781 else 61782 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61783 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61784 FOUND_FREETYPE=no 61785 fi 61786 else 61787 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61788 # On Windows, we will need both .lib and .dll file. 61789 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61790 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61791 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61792 FOUND_FREETYPE=no 61793 fi 61794 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61795 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61796 # Found lib in isa dir, use that instead. 61797 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61798 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61799 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61800 fi 61801 fi 61802 fi 61803 61804 if test "x$FOUND_FREETYPE" = xyes; then 61805 61806 # Only process if variable expands to non-empty 61807 61808 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61809 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61810 61811 # Input might be given as Windows format, start by converting to 61812 # unix format. 61813 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61814 new_path=`$CYGPATH -u "$path"` 61815 61816 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61817 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61818 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61819 # "foo.exe" is OK but "foo" is an error. 61820 # 61821 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61822 # It is also a way to make sure we got the proper file name for the real test later on. 61823 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61824 if test "x$test_shortpath" = x; then 61825 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61826 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61827 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61828 fi 61829 61830 # Call helper function which possibly converts this using DOS-style short mode. 61831 # If so, the updated path is stored in $new_path. 61832 61833 input_path="$new_path" 61834 # Check if we need to convert this using DOS-style short mode. If the path 61835 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61836 # take no chances and rewrite it. 61837 # Note: m4 eats our [], so we need to use [ and ] instead. 61838 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61839 if test "x$has_forbidden_chars" != x; then 61840 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61841 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61842 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61843 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61844 # Going to short mode and back again did indeed matter. Since short mode is 61845 # case insensitive, let's make it lowercase to improve readability. 61846 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61847 # Now convert it back to Unix-style (cygpath) 61848 input_path=`$CYGPATH -u "$shortmode_path"` 61849 new_path="$input_path" 61850 fi 61851 fi 61852 61853 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61854 if test "x$test_cygdrive_prefix" = x; then 61855 # As a simple fix, exclude /usr/bin since it's not a real path. 61856 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61857 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61858 # a path prefixed by /cygdrive for fixpath to work. 61859 new_path="$CYGWIN_ROOT_PATH$input_path" 61860 fi 61861 fi 61862 61863 61864 if test "x$path" != "x$new_path"; then 61865 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61866 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61867 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61868 fi 61869 61870 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61871 61872 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61873 has_colon=`$ECHO $path | $GREP ^.:` 61874 new_path="$path" 61875 if test "x$has_colon" = x; then 61876 # Not in mixed or Windows style, start by that. 61877 new_path=`cmd //c echo $path` 61878 fi 61879 61880 61881 input_path="$new_path" 61882 # Check if we need to convert this using DOS-style short mode. If the path 61883 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61884 # take no chances and rewrite it. 61885 # Note: m4 eats our [], so we need to use [ and ] instead. 61886 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61887 if test "x$has_forbidden_chars" != x; then 61888 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61889 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61890 fi 61891 61892 61893 windows_path="$new_path" 61894 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61895 unix_path=`$CYGPATH -u "$windows_path"` 61896 new_path="$unix_path" 61897 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61898 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61899 new_path="$unix_path" 61900 fi 61901 61902 if test "x$path" != "x$new_path"; then 61903 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61904 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61905 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61906 fi 61907 61908 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61909 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61910 61911 else 61912 # We're on a unix platform. Hooray! :) 61913 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61914 has_space=`$ECHO "$path" | $GREP " "` 61915 if test "x$has_space" != x; then 61916 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61917 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61918 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61919 fi 61920 61921 # Use eval to expand a potential ~ 61922 eval path="$path" 61923 if test ! -f "$path" && test ! -d "$path"; then 61924 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61925 fi 61926 61927 if test -d "$path"; then 61928 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61929 else 61930 dir="`$DIRNAME "$path"`" 61931 base="`$BASENAME "$path"`" 61932 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61933 fi 61934 fi 61935 fi 61936 61937 61938 # Only process if variable expands to non-empty 61939 61940 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61941 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61942 61943 # Input might be given as Windows format, start by converting to 61944 # unix format. 61945 path="$POTENTIAL_FREETYPE_LIB_PATH" 61946 new_path=`$CYGPATH -u "$path"` 61947 61948 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61949 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61950 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61951 # "foo.exe" is OK but "foo" is an error. 61952 # 61953 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61954 # It is also a way to make sure we got the proper file name for the real test later on. 61955 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61956 if test "x$test_shortpath" = x; then 61957 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61958 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61959 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61960 fi 61961 61962 # Call helper function which possibly converts this using DOS-style short mode. 61963 # If so, the updated path is stored in $new_path. 61964 61965 input_path="$new_path" 61966 # Check if we need to convert this using DOS-style short mode. If the path 61967 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61968 # take no chances and rewrite it. 61969 # Note: m4 eats our [], so we need to use [ and ] instead. 61970 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61971 if test "x$has_forbidden_chars" != x; then 61972 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61973 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61974 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61975 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61976 # Going to short mode and back again did indeed matter. Since short mode is 61977 # case insensitive, let's make it lowercase to improve readability. 61978 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61979 # Now convert it back to Unix-style (cygpath) 61980 input_path=`$CYGPATH -u "$shortmode_path"` 61981 new_path="$input_path" 61982 fi 61983 fi 61984 61985 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61986 if test "x$test_cygdrive_prefix" = x; then 61987 # As a simple fix, exclude /usr/bin since it's not a real path. 61988 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61989 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61990 # a path prefixed by /cygdrive for fixpath to work. 61991 new_path="$CYGWIN_ROOT_PATH$input_path" 61992 fi 61993 fi 61994 61995 61996 if test "x$path" != "x$new_path"; then 61997 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61998 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61999 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62000 fi 62001 62002 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62003 62004 path="$POTENTIAL_FREETYPE_LIB_PATH" 62005 has_colon=`$ECHO $path | $GREP ^.:` 62006 new_path="$path" 62007 if test "x$has_colon" = x; then 62008 # Not in mixed or Windows style, start by that. 62009 new_path=`cmd //c echo $path` 62010 fi 62011 62012 62013 input_path="$new_path" 62014 # Check if we need to convert this using DOS-style short mode. If the path 62015 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62016 # take no chances and rewrite it. 62017 # Note: m4 eats our [], so we need to use [ and ] instead. 62018 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62019 if test "x$has_forbidden_chars" != x; then 62020 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62021 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62022 fi 62023 62024 62025 windows_path="$new_path" 62026 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62027 unix_path=`$CYGPATH -u "$windows_path"` 62028 new_path="$unix_path" 62029 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62030 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62031 new_path="$unix_path" 62032 fi 62033 62034 if test "x$path" != "x$new_path"; then 62035 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62036 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62037 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62038 fi 62039 62040 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62041 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62042 62043 else 62044 # We're on a unix platform. Hooray! :) 62045 path="$POTENTIAL_FREETYPE_LIB_PATH" 62046 has_space=`$ECHO "$path" | $GREP " "` 62047 if test "x$has_space" != x; then 62048 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62049 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62050 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62051 fi 62052 62053 # Use eval to expand a potential ~ 62054 eval path="$path" 62055 if test ! -f "$path" && test ! -d "$path"; then 62056 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62057 fi 62058 62059 if test -d "$path"; then 62060 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62061 else 62062 dir="`$DIRNAME "$path"`" 62063 base="`$BASENAME "$path"`" 62064 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62065 fi 62066 fi 62067 fi 62068 62069 62070 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62072 $as_echo_n "checking for freetype includes... " >&6; } 62073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62074 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62075 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62077 $as_echo_n "checking for freetype libraries... " >&6; } 62078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62079 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62080 fi 62081 62082 fi 62083 if test "x$FOUND_FREETYPE" != xyes; then 62084 FREETYPE_BASE_DIR="$SYSROOT/usr/local" 62085 62086 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62087 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 62088 METHOD="well-known location" 62089 62090 # Let's start with an optimistic view of the world :-) 62091 FOUND_FREETYPE=yes 62092 62093 # First look for the canonical freetype main include file ft2build.h. 62094 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62095 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62096 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62097 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62098 # Fail. 62099 FOUND_FREETYPE=no 62100 fi 62101 fi 62102 62103 if test "x$FOUND_FREETYPE" = xyes; then 62104 # Include file found, let's continue the sanity check. 62105 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62106 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62107 62108 # Reset to default value 62109 FREETYPE_BASE_NAME=freetype 62110 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62111 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62112 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 62113 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62114 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62115 # for the .6 version explicitly. 62116 FREETYPE_BASE_NAME=freetype.6 62117 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62118 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62119 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62120 else 62121 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62122 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62123 FOUND_FREETYPE=no 62124 fi 62125 else 62126 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62127 # On Windows, we will need both .lib and .dll file. 62128 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62129 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62130 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62131 FOUND_FREETYPE=no 62132 fi 62133 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62134 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62135 # Found lib in isa dir, use that instead. 62136 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62137 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62138 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62139 fi 62140 fi 62141 fi 62142 62143 if test "x$FOUND_FREETYPE" = xyes; then 62144 62145 # Only process if variable expands to non-empty 62146 62147 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62148 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62149 62150 # Input might be given as Windows format, start by converting to 62151 # unix format. 62152 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62153 new_path=`$CYGPATH -u "$path"` 62154 62155 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62156 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62157 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62158 # "foo.exe" is OK but "foo" is an error. 62159 # 62160 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62161 # It is also a way to make sure we got the proper file name for the real test later on. 62162 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62163 if test "x$test_shortpath" = x; then 62164 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62165 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62166 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62167 fi 62168 62169 # Call helper function which possibly converts this using DOS-style short mode. 62170 # If so, the updated path is stored in $new_path. 62171 62172 input_path="$new_path" 62173 # Check if we need to convert this using DOS-style short mode. If the path 62174 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62175 # take no chances and rewrite it. 62176 # Note: m4 eats our [], so we need to use [ and ] instead. 62177 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62178 if test "x$has_forbidden_chars" != x; then 62179 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62180 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62181 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62182 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62183 # Going to short mode and back again did indeed matter. Since short mode is 62184 # case insensitive, let's make it lowercase to improve readability. 62185 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62186 # Now convert it back to Unix-style (cygpath) 62187 input_path=`$CYGPATH -u "$shortmode_path"` 62188 new_path="$input_path" 62189 fi 62190 fi 62191 62192 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62193 if test "x$test_cygdrive_prefix" = x; then 62194 # As a simple fix, exclude /usr/bin since it's not a real path. 62195 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62196 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62197 # a path prefixed by /cygdrive for fixpath to work. 62198 new_path="$CYGWIN_ROOT_PATH$input_path" 62199 fi 62200 fi 62201 62202 62203 if test "x$path" != "x$new_path"; then 62204 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62205 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62206 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62207 fi 62208 62209 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62210 62211 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62212 has_colon=`$ECHO $path | $GREP ^.:` 62213 new_path="$path" 62214 if test "x$has_colon" = x; then 62215 # Not in mixed or Windows style, start by that. 62216 new_path=`cmd //c echo $path` 62217 fi 62218 62219 62220 input_path="$new_path" 62221 # Check if we need to convert this using DOS-style short mode. If the path 62222 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62223 # take no chances and rewrite it. 62224 # Note: m4 eats our [], so we need to use [ and ] instead. 62225 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62226 if test "x$has_forbidden_chars" != x; then 62227 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62228 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62229 fi 62230 62231 62232 windows_path="$new_path" 62233 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62234 unix_path=`$CYGPATH -u "$windows_path"` 62235 new_path="$unix_path" 62236 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62237 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62238 new_path="$unix_path" 62239 fi 62240 62241 if test "x$path" != "x$new_path"; then 62242 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62243 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62244 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62245 fi 62246 62247 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62248 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62249 62250 else 62251 # We're on a unix platform. Hooray! :) 62252 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62253 has_space=`$ECHO "$path" | $GREP " "` 62254 if test "x$has_space" != x; then 62255 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62256 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62257 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62258 fi 62259 62260 # Use eval to expand a potential ~ 62261 eval path="$path" 62262 if test ! -f "$path" && test ! -d "$path"; then 62263 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62264 fi 62265 62266 if test -d "$path"; then 62267 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62268 else 62269 dir="`$DIRNAME "$path"`" 62270 base="`$BASENAME "$path"`" 62271 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62272 fi 62273 fi 62274 fi 62275 62276 62277 # Only process if variable expands to non-empty 62278 62279 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62280 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62281 62282 # Input might be given as Windows format, start by converting to 62283 # unix format. 62284 path="$POTENTIAL_FREETYPE_LIB_PATH" 62285 new_path=`$CYGPATH -u "$path"` 62286 62287 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62288 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62289 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62290 # "foo.exe" is OK but "foo" is an error. 62291 # 62292 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62293 # It is also a way to make sure we got the proper file name for the real test later on. 62294 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62295 if test "x$test_shortpath" = x; then 62296 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62297 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62298 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62299 fi 62300 62301 # Call helper function which possibly converts this using DOS-style short mode. 62302 # If so, the updated path is stored in $new_path. 62303 62304 input_path="$new_path" 62305 # Check if we need to convert this using DOS-style short mode. If the path 62306 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62307 # take no chances and rewrite it. 62308 # Note: m4 eats our [], so we need to use [ and ] instead. 62309 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62310 if test "x$has_forbidden_chars" != x; then 62311 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62312 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62313 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62314 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62315 # Going to short mode and back again did indeed matter. Since short mode is 62316 # case insensitive, let's make it lowercase to improve readability. 62317 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62318 # Now convert it back to Unix-style (cygpath) 62319 input_path=`$CYGPATH -u "$shortmode_path"` 62320 new_path="$input_path" 62321 fi 62322 fi 62323 62324 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62325 if test "x$test_cygdrive_prefix" = x; then 62326 # As a simple fix, exclude /usr/bin since it's not a real path. 62327 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62328 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62329 # a path prefixed by /cygdrive for fixpath to work. 62330 new_path="$CYGWIN_ROOT_PATH$input_path" 62331 fi 62332 fi 62333 62334 62335 if test "x$path" != "x$new_path"; then 62336 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62337 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62338 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62339 fi 62340 62341 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62342 62343 path="$POTENTIAL_FREETYPE_LIB_PATH" 62344 has_colon=`$ECHO $path | $GREP ^.:` 62345 new_path="$path" 62346 if test "x$has_colon" = x; then 62347 # Not in mixed or Windows style, start by that. 62348 new_path=`cmd //c echo $path` 62349 fi 62350 62351 62352 input_path="$new_path" 62353 # Check if we need to convert this using DOS-style short mode. If the path 62354 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62355 # take no chances and rewrite it. 62356 # Note: m4 eats our [], so we need to use [ and ] instead. 62357 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62358 if test "x$has_forbidden_chars" != x; then 62359 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62360 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62361 fi 62362 62363 62364 windows_path="$new_path" 62365 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62366 unix_path=`$CYGPATH -u "$windows_path"` 62367 new_path="$unix_path" 62368 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62369 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62370 new_path="$unix_path" 62371 fi 62372 62373 if test "x$path" != "x$new_path"; then 62374 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62375 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62376 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62377 fi 62378 62379 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62380 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62381 62382 else 62383 # We're on a unix platform. Hooray! :) 62384 path="$POTENTIAL_FREETYPE_LIB_PATH" 62385 has_space=`$ECHO "$path" | $GREP " "` 62386 if test "x$has_space" != x; then 62387 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62388 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62389 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62390 fi 62391 62392 # Use eval to expand a potential ~ 62393 eval path="$path" 62394 if test ! -f "$path" && test ! -d "$path"; then 62395 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62396 fi 62397 62398 if test -d "$path"; then 62399 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62400 else 62401 dir="`$DIRNAME "$path"`" 62402 base="`$BASENAME "$path"`" 62403 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62404 fi 62405 fi 62406 fi 62407 62408 62409 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62411 $as_echo_n "checking for freetype includes... " >&6; } 62412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62413 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62414 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62416 $as_echo_n "checking for freetype libraries... " >&6; } 62417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62418 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62419 fi 62420 62421 fi 62422 62423 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 62424 if test "x$FOUND_FREETYPE" != xyes; then 62425 # Due to changes in OSX 10.11 XQuartz now installs to /opt/X11 62426 FREETYPE_BASE_DIR="$SYSROOT/opt/X11" 62427 62428 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62429 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 62430 METHOD="well-known location" 62431 62432 # Let's start with an optimistic view of the world :-) 62433 FOUND_FREETYPE=yes 62434 62435 # First look for the canonical freetype main include file ft2build.h. 62436 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62437 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62438 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62439 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62440 # Fail. 62441 FOUND_FREETYPE=no 62442 fi 62443 fi 62444 62445 if test "x$FOUND_FREETYPE" = xyes; then 62446 # Include file found, let's continue the sanity check. 62447 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62448 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62449 62450 # Reset to default value 62451 FREETYPE_BASE_NAME=freetype 62452 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62453 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62454 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 62455 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62456 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62457 # for the .6 version explicitly. 62458 FREETYPE_BASE_NAME=freetype.6 62459 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62460 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62461 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62462 else 62463 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62464 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62465 FOUND_FREETYPE=no 62466 fi 62467 else 62468 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62469 # On Windows, we will need both .lib and .dll file. 62470 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62471 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62472 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62473 FOUND_FREETYPE=no 62474 fi 62475 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62476 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62477 # Found lib in isa dir, use that instead. 62478 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62479 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62480 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62481 fi 62482 fi 62483 fi 62484 62485 if test "x$FOUND_FREETYPE" = xyes; then 62486 62487 # Only process if variable expands to non-empty 62488 62489 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62490 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62491 62492 # Input might be given as Windows format, start by converting to 62493 # unix format. 62494 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62495 new_path=`$CYGPATH -u "$path"` 62496 62497 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62498 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62499 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62500 # "foo.exe" is OK but "foo" is an error. 62501 # 62502 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62503 # It is also a way to make sure we got the proper file name for the real test later on. 62504 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62505 if test "x$test_shortpath" = x; then 62506 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62507 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62508 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62509 fi 62510 62511 # Call helper function which possibly converts this using DOS-style short mode. 62512 # If so, the updated path is stored in $new_path. 62513 62514 input_path="$new_path" 62515 # Check if we need to convert this using DOS-style short mode. If the path 62516 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62517 # take no chances and rewrite it. 62518 # Note: m4 eats our [], so we need to use [ and ] instead. 62519 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62520 if test "x$has_forbidden_chars" != x; then 62521 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62522 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62523 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62524 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62525 # Going to short mode and back again did indeed matter. Since short mode is 62526 # case insensitive, let's make it lowercase to improve readability. 62527 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62528 # Now convert it back to Unix-style (cygpath) 62529 input_path=`$CYGPATH -u "$shortmode_path"` 62530 new_path="$input_path" 62531 fi 62532 fi 62533 62534 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62535 if test "x$test_cygdrive_prefix" = x; then 62536 # As a simple fix, exclude /usr/bin since it's not a real path. 62537 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62538 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62539 # a path prefixed by /cygdrive for fixpath to work. 62540 new_path="$CYGWIN_ROOT_PATH$input_path" 62541 fi 62542 fi 62543 62544 62545 if test "x$path" != "x$new_path"; then 62546 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62547 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62548 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62549 fi 62550 62551 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62552 62553 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62554 has_colon=`$ECHO $path | $GREP ^.:` 62555 new_path="$path" 62556 if test "x$has_colon" = x; then 62557 # Not in mixed or Windows style, start by that. 62558 new_path=`cmd //c echo $path` 62559 fi 62560 62561 62562 input_path="$new_path" 62563 # Check if we need to convert this using DOS-style short mode. If the path 62564 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62565 # take no chances and rewrite it. 62566 # Note: m4 eats our [], so we need to use [ and ] instead. 62567 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62568 if test "x$has_forbidden_chars" != x; then 62569 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62570 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62571 fi 62572 62573 62574 windows_path="$new_path" 62575 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62576 unix_path=`$CYGPATH -u "$windows_path"` 62577 new_path="$unix_path" 62578 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62579 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62580 new_path="$unix_path" 62581 fi 62582 62583 if test "x$path" != "x$new_path"; then 62584 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62585 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62586 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62587 fi 62588 62589 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62590 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62591 62592 else 62593 # We're on a unix platform. Hooray! :) 62594 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62595 has_space=`$ECHO "$path" | $GREP " "` 62596 if test "x$has_space" != x; then 62597 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62598 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62599 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62600 fi 62601 62602 # Use eval to expand a potential ~ 62603 eval path="$path" 62604 if test ! -f "$path" && test ! -d "$path"; then 62605 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62606 fi 62607 62608 if test -d "$path"; then 62609 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62610 else 62611 dir="`$DIRNAME "$path"`" 62612 base="`$BASENAME "$path"`" 62613 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62614 fi 62615 fi 62616 fi 62617 62618 62619 # Only process if variable expands to non-empty 62620 62621 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62622 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62623 62624 # Input might be given as Windows format, start by converting to 62625 # unix format. 62626 path="$POTENTIAL_FREETYPE_LIB_PATH" 62627 new_path=`$CYGPATH -u "$path"` 62628 62629 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62630 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62631 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62632 # "foo.exe" is OK but "foo" is an error. 62633 # 62634 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62635 # It is also a way to make sure we got the proper file name for the real test later on. 62636 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62637 if test "x$test_shortpath" = x; then 62638 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62639 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62640 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62641 fi 62642 62643 # Call helper function which possibly converts this using DOS-style short mode. 62644 # If so, the updated path is stored in $new_path. 62645 62646 input_path="$new_path" 62647 # Check if we need to convert this using DOS-style short mode. If the path 62648 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62649 # take no chances and rewrite it. 62650 # Note: m4 eats our [], so we need to use [ and ] instead. 62651 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62652 if test "x$has_forbidden_chars" != x; then 62653 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62654 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62655 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62656 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62657 # Going to short mode and back again did indeed matter. Since short mode is 62658 # case insensitive, let's make it lowercase to improve readability. 62659 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62660 # Now convert it back to Unix-style (cygpath) 62661 input_path=`$CYGPATH -u "$shortmode_path"` 62662 new_path="$input_path" 62663 fi 62664 fi 62665 62666 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62667 if test "x$test_cygdrive_prefix" = x; then 62668 # As a simple fix, exclude /usr/bin since it's not a real path. 62669 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62670 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62671 # a path prefixed by /cygdrive for fixpath to work. 62672 new_path="$CYGWIN_ROOT_PATH$input_path" 62673 fi 62674 fi 62675 62676 62677 if test "x$path" != "x$new_path"; then 62678 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62679 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62680 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62681 fi 62682 62683 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62684 62685 path="$POTENTIAL_FREETYPE_LIB_PATH" 62686 has_colon=`$ECHO $path | $GREP ^.:` 62687 new_path="$path" 62688 if test "x$has_colon" = x; then 62689 # Not in mixed or Windows style, start by that. 62690 new_path=`cmd //c echo $path` 62691 fi 62692 62693 62694 input_path="$new_path" 62695 # Check if we need to convert this using DOS-style short mode. If the path 62696 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62697 # take no chances and rewrite it. 62698 # Note: m4 eats our [], so we need to use [ and ] instead. 62699 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62700 if test "x$has_forbidden_chars" != x; then 62701 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62702 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62703 fi 62704 62705 62706 windows_path="$new_path" 62707 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62708 unix_path=`$CYGPATH -u "$windows_path"` 62709 new_path="$unix_path" 62710 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62711 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62712 new_path="$unix_path" 62713 fi 62714 62715 if test "x$path" != "x$new_path"; then 62716 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62717 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62718 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62719 fi 62720 62721 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62722 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62723 62724 else 62725 # We're on a unix platform. Hooray! :) 62726 path="$POTENTIAL_FREETYPE_LIB_PATH" 62727 has_space=`$ECHO "$path" | $GREP " "` 62728 if test "x$has_space" != x; then 62729 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62730 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62731 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62732 fi 62733 62734 # Use eval to expand a potential ~ 62735 eval path="$path" 62736 if test ! -f "$path" && test ! -d "$path"; then 62737 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62738 fi 62739 62740 if test -d "$path"; then 62741 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62742 else 62743 dir="`$DIRNAME "$path"`" 62744 base="`$BASENAME "$path"`" 62745 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62746 fi 62747 fi 62748 fi 62749 62750 62751 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62753 $as_echo_n "checking for freetype includes... " >&6; } 62754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62755 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62756 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62758 $as_echo_n "checking for freetype libraries... " >&6; } 62759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62760 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62761 fi 62762 62763 fi 62764 fi 62765 62766 if test "x$FOUND_FREETYPE" != xyes; then 62767 FREETYPE_BASE_DIR="$SYSROOT/usr" 62768 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 62769 62770 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62771 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/$OPENJDK_TARGET_CPU-linux-gnu" 62772 METHOD="well-known location" 62773 62774 # Let's start with an optimistic view of the world :-) 62775 FOUND_FREETYPE=yes 62776 62777 # First look for the canonical freetype main include file ft2build.h. 62778 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62779 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62780 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62781 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62782 # Fail. 62783 FOUND_FREETYPE=no 62784 fi 62785 fi 62786 62787 if test "x$FOUND_FREETYPE" = xyes; then 62788 # Include file found, let's continue the sanity check. 62789 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62790 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62791 62792 # Reset to default value 62793 FREETYPE_BASE_NAME=freetype 62794 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62795 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62796 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 62797 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62798 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62799 # for the .6 version explicitly. 62800 FREETYPE_BASE_NAME=freetype.6 62801 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62802 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62803 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62804 else 62805 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62806 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62807 FOUND_FREETYPE=no 62808 fi 62809 else 62810 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62811 # On Windows, we will need both .lib and .dll file. 62812 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62813 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62814 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62815 FOUND_FREETYPE=no 62816 fi 62817 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62818 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62819 # Found lib in isa dir, use that instead. 62820 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62821 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62822 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62823 fi 62824 fi 62825 fi 62826 62827 if test "x$FOUND_FREETYPE" = xyes; then 62828 62829 # Only process if variable expands to non-empty 62830 62831 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62832 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62833 62834 # Input might be given as Windows format, start by converting to 62835 # unix format. 62836 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62837 new_path=`$CYGPATH -u "$path"` 62838 62839 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62840 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62841 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62842 # "foo.exe" is OK but "foo" is an error. 62843 # 62844 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62845 # It is also a way to make sure we got the proper file name for the real test later on. 62846 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62847 if test "x$test_shortpath" = x; then 62848 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62849 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62850 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62851 fi 62852 62853 # Call helper function which possibly converts this using DOS-style short mode. 62854 # If so, the updated path is stored in $new_path. 62855 62856 input_path="$new_path" 62857 # Check if we need to convert this using DOS-style short mode. If the path 62858 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62859 # take no chances and rewrite it. 62860 # Note: m4 eats our [], so we need to use [ and ] instead. 62861 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62862 if test "x$has_forbidden_chars" != x; then 62863 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62864 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62865 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62866 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62867 # Going to short mode and back again did indeed matter. Since short mode is 62868 # case insensitive, let's make it lowercase to improve readability. 62869 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62870 # Now convert it back to Unix-style (cygpath) 62871 input_path=`$CYGPATH -u "$shortmode_path"` 62872 new_path="$input_path" 62873 fi 62874 fi 62875 62876 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62877 if test "x$test_cygdrive_prefix" = x; then 62878 # As a simple fix, exclude /usr/bin since it's not a real path. 62879 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62880 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62881 # a path prefixed by /cygdrive for fixpath to work. 62882 new_path="$CYGWIN_ROOT_PATH$input_path" 62883 fi 62884 fi 62885 62886 62887 if test "x$path" != "x$new_path"; then 62888 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62889 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62890 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62891 fi 62892 62893 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62894 62895 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62896 has_colon=`$ECHO $path | $GREP ^.:` 62897 new_path="$path" 62898 if test "x$has_colon" = x; then 62899 # Not in mixed or Windows style, start by that. 62900 new_path=`cmd //c echo $path` 62901 fi 62902 62903 62904 input_path="$new_path" 62905 # Check if we need to convert this using DOS-style short mode. If the path 62906 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62907 # take no chances and rewrite it. 62908 # Note: m4 eats our [], so we need to use [ and ] instead. 62909 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62910 if test "x$has_forbidden_chars" != x; then 62911 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62912 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62913 fi 62914 62915 62916 windows_path="$new_path" 62917 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62918 unix_path=`$CYGPATH -u "$windows_path"` 62919 new_path="$unix_path" 62920 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62921 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62922 new_path="$unix_path" 62923 fi 62924 62925 if test "x$path" != "x$new_path"; then 62926 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62927 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62928 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62929 fi 62930 62931 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62932 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62933 62934 else 62935 # We're on a unix platform. Hooray! :) 62936 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62937 has_space=`$ECHO "$path" | $GREP " "` 62938 if test "x$has_space" != x; then 62939 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62940 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62941 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62942 fi 62943 62944 # Use eval to expand a potential ~ 62945 eval path="$path" 62946 if test ! -f "$path" && test ! -d "$path"; then 62947 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62948 fi 62949 62950 if test -d "$path"; then 62951 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62952 else 62953 dir="`$DIRNAME "$path"`" 62954 base="`$BASENAME "$path"`" 62955 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62956 fi 62957 fi 62958 fi 62959 62960 62961 # Only process if variable expands to non-empty 62962 62963 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62964 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62965 62966 # Input might be given as Windows format, start by converting to 62967 # unix format. 62968 path="$POTENTIAL_FREETYPE_LIB_PATH" 62969 new_path=`$CYGPATH -u "$path"` 62970 62971 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62972 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62973 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62974 # "foo.exe" is OK but "foo" is an error. 62975 # 62976 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62977 # It is also a way to make sure we got the proper file name for the real test later on. 62978 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62979 if test "x$test_shortpath" = x; then 62980 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62981 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62982 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62983 fi 62984 62985 # Call helper function which possibly converts this using DOS-style short mode. 62986 # If so, the updated path is stored in $new_path. 62987 62988 input_path="$new_path" 62989 # Check if we need to convert this using DOS-style short mode. If the path 62990 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62991 # take no chances and rewrite it. 62992 # Note: m4 eats our [], so we need to use [ and ] instead. 62993 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62994 if test "x$has_forbidden_chars" != x; then 62995 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62996 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62997 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62998 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62999 # Going to short mode and back again did indeed matter. Since short mode is 63000 # case insensitive, let's make it lowercase to improve readability. 63001 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63002 # Now convert it back to Unix-style (cygpath) 63003 input_path=`$CYGPATH -u "$shortmode_path"` 63004 new_path="$input_path" 63005 fi 63006 fi 63007 63008 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63009 if test "x$test_cygdrive_prefix" = x; then 63010 # As a simple fix, exclude /usr/bin since it's not a real path. 63011 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63012 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63013 # a path prefixed by /cygdrive for fixpath to work. 63014 new_path="$CYGWIN_ROOT_PATH$input_path" 63015 fi 63016 fi 63017 63018 63019 if test "x$path" != "x$new_path"; then 63020 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63021 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63022 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63023 fi 63024 63025 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63026 63027 path="$POTENTIAL_FREETYPE_LIB_PATH" 63028 has_colon=`$ECHO $path | $GREP ^.:` 63029 new_path="$path" 63030 if test "x$has_colon" = x; then 63031 # Not in mixed or Windows style, start by that. 63032 new_path=`cmd //c echo $path` 63033 fi 63034 63035 63036 input_path="$new_path" 63037 # Check if we need to convert this using DOS-style short mode. If the path 63038 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63039 # take no chances and rewrite it. 63040 # Note: m4 eats our [], so we need to use [ and ] instead. 63041 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63042 if test "x$has_forbidden_chars" != x; then 63043 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63044 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63045 fi 63046 63047 63048 windows_path="$new_path" 63049 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63050 unix_path=`$CYGPATH -u "$windows_path"` 63051 new_path="$unix_path" 63052 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63053 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63054 new_path="$unix_path" 63055 fi 63056 63057 if test "x$path" != "x$new_path"; then 63058 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63059 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63060 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63061 fi 63062 63063 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63064 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63065 63066 else 63067 # We're on a unix platform. Hooray! :) 63068 path="$POTENTIAL_FREETYPE_LIB_PATH" 63069 has_space=`$ECHO "$path" | $GREP " "` 63070 if test "x$has_space" != x; then 63071 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63072 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63073 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63074 fi 63075 63076 # Use eval to expand a potential ~ 63077 eval path="$path" 63078 if test ! -f "$path" && test ! -d "$path"; then 63079 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63080 fi 63081 63082 if test -d "$path"; then 63083 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 63084 else 63085 dir="`$DIRNAME "$path"`" 63086 base="`$BASENAME "$path"`" 63087 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63088 fi 63089 fi 63090 fi 63091 63092 63093 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 63095 $as_echo_n "checking for freetype includes... " >&6; } 63096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 63097 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 63098 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 63099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 63100 $as_echo_n "checking for freetype libraries... " >&6; } 63101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 63102 $as_echo "$FREETYPE_LIB_PATH" >&6; } 63103 fi 63104 63105 else 63106 63107 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 63108 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 63109 METHOD="well-known location" 63110 63111 # Let's start with an optimistic view of the world :-) 63112 FOUND_FREETYPE=yes 63113 63114 # First look for the canonical freetype main include file ft2build.h. 63115 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63116 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 63117 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 63118 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63119 # Fail. 63120 FOUND_FREETYPE=no 63121 fi 63122 fi 63123 63124 if test "x$FOUND_FREETYPE" = xyes; then 63125 # Include file found, let's continue the sanity check. 63126 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 63127 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 63128 63129 # Reset to default value 63130 FREETYPE_BASE_NAME=freetype 63131 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63132 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 63133 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 63134 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 63135 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 63136 # for the .6 version explicitly. 63137 FREETYPE_BASE_NAME=freetype.6 63138 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63139 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 63140 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 63141 else 63142 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 63143 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 63144 FOUND_FREETYPE=no 63145 fi 63146 else 63147 if test "x$OPENJDK_TARGET_OS" = xwindows; then 63148 # On Windows, we will need both .lib and .dll file. 63149 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 63150 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 63151 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 63152 FOUND_FREETYPE=no 63153 fi 63154 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 63155 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 63156 # Found lib in isa dir, use that instead. 63157 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 63158 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 63159 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 63160 fi 63161 fi 63162 fi 63163 63164 if test "x$FOUND_FREETYPE" = xyes; then 63165 63166 # Only process if variable expands to non-empty 63167 63168 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 63169 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63170 63171 # Input might be given as Windows format, start by converting to 63172 # unix format. 63173 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63174 new_path=`$CYGPATH -u "$path"` 63175 63176 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63177 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63178 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63179 # "foo.exe" is OK but "foo" is an error. 63180 # 63181 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63182 # It is also a way to make sure we got the proper file name for the real test later on. 63183 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63184 if test "x$test_shortpath" = x; then 63185 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63186 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63187 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 63188 fi 63189 63190 # Call helper function which possibly converts this using DOS-style short mode. 63191 # If so, the updated path is stored in $new_path. 63192 63193 input_path="$new_path" 63194 # Check if we need to convert this using DOS-style short mode. If the path 63195 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63196 # take no chances and rewrite it. 63197 # Note: m4 eats our [], so we need to use [ and ] instead. 63198 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63199 if test "x$has_forbidden_chars" != x; then 63200 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63201 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63202 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63203 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63204 # Going to short mode and back again did indeed matter. Since short mode is 63205 # case insensitive, let's make it lowercase to improve readability. 63206 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63207 # Now convert it back to Unix-style (cygpath) 63208 input_path=`$CYGPATH -u "$shortmode_path"` 63209 new_path="$input_path" 63210 fi 63211 fi 63212 63213 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63214 if test "x$test_cygdrive_prefix" = x; then 63215 # As a simple fix, exclude /usr/bin since it's not a real path. 63216 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63217 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63218 # a path prefixed by /cygdrive for fixpath to work. 63219 new_path="$CYGWIN_ROOT_PATH$input_path" 63220 fi 63221 fi 63222 63223 63224 if test "x$path" != "x$new_path"; then 63225 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63226 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63227 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63228 fi 63229 63230 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63231 63232 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63233 has_colon=`$ECHO $path | $GREP ^.:` 63234 new_path="$path" 63235 if test "x$has_colon" = x; then 63236 # Not in mixed or Windows style, start by that. 63237 new_path=`cmd //c echo $path` 63238 fi 63239 63240 63241 input_path="$new_path" 63242 # Check if we need to convert this using DOS-style short mode. If the path 63243 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63244 # take no chances and rewrite it. 63245 # Note: m4 eats our [], so we need to use [ and ] instead. 63246 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63247 if test "x$has_forbidden_chars" != x; then 63248 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63249 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63250 fi 63251 63252 63253 windows_path="$new_path" 63254 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63255 unix_path=`$CYGPATH -u "$windows_path"` 63256 new_path="$unix_path" 63257 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63258 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63259 new_path="$unix_path" 63260 fi 63261 63262 if test "x$path" != "x$new_path"; then 63263 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63264 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63265 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63266 fi 63267 63268 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63269 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63270 63271 else 63272 # We're on a unix platform. Hooray! :) 63273 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63274 has_space=`$ECHO "$path" | $GREP " "` 63275 if test "x$has_space" != x; then 63276 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63277 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63278 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63279 fi 63280 63281 # Use eval to expand a potential ~ 63282 eval path="$path" 63283 if test ! -f "$path" && test ! -d "$path"; then 63284 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63285 fi 63286 63287 if test -d "$path"; then 63288 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 63289 else 63290 dir="`$DIRNAME "$path"`" 63291 base="`$BASENAME "$path"`" 63292 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63293 fi 63294 fi 63295 fi 63296 63297 63298 # Only process if variable expands to non-empty 63299 63300 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 63301 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63302 63303 # Input might be given as Windows format, start by converting to 63304 # unix format. 63305 path="$POTENTIAL_FREETYPE_LIB_PATH" 63306 new_path=`$CYGPATH -u "$path"` 63307 63308 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63309 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63310 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63311 # "foo.exe" is OK but "foo" is an error. 63312 # 63313 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63314 # It is also a way to make sure we got the proper file name for the real test later on. 63315 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63316 if test "x$test_shortpath" = x; then 63317 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63318 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63319 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 63320 fi 63321 63322 # Call helper function which possibly converts this using DOS-style short mode. 63323 # If so, the updated path is stored in $new_path. 63324 63325 input_path="$new_path" 63326 # Check if we need to convert this using DOS-style short mode. If the path 63327 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63328 # take no chances and rewrite it. 63329 # Note: m4 eats our [], so we need to use [ and ] instead. 63330 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63331 if test "x$has_forbidden_chars" != x; then 63332 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63333 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63334 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63335 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63336 # Going to short mode and back again did indeed matter. Since short mode is 63337 # case insensitive, let's make it lowercase to improve readability. 63338 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63339 # Now convert it back to Unix-style (cygpath) 63340 input_path=`$CYGPATH -u "$shortmode_path"` 63341 new_path="$input_path" 63342 fi 63343 fi 63344 63345 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63346 if test "x$test_cygdrive_prefix" = x; then 63347 # As a simple fix, exclude /usr/bin since it's not a real path. 63348 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63349 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63350 # a path prefixed by /cygdrive for fixpath to work. 63351 new_path="$CYGWIN_ROOT_PATH$input_path" 63352 fi 63353 fi 63354 63355 63356 if test "x$path" != "x$new_path"; then 63357 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63358 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63359 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63360 fi 63361 63362 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63363 63364 path="$POTENTIAL_FREETYPE_LIB_PATH" 63365 has_colon=`$ECHO $path | $GREP ^.:` 63366 new_path="$path" 63367 if test "x$has_colon" = x; then 63368 # Not in mixed or Windows style, start by that. 63369 new_path=`cmd //c echo $path` 63370 fi 63371 63372 63373 input_path="$new_path" 63374 # Check if we need to convert this using DOS-style short mode. If the path 63375 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63376 # take no chances and rewrite it. 63377 # Note: m4 eats our [], so we need to use [ and ] instead. 63378 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63379 if test "x$has_forbidden_chars" != x; then 63380 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63381 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63382 fi 63383 63384 63385 windows_path="$new_path" 63386 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63387 unix_path=`$CYGPATH -u "$windows_path"` 63388 new_path="$unix_path" 63389 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63390 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63391 new_path="$unix_path" 63392 fi 63393 63394 if test "x$path" != "x$new_path"; then 63395 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63396 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63397 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63398 fi 63399 63400 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63401 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63402 63403 else 63404 # We're on a unix platform. Hooray! :) 63405 path="$POTENTIAL_FREETYPE_LIB_PATH" 63406 has_space=`$ECHO "$path" | $GREP " "` 63407 if test "x$has_space" != x; then 63408 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63409 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63410 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63411 fi 63412 63413 # Use eval to expand a potential ~ 63414 eval path="$path" 63415 if test ! -f "$path" && test ! -d "$path"; then 63416 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63417 fi 63418 63419 if test -d "$path"; then 63420 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 63421 else 63422 dir="`$DIRNAME "$path"`" 63423 base="`$BASENAME "$path"`" 63424 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63425 fi 63426 fi 63427 fi 63428 63429 63430 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 63432 $as_echo_n "checking for freetype includes... " >&6; } 63433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 63434 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 63435 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 63436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 63437 $as_echo_n "checking for freetype libraries... " >&6; } 63438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 63439 $as_echo "$FREETYPE_LIB_PATH" >&6; } 63440 fi 63441 63442 if test "x$FOUND_FREETYPE" != xyes; then 63443 63444 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 63445 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 63446 METHOD="well-known location" 63447 63448 # Let's start with an optimistic view of the world :-) 63449 FOUND_FREETYPE=yes 63450 63451 # First look for the canonical freetype main include file ft2build.h. 63452 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63453 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 63454 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 63455 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63456 # Fail. 63457 FOUND_FREETYPE=no 63458 fi 63459 fi 63460 63461 if test "x$FOUND_FREETYPE" = xyes; then 63462 # Include file found, let's continue the sanity check. 63463 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 63464 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 63465 63466 # Reset to default value 63467 FREETYPE_BASE_NAME=freetype 63468 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63469 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 63470 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 63471 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 63472 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 63473 # for the .6 version explicitly. 63474 FREETYPE_BASE_NAME=freetype.6 63475 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63476 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 63477 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 63478 else 63479 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 63480 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 63481 FOUND_FREETYPE=no 63482 fi 63483 else 63484 if test "x$OPENJDK_TARGET_OS" = xwindows; then 63485 # On Windows, we will need both .lib and .dll file. 63486 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 63487 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 63488 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 63489 FOUND_FREETYPE=no 63490 fi 63491 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 63492 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 63493 # Found lib in isa dir, use that instead. 63494 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 63495 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 63496 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 63497 fi 63498 fi 63499 fi 63500 63501 if test "x$FOUND_FREETYPE" = xyes; then 63502 63503 # Only process if variable expands to non-empty 63504 63505 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 63506 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63507 63508 # Input might be given as Windows format, start by converting to 63509 # unix format. 63510 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63511 new_path=`$CYGPATH -u "$path"` 63512 63513 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63514 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63515 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63516 # "foo.exe" is OK but "foo" is an error. 63517 # 63518 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63519 # It is also a way to make sure we got the proper file name for the real test later on. 63520 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63521 if test "x$test_shortpath" = x; then 63522 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63523 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63524 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 63525 fi 63526 63527 # Call helper function which possibly converts this using DOS-style short mode. 63528 # If so, the updated path is stored in $new_path. 63529 63530 input_path="$new_path" 63531 # Check if we need to convert this using DOS-style short mode. If the path 63532 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63533 # take no chances and rewrite it. 63534 # Note: m4 eats our [], so we need to use [ and ] instead. 63535 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63536 if test "x$has_forbidden_chars" != x; then 63537 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63538 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63539 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63540 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63541 # Going to short mode and back again did indeed matter. Since short mode is 63542 # case insensitive, let's make it lowercase to improve readability. 63543 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63544 # Now convert it back to Unix-style (cygpath) 63545 input_path=`$CYGPATH -u "$shortmode_path"` 63546 new_path="$input_path" 63547 fi 63548 fi 63549 63550 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63551 if test "x$test_cygdrive_prefix" = x; then 63552 # As a simple fix, exclude /usr/bin since it's not a real path. 63553 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63554 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63555 # a path prefixed by /cygdrive for fixpath to work. 63556 new_path="$CYGWIN_ROOT_PATH$input_path" 63557 fi 63558 fi 63559 63560 63561 if test "x$path" != "x$new_path"; then 63562 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63563 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63564 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63565 fi 63566 63567 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63568 63569 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63570 has_colon=`$ECHO $path | $GREP ^.:` 63571 new_path="$path" 63572 if test "x$has_colon" = x; then 63573 # Not in mixed or Windows style, start by that. 63574 new_path=`cmd //c echo $path` 63575 fi 63576 63577 63578 input_path="$new_path" 63579 # Check if we need to convert this using DOS-style short mode. If the path 63580 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63581 # take no chances and rewrite it. 63582 # Note: m4 eats our [], so we need to use [ and ] instead. 63583 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63584 if test "x$has_forbidden_chars" != x; then 63585 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63586 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63587 fi 63588 63589 63590 windows_path="$new_path" 63591 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63592 unix_path=`$CYGPATH -u "$windows_path"` 63593 new_path="$unix_path" 63594 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63595 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63596 new_path="$unix_path" 63597 fi 63598 63599 if test "x$path" != "x$new_path"; then 63600 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63601 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63602 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63603 fi 63604 63605 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63606 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63607 63608 else 63609 # We're on a unix platform. Hooray! :) 63610 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63611 has_space=`$ECHO "$path" | $GREP " "` 63612 if test "x$has_space" != x; then 63613 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63614 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63615 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63616 fi 63617 63618 # Use eval to expand a potential ~ 63619 eval path="$path" 63620 if test ! -f "$path" && test ! -d "$path"; then 63621 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63622 fi 63623 63624 if test -d "$path"; then 63625 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 63626 else 63627 dir="`$DIRNAME "$path"`" 63628 base="`$BASENAME "$path"`" 63629 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63630 fi 63631 fi 63632 fi 63633 63634 63635 # Only process if variable expands to non-empty 63636 63637 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 63638 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63639 63640 # Input might be given as Windows format, start by converting to 63641 # unix format. 63642 path="$POTENTIAL_FREETYPE_LIB_PATH" 63643 new_path=`$CYGPATH -u "$path"` 63644 63645 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63646 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63647 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63648 # "foo.exe" is OK but "foo" is an error. 63649 # 63650 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63651 # It is also a way to make sure we got the proper file name for the real test later on. 63652 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63653 if test "x$test_shortpath" = x; then 63654 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63655 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63656 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 63657 fi 63658 63659 # Call helper function which possibly converts this using DOS-style short mode. 63660 # If so, the updated path is stored in $new_path. 63661 63662 input_path="$new_path" 63663 # Check if we need to convert this using DOS-style short mode. If the path 63664 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63665 # take no chances and rewrite it. 63666 # Note: m4 eats our [], so we need to use [ and ] instead. 63667 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63668 if test "x$has_forbidden_chars" != x; then 63669 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63670 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63671 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63672 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63673 # Going to short mode and back again did indeed matter. Since short mode is 63674 # case insensitive, let's make it lowercase to improve readability. 63675 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63676 # Now convert it back to Unix-style (cygpath) 63677 input_path=`$CYGPATH -u "$shortmode_path"` 63678 new_path="$input_path" 63679 fi 63680 fi 63681 63682 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63683 if test "x$test_cygdrive_prefix" = x; then 63684 # As a simple fix, exclude /usr/bin since it's not a real path. 63685 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63686 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63687 # a path prefixed by /cygdrive for fixpath to work. 63688 new_path="$CYGWIN_ROOT_PATH$input_path" 63689 fi 63690 fi 63691 63692 63693 if test "x$path" != "x$new_path"; then 63694 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63695 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63696 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63697 fi 63698 63699 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63700 63701 path="$POTENTIAL_FREETYPE_LIB_PATH" 63702 has_colon=`$ECHO $path | $GREP ^.:` 63703 new_path="$path" 63704 if test "x$has_colon" = x; then 63705 # Not in mixed or Windows style, start by that. 63706 new_path=`cmd //c echo $path` 63707 fi 63708 63709 63710 input_path="$new_path" 63711 # Check if we need to convert this using DOS-style short mode. If the path 63712 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63713 # take no chances and rewrite it. 63714 # Note: m4 eats our [], so we need to use [ and ] instead. 63715 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63716 if test "x$has_forbidden_chars" != x; then 63717 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63718 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63719 fi 63720 63721 63722 windows_path="$new_path" 63723 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63724 unix_path=`$CYGPATH -u "$windows_path"` 63725 new_path="$unix_path" 63726 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63727 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63728 new_path="$unix_path" 63729 fi 63730 63731 if test "x$path" != "x$new_path"; then 63732 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63733 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63734 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63735 fi 63736 63737 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63738 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63739 63740 else 63741 # We're on a unix platform. Hooray! :) 63742 path="$POTENTIAL_FREETYPE_LIB_PATH" 63743 has_space=`$ECHO "$path" | $GREP " "` 63744 if test "x$has_space" != x; then 63745 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63746 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63747 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63748 fi 63749 63750 # Use eval to expand a potential ~ 63751 eval path="$path" 63752 if test ! -f "$path" && test ! -d "$path"; then 63753 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63754 fi 63755 63756 if test -d "$path"; then 63757 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 63758 else 63759 dir="`$DIRNAME "$path"`" 63760 base="`$BASENAME "$path"`" 63761 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63762 fi 63763 fi 63764 fi 63765 63766 63767 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 63769 $as_echo_n "checking for freetype includes... " >&6; } 63770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 63771 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 63772 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 63773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 63774 $as_echo_n "checking for freetype libraries... " >&6; } 63775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 63776 $as_echo "$FREETYPE_LIB_PATH" >&6; } 63777 fi 63778 63779 fi 63780 fi 63781 fi 63782 fi 63783 fi # end check in well-known locations 63784 63785 if test "x$FOUND_FREETYPE" != xyes; then 63786 63787 # Print a helpful message on how to acquire the necessary build dependency. 63788 # freetype is the help tag: freetype, cups, alsa etc 63789 MISSING_DEPENDENCY=freetype 63790 63791 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63792 cygwin_help $MISSING_DEPENDENCY 63793 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63794 msys_help $MISSING_DEPENDENCY 63795 else 63796 PKGHANDLER_COMMAND= 63797 63798 case $PKGHANDLER in 63799 apt-get) 63800 apt_help $MISSING_DEPENDENCY ;; 63801 yum) 63802 yum_help $MISSING_DEPENDENCY ;; 63803 brew) 63804 brew_help $MISSING_DEPENDENCY ;; 63805 port) 63806 port_help $MISSING_DEPENDENCY ;; 63807 pkgutil) 63808 pkgutil_help $MISSING_DEPENDENCY ;; 63809 pkgadd) 63810 pkgadd_help $MISSING_DEPENDENCY ;; 63811 esac 63812 63813 if test "x$PKGHANDLER_COMMAND" != x; then 63814 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 63815 fi 63816 fi 63817 63818 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 63819 fi 63820 fi # end user specified settings 63821 63822 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 63823 if test "x$FREETYPE_CFLAGS" = x; then 63824 63825 # Only process if variable expands to non-empty 63826 63827 if test "x$FREETYPE_INCLUDE_PATH" != x; then 63828 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63829 63830 # Input might be given as Windows format, start by converting to 63831 # unix format. 63832 path="$FREETYPE_INCLUDE_PATH" 63833 new_path=`$CYGPATH -u "$path"` 63834 63835 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63836 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63837 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63838 # "foo.exe" is OK but "foo" is an error. 63839 # 63840 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63841 # It is also a way to make sure we got the proper file name for the real test later on. 63842 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63843 if test "x$test_shortpath" = x; then 63844 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63845 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63846 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 63847 fi 63848 63849 # Call helper function which possibly converts this using DOS-style short mode. 63850 # If so, the updated path is stored in $new_path. 63851 63852 input_path="$new_path" 63853 # Check if we need to convert this using DOS-style short mode. If the path 63854 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63855 # take no chances and rewrite it. 63856 # Note: m4 eats our [], so we need to use [ and ] instead. 63857 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63858 if test "x$has_forbidden_chars" != x; then 63859 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63860 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63861 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63862 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63863 # Going to short mode and back again did indeed matter. Since short mode is 63864 # case insensitive, let's make it lowercase to improve readability. 63865 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63866 # Now convert it back to Unix-style (cygpath) 63867 input_path=`$CYGPATH -u "$shortmode_path"` 63868 new_path="$input_path" 63869 fi 63870 fi 63871 63872 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63873 if test "x$test_cygdrive_prefix" = x; then 63874 # As a simple fix, exclude /usr/bin since it's not a real path. 63875 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63876 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63877 # a path prefixed by /cygdrive for fixpath to work. 63878 new_path="$CYGWIN_ROOT_PATH$input_path" 63879 fi 63880 fi 63881 63882 63883 if test "x$path" != "x$new_path"; then 63884 FREETYPE_INCLUDE_PATH="$new_path" 63885 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63886 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63887 fi 63888 63889 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63890 63891 path="$FREETYPE_INCLUDE_PATH" 63892 has_colon=`$ECHO $path | $GREP ^.:` 63893 new_path="$path" 63894 if test "x$has_colon" = x; then 63895 # Not in mixed or Windows style, start by that. 63896 new_path=`cmd //c echo $path` 63897 fi 63898 63899 63900 input_path="$new_path" 63901 # Check if we need to convert this using DOS-style short mode. If the path 63902 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63903 # take no chances and rewrite it. 63904 # Note: m4 eats our [], so we need to use [ and ] instead. 63905 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63906 if test "x$has_forbidden_chars" != x; then 63907 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63908 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63909 fi 63910 63911 63912 windows_path="$new_path" 63913 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63914 unix_path=`$CYGPATH -u "$windows_path"` 63915 new_path="$unix_path" 63916 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63917 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63918 new_path="$unix_path" 63919 fi 63920 63921 if test "x$path" != "x$new_path"; then 63922 FREETYPE_INCLUDE_PATH="$new_path" 63923 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63924 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63925 fi 63926 63927 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63928 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63929 63930 else 63931 # We're on a unix platform. Hooray! :) 63932 path="$FREETYPE_INCLUDE_PATH" 63933 has_space=`$ECHO "$path" | $GREP " "` 63934 if test "x$has_space" != x; then 63935 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63936 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63937 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63938 fi 63939 63940 # Use eval to expand a potential ~ 63941 eval path="$path" 63942 if test ! -f "$path" && test ! -d "$path"; then 63943 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63944 fi 63945 63946 if test -d "$path"; then 63947 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 63948 else 63949 dir="`$DIRNAME "$path"`" 63950 base="`$BASENAME "$path"`" 63951 FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63952 fi 63953 fi 63954 fi 63955 63956 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 63957 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 63958 else 63959 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 63960 fi 63961 fi 63962 63963 if test "x$FREETYPE_LIBS" = x; then 63964 63965 # Only process if variable expands to non-empty 63966 63967 if test "x$FREETYPE_LIB_PATH" != x; then 63968 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63969 63970 # Input might be given as Windows format, start by converting to 63971 # unix format. 63972 path="$FREETYPE_LIB_PATH" 63973 new_path=`$CYGPATH -u "$path"` 63974 63975 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63976 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63977 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63978 # "foo.exe" is OK but "foo" is an error. 63979 # 63980 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63981 # It is also a way to make sure we got the proper file name for the real test later on. 63982 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63983 if test "x$test_shortpath" = x; then 63984 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63985 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63986 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 63987 fi 63988 63989 # Call helper function which possibly converts this using DOS-style short mode. 63990 # If so, the updated path is stored in $new_path. 63991 63992 input_path="$new_path" 63993 # Check if we need to convert this using DOS-style short mode. If the path 63994 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63995 # take no chances and rewrite it. 63996 # Note: m4 eats our [], so we need to use [ and ] instead. 63997 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63998 if test "x$has_forbidden_chars" != x; then 63999 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64000 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64001 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64002 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64003 # Going to short mode and back again did indeed matter. Since short mode is 64004 # case insensitive, let's make it lowercase to improve readability. 64005 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64006 # Now convert it back to Unix-style (cygpath) 64007 input_path=`$CYGPATH -u "$shortmode_path"` 64008 new_path="$input_path" 64009 fi 64010 fi 64011 64012 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64013 if test "x$test_cygdrive_prefix" = x; then 64014 # As a simple fix, exclude /usr/bin since it's not a real path. 64015 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64016 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64017 # a path prefixed by /cygdrive for fixpath to work. 64018 new_path="$CYGWIN_ROOT_PATH$input_path" 64019 fi 64020 fi 64021 64022 64023 if test "x$path" != "x$new_path"; then 64024 FREETYPE_LIB_PATH="$new_path" 64025 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 64026 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64027 fi 64028 64029 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64030 64031 path="$FREETYPE_LIB_PATH" 64032 has_colon=`$ECHO $path | $GREP ^.:` 64033 new_path="$path" 64034 if test "x$has_colon" = x; then 64035 # Not in mixed or Windows style, start by that. 64036 new_path=`cmd //c echo $path` 64037 fi 64038 64039 64040 input_path="$new_path" 64041 # Check if we need to convert this using DOS-style short mode. If the path 64042 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64043 # take no chances and rewrite it. 64044 # Note: m4 eats our [], so we need to use [ and ] instead. 64045 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64046 if test "x$has_forbidden_chars" != x; then 64047 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64048 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64049 fi 64050 64051 64052 windows_path="$new_path" 64053 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64054 unix_path=`$CYGPATH -u "$windows_path"` 64055 new_path="$unix_path" 64056 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64057 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64058 new_path="$unix_path" 64059 fi 64060 64061 if test "x$path" != "x$new_path"; then 64062 FREETYPE_LIB_PATH="$new_path" 64063 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 64064 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64065 fi 64066 64067 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64068 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64069 64070 else 64071 # We're on a unix platform. Hooray! :) 64072 path="$FREETYPE_LIB_PATH" 64073 has_space=`$ECHO "$path" | $GREP " "` 64074 if test "x$has_space" != x; then 64075 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 64076 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 64077 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64078 fi 64079 64080 # Use eval to expand a potential ~ 64081 eval path="$path" 64082 if test ! -f "$path" && test ! -d "$path"; then 64083 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64084 fi 64085 64086 if test -d "$path"; then 64087 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 64088 else 64089 dir="`$DIRNAME "$path"`" 64090 base="`$BASENAME "$path"`" 64091 FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64092 fi 64093 fi 64094 fi 64095 64096 if test "x$OPENJDK_TARGET_OS" = xwindows; then 64097 FREETYPE_LIBS="$FREETYPE_LIB_PATH/$FREETYPE_BASE_NAME.lib" 64098 else 64099 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -l$FREETYPE_BASE_NAME" 64100 fi 64101 fi 64102 64103 # Try to compile it 64104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 64105 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 64106 ac_ext=cpp 64107 ac_cpp='$CXXCPP $CPPFLAGS' 64108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 64109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 64110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 64111 64112 PREV_CXXCFLAGS="$CXXFLAGS" 64113 PREV_LIBS="$LIBS" 64114 PREV_CXX="$CXX" 64115 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 64116 LIBS="$LIBS $FREETYPE_LIBS" 64117 CXX="$FIXPATH $CXX" 64118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64119 /* end confdefs.h. */ 64120 64121 #include<ft2build.h> 64122 #include FT_FREETYPE_H 64123 int main () { 64124 FT_Init_FreeType(NULL); 64125 return 0; 64126 } 64127 64128 _ACEOF 64129 if ac_fn_cxx_try_link "$LINENO"; then : 64130 64131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64132 $as_echo "yes" >&6; } 64133 64134 else 64135 64136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64137 $as_echo "no" >&6; } 64138 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 64139 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 64140 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 64141 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 64142 64143 64144 # Print a helpful message on how to acquire the necessary build dependency. 64145 # freetype is the help tag: freetype, cups, alsa etc 64146 MISSING_DEPENDENCY=freetype 64147 64148 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64149 cygwin_help $MISSING_DEPENDENCY 64150 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64151 msys_help $MISSING_DEPENDENCY 64152 else 64153 PKGHANDLER_COMMAND= 64154 64155 case $PKGHANDLER in 64156 apt-get) 64157 apt_help $MISSING_DEPENDENCY ;; 64158 yum) 64159 yum_help $MISSING_DEPENDENCY ;; 64160 brew) 64161 brew_help $MISSING_DEPENDENCY ;; 64162 port) 64163 port_help $MISSING_DEPENDENCY ;; 64164 pkgutil) 64165 pkgutil_help $MISSING_DEPENDENCY ;; 64166 pkgadd) 64167 pkgadd_help $MISSING_DEPENDENCY ;; 64168 esac 64169 64170 if test "x$PKGHANDLER_COMMAND" != x; then 64171 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 64172 fi 64173 fi 64174 64175 64176 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 64177 64178 64179 fi 64180 rm -f core conftest.err conftest.$ac_objext \ 64181 conftest$ac_exeext conftest.$ac_ext 64182 CXXCFLAGS="$PREV_CXXFLAGS" 64183 LIBS="$PREV_LIBS" 64184 CXX="$PREV_CXX" 64185 ac_ext=cpp 64186 ac_cpp='$CXXCPP $CPPFLAGS' 64187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 64188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 64189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 64190 64191 64192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 64193 $as_echo_n "checking if we should bundle freetype... " >&6; } 64194 if test "x$BUNDLE_FREETYPE" = xyes; then 64195 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 64196 fi 64197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 64198 $as_echo "$BUNDLE_FREETYPE" >&6; } 64199 64200 fi # end freetype needed 64201 64202 FREETYPE_LICENSE="" 64203 if test "x$with_freetype_license" = "xyes"; then 64204 as_fn_error $? "--with-freetype-license must have a value" "$LINENO" 5 64205 elif test "x$with_freetype_license" != "x"; then 64206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype license" >&5 64207 $as_echo_n "checking for freetype license... " >&6; } 64208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_freetype_license" >&5 64209 $as_echo "$with_freetype_license" >&6; } 64210 FREETYPE_LICENSE="$with_freetype_license" 64211 64212 # Only process if variable expands to non-empty 64213 64214 if test "x$FREETYPE_LICENSE" != x; then 64215 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64216 64217 # Input might be given as Windows format, start by converting to 64218 # unix format. 64219 path="$FREETYPE_LICENSE" 64220 new_path=`$CYGPATH -u "$path"` 64221 64222 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64223 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64224 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64225 # "foo.exe" is OK but "foo" is an error. 64226 # 64227 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64228 # It is also a way to make sure we got the proper file name for the real test later on. 64229 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64230 if test "x$test_shortpath" = x; then 64231 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&5 64232 $as_echo "$as_me: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&6;} 64233 as_fn_error $? "Cannot locate the the path of FREETYPE_LICENSE" "$LINENO" 5 64234 fi 64235 64236 # Call helper function which possibly converts this using DOS-style short mode. 64237 # If so, the updated path is stored in $new_path. 64238 64239 input_path="$new_path" 64240 # Check if we need to convert this using DOS-style short mode. If the path 64241 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64242 # take no chances and rewrite it. 64243 # Note: m4 eats our [], so we need to use [ and ] instead. 64244 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64245 if test "x$has_forbidden_chars" != x; then 64246 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64247 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64248 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64249 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64250 # Going to short mode and back again did indeed matter. Since short mode is 64251 # case insensitive, let's make it lowercase to improve readability. 64252 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64253 # Now convert it back to Unix-style (cygpath) 64254 input_path=`$CYGPATH -u "$shortmode_path"` 64255 new_path="$input_path" 64256 fi 64257 fi 64258 64259 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64260 if test "x$test_cygdrive_prefix" = x; then 64261 # As a simple fix, exclude /usr/bin since it's not a real path. 64262 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64263 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64264 # a path prefixed by /cygdrive for fixpath to work. 64265 new_path="$CYGWIN_ROOT_PATH$input_path" 64266 fi 64267 fi 64268 64269 64270 if test "x$path" != "x$new_path"; then 64271 FREETYPE_LICENSE="$new_path" 64272 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&5 64273 $as_echo "$as_me: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&6;} 64274 fi 64275 64276 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64277 64278 path="$FREETYPE_LICENSE" 64279 has_colon=`$ECHO $path | $GREP ^.:` 64280 new_path="$path" 64281 if test "x$has_colon" = x; then 64282 # Not in mixed or Windows style, start by that. 64283 new_path=`cmd //c echo $path` 64284 fi 64285 64286 64287 input_path="$new_path" 64288 # Check if we need to convert this using DOS-style short mode. If the path 64289 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64290 # take no chances and rewrite it. 64291 # Note: m4 eats our [], so we need to use [ and ] instead. 64292 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64293 if test "x$has_forbidden_chars" != x; then 64294 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64295 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64296 fi 64297 64298 64299 windows_path="$new_path" 64300 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64301 unix_path=`$CYGPATH -u "$windows_path"` 64302 new_path="$unix_path" 64303 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64304 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64305 new_path="$unix_path" 64306 fi 64307 64308 if test "x$path" != "x$new_path"; then 64309 FREETYPE_LICENSE="$new_path" 64310 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&5 64311 $as_echo "$as_me: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&6;} 64312 fi 64313 64314 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64315 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64316 64317 else 64318 # We're on a unix platform. Hooray! :) 64319 path="$FREETYPE_LICENSE" 64320 has_space=`$ECHO "$path" | $GREP " "` 64321 if test "x$has_space" != x; then 64322 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&5 64323 $as_echo "$as_me: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&6;} 64324 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64325 fi 64326 64327 # Use eval to expand a potential ~ 64328 eval path="$path" 64329 if test ! -f "$path" && test ! -d "$path"; then 64330 as_fn_error $? "The path of FREETYPE_LICENSE, which resolves as \"$path\", is not found." "$LINENO" 5 64331 fi 64332 64333 if test -d "$path"; then 64334 FREETYPE_LICENSE="`cd "$path"; $THEPWDCMD -L`" 64335 else 64336 dir="`$DIRNAME "$path"`" 64337 base="`$BASENAME "$path"`" 64338 FREETYPE_LICENSE="`cd "$dir"; $THEPWDCMD -L`/$base" 64339 fi 64340 fi 64341 fi 64342 64343 if test ! -f "$FREETYPE_LICENSE"; then 64344 as_fn_error $? "$FREETYPE_LICENSE cannot be found" "$LINENO" 5 64345 fi 64346 fi 64347 64348 64349 64350 64351 64352 64353 64354 64355 # Check whether --with-alsa was given. 64356 if test "${with_alsa+set}" = set; then : 64357 withval=$with_alsa; 64358 fi 64359 64360 64361 # Check whether --with-alsa-include was given. 64362 if test "${with_alsa_include+set}" = set; then : 64363 withval=$with_alsa_include; 64364 fi 64365 64366 64367 # Check whether --with-alsa-lib was given. 64368 if test "${with_alsa_lib+set}" = set; then : 64369 withval=$with_alsa_lib; 64370 fi 64371 64372 64373 if test "x$NEEDS_LIB_ALSA" = xfalse; then 64374 if (test "x${with_alsa}" != x && test "x${with_alsa}" != xno) || \ 64375 (test "x${with_alsa_include}" != x && test "x${with_alsa_include}" != xno) || \ 64376 (test "x${with_alsa_lib}" != x && test "x${with_alsa_lib}" != xno); then 64377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&5 64378 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&2;} 64379 fi 64380 ALSA_CFLAGS= 64381 ALSA_LIBS= 64382 else 64383 ALSA_FOUND=no 64384 64385 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 64386 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 64387 fi 64388 64389 if test "x${with_alsa}" != x; then 64390 ALSA_LIBS="-L${with_alsa}/lib -lasound" 64391 ALSA_CFLAGS="-I${with_alsa}/include" 64392 ALSA_FOUND=yes 64393 fi 64394 if test "x${with_alsa_include}" != x; then 64395 ALSA_CFLAGS="-I${with_alsa_include}" 64396 ALSA_FOUND=yes 64397 fi 64398 if test "x${with_alsa_lib}" != x; then 64399 ALSA_LIBS="-L${with_alsa_lib} -lasound" 64400 ALSA_FOUND=yes 64401 fi 64402 # Do not try pkg-config if we have a sysroot set. 64403 if test "x$SYSROOT" = x; then 64404 if test "x$ALSA_FOUND" = xno; then 64405 64406 pkg_failed=no 64407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 64408 $as_echo_n "checking for ALSA... " >&6; } 64409 64410 if test -n "$ALSA_CFLAGS"; then 64411 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 64412 elif test -n "$PKG_CONFIG"; then 64413 if test -n "$PKG_CONFIG" && \ 64414 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 64415 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 64416 ac_status=$? 64417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 64418 test $ac_status = 0; }; then 64419 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 64420 else 64421 pkg_failed=yes 64422 fi 64423 else 64424 pkg_failed=untried 64425 fi 64426 if test -n "$ALSA_LIBS"; then 64427 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 64428 elif test -n "$PKG_CONFIG"; then 64429 if test -n "$PKG_CONFIG" && \ 64430 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 64431 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 64432 ac_status=$? 64433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 64434 test $ac_status = 0; }; then 64435 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 64436 else 64437 pkg_failed=yes 64438 fi 64439 else 64440 pkg_failed=untried 64441 fi 64442 64443 64444 64445 if test $pkg_failed = yes; then 64446 64447 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 64448 _pkg_short_errors_supported=yes 64449 else 64450 _pkg_short_errors_supported=no 64451 fi 64452 if test $_pkg_short_errors_supported = yes; then 64453 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 64454 else 64455 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 64456 fi 64457 # Put the nasty error message in config.log where it belongs 64458 echo "$ALSA_PKG_ERRORS" >&5 64459 64460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64461 $as_echo "no" >&6; } 64462 ALSA_FOUND=no 64463 elif test $pkg_failed = untried; then 64464 ALSA_FOUND=no 64465 else 64466 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 64467 ALSA_LIBS=$pkg_cv_ALSA_LIBS 64468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64469 $as_echo "yes" >&6; } 64470 ALSA_FOUND=yes 64471 fi 64472 fi 64473 fi 64474 if test "x$ALSA_FOUND" = xno; then 64475 for ac_header in alsa/asoundlib.h 64476 do : 64477 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 64478 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 64479 cat >>confdefs.h <<_ACEOF 64480 #define HAVE_ALSA_ASOUNDLIB_H 1 64481 _ACEOF 64482 64483 ALSA_FOUND=yes 64484 ALSA_CFLAGS=-Iignoreme 64485 ALSA_LIBS=-lasound 64486 DEFAULT_ALSA=yes 64487 64488 else 64489 ALSA_FOUND=no 64490 64491 fi 64492 64493 done 64494 64495 fi 64496 if test "x$ALSA_FOUND" = xno; then 64497 64498 # Print a helpful message on how to acquire the necessary build dependency. 64499 # alsa is the help tag: freetype, cups, alsa etc 64500 MISSING_DEPENDENCY=alsa 64501 64502 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64503 cygwin_help $MISSING_DEPENDENCY 64504 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64505 msys_help $MISSING_DEPENDENCY 64506 else 64507 PKGHANDLER_COMMAND= 64508 64509 case $PKGHANDLER in 64510 apt-get) 64511 apt_help $MISSING_DEPENDENCY ;; 64512 yum) 64513 yum_help $MISSING_DEPENDENCY ;; 64514 brew) 64515 brew_help $MISSING_DEPENDENCY ;; 64516 port) 64517 port_help $MISSING_DEPENDENCY ;; 64518 pkgutil) 64519 pkgutil_help $MISSING_DEPENDENCY ;; 64520 pkgadd) 64521 pkgadd_help $MISSING_DEPENDENCY ;; 64522 esac 64523 64524 if test "x$PKGHANDLER_COMMAND" != x; then 64525 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 64526 fi 64527 fi 64528 64529 as_fn_error $? "Could not find alsa! $HELP_MSG" "$LINENO" 5 64530 fi 64531 fi 64532 64533 64534 64535 64536 64537 64538 # Check whether --with-libffi was given. 64539 if test "${with_libffi+set}" = set; then : 64540 withval=$with_libffi; 64541 fi 64542 64543 64544 # Check whether --with-libffi-include was given. 64545 if test "${with_libffi_include+set}" = set; then : 64546 withval=$with_libffi_include; 64547 fi 64548 64549 64550 # Check whether --with-libffi-lib was given. 64551 if test "${with_libffi_lib+set}" = set; then : 64552 withval=$with_libffi_lib; 64553 fi 64554 64555 # Check whether --enable-libffi-bundling was given. 64556 if test "${enable_libffi_bundling+set}" = set; then : 64557 enableval=$enable_libffi_bundling; 64558 fi 64559 64560 64561 if test "x$NEEDS_LIB_FFI" = xfalse; then 64562 if (test "x${with_libffi}" != x && test "x${with_libffi}" != xno) || \ 64563 (test "x${with_libffi_include}" != x && test "x${with_libffi_include}" != xno) || \ 64564 (test "x${with_libffi_lib}" != x && test "x${with_libffi_lib}" != xno); then 64565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&5 64566 $as_echo "$as_me: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&2;} 64567 fi 64568 LIBFFI_CFLAGS= 64569 LIBFFI_LIBS= 64570 else 64571 LIBFFI_FOUND=no 64572 64573 if test "x${with_libffi}" = xno || test "x${with_libffi_include}" = xno || test "x${with_libffi_lib}" = xno; then 64574 as_fn_error $? "It is not possible to disable the use of libffi. Remove the --without-libffi option." "$LINENO" 5 64575 fi 64576 64577 if test "x${with_libffi}" != x; then 64578 LIBFFI_LIB_PATH="${with_libffi}/lib" 64579 LIBFFI_LIBS="-L${with_libffi}/lib -lffi" 64580 LIBFFI_CFLAGS="-I${with_libffi}/include" 64581 LIBFFI_FOUND=yes 64582 fi 64583 if test "x${with_libffi_include}" != x; then 64584 LIBFFI_CFLAGS="-I${with_libffi_include}" 64585 LIBFFI_FOUND=yes 64586 fi 64587 if test "x${with_libffi_lib}" != x; then 64588 LIBFFI_LIB_PATH="${with_libffi_lib}" 64589 LIBFFI_LIBS="-L${with_libffi_lib} -lffi" 64590 LIBFFI_FOUND=yes 64591 fi 64592 # Do not try pkg-config if we have a sysroot set. 64593 if test "x$SYSROOT" = x; then 64594 if test "x$LIBFFI_FOUND" = xno; then 64595 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 64596 64597 pkg_failed=no 64598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 64599 $as_echo_n "checking for LIBFFI... " >&6; } 64600 64601 if test -n "$LIBFFI_CFLAGS"; then 64602 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 64603 elif test -n "$PKG_CONFIG"; then 64604 if test -n "$PKG_CONFIG" && \ 64605 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 64606 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 64607 ac_status=$? 64608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 64609 test $ac_status = 0; }; then 64610 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 64611 else 64612 pkg_failed=yes 64613 fi 64614 else 64615 pkg_failed=untried 64616 fi 64617 if test -n "$LIBFFI_LIBS"; then 64618 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 64619 elif test -n "$PKG_CONFIG"; then 64620 if test -n "$PKG_CONFIG" && \ 64621 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 64622 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 64623 ac_status=$? 64624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 64625 test $ac_status = 0; }; then 64626 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 64627 else 64628 pkg_failed=yes 64629 fi 64630 else 64631 pkg_failed=untried 64632 fi 64633 64634 64635 64636 if test $pkg_failed = yes; then 64637 64638 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 64639 _pkg_short_errors_supported=yes 64640 else 64641 _pkg_short_errors_supported=no 64642 fi 64643 if test $_pkg_short_errors_supported = yes; then 64644 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 64645 else 64646 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 64647 fi 64648 # Put the nasty error message in config.log where it belongs 64649 echo "$LIBFFI_PKG_ERRORS" >&5 64650 64651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64652 $as_echo "no" >&6; } 64653 LIBFFI_FOUND=no 64654 elif test $pkg_failed = untried; then 64655 LIBFFI_FOUND=no 64656 else 64657 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 64658 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 64659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64660 $as_echo "yes" >&6; } 64661 LIBFFI_FOUND=yes 64662 fi 64663 fi 64664 fi 64665 if test "x$LIBFFI_FOUND" = xno; then 64666 for ac_header in ffi.h 64667 do : 64668 ac_fn_cxx_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default" 64669 if test "x$ac_cv_header_ffi_h" = xyes; then : 64670 cat >>confdefs.h <<_ACEOF 64671 #define HAVE_FFI_H 1 64672 _ACEOF 64673 64674 LIBFFI_FOUND=yes 64675 LIBFFI_CFLAGS= 64676 LIBFFI_LIBS=-lffi 64677 64678 else 64679 LIBFFI_FOUND=no 64680 64681 fi 64682 64683 done 64684 64685 fi 64686 if test "x$LIBFFI_FOUND" = xno; then 64687 64688 # Print a helpful message on how to acquire the necessary build dependency. 64689 # ffi is the help tag: freetype, cups, alsa etc 64690 MISSING_DEPENDENCY=ffi 64691 64692 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64693 cygwin_help $MISSING_DEPENDENCY 64694 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64695 msys_help $MISSING_DEPENDENCY 64696 else 64697 PKGHANDLER_COMMAND= 64698 64699 case $PKGHANDLER in 64700 apt-get) 64701 apt_help $MISSING_DEPENDENCY ;; 64702 yum) 64703 yum_help $MISSING_DEPENDENCY ;; 64704 brew) 64705 brew_help $MISSING_DEPENDENCY ;; 64706 port) 64707 port_help $MISSING_DEPENDENCY ;; 64708 pkgutil) 64709 pkgutil_help $MISSING_DEPENDENCY ;; 64710 pkgadd) 64711 pkgadd_help $MISSING_DEPENDENCY ;; 64712 esac 64713 64714 if test "x$PKGHANDLER_COMMAND" != x; then 64715 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 64716 fi 64717 fi 64718 64719 as_fn_error $? "Could not find libffi! $HELP_MSG" "$LINENO" 5 64720 fi 64721 64722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi works" >&5 64723 $as_echo_n "checking if libffi works... " >&6; } 64724 ac_ext=c 64725 ac_cpp='$CPP $CPPFLAGS' 64726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 64727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 64728 ac_compiler_gnu=$ac_cv_c_compiler_gnu 64729 64730 OLD_CFLAGS="$CFLAGS" 64731 CFLAGS="$CFLAGS $LIBFFI_CFLAGS" 64732 OLD_LIBS="$LIBS" 64733 LIBS="$LIBS $LIBFFI_LIBS" 64734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64735 /* end confdefs.h. */ 64736 #include <ffi.h> 64737 int 64738 main () 64739 { 64740 64741 ffi_call(NULL, NULL, NULL, NULL); 64742 return 0; 64743 64744 ; 64745 return 0; 64746 } 64747 _ACEOF 64748 if ac_fn_c_try_link "$LINENO"; then : 64749 LIBFFI_WORKS=yes 64750 else 64751 LIBFFI_WORKS=no 64752 64753 fi 64754 rm -f core conftest.err conftest.$ac_objext \ 64755 conftest$ac_exeext conftest.$ac_ext 64756 CFLAGS="$OLD_CFLAGS" 64757 LIBS="$OLD_LIBS" 64758 ac_ext=cpp 64759 ac_cpp='$CXXCPP $CPPFLAGS' 64760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 64761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 64762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 64763 64764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBFFI_WORKS" >&5 64765 $as_echo "$LIBFFI_WORKS" >&6; } 64766 64767 if test "x$LIBFFI_WORKS" = xno; then 64768 64769 # Print a helpful message on how to acquire the necessary build dependency. 64770 # ffi is the help tag: freetype, cups, alsa etc 64771 MISSING_DEPENDENCY=ffi 64772 64773 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64774 cygwin_help $MISSING_DEPENDENCY 64775 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64776 msys_help $MISSING_DEPENDENCY 64777 else 64778 PKGHANDLER_COMMAND= 64779 64780 case $PKGHANDLER in 64781 apt-get) 64782 apt_help $MISSING_DEPENDENCY ;; 64783 yum) 64784 yum_help $MISSING_DEPENDENCY ;; 64785 brew) 64786 brew_help $MISSING_DEPENDENCY ;; 64787 port) 64788 port_help $MISSING_DEPENDENCY ;; 64789 pkgutil) 64790 pkgutil_help $MISSING_DEPENDENCY ;; 64791 pkgadd) 64792 pkgadd_help $MISSING_DEPENDENCY ;; 64793 esac 64794 64795 if test "x$PKGHANDLER_COMMAND" != x; then 64796 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 64797 fi 64798 fi 64799 64800 as_fn_error $? "Found libffi but could not link and compile with it. $HELP_MSG" "$LINENO" 5 64801 fi 64802 64803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi should be bundled" >&5 64804 $as_echo_n "checking if libffi should be bundled... " >&6; } 64805 if test "x$enable_libffi_bundling" = "x"; then 64806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64807 $as_echo "no" >&6; } 64808 ENABLE_LIBFFI_BUNDLING=false 64809 elif test "x$enable_libffi_bundling" = "xno"; then 64810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 64811 $as_echo "no, forced" >&6; } 64812 ENABLE_LIBFFI_BUNDLING=false 64813 elif test "x$enable_libffi_bundling" = "xyes"; then 64814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 64815 $as_echo "yes, forced" >&6; } 64816 ENABLE_LIBFFI_BUNDLING=true 64817 else 64818 as_fn_error $? "Invalid value for --enable-libffi-bundling" "$LINENO" 5 64819 fi 64820 64821 # Find the libffi.so.X to bundle 64822 if test "x${ENABLE_LIBFFI_BUNDLING}" = "xtrue"; then 64823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libffi lib file location" >&5 64824 $as_echo_n "checking for libffi lib file location... " >&6; } 64825 if test "x${LIBFFI_LIB_PATH}" != x; then 64826 if test -e ${LIBFFI_LIB_PATH}/libffi.so.?; then 64827 LIBFFI_LIB_FILE="${LIBFFI_LIB_PATH}/libffi.so.?" 64828 else 64829 as_fn_error $? "Could not locate libffi.so.? for bundling in ${LIBFFI_LIB_PATH}" "$LINENO" 5 64830 fi 64831 else 64832 # If we don't have an explicit path, look in a few obvious places 64833 if test "x${OPENJDK_TARGET_CPU}" = "xx86"; then 64834 if test -e ${SYSROOT}/usr/lib/libffi.so.? ; then 64835 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/libffi.so.?" 64836 elif test -e ${SYSROOT}/usr/lib/i386-linux-gnu/libffi.so.? ; then 64837 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/i386-linux-gnu/libffi.so.?" 64838 else 64839 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 64840 fi 64841 elif test "x${OPENJDK_TARGET_CPU}" = "xx86_64"; then 64842 if test -e ${SYSROOT}/usr/lib64/libffi.so.? ; then 64843 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib64/libffi.so.?" 64844 elif test -e ${SYSROOT}/usr/lib/x86_64-linux-gnu/libffi.so.? ; then 64845 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/x86_64-linux-gnu/libffi.so.?" 64846 else 64847 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 64848 fi 64849 else 64850 # Fallback on the default /usr/lib dir 64851 if test -e ${SYSROOT}/usr/lib/libffi.so.? ; then 64852 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/libffi.so.?" 64853 else 64854 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 64855 fi 64856 fi 64857 fi 64858 # Make sure the wildcard is evaluated 64859 LIBFFI_LIB_FILE="$(ls ${LIBFFI_LIB_FILE})" 64860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBFFI_LIB_FILE}" >&5 64861 $as_echo "${LIBFFI_LIB_FILE}" >&6; } 64862 fi 64863 fi 64864 64865 64866 64867 64868 64869 64870 64871 if [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 64872 # Extract the first word of "llvm-config", so it can be a program name with args. 64873 set dummy llvm-config; ac_word=$2 64874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 64875 $as_echo_n "checking for $ac_word... " >&6; } 64876 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 64877 $as_echo_n "(cached) " >&6 64878 else 64879 if test -n "$LLVM_CONFIG"; then 64880 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 64881 else 64882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 64883 for as_dir in $PATH 64884 do 64885 IFS=$as_save_IFS 64886 test -z "$as_dir" && as_dir=. 64887 for ac_exec_ext in '' $ac_executable_extensions; do 64888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 64889 ac_cv_prog_LLVM_CONFIG="llvm-config" 64890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 64891 break 2 64892 fi 64893 done 64894 done 64895 IFS=$as_save_IFS 64896 64897 fi 64898 fi 64899 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 64900 if test -n "$LLVM_CONFIG"; then 64901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 64902 $as_echo "$LLVM_CONFIG" >&6; } 64903 else 64904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64905 $as_echo "no" >&6; } 64906 fi 64907 64908 64909 64910 if test "x$LLVM_CONFIG" != xllvm-config; then 64911 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 64912 fi 64913 64914 llvm_components="jit mcjit engine nativecodegen native" 64915 unset LLVM_CFLAGS 64916 for flag in $("$LLVM_CONFIG" --cxxflags); do 64917 if echo "${flag}" | grep -q '^-[ID]'; then 64918 if test "${flag}" != "-D_DEBUG" ; then 64919 if test "${LLVM_CFLAGS}" != "" ; then 64920 LLVM_CFLAGS="${LLVM_CFLAGS} " 64921 fi 64922 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 64923 fi 64924 fi 64925 done 64926 llvm_version=$("${LLVM_CONFIG}" --version | $SED 's/\.//; s/svn.*//') 64927 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 64928 64929 unset LLVM_LDFLAGS 64930 for flag in $("${LLVM_CONFIG}" --ldflags); do 64931 if echo "${flag}" | grep -q '^-L'; then 64932 if test "${LLVM_LDFLAGS}" != ""; then 64933 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 64934 fi 64935 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 64936 fi 64937 done 64938 64939 unset LLVM_LIBS 64940 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 64941 if echo "${flag}" | grep -q '^-l'; then 64942 if test "${LLVM_LIBS}" != ""; then 64943 LLVM_LIBS="${LLVM_LIBS} " 64944 fi 64945 LLVM_LIBS="${LLVM_LIBS}${flag}" 64946 fi 64947 done 64948 64949 # Due to https://llvm.org/bugs/show_bug.cgi?id=16902, llvm does not 64950 # always properly detect -ltinfo 64951 LLVM_LIBS="${LLVM_LIBS} -ltinfo" 64952 64953 64954 64955 64956 fi 64957 64958 64959 64960 # Check whether --with-libjpeg was given. 64961 if test "${with_libjpeg+set}" = set; then : 64962 withval=$with_libjpeg; 64963 fi 64964 64965 64966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 64967 $as_echo_n "checking for which libjpeg to use... " >&6; } 64968 # default is bundled 64969 DEFAULT_LIBJPEG=bundled 64970 # if user didn't specify, use DEFAULT_LIBJPEG 64971 if test "x${with_libjpeg}" = "x"; then 64972 with_libjpeg=${DEFAULT_LIBJPEG} 64973 fi 64974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 64975 $as_echo "${with_libjpeg}" >&6; } 64976 64977 if test "x${with_libjpeg}" = "xbundled"; then 64978 USE_EXTERNAL_LIBJPEG=false 64979 elif test "x${with_libjpeg}" = "xsystem"; then 64980 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 64981 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 64982 64983 else 64984 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 64985 fi 64986 64987 64988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 64989 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 64990 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 64991 $as_echo_n "(cached) " >&6 64992 else 64993 ac_check_lib_save_LIBS=$LIBS 64994 LIBS="-ljpeg $LIBS" 64995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64996 /* end confdefs.h. */ 64997 64998 /* Override any GCC internal prototype to avoid an error. 64999 Use char because int might match the return type of a GCC 65000 builtin and then its argument prototype would still apply. */ 65001 #ifdef __cplusplus 65002 extern "C" 65003 #endif 65004 char jpeg_CreateDecompress (); 65005 int 65006 main () 65007 { 65008 return jpeg_CreateDecompress (); 65009 ; 65010 return 0; 65011 } 65012 _ACEOF 65013 if ac_fn_cxx_try_link "$LINENO"; then : 65014 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 65015 else 65016 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 65017 fi 65018 rm -f core conftest.err conftest.$ac_objext \ 65019 conftest$ac_exeext conftest.$ac_ext 65020 LIBS=$ac_check_lib_save_LIBS 65021 fi 65022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 65023 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 65024 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 65025 cat >>confdefs.h <<_ACEOF 65026 #define HAVE_LIBJPEG 1 65027 _ACEOF 65028 65029 LIBS="-ljpeg $LIBS" 65030 65031 else 65032 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 65033 fi 65034 65035 65036 USE_EXTERNAL_LIBJPEG=true 65037 else 65038 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 65039 fi 65040 65041 65042 65043 65044 65045 # Check whether --with-giflib was given. 65046 if test "${with_giflib+set}" = set; then : 65047 withval=$with_giflib; 65048 fi 65049 65050 65051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 65052 $as_echo_n "checking for which giflib to use... " >&6; } 65053 # default is bundled 65054 DEFAULT_GIFLIB=bundled 65055 # if user didn't specify, use DEFAULT_GIFLIB 65056 if test "x${with_giflib}" = "x"; then 65057 with_giflib=${DEFAULT_GIFLIB} 65058 fi 65059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 65060 $as_echo "${with_giflib}" >&6; } 65061 65062 if test "x${with_giflib}" = "xbundled"; then 65063 USE_EXTERNAL_LIBGIF=false 65064 elif test "x${with_giflib}" = "xsystem"; then 65065 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 65066 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 65067 65068 else 65069 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 65070 fi 65071 65072 65073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 65074 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 65075 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 65076 $as_echo_n "(cached) " >&6 65077 else 65078 ac_check_lib_save_LIBS=$LIBS 65079 LIBS="-lgif $LIBS" 65080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65081 /* end confdefs.h. */ 65082 65083 /* Override any GCC internal prototype to avoid an error. 65084 Use char because int might match the return type of a GCC 65085 builtin and then its argument prototype would still apply. */ 65086 #ifdef __cplusplus 65087 extern "C" 65088 #endif 65089 char DGifGetCode (); 65090 int 65091 main () 65092 { 65093 return DGifGetCode (); 65094 ; 65095 return 0; 65096 } 65097 _ACEOF 65098 if ac_fn_cxx_try_link "$LINENO"; then : 65099 ac_cv_lib_gif_DGifGetCode=yes 65100 else 65101 ac_cv_lib_gif_DGifGetCode=no 65102 fi 65103 rm -f core conftest.err conftest.$ac_objext \ 65104 conftest$ac_exeext conftest.$ac_ext 65105 LIBS=$ac_check_lib_save_LIBS 65106 fi 65107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 65108 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 65109 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 65110 cat >>confdefs.h <<_ACEOF 65111 #define HAVE_LIBGIF 1 65112 _ACEOF 65113 65114 LIBS="-lgif $LIBS" 65115 65116 else 65117 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 65118 fi 65119 65120 65121 USE_EXTERNAL_LIBGIF=true 65122 else 65123 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 65124 fi 65125 65126 65127 65128 65129 65130 # Check whether --with-libpng was given. 65131 if test "${with_libpng+set}" = set; then : 65132 withval=$with_libpng; 65133 fi 65134 65135 65136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 65137 $as_echo_n "checking for which libpng to use... " >&6; } 65138 65139 # default is bundled 65140 DEFAULT_LIBPNG=bundled 65141 # if user didn't specify, use DEFAULT_LIBPNG 65142 if test "x${with_libpng}" = "x"; then 65143 with_libpng=${DEFAULT_LIBPNG} 65144 fi 65145 65146 if test "x${with_libpng}" = "xbundled"; then 65147 USE_EXTERNAL_LIBPNG=false 65148 PNG_CFLAGS="" 65149 PNG_LIBS="" 65150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 65151 $as_echo "bundled" >&6; } 65152 elif test "x${with_libpng}" = "xsystem"; then 65153 65154 pkg_failed=no 65155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 65156 $as_echo_n "checking for PNG... " >&6; } 65157 65158 if test -n "$PNG_CFLAGS"; then 65159 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 65160 elif test -n "$PKG_CONFIG"; then 65161 if test -n "$PKG_CONFIG" && \ 65162 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 65163 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 65164 ac_status=$? 65165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65166 test $ac_status = 0; }; then 65167 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 65168 else 65169 pkg_failed=yes 65170 fi 65171 else 65172 pkg_failed=untried 65173 fi 65174 if test -n "$PNG_LIBS"; then 65175 pkg_cv_PNG_LIBS="$PNG_LIBS" 65176 elif test -n "$PKG_CONFIG"; then 65177 if test -n "$PKG_CONFIG" && \ 65178 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 65179 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 65180 ac_status=$? 65181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65182 test $ac_status = 0; }; then 65183 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 65184 else 65185 pkg_failed=yes 65186 fi 65187 else 65188 pkg_failed=untried 65189 fi 65190 65191 65192 65193 if test $pkg_failed = yes; then 65194 65195 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 65196 _pkg_short_errors_supported=yes 65197 else 65198 _pkg_short_errors_supported=no 65199 fi 65200 if test $_pkg_short_errors_supported = yes; then 65201 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 65202 else 65203 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 65204 fi 65205 # Put the nasty error message in config.log where it belongs 65206 echo "$PNG_PKG_ERRORS" >&5 65207 65208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65209 $as_echo "no" >&6; } 65210 LIBPNG_FOUND=no 65211 elif test $pkg_failed = untried; then 65212 LIBPNG_FOUND=no 65213 else 65214 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 65215 PNG_LIBS=$pkg_cv_PNG_LIBS 65216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65217 $as_echo "yes" >&6; } 65218 LIBPNG_FOUND=yes 65219 fi 65220 if test "x${LIBPNG_FOUND}" = "xyes"; then 65221 # PKG_CHECK_MODULES will set PNG_CFLAGS and PNG_LIBS 65222 USE_EXTERNAL_LIBPNG=true 65223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 65224 $as_echo "system" >&6; } 65225 else 65226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 65227 $as_echo "system not found" >&6; } 65228 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 65229 fi 65230 else 65231 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 65232 fi 65233 65234 65235 65236 65237 65238 65239 65240 # Check whether --with-zlib was given. 65241 if test "${with_zlib+set}" = set; then : 65242 withval=$with_zlib; 65243 fi 65244 65245 65246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 65247 $as_echo_n "checking for compress in -lz... " >&6; } 65248 if ${ac_cv_lib_z_compress+:} false; then : 65249 $as_echo_n "(cached) " >&6 65250 else 65251 ac_check_lib_save_LIBS=$LIBS 65252 LIBS="-lz $LIBS" 65253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65254 /* end confdefs.h. */ 65255 65256 /* Override any GCC internal prototype to avoid an error. 65257 Use char because int might match the return type of a GCC 65258 builtin and then its argument prototype would still apply. */ 65259 #ifdef __cplusplus 65260 extern "C" 65261 #endif 65262 char compress (); 65263 int 65264 main () 65265 { 65266 return compress (); 65267 ; 65268 return 0; 65269 } 65270 _ACEOF 65271 if ac_fn_cxx_try_link "$LINENO"; then : 65272 ac_cv_lib_z_compress=yes 65273 else 65274 ac_cv_lib_z_compress=no 65275 fi 65276 rm -f core conftest.err conftest.$ac_objext \ 65277 conftest$ac_exeext conftest.$ac_ext 65278 LIBS=$ac_check_lib_save_LIBS 65279 fi 65280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 65281 $as_echo "$ac_cv_lib_z_compress" >&6; } 65282 if test "x$ac_cv_lib_z_compress" = xyes; then : 65283 ZLIB_FOUND=yes 65284 else 65285 ZLIB_FOUND=no 65286 fi 65287 65288 65289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 65290 $as_echo_n "checking for which zlib to use... " >&6; } 65291 65292 DEFAULT_ZLIB=system 65293 if test "x$OPENJDK_TARGET_OS" = xwindows; then 65294 # On windows default is bundled...on others default is system 65295 DEFAULT_ZLIB=bundled 65296 fi 65297 65298 if test "x${ZLIB_FOUND}" != "xyes"; then 65299 # If we don't find any system...set default to bundled 65300 DEFAULT_ZLIB=bundled 65301 fi 65302 65303 # If user didn't specify, use DEFAULT_ZLIB 65304 if test "x${with_zlib}" = "x"; then 65305 with_zlib=${DEFAULT_ZLIB} 65306 fi 65307 65308 if test "x${with_zlib}" = "xbundled"; then 65309 USE_EXTERNAL_LIBZ=false 65310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 65311 $as_echo "bundled" >&6; } 65312 elif test "x${with_zlib}" = "xsystem"; then 65313 if test "x${ZLIB_FOUND}" = "xyes"; then 65314 USE_EXTERNAL_LIBZ=true 65315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 65316 $as_echo "system" >&6; } 65317 else 65318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 65319 $as_echo "system not found" >&6; } 65320 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 65321 fi 65322 else 65323 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 65324 fi 65325 65326 65327 65328 65329 65330 # Check whether --with-lcms was given. 65331 if test "${with_lcms+set}" = set; then : 65332 withval=$with_lcms; 65333 fi 65334 65335 65336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 65337 $as_echo_n "checking for which lcms to use... " >&6; } 65338 65339 DEFAULT_LCMS=bundled 65340 # If user didn't specify, use DEFAULT_LCMS 65341 if test "x${with_lcms}" = "x"; then 65342 with_lcms=${DEFAULT_LCMS} 65343 fi 65344 65345 if test "x${with_lcms}" = "xbundled"; then 65346 USE_EXTERNAL_LCMS=false 65347 LCMS_CFLAGS="" 65348 LCMS_LIBS="" 65349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 65350 $as_echo "bundled" >&6; } 65351 elif test "x${with_lcms}" = "xsystem"; then 65352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 65353 $as_echo "system" >&6; } 65354 65355 pkg_failed=no 65356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 65357 $as_echo_n "checking for LCMS... " >&6; } 65358 65359 if test -n "$LCMS_CFLAGS"; then 65360 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 65361 elif test -n "$PKG_CONFIG"; then 65362 if test -n "$PKG_CONFIG" && \ 65363 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 65364 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 65365 ac_status=$? 65366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65367 test $ac_status = 0; }; then 65368 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 65369 else 65370 pkg_failed=yes 65371 fi 65372 else 65373 pkg_failed=untried 65374 fi 65375 if test -n "$LCMS_LIBS"; then 65376 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 65377 elif test -n "$PKG_CONFIG"; then 65378 if test -n "$PKG_CONFIG" && \ 65379 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 65380 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 65381 ac_status=$? 65382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65383 test $ac_status = 0; }; then 65384 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 65385 else 65386 pkg_failed=yes 65387 fi 65388 else 65389 pkg_failed=untried 65390 fi 65391 65392 65393 65394 if test $pkg_failed = yes; then 65395 65396 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 65397 _pkg_short_errors_supported=yes 65398 else 65399 _pkg_short_errors_supported=no 65400 fi 65401 if test $_pkg_short_errors_supported = yes; then 65402 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 65403 else 65404 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 65405 fi 65406 # Put the nasty error message in config.log where it belongs 65407 echo "$LCMS_PKG_ERRORS" >&5 65408 65409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65410 $as_echo "no" >&6; } 65411 LCMS_FOUND=no 65412 elif test $pkg_failed = untried; then 65413 LCMS_FOUND=no 65414 else 65415 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 65416 LCMS_LIBS=$pkg_cv_LCMS_LIBS 65417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65418 $as_echo "yes" >&6; } 65419 LCMS_FOUND=yes 65420 fi 65421 if test "x${LCMS_FOUND}" = "xyes"; then 65422 # PKG_CHECK_MODULES will set LCMS_CFLAGS and LCMS_LIBS 65423 USE_EXTERNAL_LCMS=true 65424 else 65425 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 65426 fi 65427 else 65428 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 65429 fi 65430 65431 65432 65433 65434 65435 65436 65437 65438 65439 65440 65441 65442 65443 # Setup libm (the maths library) 65444 if test "x$OPENJDK_TARGET_OS" != "xwindows"; then 65445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 65446 $as_echo_n "checking for cos in -lm... " >&6; } 65447 if ${ac_cv_lib_m_cos+:} false; then : 65448 $as_echo_n "(cached) " >&6 65449 else 65450 ac_check_lib_save_LIBS=$LIBS 65451 LIBS="-lm $LIBS" 65452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65453 /* end confdefs.h. */ 65454 65455 /* Override any GCC internal prototype to avoid an error. 65456 Use char because int might match the return type of a GCC 65457 builtin and then its argument prototype would still apply. */ 65458 #ifdef __cplusplus 65459 extern "C" 65460 #endif 65461 char cos (); 65462 int 65463 main () 65464 { 65465 return cos (); 65466 ; 65467 return 0; 65468 } 65469 _ACEOF 65470 if ac_fn_cxx_try_link "$LINENO"; then : 65471 ac_cv_lib_m_cos=yes 65472 else 65473 ac_cv_lib_m_cos=no 65474 fi 65475 rm -f core conftest.err conftest.$ac_objext \ 65476 conftest$ac_exeext conftest.$ac_ext 65477 LIBS=$ac_check_lib_save_LIBS 65478 fi 65479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 65480 $as_echo "$ac_cv_lib_m_cos" >&6; } 65481 if test "x$ac_cv_lib_m_cos" = xyes; then : 65482 cat >>confdefs.h <<_ACEOF 65483 #define HAVE_LIBM 1 65484 _ACEOF 65485 65486 LIBS="-lm $LIBS" 65487 65488 else 65489 65490 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 65491 $as_echo "$as_me: Maths library was not found" >&6;} 65492 65493 fi 65494 65495 LIBM="-lm" 65496 else 65497 LIBM="" 65498 fi 65499 65500 65501 # Setup libdl (for dynamic library loading) 65502 save_LIBS="$LIBS" 65503 LIBS="" 65504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 65505 $as_echo_n "checking for dlopen in -ldl... " >&6; } 65506 if ${ac_cv_lib_dl_dlopen+:} false; then : 65507 $as_echo_n "(cached) " >&6 65508 else 65509 ac_check_lib_save_LIBS=$LIBS 65510 LIBS="-ldl $LIBS" 65511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65512 /* end confdefs.h. */ 65513 65514 /* Override any GCC internal prototype to avoid an error. 65515 Use char because int might match the return type of a GCC 65516 builtin and then its argument prototype would still apply. */ 65517 #ifdef __cplusplus 65518 extern "C" 65519 #endif 65520 char dlopen (); 65521 int 65522 main () 65523 { 65524 return dlopen (); 65525 ; 65526 return 0; 65527 } 65528 _ACEOF 65529 if ac_fn_cxx_try_link "$LINENO"; then : 65530 ac_cv_lib_dl_dlopen=yes 65531 else 65532 ac_cv_lib_dl_dlopen=no 65533 fi 65534 rm -f core conftest.err conftest.$ac_objext \ 65535 conftest$ac_exeext conftest.$ac_ext 65536 LIBS=$ac_check_lib_save_LIBS 65537 fi 65538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 65539 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 65540 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 65541 cat >>confdefs.h <<_ACEOF 65542 #define HAVE_LIBDL 1 65543 _ACEOF 65544 65545 LIBS="-ldl $LIBS" 65546 65547 fi 65548 65549 LIBDL="$LIBS" 65550 65551 LIBS="$save_LIBS" 65552 65553 # Deprecated libraries, keep the flags for backwards compatibility 65554 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 65555 65556 65557 # Check whether --with-dxsdk was given. 65558 if test "${with_dxsdk+set}" = set; then : 65559 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 65560 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 65561 fi 65562 65563 65564 65565 65566 # Check whether --with-dxsdk-lib was given. 65567 if test "${with_dxsdk_lib+set}" = set; then : 65568 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 65569 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 65570 fi 65571 65572 65573 65574 65575 # Check whether --with-dxsdk-include was given. 65576 if test "${with_dxsdk_include+set}" = set; then : 65577 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 65578 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 65579 fi 65580 65581 65582 fi 65583 65584 # Control if libzip can use mmap. Available for purposes of overriding. 65585 LIBZIP_CAN_USE_MMAP=true 65586 65587 65588 65589 if test "$OPENJDK_TARGET_OS" = "solaris" && test "x$BUILD_GTEST" = "xtrue"; then 65590 # Find the root of the Solaris Studio installation from the compiler path 65591 SOLARIS_STUDIO_DIR="$(dirname $CC)/.." 65592 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4$OPENJDK_TARGET_CPU_ISADIR/libstlport.so.1" 65593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstlport.so.1" >&5 65594 $as_echo_n "checking for libstlport.so.1... " >&6; } 65595 if ! test -f "$STLPORT_LIB" && test "x$OPENJDK_TARGET_CPU_ISADIR" = "x/sparcv9"; then 65596 # SS12u3 has libstlport under 'stlport4/v9' instead of 'stlport4/sparcv9' 65597 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4/v9/libstlport.so.1" 65598 fi 65599 if test -f "$STLPORT_LIB"; then 65600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $STLPORT_LIB" >&5 65601 $as_echo "yes, $STLPORT_LIB" >&6; } 65602 65603 # Only process if variable expands to non-empty 65604 65605 if test "x$STLPORT_LIB" != x; then 65606 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65607 65608 # Input might be given as Windows format, start by converting to 65609 # unix format. 65610 path="$STLPORT_LIB" 65611 new_path=`$CYGPATH -u "$path"` 65612 65613 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 65614 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 65615 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 65616 # "foo.exe" is OK but "foo" is an error. 65617 # 65618 # This test is therefore slightly more accurate than "test -f" to check for file precense. 65619 # It is also a way to make sure we got the proper file name for the real test later on. 65620 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 65621 if test "x$test_shortpath" = x; then 65622 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 65623 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 65624 as_fn_error $? "Cannot locate the the path of STLPORT_LIB" "$LINENO" 5 65625 fi 65626 65627 # Call helper function which possibly converts this using DOS-style short mode. 65628 # If so, the updated path is stored in $new_path. 65629 65630 input_path="$new_path" 65631 # Check if we need to convert this using DOS-style short mode. If the path 65632 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65633 # take no chances and rewrite it. 65634 # Note: m4 eats our [], so we need to use [ and ] instead. 65635 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 65636 if test "x$has_forbidden_chars" != x; then 65637 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65638 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 65639 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 65640 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 65641 # Going to short mode and back again did indeed matter. Since short mode is 65642 # case insensitive, let's make it lowercase to improve readability. 65643 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65644 # Now convert it back to Unix-style (cygpath) 65645 input_path=`$CYGPATH -u "$shortmode_path"` 65646 new_path="$input_path" 65647 fi 65648 fi 65649 65650 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 65651 if test "x$test_cygdrive_prefix" = x; then 65652 # As a simple fix, exclude /usr/bin since it's not a real path. 65653 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 65654 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 65655 # a path prefixed by /cygdrive for fixpath to work. 65656 new_path="$CYGWIN_ROOT_PATH$input_path" 65657 fi 65658 fi 65659 65660 65661 if test "x$path" != "x$new_path"; then 65662 STLPORT_LIB="$new_path" 65663 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 65664 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 65665 fi 65666 65667 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65668 65669 path="$STLPORT_LIB" 65670 has_colon=`$ECHO $path | $GREP ^.:` 65671 new_path="$path" 65672 if test "x$has_colon" = x; then 65673 # Not in mixed or Windows style, start by that. 65674 new_path=`cmd //c echo $path` 65675 fi 65676 65677 65678 input_path="$new_path" 65679 # Check if we need to convert this using DOS-style short mode. If the path 65680 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65681 # take no chances and rewrite it. 65682 # Note: m4 eats our [], so we need to use [ and ] instead. 65683 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 65684 if test "x$has_forbidden_chars" != x; then 65685 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65686 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65687 fi 65688 65689 65690 windows_path="$new_path" 65691 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65692 unix_path=`$CYGPATH -u "$windows_path"` 65693 new_path="$unix_path" 65694 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65695 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 65696 new_path="$unix_path" 65697 fi 65698 65699 if test "x$path" != "x$new_path"; then 65700 STLPORT_LIB="$new_path" 65701 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 65702 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 65703 fi 65704 65705 # Save the first 10 bytes of this path to the storage, so fixpath can work. 65706 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 65707 65708 else 65709 # We're on a unix platform. Hooray! :) 65710 path="$STLPORT_LIB" 65711 has_space=`$ECHO "$path" | $GREP " "` 65712 if test "x$has_space" != x; then 65713 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 65714 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 65715 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 65716 fi 65717 65718 # Use eval to expand a potential ~ 65719 eval path="$path" 65720 if test ! -f "$path" && test ! -d "$path"; then 65721 as_fn_error $? "The path of STLPORT_LIB, which resolves as \"$path\", is not found." "$LINENO" 5 65722 fi 65723 65724 if test -d "$path"; then 65725 STLPORT_LIB="`cd "$path"; $THEPWDCMD -L`" 65726 else 65727 dir="`$DIRNAME "$path"`" 65728 base="`$BASENAME "$path"`" 65729 STLPORT_LIB="`cd "$dir"; $THEPWDCMD -L`/$base" 65730 fi 65731 fi 65732 fi 65733 65734 else 65735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, not found at $STLPORT_LIB" >&5 65736 $as_echo "no, not found at $STLPORT_LIB" >&6; } 65737 as_fn_error $? "Failed to find libstlport.so.1, cannot build Hotspot gtests" "$LINENO" 5 65738 fi 65739 65740 fi 65741 65742 65743 65744 65745 65746 65747 65748 65749 65750 65751 65752 65753 65754 65755 # Hotspot setup depends on lib checks. 65756 65757 65758 # The user can in some cases supply additional jvm features. For the custom 65759 # variant, this defines the entire variant. 65760 65761 # Check whether --with-jvm-features was given. 65762 if test "${with_jvm_features+set}" = set; then : 65763 withval=$with_jvm_features; 65764 fi 65765 65766 if test "x$with_jvm_features" != x; then 65767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional JVM features" >&5 65768 $as_echo_n "checking additional JVM features... " >&6; } 65769 JVM_FEATURES=`$ECHO $with_jvm_features | $SED -e 's/,/ /g'` 65770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES" >&5 65771 $as_echo "$JVM_FEATURES" >&6; } 65772 fi 65773 65774 # Override hotspot cpu definitions for ARM platforms 65775 if test "x$OPENJDK_TARGET_CPU" = xarm; then 65776 HOTSPOT_TARGET_CPU=arm_32 65777 HOTSPOT_TARGET_CPU_DEFINE="ARM32" 65778 JVM_LDFLAGS="$JVM_LDFLAGS -fsigned-char" 65779 JVM_CFLAGS="$JVM_CFLAGS -DARM -fsigned-char" 65780 elif test "x$OPENJDK_TARGET_CPU" = xaarch64 && test "x$HOTSPOT_TARGET_CPU_PORT" = xarm64; then 65781 HOTSPOT_TARGET_CPU=arm_64 65782 HOTSPOT_TARGET_CPU_ARCH=arm 65783 JVM_LDFLAGS="$JVM_LDFLAGS -fsigned-char" 65784 JVM_CFLAGS="$JVM_CFLAGS -DARM -fsigned-char" 65785 fi 65786 65787 # Verify that dependencies are met for explicitly set features. 65788 if [[ " $JVM_FEATURES " =~ " jvmti " ]] && ! [[ " $JVM_FEATURES " =~ " services " ]] ; then 65789 as_fn_error $? "Specified JVM feature 'jvmti' requires feature 'services'" "$LINENO" 5 65790 fi 65791 65792 if [[ " $JVM_FEATURES " =~ " management " ]] && ! [[ " $JVM_FEATURES " =~ " nmt " ]] ; then 65793 as_fn_error $? "Specified JVM feature 'management' requires feature 'nmt'" "$LINENO" 5 65794 fi 65795 65796 if [[ " $JVM_FEATURES " =~ " jvmci " ]] && ! ( [[ " $JVM_FEATURES " =~ " compiler1 " ]] || [[ " $JVM_FEATURES " =~ " compiler2 " ]] ); then 65797 as_fn_error $? "Specified JVM feature 'jvmci' requires feature 'compiler2' or 'compiler1'" "$LINENO" 5 65798 fi 65799 65800 if [[ " $JVM_FEATURES " =~ " compiler2 " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 65801 as_fn_error $? "Specified JVM feature 'compiler2' requires feature 'all-gcs'" "$LINENO" 5 65802 fi 65803 65804 if [[ " $JVM_FEATURES " =~ " vm-structs " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 65805 as_fn_error $? "Specified JVM feature 'vm-structs' requires feature 'all-gcs'" "$LINENO" 5 65806 fi 65807 65808 # Turn on additional features based on other parts of configure 65809 if test "x$INCLUDE_DTRACE" = "xtrue"; then 65810 JVM_FEATURES="$JVM_FEATURES dtrace" 65811 else 65812 if [[ " $JVM_FEATURES " =~ " dtrace " ]] ; then 65813 as_fn_error $? "To enable dtrace, you must use --enable-dtrace" "$LINENO" 5 65814 fi 65815 fi 65816 65817 if test "x$STATIC_BUILD" = "xtrue"; then 65818 JVM_FEATURES="$JVM_FEATURES static-build" 65819 else 65820 if [[ " $JVM_FEATURES " =~ " static-build " ]] ; then 65821 as_fn_error $? "To enable static-build, you must use --enable-static-build" "$LINENO" 5 65822 fi 65823 fi 65824 65825 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 65826 if [[ " $JVM_FEATURES " =~ " zero " ]] ; then 65827 as_fn_error $? "To enable zero/zeroshark, you must use --with-jvm-variants=zero/zeroshark" "$LINENO" 5 65828 fi 65829 fi 65830 65831 if ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 65832 if [[ " $JVM_FEATURES " =~ " shark " ]] ; then 65833 as_fn_error $? "To enable shark, you must use --with-jvm-variants=zeroshark" "$LINENO" 5 65834 fi 65835 fi 65836 65837 # Only enable jvmci on x86_64, sparcv9 and aarch64. 65838 if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \ 65839 test "x$OPENJDK_TARGET_CPU" = "xsparcv9" || \ 65840 test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then 65841 JVM_FEATURES_jvmci="jvmci" 65842 else 65843 JVM_FEATURES_jvmci="" 65844 fi 65845 65846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jdk.internal.vm.compiler should be built" >&5 65847 $as_echo_n "checking if jdk.internal.vm.compiler should be built... " >&6; } 65848 if [[ " $JVM_FEATURES " =~ " graal " ]] ; then 65849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 65850 $as_echo "yes, forced" >&6; } 65851 if test "x$JVM_FEATURES_jvmci" != "xjvmci" ; then 65852 as_fn_error $? "Specified JVM feature 'graal' requires feature 'jvmci'" "$LINENO" 5 65853 fi 65854 INCLUDE_GRAAL="true" 65855 else 65856 # By default enable graal build on linux-x64 or where AOT is available. 65857 # graal build requires jvmci. 65858 if test "x$JVM_FEATURES_jvmci" = "xjvmci" && \ 65859 (test "x$OPENJDK_TARGET_CPU" = "xx86_64" && \ 65860 test "x$OPENJDK_TARGET_OS" = "xlinux" || \ 65861 test "x$ENABLE_AOT" = "xtrue") ; then 65862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65863 $as_echo "yes" >&6; } 65864 JVM_FEATURES_graal="graal" 65865 INCLUDE_GRAAL="true" 65866 else 65867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65868 $as_echo "no" >&6; } 65869 JVM_FEATURES_graal="" 65870 INCLUDE_GRAAL="false" 65871 fi 65872 fi 65873 65874 65875 65876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if aot should be enabled" >&5 65877 $as_echo_n "checking if aot should be enabled... " >&6; } 65878 if test "x$ENABLE_AOT" = "xtrue"; then 65879 if test "x$enable_aot" = "xyes"; then 65880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 65881 $as_echo "yes, forced" >&6; } 65882 else 65883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65884 $as_echo "yes" >&6; } 65885 fi 65886 JVM_FEATURES_aot="aot" 65887 else 65888 if test "x$enable_aot" = "xno"; then 65889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 65890 $as_echo "no, forced" >&6; } 65891 else 65892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65893 $as_echo "no" >&6; } 65894 fi 65895 JVM_FEATURES_aot="" 65896 fi 65897 65898 if test "x$OPENJDK_TARGET_CPU" = xarm ; then 65899 # Default to use link time optimizations on minimal on arm 65900 JVM_FEATURES_link_time_opt="link-time-opt" 65901 else 65902 JVM_FEATURES_link_time_opt="" 65903 fi 65904 65905 # All variants but minimal (and custom) get these features 65906 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jvmti vm-structs jni-check services management all-gcs nmt" 65907 if test "x$ENABLE_CDS" = "xtrue"; then 65908 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cds" 65909 fi 65910 65911 # Enable features depending on variant. 65912 JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci $JVM_FEATURES_aot $JVM_FEATURES_graal" 65913 JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci" 65914 JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES" 65915 JVM_FEATURES_minimal="compiler1 minimal $JVM_FEATURES $JVM_FEATURES_link_time_opt" 65916 JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES" 65917 JVM_FEATURES_zeroshark="zero shark $NON_MINIMAL_FEATURES $JVM_FEATURES" 65918 JVM_FEATURES_custom="$JVM_FEATURES" 65919 65920 65921 65922 65923 65924 65925 65926 65927 65928 # Used for verification of Makefiles by check-jvm-feature 65929 65930 65931 # We don't support --with-jvm-interpreter anymore, use zero instead. 65932 65933 65934 # Check whether --with-jvm-interpreter was given. 65935 if test "${with_jvm_interpreter+set}" = set; then : 65936 withval=$with_jvm_interpreter; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&5 65937 $as_echo "$as_me: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&2;} 65938 fi 65939 65940 65941 65942 65943 ############################################################################### 65944 # 65945 # We need to do some final tweaking, when everything else is done. 65946 # 65947 ############################################################################### 65948 65949 65950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 65951 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 65952 65953 if test -d "${SRC_ROOT}/jdk/src/jdk.crypto.ec/share/native/libsunec/impl"; then 65954 ENABLE_INTREE_EC=true 65955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65956 $as_echo "yes" >&6; } 65957 else 65958 ENABLE_INTREE_EC=false 65959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65960 $as_echo "no" >&6; } 65961 fi 65962 65963 65964 65965 65966 # Check whether --enable-jtreg-failure-handler was given. 65967 if test "${enable_jtreg_failure_handler+set}" = set; then : 65968 enableval=$enable_jtreg_failure_handler; 65969 fi 65970 65971 65972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jtreg failure handler should be built" >&5 65973 $as_echo_n "checking if jtreg failure handler should be built... " >&6; } 65974 65975 if test "x$enable_jtreg_failure_handler" = "xyes"; then 65976 if test "x$JT_HOME" = "x"; then 65977 as_fn_error $? "Cannot enable jtreg failure handler without jtreg." "$LINENO" 5 65978 else 65979 BUILD_FAILURE_HANDLER=true 65980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 65981 $as_echo "yes, forced" >&6; } 65982 fi 65983 elif test "x$enable_jtreg_failure_handler" = "xno"; then 65984 BUILD_FAILURE_HANDLER=false 65985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 65986 $as_echo "no, forced" >&6; } 65987 elif test "x$enable_jtreg_failure_handler" = "xauto" \ 65988 || test "x$enable_jtreg_failure_handler" = "x"; then 65989 if test "x$JT_HOME" = "x"; then 65990 BUILD_FAILURE_HANDLER=false 65991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing jtreg" >&5 65992 $as_echo "no, missing jtreg" >&6; } 65993 else 65994 BUILD_FAILURE_HANDLER=true 65995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, jtreg present" >&5 65996 $as_echo "yes, jtreg present" >&6; } 65997 fi 65998 else 65999 as_fn_error $? "Invalid value for --enable-jtreg-failure-handler: $enable_jtreg_failure_handler" "$LINENO" 5 66000 fi 66001 66002 66003 66004 66005 # Check whether --enable-generate-classlist was given. 66006 if test "${enable_generate_classlist+set}" = set; then : 66007 enableval=$enable_generate_classlist; 66008 fi 66009 66010 66011 # Check if it's likely that it's possible to generate the classlist. Depending 66012 # on exact jvm configuration it could be possible anyway. 66013 if test "x$ENABLE_CDS" = "xtrue" && ( [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] ); then 66014 ENABLE_GENERATE_CLASSLIST_POSSIBLE="true" 66015 else 66016 ENABLE_GENERATE_CLASSLIST_POSSIBLE="false" 66017 fi 66018 66019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the CDS classlist generation should be enabled" >&5 66020 $as_echo_n "checking if the CDS classlist generation should be enabled... " >&6; } 66021 if test "x$enable_generate_classlist" = "xyes"; then 66022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 66023 $as_echo "yes, forced" >&6; } 66024 ENABLE_GENERATE_CLASSLIST="true" 66025 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xfalse"; then 66026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS and enable-cds=$ENABLE_CDS" >&5 66027 $as_echo "$as_me: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS and enable-cds=$ENABLE_CDS" >&2;} 66028 fi 66029 elif test "x$enable_generate_classlist" = "xno"; then 66030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 66031 $as_echo "no, forced" >&6; } 66032 ENABLE_GENERATE_CLASSLIST="false" 66033 elif test "x$enable_generate_classlist" = "x"; then 66034 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xtrue"; then 66035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 66036 $as_echo "yes" >&6; } 66037 ENABLE_GENERATE_CLASSLIST="true" 66038 else 66039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66040 $as_echo "no" >&6; } 66041 ENABLE_GENERATE_CLASSLIST="false" 66042 fi 66043 else 66044 as_fn_error $? "Invalid value for --enable-generate-classlist: $enable_generate_classlist" "$LINENO" 5 66045 fi 66046 66047 66048 66049 66050 ############################################################################### 66051 # 66052 # Configure parts of the build that only affect the build performance, 66053 # not the result. 66054 # 66055 ############################################################################### 66056 66057 66058 # How many cores do we have on this build system? 66059 66060 # Check whether --with-num-cores was given. 66061 if test "${with_num_cores+set}" = set; then : 66062 withval=$with_num_cores; 66063 fi 66064 66065 if test "x$with_num_cores" = x; then 66066 # The number of cores were not specified, try to probe them. 66067 66068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 66069 $as_echo_n "checking for number of cores... " >&6; } 66070 NUM_CORES=1 66071 FOUND_CORES=no 66072 66073 if test -f /proc/cpuinfo; then 66074 # Looks like a Linux (or cygwin) system 66075 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 66076 FOUND_CORES=yes 66077 elif test -x /usr/sbin/psrinfo; then 66078 # Looks like a Solaris system 66079 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 66080 FOUND_CORES=yes 66081 elif test -x /usr/sbin/sysctl; then 66082 # Looks like a MacOSX system 66083 NUM_CORES=`/usr/sbin/sysctl -n hw.ncpu` 66084 FOUND_CORES=yes 66085 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 66086 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 66087 FOUND_CORES=yes 66088 elif test -n "$NUMBER_OF_PROCESSORS"; then 66089 # On windows, look in the env 66090 NUM_CORES=$NUMBER_OF_PROCESSORS 66091 FOUND_CORES=yes 66092 fi 66093 66094 if test "x$FOUND_CORES" = xyes; then 66095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 66096 $as_echo "$NUM_CORES" >&6; } 66097 else 66098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 66099 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 66100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 66101 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 66102 fi 66103 66104 else 66105 NUM_CORES=$with_num_cores 66106 fi 66107 66108 66109 66110 # How much memory do we have on this build system? 66111 66112 # Check whether --with-memory-size was given. 66113 if test "${with_memory_size+set}" = set; then : 66114 withval=$with_memory_size; 66115 fi 66116 66117 if test "x$with_memory_size" = x; then 66118 # The memory size was not specified, try to probe it. 66119 66120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 66121 $as_echo_n "checking for memory size... " >&6; } 66122 # Default to 1024 MB 66123 MEMORY_SIZE=1024 66124 FOUND_MEM=no 66125 66126 if test -f /proc/meminfo; then 66127 # Looks like a Linux (or cygwin) system 66128 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 66129 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 66130 FOUND_MEM=yes 66131 elif test -x /usr/sbin/prtconf; then 66132 # Looks like a Solaris or AIX system 66133 MEMORY_SIZE=`/usr/sbin/prtconf 2> /dev/null | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 66134 FOUND_MEM=yes 66135 elif test -x /usr/sbin/sysctl; then 66136 # Looks like a MacOSX system 66137 MEMORY_SIZE=`/usr/sbin/sysctl -n hw.memsize` 66138 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 66139 FOUND_MEM=yes 66140 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 66141 # Windows, but without cygwin 66142 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 66143 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 66144 FOUND_MEM=yes 66145 fi 66146 66147 if test "x$FOUND_MEM" = xyes; then 66148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 66149 $as_echo "$MEMORY_SIZE MB" >&6; } 66150 else 66151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 66152 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 66153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 66154 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 66155 fi 66156 66157 else 66158 MEMORY_SIZE=$with_memory_size 66159 fi 66160 66161 66162 66163 # Provide a decent default number of parallel jobs for make depending on 66164 # number of cores, amount of memory and machine architecture. 66165 66166 # Check whether --with-jobs was given. 66167 if test "${with_jobs+set}" = set; then : 66168 withval=$with_jobs; 66169 fi 66170 66171 if test "x$with_jobs" = x; then 66172 # Number of jobs was not specified, calculate. 66173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 66174 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 66175 # Approximate memory in GB. 66176 memory_gb=`expr $MEMORY_SIZE / 1024` 66177 # Pick the lowest of memory in gb and number of cores. 66178 if test "$memory_gb" -lt "$NUM_CORES"; then 66179 JOBS="$memory_gb" 66180 else 66181 JOBS="$NUM_CORES" 66182 fi 66183 if test "$JOBS" -eq "0"; then 66184 JOBS=1 66185 fi 66186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 66187 $as_echo "$JOBS" >&6; } 66188 else 66189 JOBS=$with_jobs 66190 fi 66191 66192 66193 66194 # The number of test jobs will be chosen automatically if TEST_JOBS is 0 66195 66196 # Check whether --with-test-jobs was given. 66197 if test "${with_test_jobs+set}" = set; then : 66198 withval=$with_test_jobs; 66199 fi 66200 66201 if test "x$with_test_jobs" = x; then 66202 TEST_JOBS=0 66203 else 66204 TEST_JOBS=$with_test_jobs 66205 fi 66206 66207 66208 66209 # Setup arguments for the boot jdk (after cores and memory have been setup) 66210 66211 ############################################################################## 66212 # 66213 # Specify jvm options for anything that is run with the Boot JDK. 66214 # Not all JVM:s accept the same arguments on the command line. 66215 # 66216 66217 # Check whether --with-boot-jdk-jvmargs was given. 66218 if test "${with_boot_jdk_jvmargs+set}" = set; then : 66219 withval=$with_boot_jdk_jvmargs; 66220 fi 66221 66222 66223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 66224 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 66225 66226 # Disable special log output when a debug build is used as Boot JDK... 66227 66228 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 66229 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 66230 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 66231 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66232 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66233 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66234 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 66235 JVM_ARG_OK=true 66236 else 66237 $ECHO "Arg failed:" >&5 66238 $ECHO "$OUTPUT" >&5 66239 JVM_ARG_OK=false 66240 fi 66241 66242 66243 # Force en-US environment 66244 66245 $ECHO "Check if jvm arg is ok: -Duser.language=en -Duser.country=US" >&5 66246 $ECHO "Command: $JAVA -Duser.language=en -Duser.country=US -version" >&5 66247 OUTPUT=`$JAVA -Duser.language=en -Duser.country=US -version 2>&1` 66248 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66249 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66250 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66251 boot_jdk_jvmargs="$boot_jdk_jvmargs -Duser.language=en -Duser.country=US" 66252 JVM_ARG_OK=true 66253 else 66254 $ECHO "Arg failed:" >&5 66255 $ECHO "$OUTPUT" >&5 66256 JVM_ARG_OK=false 66257 fi 66258 66259 66260 # Apply user provided options. 66261 66262 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 66263 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 66264 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 66265 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66266 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66267 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66268 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 66269 JVM_ARG_OK=true 66270 else 66271 $ECHO "Arg failed:" >&5 66272 $ECHO "$OUTPUT" >&5 66273 JVM_ARG_OK=false 66274 fi 66275 66276 66277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 66278 $as_echo "$boot_jdk_jvmargs" >&6; } 66279 66280 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 66281 JAVA_FLAGS=$boot_jdk_jvmargs 66282 66283 66284 66285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 66286 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 66287 66288 # Starting amount of heap memory. 66289 66290 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 66291 $ECHO "Command: $JAVA -Xms64M -version" >&5 66292 OUTPUT=`$JAVA -Xms64M -version 2>&1` 66293 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66294 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66295 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66296 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 66297 JVM_ARG_OK=true 66298 else 66299 $ECHO "Arg failed:" >&5 66300 $ECHO "$OUTPUT" >&5 66301 JVM_ARG_OK=false 66302 fi 66303 66304 BOOTCYCLE_JVM_ARGS_BIG=-Xms64M 66305 66306 # Maximum amount of heap memory and stack size. 66307 JVM_HEAP_LIMIT_32="1024" 66308 # Running a 64 bit JVM allows for and requires a bigger heap 66309 JVM_HEAP_LIMIT_64="1600" 66310 STACK_SIZE_32=768 66311 STACK_SIZE_64=1536 66312 JVM_HEAP_LIMIT_GLOBAL=`expr $MEMORY_SIZE / 2` 66313 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_32"; then 66314 JVM_HEAP_LIMIT_32=$JVM_HEAP_LIMIT_GLOBAL 66315 fi 66316 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_64"; then 66317 JVM_HEAP_LIMIT_64=$JVM_HEAP_LIMIT_GLOBAL 66318 fi 66319 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "512"; then 66320 JVM_HEAP_LIMIT_32=512 66321 JVM_HEAP_LIMIT_64=512 66322 fi 66323 66324 if test "x$BOOT_JDK_BITS" = "x32"; then 66325 STACK_SIZE=$STACK_SIZE_32 66326 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_32 66327 else 66328 STACK_SIZE=$STACK_SIZE_64 66329 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_64 66330 fi 66331 66332 $ECHO "Check if jvm arg is ok: -Xmx${JVM_MAX_HEAP}M" >&5 66333 $ECHO "Command: $JAVA -Xmx${JVM_MAX_HEAP}M -version" >&5 66334 OUTPUT=`$JAVA -Xmx${JVM_MAX_HEAP}M -version 2>&1` 66335 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66336 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66337 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66338 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx${JVM_MAX_HEAP}M" 66339 JVM_ARG_OK=true 66340 else 66341 $ECHO "Arg failed:" >&5 66342 $ECHO "$OUTPUT" >&5 66343 JVM_ARG_OK=false 66344 fi 66345 66346 66347 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 66348 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 66349 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 66350 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66351 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66352 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66353 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 66354 JVM_ARG_OK=true 66355 else 66356 $ECHO "Arg failed:" >&5 66357 $ECHO "$OUTPUT" >&5 66358 JVM_ARG_OK=false 66359 fi 66360 66361 66362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 66363 $as_echo "$boot_jdk_jvmargs_big" >&6; } 66364 66365 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 66366 66367 66368 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 66369 BOOTCYCLE_MAX_HEAP=$JVM_HEAP_LIMIT_32 66370 BOOTCYCLE_STACK_SIZE=$STACK_SIZE_32 66371 else 66372 BOOTCYCLE_MAX_HEAP=$JVM_HEAP_LIMIT_64 66373 BOOTCYCLE_STACK_SIZE=$STACK_SIZE_64 66374 fi 66375 BOOTCYCLE_JVM_ARGS_BIG="$BOOTCYCLE_JVM_ARGS_BIG -Xmx${BOOTCYCLE_MAX_HEAP}M" 66376 BOOTCYCLE_JVM_ARGS_BIG="$BOOTCYCLE_JVM_ARGS_BIG -XX:ThreadStackSize=$BOOTCYCLE_STACK_SIZE" 66377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for bootcycle boot jdk java command for big workloads" >&5 66378 $as_echo_n "checking flags for bootcycle boot jdk java command for big workloads... " >&6; } 66379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOTCYCLE_JVM_ARGS_BIG" >&5 66380 $as_echo "$BOOTCYCLE_JVM_ARGS_BIG" >&6; } 66381 66382 66383 # By default, the main javac compilations use big 66384 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_BIG" 66385 66386 66387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 66388 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 66389 66390 # Use serial gc for small short lived tools if possible 66391 66392 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 66393 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 66394 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 66395 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66396 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66397 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66398 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 66399 JVM_ARG_OK=true 66400 else 66401 $ECHO "Arg failed:" >&5 66402 $ECHO "$OUTPUT" >&5 66403 JVM_ARG_OK=false 66404 fi 66405 66406 66407 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 66408 $ECHO "Command: $JAVA -Xms32M -version" >&5 66409 OUTPUT=`$JAVA -Xms32M -version 2>&1` 66410 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66411 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66412 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66413 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 66414 JVM_ARG_OK=true 66415 else 66416 $ECHO "Arg failed:" >&5 66417 $ECHO "$OUTPUT" >&5 66418 JVM_ARG_OK=false 66419 fi 66420 66421 66422 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 66423 $ECHO "Command: $JAVA -Xmx512M -version" >&5 66424 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 66425 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66426 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66427 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66428 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 66429 JVM_ARG_OK=true 66430 else 66431 $ECHO "Arg failed:" >&5 66432 $ECHO "$OUTPUT" >&5 66433 JVM_ARG_OK=false 66434 fi 66435 66436 66437 $ECHO "Check if jvm arg is ok: -XX:TieredStopAtLevel=1" >&5 66438 $ECHO "Command: $JAVA -XX:TieredStopAtLevel=1 -version" >&5 66439 OUTPUT=`$JAVA -XX:TieredStopAtLevel=1 -version 2>&1` 66440 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66441 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66442 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66443 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:TieredStopAtLevel=1" 66444 JVM_ARG_OK=true 66445 else 66446 $ECHO "Arg failed:" >&5 66447 $ECHO "$OUTPUT" >&5 66448 JVM_ARG_OK=false 66449 fi 66450 66451 66452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 66453 $as_echo "$boot_jdk_jvmargs_small" >&6; } 66454 66455 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 66456 66457 66458 JAVA_TOOL_FLAGS_SMALL="" 66459 for f in $JAVA_FLAGS_SMALL; do 66460 JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f" 66461 done 66462 66463 66464 66465 # Setup smart javac (after cores and memory have been setup) 66466 66467 66468 # Check whether --with-sjavac-server-java was given. 66469 if test "${with_sjavac_server_java+set}" = set; then : 66470 withval=$with_sjavac_server_java; 66471 fi 66472 66473 66474 if test "x$with_sjavac_server_java" != x; then 66475 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 66476 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 66477 if test "x$FOUND_VERSION" = x; then 66478 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 66479 fi 66480 else 66481 SJAVAC_SERVER_JAVA="$JAVA" 66482 fi 66483 66484 66485 if test "$MEMORY_SIZE" -gt "3000"; then 66486 if "$JAVA" -version 2>&1 | $GREP -q "64-Bit"; then 66487 JVM_64BIT=true 66488 fi 66489 fi 66490 66491 MX_VALUE=`expr $MEMORY_SIZE / 2` 66492 if test "$JVM_64BIT" = true; then 66493 # Set ms lower than mx since more than one instance of the server might 66494 # get launched at the same time before they figure out which instance won. 66495 MS_VALUE=512 66496 if test "$MX_VALUE" -gt "2048"; then 66497 MX_VALUE=2048 66498 fi 66499 else 66500 MS_VALUE=256 66501 if test "$MX_VALUE" -gt "1500"; then 66502 MX_VALUE=1500 66503 fi 66504 fi 66505 if test "$MX_VALUE" -lt "512"; then 66506 MX_VALUE=512 66507 fi 66508 66509 $ECHO "Check if jvm arg is ok: -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" >&5 66510 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version" >&5 66511 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version 2>&1` 66512 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66513 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66514 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66515 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" 66516 JVM_ARG_OK=true 66517 else 66518 $ECHO "Arg failed:" >&5 66519 $ECHO "$OUTPUT" >&5 66520 JVM_ARG_OK=false 66521 fi 66522 66523 66524 66525 # Check whether --enable-sjavac was given. 66526 if test "${enable_sjavac+set}" = set; then : 66527 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 66528 else 66529 ENABLE_SJAVAC="no" 66530 fi 66531 66532 if test "x$JVM_ARG_OK" = "xfalse"; then 66533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5 66534 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;} 66535 ENABLE_SJAVAC="no" 66536 fi 66537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 66538 $as_echo_n "checking whether to use sjavac... " >&6; } 66539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 66540 $as_echo "$ENABLE_SJAVAC" >&6; } 66541 66542 66543 # Check whether --enable-javac-server was given. 66544 if test "${enable_javac_server+set}" = set; then : 66545 enableval=$enable_javac_server; ENABLE_JAVAC_SERVER="${enableval}" 66546 else 66547 ENABLE_JAVAC_SERVER="yes" 66548 fi 66549 66550 if test "x$JVM_ARG_OK" = "xfalse"; then 66551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&5 66552 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&2;} 66553 ENABLE_JAVAC_SERVER="no" 66554 fi 66555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use javac server" >&5 66556 $as_echo_n "checking whether to use javac server... " >&6; } 66557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_SERVER" >&5 66558 $as_echo "$ENABLE_JAVAC_SERVER" >&6; } 66559 66560 66561 if test "x$ENABLE_JAVAC_SERVER" = "xyes" || test "x$ENABLE_SJAVAC" = "xyes"; then 66562 # When using a server javac, the small client instances do not need much 66563 # resources. 66564 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_SMALL" 66565 fi 66566 66567 66568 # Setup use of icecc if requested 66569 66570 # Check whether --enable-icecc was given. 66571 if test "${enable_icecc+set}" = set; then : 66572 enableval=$enable_icecc; 66573 fi 66574 66575 66576 if test "x${enable_icecc}" = "xyes"; then 66577 66578 66579 66580 # Publish this variable in the help. 66581 66582 66583 if [ -z "${ICECC_CMD+x}" ]; then 66584 # The variable is not set by user, try to locate tool using the code snippet 66585 for ac_prog in icecc 66586 do 66587 # Extract the first word of "$ac_prog", so it can be a program name with args. 66588 set dummy $ac_prog; ac_word=$2 66589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66590 $as_echo_n "checking for $ac_word... " >&6; } 66591 if ${ac_cv_path_ICECC_CMD+:} false; then : 66592 $as_echo_n "(cached) " >&6 66593 else 66594 case $ICECC_CMD in 66595 [\\/]* | ?:[\\/]*) 66596 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 66597 ;; 66598 *) 66599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66600 for as_dir in $PATH 66601 do 66602 IFS=$as_save_IFS 66603 test -z "$as_dir" && as_dir=. 66604 for ac_exec_ext in '' $ac_executable_extensions; do 66605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66606 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 66607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66608 break 2 66609 fi 66610 done 66611 done 66612 IFS=$as_save_IFS 66613 66614 ;; 66615 esac 66616 fi 66617 ICECC_CMD=$ac_cv_path_ICECC_CMD 66618 if test -n "$ICECC_CMD"; then 66619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 66620 $as_echo "$ICECC_CMD" >&6; } 66621 else 66622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66623 $as_echo "no" >&6; } 66624 fi 66625 66626 66627 test -n "$ICECC_CMD" && break 66628 done 66629 66630 else 66631 # The variable is set, but is it from the command line or the environment? 66632 66633 # Try to remove the string !ICECC_CMD! from our list. 66634 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CMD!/} 66635 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 66636 # If it failed, the variable was not from the command line. Ignore it, 66637 # but warn the user (except for BASH, which is always set by the calling BASH). 66638 if test "xICECC_CMD" != xBASH; then 66639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&5 66640 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&2;} 66641 fi 66642 # Try to locate tool using the code snippet 66643 for ac_prog in icecc 66644 do 66645 # Extract the first word of "$ac_prog", so it can be a program name with args. 66646 set dummy $ac_prog; ac_word=$2 66647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66648 $as_echo_n "checking for $ac_word... " >&6; } 66649 if ${ac_cv_path_ICECC_CMD+:} false; then : 66650 $as_echo_n "(cached) " >&6 66651 else 66652 case $ICECC_CMD in 66653 [\\/]* | ?:[\\/]*) 66654 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 66655 ;; 66656 *) 66657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66658 for as_dir in $PATH 66659 do 66660 IFS=$as_save_IFS 66661 test -z "$as_dir" && as_dir=. 66662 for ac_exec_ext in '' $ac_executable_extensions; do 66663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66664 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 66665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66666 break 2 66667 fi 66668 done 66669 done 66670 IFS=$as_save_IFS 66671 66672 ;; 66673 esac 66674 fi 66675 ICECC_CMD=$ac_cv_path_ICECC_CMD 66676 if test -n "$ICECC_CMD"; then 66677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 66678 $as_echo "$ICECC_CMD" >&6; } 66679 else 66680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66681 $as_echo "no" >&6; } 66682 fi 66683 66684 66685 test -n "$ICECC_CMD" && break 66686 done 66687 66688 else 66689 # If it succeeded, then it was overridden by the user. We will use it 66690 # for the tool. 66691 66692 # First remove it from the list of overridden variables, so we can test 66693 # for unknown variables in the end. 66694 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 66695 66696 # Check if we try to supply an empty value 66697 if test "x$ICECC_CMD" = x; then 66698 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CMD= (no value)" >&5 66699 $as_echo "$as_me: Setting user supplied tool ICECC_CMD= (no value)" >&6;} 66700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 66701 $as_echo_n "checking for ICECC_CMD... " >&6; } 66702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 66703 $as_echo "disabled" >&6; } 66704 else 66705 # Check if the provided tool contains a complete path. 66706 tool_specified="$ICECC_CMD" 66707 tool_basename="${tool_specified##*/}" 66708 if test "x$tool_basename" = "x$tool_specified"; then 66709 # A command without a complete path is provided, search $PATH. 66710 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CMD=$tool_basename" >&5 66711 $as_echo "$as_me: Will search for user supplied tool ICECC_CMD=$tool_basename" >&6;} 66712 # Extract the first word of "$tool_basename", so it can be a program name with args. 66713 set dummy $tool_basename; ac_word=$2 66714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66715 $as_echo_n "checking for $ac_word... " >&6; } 66716 if ${ac_cv_path_ICECC_CMD+:} false; then : 66717 $as_echo_n "(cached) " >&6 66718 else 66719 case $ICECC_CMD in 66720 [\\/]* | ?:[\\/]*) 66721 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 66722 ;; 66723 *) 66724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66725 for as_dir in $PATH 66726 do 66727 IFS=$as_save_IFS 66728 test -z "$as_dir" && as_dir=. 66729 for ac_exec_ext in '' $ac_executable_extensions; do 66730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66731 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 66732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66733 break 2 66734 fi 66735 done 66736 done 66737 IFS=$as_save_IFS 66738 66739 ;; 66740 esac 66741 fi 66742 ICECC_CMD=$ac_cv_path_ICECC_CMD 66743 if test -n "$ICECC_CMD"; then 66744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 66745 $as_echo "$ICECC_CMD" >&6; } 66746 else 66747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66748 $as_echo "no" >&6; } 66749 fi 66750 66751 66752 if test "x$ICECC_CMD" = x; then 66753 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 66754 fi 66755 else 66756 # Otherwise we believe it is a complete path. Use it as it is. 66757 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CMD=$tool_specified" >&5 66758 $as_echo "$as_me: Will use user supplied tool ICECC_CMD=$tool_specified" >&6;} 66759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 66760 $as_echo_n "checking for ICECC_CMD... " >&6; } 66761 if test ! -x "$tool_specified"; then 66762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 66763 $as_echo "not found" >&6; } 66764 as_fn_error $? "User supplied tool ICECC_CMD=$tool_specified does not exist or is not executable" "$LINENO" 5 66765 fi 66766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 66767 $as_echo "$tool_specified" >&6; } 66768 fi 66769 fi 66770 fi 66771 66772 fi 66773 66774 66775 66776 if test "x$ICECC_CMD" = x; then 66777 as_fn_error $? "Could not find required tool for ICECC_CMD" "$LINENO" 5 66778 fi 66779 66780 66781 old_path="$PATH" 66782 66783 # Look for icecc-create-env in some known places 66784 PATH="$PATH:/usr/lib/icecc:/usr/lib64/icecc" 66785 66786 66787 66788 # Publish this variable in the help. 66789 66790 66791 if [ -z "${ICECC_CREATE_ENV+x}" ]; then 66792 # The variable is not set by user, try to locate tool using the code snippet 66793 for ac_prog in icecc-create-env 66794 do 66795 # Extract the first word of "$ac_prog", so it can be a program name with args. 66796 set dummy $ac_prog; ac_word=$2 66797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66798 $as_echo_n "checking for $ac_word... " >&6; } 66799 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 66800 $as_echo_n "(cached) " >&6 66801 else 66802 case $ICECC_CREATE_ENV in 66803 [\\/]* | ?:[\\/]*) 66804 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 66805 ;; 66806 *) 66807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66808 for as_dir in $PATH 66809 do 66810 IFS=$as_save_IFS 66811 test -z "$as_dir" && as_dir=. 66812 for ac_exec_ext in '' $ac_executable_extensions; do 66813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66814 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 66815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66816 break 2 66817 fi 66818 done 66819 done 66820 IFS=$as_save_IFS 66821 66822 ;; 66823 esac 66824 fi 66825 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 66826 if test -n "$ICECC_CREATE_ENV"; then 66827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 66828 $as_echo "$ICECC_CREATE_ENV" >&6; } 66829 else 66830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66831 $as_echo "no" >&6; } 66832 fi 66833 66834 66835 test -n "$ICECC_CREATE_ENV" && break 66836 done 66837 66838 else 66839 # The variable is set, but is it from the command line or the environment? 66840 66841 # Try to remove the string !ICECC_CREATE_ENV! from our list. 66842 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CREATE_ENV!/} 66843 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 66844 # If it failed, the variable was not from the command line. Ignore it, 66845 # but warn the user (except for BASH, which is always set by the calling BASH). 66846 if test "xICECC_CREATE_ENV" != xBASH; then 66847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&5 66848 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&2;} 66849 fi 66850 # Try to locate tool using the code snippet 66851 for ac_prog in icecc-create-env 66852 do 66853 # Extract the first word of "$ac_prog", so it can be a program name with args. 66854 set dummy $ac_prog; ac_word=$2 66855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66856 $as_echo_n "checking for $ac_word... " >&6; } 66857 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 66858 $as_echo_n "(cached) " >&6 66859 else 66860 case $ICECC_CREATE_ENV in 66861 [\\/]* | ?:[\\/]*) 66862 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 66863 ;; 66864 *) 66865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66866 for as_dir in $PATH 66867 do 66868 IFS=$as_save_IFS 66869 test -z "$as_dir" && as_dir=. 66870 for ac_exec_ext in '' $ac_executable_extensions; do 66871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66872 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 66873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66874 break 2 66875 fi 66876 done 66877 done 66878 IFS=$as_save_IFS 66879 66880 ;; 66881 esac 66882 fi 66883 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 66884 if test -n "$ICECC_CREATE_ENV"; then 66885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 66886 $as_echo "$ICECC_CREATE_ENV" >&6; } 66887 else 66888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66889 $as_echo "no" >&6; } 66890 fi 66891 66892 66893 test -n "$ICECC_CREATE_ENV" && break 66894 done 66895 66896 else 66897 # If it succeeded, then it was overridden by the user. We will use it 66898 # for the tool. 66899 66900 # First remove it from the list of overridden variables, so we can test 66901 # for unknown variables in the end. 66902 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 66903 66904 # Check if we try to supply an empty value 66905 if test "x$ICECC_CREATE_ENV" = x; then 66906 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&5 66907 $as_echo "$as_me: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&6;} 66908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 66909 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 66910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 66911 $as_echo "disabled" >&6; } 66912 else 66913 # Check if the provided tool contains a complete path. 66914 tool_specified="$ICECC_CREATE_ENV" 66915 tool_basename="${tool_specified##*/}" 66916 if test "x$tool_basename" = "x$tool_specified"; then 66917 # A command without a complete path is provided, search $PATH. 66918 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&5 66919 $as_echo "$as_me: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&6;} 66920 # Extract the first word of "$tool_basename", so it can be a program name with args. 66921 set dummy $tool_basename; ac_word=$2 66922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66923 $as_echo_n "checking for $ac_word... " >&6; } 66924 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 66925 $as_echo_n "(cached) " >&6 66926 else 66927 case $ICECC_CREATE_ENV in 66928 [\\/]* | ?:[\\/]*) 66929 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 66930 ;; 66931 *) 66932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66933 for as_dir in $PATH 66934 do 66935 IFS=$as_save_IFS 66936 test -z "$as_dir" && as_dir=. 66937 for ac_exec_ext in '' $ac_executable_extensions; do 66938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66939 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 66940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66941 break 2 66942 fi 66943 done 66944 done 66945 IFS=$as_save_IFS 66946 66947 ;; 66948 esac 66949 fi 66950 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 66951 if test -n "$ICECC_CREATE_ENV"; then 66952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 66953 $as_echo "$ICECC_CREATE_ENV" >&6; } 66954 else 66955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66956 $as_echo "no" >&6; } 66957 fi 66958 66959 66960 if test "x$ICECC_CREATE_ENV" = x; then 66961 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 66962 fi 66963 else 66964 # Otherwise we believe it is a complete path. Use it as it is. 66965 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&5 66966 $as_echo "$as_me: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&6;} 66967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 66968 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 66969 if test ! -x "$tool_specified"; then 66970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 66971 $as_echo "not found" >&6; } 66972 as_fn_error $? "User supplied tool ICECC_CREATE_ENV=$tool_specified does not exist or is not executable" "$LINENO" 5 66973 fi 66974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 66975 $as_echo "$tool_specified" >&6; } 66976 fi 66977 fi 66978 fi 66979 66980 fi 66981 66982 66983 66984 if test "x$ICECC_CREATE_ENV" = x; then 66985 as_fn_error $? "Could not find required tool for ICECC_CREATE_ENV" "$LINENO" 5 66986 fi 66987 66988 66989 # Use icecc-create-env to create a minimal compilation environment that can 66990 # be sent to the other hosts in the icecream cluster. 66991 icecc_create_env_log="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env.log" 66992 ${MKDIR} -p ${CONFIGURESUPPORT_OUTPUTDIR}/icecc 66993 # Older versions of icecc does not have the --gcc parameter 66994 if ${ICECC_CREATE_ENV} | $GREP -q -e --gcc; then 66995 icecc_gcc_arg="--gcc" 66996 fi 66997 if test "x${TOOLCHAIN_TYPE}" = "xgcc"; then 66998 66999 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 67000 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${CC} ${CXX} > \ 67001 ${icecc_create_env_log} 2>&1 ) 67002 if test "$?" != "0"; then 67003 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 67004 $as_echo "$as_me: icecc-create-env output:" >&6;} 67005 cat \ 67006 ${icecc_create_env_log} 67007 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 67008 fi 67009 67010 elif test "x$TOOLCHAIN_TYPE" = "xclang"; then 67011 # For clang, the icecc compilerwrapper is needed. It usually resides next 67012 # to icecc-create-env. 67013 67014 67015 67016 # Publish this variable in the help. 67017 67018 67019 if [ -z "${ICECC_WRAPPER+x}" ]; then 67020 # The variable is not set by user, try to locate tool using the code snippet 67021 for ac_prog in compilerwrapper 67022 do 67023 # Extract the first word of "$ac_prog", so it can be a program name with args. 67024 set dummy $ac_prog; ac_word=$2 67025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67026 $as_echo_n "checking for $ac_word... " >&6; } 67027 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 67028 $as_echo_n "(cached) " >&6 67029 else 67030 case $ICECC_WRAPPER in 67031 [\\/]* | ?:[\\/]*) 67032 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 67033 ;; 67034 *) 67035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67036 for as_dir in $PATH 67037 do 67038 IFS=$as_save_IFS 67039 test -z "$as_dir" && as_dir=. 67040 for ac_exec_ext in '' $ac_executable_extensions; do 67041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67042 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 67043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67044 break 2 67045 fi 67046 done 67047 done 67048 IFS=$as_save_IFS 67049 67050 ;; 67051 esac 67052 fi 67053 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 67054 if test -n "$ICECC_WRAPPER"; then 67055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 67056 $as_echo "$ICECC_WRAPPER" >&6; } 67057 else 67058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67059 $as_echo "no" >&6; } 67060 fi 67061 67062 67063 test -n "$ICECC_WRAPPER" && break 67064 done 67065 67066 else 67067 # The variable is set, but is it from the command line or the environment? 67068 67069 # Try to remove the string !ICECC_WRAPPER! from our list. 67070 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_WRAPPER!/} 67071 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 67072 # If it failed, the variable was not from the command line. Ignore it, 67073 # but warn the user (except for BASH, which is always set by the calling BASH). 67074 if test "xICECC_WRAPPER" != xBASH; then 67075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&5 67076 $as_echo "$as_me: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&2;} 67077 fi 67078 # Try to locate tool using the code snippet 67079 for ac_prog in compilerwrapper 67080 do 67081 # Extract the first word of "$ac_prog", so it can be a program name with args. 67082 set dummy $ac_prog; ac_word=$2 67083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67084 $as_echo_n "checking for $ac_word... " >&6; } 67085 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 67086 $as_echo_n "(cached) " >&6 67087 else 67088 case $ICECC_WRAPPER in 67089 [\\/]* | ?:[\\/]*) 67090 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 67091 ;; 67092 *) 67093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67094 for as_dir in $PATH 67095 do 67096 IFS=$as_save_IFS 67097 test -z "$as_dir" && as_dir=. 67098 for ac_exec_ext in '' $ac_executable_extensions; do 67099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67100 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 67101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67102 break 2 67103 fi 67104 done 67105 done 67106 IFS=$as_save_IFS 67107 67108 ;; 67109 esac 67110 fi 67111 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 67112 if test -n "$ICECC_WRAPPER"; then 67113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 67114 $as_echo "$ICECC_WRAPPER" >&6; } 67115 else 67116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67117 $as_echo "no" >&6; } 67118 fi 67119 67120 67121 test -n "$ICECC_WRAPPER" && break 67122 done 67123 67124 else 67125 # If it succeeded, then it was overridden by the user. We will use it 67126 # for the tool. 67127 67128 # First remove it from the list of overridden variables, so we can test 67129 # for unknown variables in the end. 67130 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 67131 67132 # Check if we try to supply an empty value 67133 if test "x$ICECC_WRAPPER" = x; then 67134 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_WRAPPER= (no value)" >&5 67135 $as_echo "$as_me: Setting user supplied tool ICECC_WRAPPER= (no value)" >&6;} 67136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 67137 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 67138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 67139 $as_echo "disabled" >&6; } 67140 else 67141 # Check if the provided tool contains a complete path. 67142 tool_specified="$ICECC_WRAPPER" 67143 tool_basename="${tool_specified##*/}" 67144 if test "x$tool_basename" = "x$tool_specified"; then 67145 # A command without a complete path is provided, search $PATH. 67146 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&5 67147 $as_echo "$as_me: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&6;} 67148 # Extract the first word of "$tool_basename", so it can be a program name with args. 67149 set dummy $tool_basename; ac_word=$2 67150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67151 $as_echo_n "checking for $ac_word... " >&6; } 67152 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 67153 $as_echo_n "(cached) " >&6 67154 else 67155 case $ICECC_WRAPPER in 67156 [\\/]* | ?:[\\/]*) 67157 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 67158 ;; 67159 *) 67160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67161 for as_dir in $PATH 67162 do 67163 IFS=$as_save_IFS 67164 test -z "$as_dir" && as_dir=. 67165 for ac_exec_ext in '' $ac_executable_extensions; do 67166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67167 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 67168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67169 break 2 67170 fi 67171 done 67172 done 67173 IFS=$as_save_IFS 67174 67175 ;; 67176 esac 67177 fi 67178 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 67179 if test -n "$ICECC_WRAPPER"; then 67180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 67181 $as_echo "$ICECC_WRAPPER" >&6; } 67182 else 67183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67184 $as_echo "no" >&6; } 67185 fi 67186 67187 67188 if test "x$ICECC_WRAPPER" = x; then 67189 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 67190 fi 67191 else 67192 # Otherwise we believe it is a complete path. Use it as it is. 67193 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&5 67194 $as_echo "$as_me: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&6;} 67195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 67196 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 67197 if test ! -x "$tool_specified"; then 67198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 67199 $as_echo "not found" >&6; } 67200 as_fn_error $? "User supplied tool ICECC_WRAPPER=$tool_specified does not exist or is not executable" "$LINENO" 5 67201 fi 67202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 67203 $as_echo "$tool_specified" >&6; } 67204 fi 67205 fi 67206 fi 67207 67208 fi 67209 67210 67211 67212 if test "x$ICECC_WRAPPER" = x; then 67213 as_fn_error $? "Could not find required tool for ICECC_WRAPPER" "$LINENO" 5 67214 fi 67215 67216 67217 67218 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 67219 && ${ICECC_CREATE_ENV} --clang ${CC} ${ICECC_WRAPPER} > ${icecc_create_env_log} 2>&1 ) 67220 if test "$?" != "0"; then 67221 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 67222 $as_echo "$as_me: icecc-create-env output:" >&6;} 67223 cat ${icecc_create_env_log} 67224 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 67225 fi 67226 67227 else 67228 as_fn_error $? "Can only create icecc compiler packages for toolchain types gcc and clang" "$LINENO" 5 67229 fi 67230 PATH="$old_path" 67231 # The bundle with the compiler gets a name based on checksums. Parse log file 67232 # to find it. 67233 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log}`" 67234 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 67235 if test ! -f ${ICECC_ENV_BUNDLE}; then 67236 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 67237 fi 67238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for target compiler" >&5 67239 $as_echo_n "checking for icecc build environment for target compiler... " >&6; } 67240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 67241 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 67242 ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${CC} ICECC_CXX=${CXX} ${ICECC_CMD}" 67243 67244 if test "x${COMPILE_TYPE}" = "xcross"; then 67245 # If cross compiling, create a separate env package for the build compiler 67246 # Assume "gcc" or "cc" is gcc and "clang" is clang. Otherwise bail. 67247 icecc_create_env_log_build="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env_build.log" 67248 if test "x${BUILD_CC##*/}" = "xgcc" || test "x${BUILD_CC##*/}" = "xcc"; then 67249 67250 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 67251 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${BUILD_CC} ${BUILD_CXX} > \ 67252 ${icecc_create_env_log_build} 2>&1 ) 67253 if test "$?" != "0"; then 67254 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 67255 $as_echo "$as_me: icecc-create-env output:" >&6;} 67256 cat \ 67257 ${icecc_create_env_log_build} 67258 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 67259 fi 67260 67261 elif test "x${BUILD_CC##*/}" = "xclang"; then 67262 67263 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 67264 && ${ICECC_CREATE_ENV} --clang ${BUILD_CC} ${ICECC_WRAPPER} > ${icecc_create_env_log_build} 2>&1 ) 67265 if test "$?" != "0"; then 67266 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 67267 $as_echo "$as_me: icecc-create-env output:" >&6;} 67268 cat ${icecc_create_env_log_build} 67269 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 67270 fi 67271 67272 else 67273 as_fn_error $? "Cannot create icecc compiler package for ${BUILD_CC}" "$LINENO" 5 67274 fi 67275 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log_build}`" 67276 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 67277 if test ! -f ${ICECC_ENV_BUNDLE}; then 67278 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 67279 fi 67280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for build compiler" >&5 67281 $as_echo_n "checking for icecc build environment for build compiler... " >&6; } 67282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 67283 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 67284 BUILD_ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${BUILD_CC} \ 67285 ICECC_CXX=${BUILD_CXX} ${ICECC_CMD}" 67286 else 67287 BUILD_ICECC="${ICECC}" 67288 fi 67289 67290 67291 fi 67292 67293 67294 # Can the C/C++ compiler use precompiled headers? 67295 67296 67297 ############################################################################### 67298 # 67299 # Can the C/C++ compiler use precompiled headers? 67300 # 67301 # Check whether --enable-precompiled-headers was given. 67302 if test "${enable_precompiled_headers+set}" = set; then : 67303 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 67304 else 67305 ENABLE_PRECOMPH=yes 67306 fi 67307 67308 67309 USE_PRECOMPILED_HEADER=true 67310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If precompiled header is enabled" >&5 67311 $as_echo_n "checking If precompiled header is enabled... " >&6; } 67312 if test "x$ENABLE_PRECOMPH" = xno; then 67313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 67314 $as_echo "no, forced" >&6; } 67315 USE_PRECOMPILED_HEADER=false 67316 elif test "x$ICECC" != "x"; then 67317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work effectively with icecc" >&5 67318 $as_echo "no, does not work effectively with icecc" >&6; } 67319 USE_PRECOMPILED_HEADER=false 67320 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 67321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with Solaris Studio" >&5 67322 $as_echo "no, does not work with Solaris Studio" >&6; } 67323 USE_PRECOMPILED_HEADER=false 67324 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 67325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with xlc" >&5 67326 $as_echo "no, does not work with xlc" >&6; } 67327 USE_PRECOMPILED_HEADER=false 67328 else 67329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67330 $as_echo "yes" >&6; } 67331 fi 67332 67333 if test "x$ENABLE_PRECOMPH" = xyes; then 67334 # Check that the compiler actually supports precomp headers. 67335 if test "x$TOOLCHAIN_TYPE" = xgcc; then 67336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 67337 $as_echo_n "checking that precompiled headers work... " >&6; } 67338 echo "int alfa();" > conftest.h 67339 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 67340 if test ! -f conftest.hpp.gch; then 67341 USE_PRECOMPILED_HEADER=false 67342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67343 $as_echo "no" >&6; } 67344 else 67345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67346 $as_echo "yes" >&6; } 67347 fi 67348 $RM conftest.h conftest.hpp.gch 67349 fi 67350 fi 67351 67352 67353 67354 67355 # Setup use of ccache, if available 67356 67357 # Check whether --enable-ccache was given. 67358 if test "${enable_ccache+set}" = set; then : 67359 enableval=$enable_ccache; 67360 fi 67361 67362 67363 CCACHE_STATUS= 67364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 67365 $as_echo_n "checking is ccache enabled... " >&6; } 67366 if test "x$enable_ccache" = xyes; then 67367 if test "x$TOOLCHAIN_TYPE" = "xgcc" -o "x$TOOLCHAIN_TYPE" = "xclang"; then 67368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67369 $as_echo "yes" >&6; } 67370 OLD_PATH="$PATH" 67371 if test "x$TOOLCHAIN_PATH" != x; then 67372 PATH=$TOOLCHAIN_PATH:$PATH 67373 fi 67374 67375 67376 67377 # Publish this variable in the help. 67378 67379 67380 if [ -z "${CCACHE+x}" ]; then 67381 # The variable is not set by user, try to locate tool using the code snippet 67382 for ac_prog in ccache 67383 do 67384 # Extract the first word of "$ac_prog", so it can be a program name with args. 67385 set dummy $ac_prog; ac_word=$2 67386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67387 $as_echo_n "checking for $ac_word... " >&6; } 67388 if ${ac_cv_path_CCACHE+:} false; then : 67389 $as_echo_n "(cached) " >&6 67390 else 67391 case $CCACHE in 67392 [\\/]* | ?:[\\/]*) 67393 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 67394 ;; 67395 *) 67396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67397 for as_dir in $PATH 67398 do 67399 IFS=$as_save_IFS 67400 test -z "$as_dir" && as_dir=. 67401 for ac_exec_ext in '' $ac_executable_extensions; do 67402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67403 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 67404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67405 break 2 67406 fi 67407 done 67408 done 67409 IFS=$as_save_IFS 67410 67411 ;; 67412 esac 67413 fi 67414 CCACHE=$ac_cv_path_CCACHE 67415 if test -n "$CCACHE"; then 67416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 67417 $as_echo "$CCACHE" >&6; } 67418 else 67419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67420 $as_echo "no" >&6; } 67421 fi 67422 67423 67424 test -n "$CCACHE" && break 67425 done 67426 67427 else 67428 # The variable is set, but is it from the command line or the environment? 67429 67430 # Try to remove the string !CCACHE! from our list. 67431 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 67432 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 67433 # If it failed, the variable was not from the command line. Ignore it, 67434 # but warn the user (except for BASH, which is always set by the calling BASH). 67435 if test "xCCACHE" != xBASH; then 67436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 67437 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 67438 fi 67439 # Try to locate tool using the code snippet 67440 for ac_prog in ccache 67441 do 67442 # Extract the first word of "$ac_prog", so it can be a program name with args. 67443 set dummy $ac_prog; ac_word=$2 67444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67445 $as_echo_n "checking for $ac_word... " >&6; } 67446 if ${ac_cv_path_CCACHE+:} false; then : 67447 $as_echo_n "(cached) " >&6 67448 else 67449 case $CCACHE in 67450 [\\/]* | ?:[\\/]*) 67451 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 67452 ;; 67453 *) 67454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67455 for as_dir in $PATH 67456 do 67457 IFS=$as_save_IFS 67458 test -z "$as_dir" && as_dir=. 67459 for ac_exec_ext in '' $ac_executable_extensions; do 67460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67461 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 67462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67463 break 2 67464 fi 67465 done 67466 done 67467 IFS=$as_save_IFS 67468 67469 ;; 67470 esac 67471 fi 67472 CCACHE=$ac_cv_path_CCACHE 67473 if test -n "$CCACHE"; then 67474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 67475 $as_echo "$CCACHE" >&6; } 67476 else 67477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67478 $as_echo "no" >&6; } 67479 fi 67480 67481 67482 test -n "$CCACHE" && break 67483 done 67484 67485 else 67486 # If it succeeded, then it was overridden by the user. We will use it 67487 # for the tool. 67488 67489 # First remove it from the list of overridden variables, so we can test 67490 # for unknown variables in the end. 67491 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 67492 67493 # Check if we try to supply an empty value 67494 if test "x$CCACHE" = x; then 67495 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CCACHE= (no value)" >&5 67496 $as_echo "$as_me: Setting user supplied tool CCACHE= (no value)" >&6;} 67497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 67498 $as_echo_n "checking for CCACHE... " >&6; } 67499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 67500 $as_echo "disabled" >&6; } 67501 else 67502 # Check if the provided tool contains a complete path. 67503 tool_specified="$CCACHE" 67504 tool_basename="${tool_specified##*/}" 67505 if test "x$tool_basename" = "x$tool_specified"; then 67506 # A command without a complete path is provided, search $PATH. 67507 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 67508 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 67509 # Extract the first word of "$tool_basename", so it can be a program name with args. 67510 set dummy $tool_basename; ac_word=$2 67511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67512 $as_echo_n "checking for $ac_word... " >&6; } 67513 if ${ac_cv_path_CCACHE+:} false; then : 67514 $as_echo_n "(cached) " >&6 67515 else 67516 case $CCACHE in 67517 [\\/]* | ?:[\\/]*) 67518 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 67519 ;; 67520 *) 67521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67522 for as_dir in $PATH 67523 do 67524 IFS=$as_save_IFS 67525 test -z "$as_dir" && as_dir=. 67526 for ac_exec_ext in '' $ac_executable_extensions; do 67527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67528 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 67529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67530 break 2 67531 fi 67532 done 67533 done 67534 IFS=$as_save_IFS 67535 67536 ;; 67537 esac 67538 fi 67539 CCACHE=$ac_cv_path_CCACHE 67540 if test -n "$CCACHE"; then 67541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 67542 $as_echo "$CCACHE" >&6; } 67543 else 67544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67545 $as_echo "no" >&6; } 67546 fi 67547 67548 67549 if test "x$CCACHE" = x; then 67550 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 67551 fi 67552 else 67553 # Otherwise we believe it is a complete path. Use it as it is. 67554 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 67555 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 67556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 67557 $as_echo_n "checking for CCACHE... " >&6; } 67558 if test ! -x "$tool_specified"; then 67559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 67560 $as_echo "not found" >&6; } 67561 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 67562 fi 67563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 67564 $as_echo "$tool_specified" >&6; } 67565 fi 67566 fi 67567 fi 67568 67569 fi 67570 67571 67572 67573 if test "x$CCACHE" = x; then 67574 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 67575 fi 67576 67577 67578 PATH="$OLD_PATH" 67579 CCACHE_VERSION=`$CCACHE --version | head -n1 | $SED 's/[A-Za-z ]*//'` 67580 CCACHE_STATUS="Active ($CCACHE_VERSION)" 67581 else 67582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67583 $as_echo "no" >&6; } 67584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&5 67585 $as_echo "$as_me: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&2;} 67586 fi 67587 elif test "x$enable_ccache" = xno; then 67588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 67589 $as_echo "no, explicitly disabled" >&6; } 67590 CCACHE_STATUS="Disabled" 67591 elif test "x$enable_ccache" = x; then 67592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67593 $as_echo "no" >&6; } 67594 else 67595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 67596 $as_echo "unknown" >&6; } 67597 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 67598 fi 67599 67600 67601 67602 # Check whether --with-ccache-dir was given. 67603 if test "${with_ccache_dir+set}" = set; then : 67604 withval=$with_ccache_dir; 67605 fi 67606 67607 67608 if test "x$with_ccache_dir" != x; then 67609 # When using a non home ccache directory, assume the use is to share ccache files 67610 # with other users. Thus change the umask. 67611 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 67612 if test "x$CCACHE" = x; then 67613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 67614 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 67615 fi 67616 fi 67617 67618 if test "x$CCACHE" != x; then 67619 67620 if test "x$CCACHE" != x; then 67621 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 67622 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 67623 $GREP -e '^1\.' -e '^2\.' -e '^3\.0\.' -e '^3\.1\.'` 67624 if test "x$HAS_BAD_CCACHE" != "x"; then 67625 as_fn_error $? "On macosx, ccache 3.2 or later is required, found $CCACHE_VERSION" "$LINENO" 5 67626 fi 67627 fi 67628 if test "x$USE_PRECOMPILED_HEADER" = "xtrue"; then 67629 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 67630 $GREP -e '^1.*' -e '^2.*' -e '^3\.0.*' -e '^3\.1\.[0123]$'` 67631 if test "x$HAS_BAD_CCACHE" != "x"; then 67632 as_fn_error $? "Precompiled headers requires ccache 3.1.4 or later, found $CCACHE_VERSION" "$LINENO" 5 67633 fi 67634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 67635 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 67636 CCACHE_PRECOMP_FLAG="-fpch-preprocess" 67637 PUSHED_FLAGS="$CXXFLAGS" 67638 CXXFLAGS="$CCACHE_PRECOMP_FLAG $CXXFLAGS" 67639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 67640 /* end confdefs.h. */ 67641 67642 int 67643 main () 67644 { 67645 67646 ; 67647 return 0; 67648 } 67649 _ACEOF 67650 if ac_fn_cxx_try_compile "$LINENO"; then : 67651 CC_KNOWS_CCACHE_TRICK=yes 67652 else 67653 CC_KNOWS_CCACHE_TRICK=no 67654 fi 67655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 67656 CXXFLAGS="$PUSHED_FLAGS" 67657 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 67658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67659 $as_echo "yes" >&6; } 67660 CFLAGS_CCACHE="$CCACHE_PRECOMP_FLAG" 67661 67662 CCACHE_SLOPPINESS=pch_defines,time_macros 67663 else 67664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67665 $as_echo "no" >&6; } 67666 as_fn_error $? "Cannot use ccache with precompiled headers without compiler support for $CCACHE_PRECOMP_FLAG" "$LINENO" 5 67667 fi 67668 fi 67669 67670 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR \ 67671 CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS CCACHE_BASEDIR=$TOPDIR $CCACHE" 67672 67673 if test "x$SET_CCACHE_DIR" != x; then 67674 mkdir -p $CCACHE_DIR > /dev/null 2>&1 67675 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 67676 fi 67677 fi 67678 67679 fi 67680 67681 67682 ############################################################################### 67683 # 67684 # And now the finish... 67685 # 67686 ############################################################################### 67687 67688 # Check for some common pitfalls 67689 67690 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 67691 file_to_test="$SRC_ROOT/LICENSE" 67692 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 67693 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 67694 fi 67695 fi 67696 67697 67698 # Did user specify any unknown variables? 67699 67700 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 67701 # Replace the separating ! with spaces before presenting for end user. 67702 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 67703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 67704 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 67705 fi 67706 67707 67708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 67709 $as_echo_n "checking if build directory is on local disk... " >&6; } 67710 67711 # df -l lists only local disks; if the given directory is not found then 67712 # a non-zero exit code is given 67713 if test "x$DF" = x; then 67714 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 67715 # msys does not have df; use Windows "net use" instead. 67716 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 67717 if test "x$IS_NETWORK_DISK" = x; then 67718 OUTPUT_DIR_IS_LOCAL="yes" 67719 else 67720 OUTPUT_DIR_IS_LOCAL="no" 67721 fi 67722 else 67723 # No df here, say it's local 67724 OUTPUT_DIR_IS_LOCAL="yes" 67725 fi 67726 else 67727 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 67728 OUTPUT_DIR_IS_LOCAL="yes" 67729 else 67730 OUTPUT_DIR_IS_LOCAL="no" 67731 fi 67732 fi 67733 67734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 67735 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 67736 67737 67738 67739 # Check if the user has any old-style ALT_ variables set. 67740 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 67741 67742 # Before generating output files, test if they exist. If they do, this is a reconfigure. 67743 # Since we can't properly handle the dependencies for this, warn the user about the situation 67744 if test -e $OUTPUT_ROOT/spec.gmk; then 67745 IS_RECONFIGURE=yes 67746 else 67747 IS_RECONFIGURE=no 67748 fi 67749 67750 67751 # At the end, call the custom hook. (Dummy macro if no custom sources available) 67752 67753 67754 # This needs to be done after CUSTOM_LATE_HOOK since we can setup custom features. 67755 67756 # Keep feature lists sorted and free of duplicates 67757 JVM_FEATURES_server="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_server | $SORT -u))" 67758 JVM_FEATURES_client="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_client | $SORT -u))" 67759 JVM_FEATURES_core="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_core | $SORT -u))" 67760 JVM_FEATURES_minimal="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_minimal | $SORT -u))" 67761 JVM_FEATURES_zero="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zero | $SORT -u))" 67762 JVM_FEATURES_zeroshark="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zeroshark | $SORT -u))" 67763 JVM_FEATURES_custom="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_custom | $SORT -u))" 67764 67765 # Validate features 67766 for variant in $JVM_VARIANTS; do 67767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking JVM features for JVM variant '$variant'" >&5 67768 $as_echo_n "checking JVM features for JVM variant '$variant'... " >&6; } 67769 features_var_name=JVM_FEATURES_$variant 67770 JVM_FEATURES_TO_TEST=${!features_var_name} 67771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES_TO_TEST" >&5 67772 $as_echo "$JVM_FEATURES_TO_TEST" >&6; } 67773 NEEDLE=${VALID_JVM_FEATURES// /$'\n'} 67774 STACK=${JVM_FEATURES_TO_TEST// /$'\n'} 67775 INVALID_FEATURES=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 67776 if test "x$INVALID_FEATURES" != x; then 67777 as_fn_error $? "Invalid JVM feature(s): $INVALID_FEATURES" "$LINENO" 5 67778 fi 67779 done 67780 67781 67782 # We're messing a bit with internal autoconf variables to put the config.status 67783 # in the output directory instead of the current directory. 67784 CONFIG_STATUS="$CONFIGURESUPPORT_OUTPUTDIR/config.status" 67785 67786 # Create the actual output files. Now the main work of configure is done. 67787 cat >confcache <<\_ACEOF 67788 # This file is a shell script that caches the results of configure 67789 # tests run on this system so they can be shared between configure 67790 # scripts and configure runs, see configure's option --config-cache. 67791 # It is not useful on other systems. If it contains results you don't 67792 # want to keep, you may remove or edit it. 67793 # 67794 # config.status only pays attention to the cache file if you give it 67795 # the --recheck option to rerun configure. 67796 # 67797 # `ac_cv_env_foo' variables (set or unset) will be overridden when 67798 # loading this file, other *unset* `ac_cv_foo' will be assigned the 67799 # following values. 67800 67801 _ACEOF 67802 67803 # The following way of writing the cache mishandles newlines in values, 67804 # but we know of no workaround that is simple, portable, and efficient. 67805 # So, we kill variables containing newlines. 67806 # Ultrix sh set writes to stderr and can't be redirected directly, 67807 # and sets the high bit in the cache file unless we assign to the vars. 67808 ( 67809 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 67810 eval ac_val=\$$ac_var 67811 case $ac_val in #( 67812 *${as_nl}*) 67813 case $ac_var in #( 67814 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 67815 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 67816 esac 67817 case $ac_var in #( 67818 _ | IFS | as_nl) ;; #( 67819 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 67820 *) { eval $ac_var=; unset $ac_var;} ;; 67821 esac ;; 67822 esac 67823 done 67824 67825 (set) 2>&1 | 67826 case $as_nl`(ac_space=' '; set) 2>&1` in #( 67827 *${as_nl}ac_space=\ *) 67828 # `set' does not quote correctly, so add quotes: double-quote 67829 # substitution turns \\\\ into \\, and sed turns \\ into \. 67830 sed -n \ 67831 "s/'/'\\\\''/g; 67832 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 67833 ;; #( 67834 *) 67835 # `set' quotes correctly as required by POSIX, so do not add quotes. 67836 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 67837 ;; 67838 esac | 67839 sort 67840 ) | 67841 sed ' 67842 /^ac_cv_env_/b end 67843 t clear 67844 :clear 67845 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 67846 t end 67847 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 67848 :end' >>confcache 67849 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 67850 if test -w "$cache_file"; then 67851 if test "x$cache_file" != "x/dev/null"; then 67852 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 67853 $as_echo "$as_me: updating cache $cache_file" >&6;} 67854 if test ! -f "$cache_file" || test -h "$cache_file"; then 67855 cat confcache >"$cache_file" 67856 else 67857 case $cache_file in #( 67858 */* | ?:*) 67859 mv -f confcache "$cache_file"$$ && 67860 mv -f "$cache_file"$$ "$cache_file" ;; #( 67861 *) 67862 mv -f confcache "$cache_file" ;; 67863 esac 67864 fi 67865 fi 67866 else 67867 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 67868 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 67869 fi 67870 fi 67871 rm -f confcache 67872 67873 test "x$prefix" = xNONE && prefix=$ac_default_prefix 67874 # Let make expand exec_prefix. 67875 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 67876 67877 # Transform confdefs.h into DEFS. 67878 # Protect against shell expansion while executing Makefile rules. 67879 # Protect against Makefile macro expansion. 67880 # 67881 # If the first sed substitution is executed (which looks for macros that 67882 # take arguments), then branch to the quote section. Otherwise, 67883 # look for a macro that doesn't take arguments. 67884 ac_script=' 67885 :mline 67886 /\\$/{ 67887 N 67888 s,\\\n,, 67889 b mline 67890 } 67891 t clear 67892 :clear 67893 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 67894 t quote 67895 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 67896 t quote 67897 b any 67898 :quote 67899 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 67900 s/\[/\\&/g 67901 s/\]/\\&/g 67902 s/\$/$$/g 67903 H 67904 :any 67905 ${ 67906 g 67907 s/^\n// 67908 s/\n/ /g 67909 p 67910 } 67911 ' 67912 DEFS=`sed -n "$ac_script" confdefs.h` 67913 67914 67915 ac_libobjs= 67916 ac_ltlibobjs= 67917 U= 67918 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 67919 # 1. Remove the extension, and $U if already installed. 67920 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 67921 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 67922 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 67923 # will be set to the directory where LIBOBJS objects are built. 67924 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 67925 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 67926 done 67927 LIBOBJS=$ac_libobjs 67928 67929 LTLIBOBJS=$ac_ltlibobjs 67930 67931 67932 67933 : "${CONFIG_STATUS=./config.status}" 67934 ac_write_fail=0 67935 ac_clean_files_save=$ac_clean_files 67936 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 67937 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 67938 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 67939 as_write_fail=0 67940 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 67941 #! $SHELL 67942 # Generated by $as_me. 67943 # Run this file to recreate the current configuration. 67944 # Compiler output produced by configure, useful for debugging 67945 # configure, is in config.log if it exists. 67946 67947 debug=false 67948 ac_cs_recheck=false 67949 ac_cs_silent=false 67950 67951 SHELL=\${CONFIG_SHELL-$SHELL} 67952 export SHELL 67953 _ASEOF 67954 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 67955 ## -------------------- ## 67956 ## M4sh Initialization. ## 67957 ## -------------------- ## 67958 67959 # Be more Bourne compatible 67960 DUALCASE=1; export DUALCASE # for MKS sh 67961 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 67962 emulate sh 67963 NULLCMD=: 67964 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 67965 # is contrary to our usage. Disable this feature. 67966 alias -g '${1+"$@"}'='"$@"' 67967 setopt NO_GLOB_SUBST 67968 else 67969 case `(set -o) 2>/dev/null` in #( 67970 *posix*) : 67971 set -o posix ;; #( 67972 *) : 67973 ;; 67974 esac 67975 fi 67976 67977 67978 as_nl=' 67979 ' 67980 export as_nl 67981 # Printing a long string crashes Solaris 7 /usr/bin/printf. 67982 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 67983 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 67984 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 67985 # Prefer a ksh shell builtin over an external printf program on Solaris, 67986 # but without wasting forks for bash or zsh. 67987 if test -z "$BASH_VERSION$ZSH_VERSION" \ 67988 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 67989 as_echo='print -r --' 67990 as_echo_n='print -rn --' 67991 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 67992 as_echo='printf %s\n' 67993 as_echo_n='printf %s' 67994 else 67995 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 67996 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 67997 as_echo_n='/usr/ucb/echo -n' 67998 else 67999 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 68000 as_echo_n_body='eval 68001 arg=$1; 68002 case $arg in #( 68003 *"$as_nl"*) 68004 expr "X$arg" : "X\\(.*\\)$as_nl"; 68005 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 68006 esac; 68007 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68008 ' 68009 export as_echo_n_body 68010 as_echo_n='sh -c $as_echo_n_body as_echo' 68011 fi 68012 export as_echo_body 68013 as_echo='sh -c $as_echo_body as_echo' 68014 fi 68015 68016 # The user is always right. 68017 if test "${PATH_SEPARATOR+set}" != set; then 68018 PATH_SEPARATOR=: 68019 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 68020 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 68021 PATH_SEPARATOR=';' 68022 } 68023 fi 68024 68025 68026 # IFS 68027 # We need space, tab and new line, in precisely that order. Quoting is 68028 # there to prevent editors from complaining about space-tab. 68029 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 68030 # splitting by setting IFS to empty value.) 68031 IFS=" "" $as_nl" 68032 68033 # Find who we are. Look in the path if we contain no directory separator. 68034 as_myself= 68035 case $0 in #(( 68036 *[\\/]* ) as_myself=$0 ;; 68037 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68038 for as_dir in $PATH 68039 do 68040 IFS=$as_save_IFS 68041 test -z "$as_dir" && as_dir=. 68042 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 68043 done 68044 IFS=$as_save_IFS 68045 68046 ;; 68047 esac 68048 # We did not find ourselves, most probably we were run as `sh COMMAND' 68049 # in which case we are not to be found in the path. 68050 if test "x$as_myself" = x; then 68051 as_myself=$0 68052 fi 68053 if test ! -f "$as_myself"; then 68054 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 68055 exit 1 68056 fi 68057 68058 # Unset variables that we do not need and which cause bugs (e.g. in 68059 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 68060 # suppresses any "Segmentation fault" message there. '((' could 68061 # trigger a bug in pdksh 5.2.14. 68062 for as_var in BASH_ENV ENV MAIL MAILPATH 68063 do eval test x\${$as_var+set} = xset \ 68064 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 68065 done 68066 PS1='$ ' 68067 PS2='> ' 68068 PS4='+ ' 68069 68070 # NLS nuisances. 68071 LC_ALL=C 68072 export LC_ALL 68073 LANGUAGE=C 68074 export LANGUAGE 68075 68076 # CDPATH. 68077 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 68078 68079 68080 # as_fn_error STATUS ERROR [LINENO LOG_FD] 68081 # ---------------------------------------- 68082 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 68083 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 68084 # script with STATUS, using 1 if that was 0. 68085 as_fn_error () 68086 { 68087 as_status=$1; test $as_status -eq 0 && as_status=1 68088 if test "$4"; then 68089 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 68090 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 68091 fi 68092 $as_echo "$as_me: error: $2" >&2 68093 as_fn_exit $as_status 68094 } # as_fn_error 68095 68096 68097 # as_fn_set_status STATUS 68098 # ----------------------- 68099 # Set $? to STATUS, without forking. 68100 as_fn_set_status () 68101 { 68102 return $1 68103 } # as_fn_set_status 68104 68105 # as_fn_exit STATUS 68106 # ----------------- 68107 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 68108 as_fn_exit () 68109 { 68110 set +e 68111 as_fn_set_status $1 68112 exit $1 68113 } # as_fn_exit 68114 68115 # as_fn_unset VAR 68116 # --------------- 68117 # Portably unset VAR. 68118 as_fn_unset () 68119 { 68120 { eval $1=; unset $1;} 68121 } 68122 as_unset=as_fn_unset 68123 # as_fn_append VAR VALUE 68124 # ---------------------- 68125 # Append the text in VALUE to the end of the definition contained in VAR. Take 68126 # advantage of any shell optimizations that allow amortized linear growth over 68127 # repeated appends, instead of the typical quadratic growth present in naive 68128 # implementations. 68129 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 68130 eval 'as_fn_append () 68131 { 68132 eval $1+=\$2 68133 }' 68134 else 68135 as_fn_append () 68136 { 68137 eval $1=\$$1\$2 68138 } 68139 fi # as_fn_append 68140 68141 # as_fn_arith ARG... 68142 # ------------------ 68143 # Perform arithmetic evaluation on the ARGs, and store the result in the 68144 # global $as_val. Take advantage of shells that can avoid forks. The arguments 68145 # must be portable across $(()) and expr. 68146 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 68147 eval 'as_fn_arith () 68148 { 68149 as_val=$(( $* )) 68150 }' 68151 else 68152 as_fn_arith () 68153 { 68154 as_val=`expr "$@" || test $? -eq 1` 68155 } 68156 fi # as_fn_arith 68157 68158 68159 if expr a : '\(a\)' >/dev/null 2>&1 && 68160 test "X`expr 00001 : '.*\(...\)'`" = X001; then 68161 as_expr=expr 68162 else 68163 as_expr=false 68164 fi 68165 68166 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 68167 as_basename=basename 68168 else 68169 as_basename=false 68170 fi 68171 68172 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 68173 as_dirname=dirname 68174 else 68175 as_dirname=false 68176 fi 68177 68178 as_me=`$as_basename -- "$0" || 68179 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68180 X"$0" : 'X\(//\)$' \| \ 68181 X"$0" : 'X\(/\)' \| . 2>/dev/null || 68182 $as_echo X/"$0" | 68183 sed '/^.*\/\([^/][^/]*\)\/*$/{ 68184 s//\1/ 68185 q 68186 } 68187 /^X\/\(\/\/\)$/{ 68188 s//\1/ 68189 q 68190 } 68191 /^X\/\(\/\).*/{ 68192 s//\1/ 68193 q 68194 } 68195 s/.*/./; q'` 68196 68197 # Avoid depending upon Character Ranges. 68198 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 68199 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 68200 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 68201 as_cr_digits='0123456789' 68202 as_cr_alnum=$as_cr_Letters$as_cr_digits 68203 68204 ECHO_C= ECHO_N= ECHO_T= 68205 case `echo -n x` in #((((( 68206 -n*) 68207 case `echo 'xy\c'` in 68208 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 68209 xy) ECHO_C='\c';; 68210 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 68211 ECHO_T=' ';; 68212 esac;; 68213 *) 68214 ECHO_N='-n';; 68215 esac 68216 68217 rm -f conf$$ conf$$.exe conf$$.file 68218 if test -d conf$$.dir; then 68219 rm -f conf$$.dir/conf$$.file 68220 else 68221 rm -f conf$$.dir 68222 mkdir conf$$.dir 2>/dev/null 68223 fi 68224 if (echo >conf$$.file) 2>/dev/null; then 68225 if ln -s conf$$.file conf$$ 2>/dev/null; then 68226 as_ln_s='ln -s' 68227 # ... but there are two gotchas: 68228 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 68229 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 68230 # In both cases, we have to default to `cp -pR'. 68231 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 68232 as_ln_s='cp -pR' 68233 elif ln conf$$.file conf$$ 2>/dev/null; then 68234 as_ln_s=ln 68235 else 68236 as_ln_s='cp -pR' 68237 fi 68238 else 68239 as_ln_s='cp -pR' 68240 fi 68241 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 68242 rmdir conf$$.dir 2>/dev/null 68243 68244 68245 # as_fn_mkdir_p 68246 # ------------- 68247 # Create "$as_dir" as a directory, including parents if necessary. 68248 as_fn_mkdir_p () 68249 { 68250 68251 case $as_dir in #( 68252 -*) as_dir=./$as_dir;; 68253 esac 68254 test -d "$as_dir" || eval $as_mkdir_p || { 68255 as_dirs= 68256 while :; do 68257 case $as_dir in #( 68258 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 68259 *) as_qdir=$as_dir;; 68260 esac 68261 as_dirs="'$as_qdir' $as_dirs" 68262 as_dir=`$as_dirname -- "$as_dir" || 68263 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 68264 X"$as_dir" : 'X\(//\)[^/]' \| \ 68265 X"$as_dir" : 'X\(//\)$' \| \ 68266 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 68267 $as_echo X"$as_dir" | 68268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 68269 s//\1/ 68270 q 68271 } 68272 /^X\(\/\/\)[^/].*/{ 68273 s//\1/ 68274 q 68275 } 68276 /^X\(\/\/\)$/{ 68277 s//\1/ 68278 q 68279 } 68280 /^X\(\/\).*/{ 68281 s//\1/ 68282 q 68283 } 68284 s/.*/./; q'` 68285 test -d "$as_dir" && break 68286 done 68287 test -z "$as_dirs" || eval "mkdir $as_dirs" 68288 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 68289 68290 68291 } # as_fn_mkdir_p 68292 if mkdir -p . 2>/dev/null; then 68293 as_mkdir_p='mkdir -p "$as_dir"' 68294 else 68295 test -d ./-p && rmdir ./-p 68296 as_mkdir_p=false 68297 fi 68298 68299 68300 # as_fn_executable_p FILE 68301 # ----------------------- 68302 # Test if FILE is an executable regular file. 68303 as_fn_executable_p () 68304 { 68305 test -f "$1" && test -x "$1" 68306 } # as_fn_executable_p 68307 as_test_x='test -x' 68308 as_executable_p=as_fn_executable_p 68309 68310 # Sed expression to map a string onto a valid CPP name. 68311 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 68312 68313 # Sed expression to map a string onto a valid variable name. 68314 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 68315 68316 68317 exec 6>&1 68318 ## ----------------------------------- ## 68319 ## Main body of $CONFIG_STATUS script. ## 68320 ## ----------------------------------- ## 68321 _ASEOF 68322 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 68323 68324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68325 # Save the log message, to keep $0 and so on meaningful, and to 68326 # report actual input values of CONFIG_FILES etc. instead of their 68327 # values after options handling. 68328 ac_log=" 68329 This file was extended by OpenJDK $as_me jdk9, which was 68330 generated by GNU Autoconf 2.69. Invocation command line was 68331 68332 CONFIG_FILES = $CONFIG_FILES 68333 CONFIG_HEADERS = $CONFIG_HEADERS 68334 CONFIG_LINKS = $CONFIG_LINKS 68335 CONFIG_COMMANDS = $CONFIG_COMMANDS 68336 $ $0 $@ 68337 68338 on `(hostname || uname -n) 2>/dev/null | sed 1q` 68339 " 68340 68341 _ACEOF 68342 68343 case $ac_config_files in *" 68344 "*) set x $ac_config_files; shift; ac_config_files=$*;; 68345 esac 68346 68347 68348 68349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68350 # Files that config.status was made for. 68351 config_files="$ac_config_files" 68352 68353 _ACEOF 68354 68355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68356 ac_cs_usage="\ 68357 \`$as_me' instantiates files and other configuration actions 68358 from templates according to the current configuration. Unless the files 68359 and actions are specified as TAGs, all are instantiated by default. 68360 68361 Usage: $0 [OPTION]... [TAG]... 68362 68363 -h, --help print this help, then exit 68364 -V, --version print version number and configuration settings, then exit 68365 --config print configuration, then exit 68366 -q, --quiet, --silent 68367 do not print progress messages 68368 -d, --debug don't remove temporary files 68369 --recheck update $as_me by reconfiguring in the same conditions 68370 --file=FILE[:TEMPLATE] 68371 instantiate the configuration file FILE 68372 68373 Configuration files: 68374 $config_files 68375 68376 Report bugs to <build-dev@openjdk.java.net>. 68377 OpenJDK home page: <http://openjdk.java.net>." 68378 68379 _ACEOF 68380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68381 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 68382 ac_cs_version="\\ 68383 OpenJDK config.status jdk9 68384 configured by $0, generated by GNU Autoconf 2.69, 68385 with options \\"\$ac_cs_config\\" 68386 68387 Copyright (C) 2012 Free Software Foundation, Inc. 68388 This config.status script is free software; the Free Software Foundation 68389 gives unlimited permission to copy, distribute and modify it." 68390 68391 ac_pwd='$ac_pwd' 68392 srcdir='$srcdir' 68393 AWK='$AWK' 68394 test -n "\$AWK" || AWK=awk 68395 _ACEOF 68396 68397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68398 # The default lists apply if the user does not specify any file. 68399 ac_need_defaults=: 68400 while test $# != 0 68401 do 68402 case $1 in 68403 --*=?*) 68404 ac_option=`expr "X$1" : 'X\([^=]*\)='` 68405 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 68406 ac_shift=: 68407 ;; 68408 --*=) 68409 ac_option=`expr "X$1" : 'X\([^=]*\)='` 68410 ac_optarg= 68411 ac_shift=: 68412 ;; 68413 *) 68414 ac_option=$1 68415 ac_optarg=$2 68416 ac_shift=shift 68417 ;; 68418 esac 68419 68420 case $ac_option in 68421 # Handling of the options. 68422 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 68423 ac_cs_recheck=: ;; 68424 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 68425 $as_echo "$ac_cs_version"; exit ;; 68426 --config | --confi | --conf | --con | --co | --c ) 68427 $as_echo "$ac_cs_config"; exit ;; 68428 --debug | --debu | --deb | --de | --d | -d ) 68429 debug=: ;; 68430 --file | --fil | --fi | --f ) 68431 $ac_shift 68432 case $ac_optarg in 68433 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 68434 '') as_fn_error $? "missing file argument" ;; 68435 esac 68436 as_fn_append CONFIG_FILES " '$ac_optarg'" 68437 ac_need_defaults=false;; 68438 --he | --h | --help | --hel | -h ) 68439 $as_echo "$ac_cs_usage"; exit ;; 68440 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 68441 | -silent | --silent | --silen | --sile | --sil | --si | --s) 68442 ac_cs_silent=: ;; 68443 68444 # This is an error. 68445 -*) as_fn_error $? "unrecognized option: \`$1' 68446 Try \`$0 --help' for more information." ;; 68447 68448 *) as_fn_append ac_config_targets " $1" 68449 ac_need_defaults=false ;; 68450 68451 esac 68452 shift 68453 done 68454 68455 ac_configure_extra_args= 68456 68457 if $ac_cs_silent; then 68458 exec 6>/dev/null 68459 ac_configure_extra_args="$ac_configure_extra_args --silent" 68460 fi 68461 68462 _ACEOF 68463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68464 if \$ac_cs_recheck; then 68465 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 68466 shift 68467 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 68468 CONFIG_SHELL='$SHELL' 68469 export CONFIG_SHELL 68470 exec "\$@" 68471 fi 68472 68473 _ACEOF 68474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68475 exec 5>>config.log 68476 { 68477 echo 68478 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 68479 ## Running $as_me. ## 68480 _ASBOX 68481 $as_echo "$ac_log" 68482 } >&5 68483 68484 _ACEOF 68485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68486 _ACEOF 68487 68488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68489 68490 # Handling of arguments. 68491 for ac_config_target in $ac_config_targets 68492 do 68493 case $ac_config_target in 68494 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 68495 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 68496 "$OUTPUT_ROOT/buildjdk-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" ;; 68497 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 68498 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 68499 68500 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 68501 esac 68502 done 68503 68504 68505 # If the user did not use the arguments to specify the items to instantiate, 68506 # then the envvar interface is used. Set only those that are not. 68507 # We use the long form for the default assignment because of an extremely 68508 # bizarre bug on SunOS 4.1.3. 68509 if $ac_need_defaults; then 68510 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 68511 fi 68512 68513 # Have a temporary directory for convenience. Make it in the build tree 68514 # simply because there is no reason against having it here, and in addition, 68515 # creating and moving files from /tmp can sometimes cause problems. 68516 # Hook for its removal unless debugging. 68517 # Note that there is a small window in which the directory will not be cleaned: 68518 # after its creation but before its name has been assigned to `$tmp'. 68519 $debug || 68520 { 68521 tmp= ac_tmp= 68522 trap 'exit_status=$? 68523 : "${ac_tmp:=$tmp}" 68524 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 68525 ' 0 68526 trap 'as_fn_exit 1' 1 2 13 15 68527 } 68528 # Create a (secure) tmp directory for tmp files. 68529 68530 { 68531 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 68532 test -d "$tmp" 68533 } || 68534 { 68535 tmp=./conf$$-$RANDOM 68536 (umask 077 && mkdir "$tmp") 68537 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 68538 ac_tmp=$tmp 68539 68540 # Set up the scripts for CONFIG_FILES section. 68541 # No need to generate them if there are no CONFIG_FILES. 68542 # This happens for instance with `./config.status config.h'. 68543 if test -n "$CONFIG_FILES"; then 68544 68545 68546 ac_cr=`echo X | tr X '\015'` 68547 # On cygwin, bash can eat \r inside `` if the user requested igncr. 68548 # But we know of no other shell where ac_cr would be empty at this 68549 # point, so we can use a bashism as a fallback. 68550 if test "x$ac_cr" = x; then 68551 eval ac_cr=\$\'\\r\' 68552 fi 68553 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 68554 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 68555 ac_cs_awk_cr='\\r' 68556 else 68557 ac_cs_awk_cr=$ac_cr 68558 fi 68559 68560 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 68561 _ACEOF 68562 68563 68564 { 68565 echo "cat >conf$$subs.awk <<_ACEOF" && 68566 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 68567 echo "_ACEOF" 68568 } >conf$$subs.sh || 68569 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 68570 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 68571 ac_delim='%!_!# ' 68572 for ac_last_try in false false false false false :; do 68573 . ./conf$$subs.sh || 68574 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 68575 68576 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 68577 if test $ac_delim_n = $ac_delim_num; then 68578 break 68579 elif $ac_last_try; then 68580 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 68581 else 68582 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 68583 fi 68584 done 68585 rm -f conf$$subs.sh 68586 68587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68588 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 68589 _ACEOF 68590 sed -n ' 68591 h 68592 s/^/S["/; s/!.*/"]=/ 68593 p 68594 g 68595 s/^[^!]*!// 68596 :repl 68597 t repl 68598 s/'"$ac_delim"'$// 68599 t delim 68600 :nl 68601 h 68602 s/\(.\{148\}\)..*/\1/ 68603 t more1 68604 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 68605 p 68606 n 68607 b repl 68608 :more1 68609 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 68610 p 68611 g 68612 s/.\{148\}// 68613 t nl 68614 :delim 68615 h 68616 s/\(.\{148\}\)..*/\1/ 68617 t more2 68618 s/["\\]/\\&/g; s/^/"/; s/$/"/ 68619 p 68620 b 68621 :more2 68622 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 68623 p 68624 g 68625 s/.\{148\}// 68626 t delim 68627 ' <conf$$subs.awk | sed ' 68628 /^[^""]/{ 68629 N 68630 s/\n// 68631 } 68632 ' >>$CONFIG_STATUS || ac_write_fail=1 68633 rm -f conf$$subs.awk 68634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68635 _ACAWK 68636 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 68637 for (key in S) S_is_set[key] = 1 68638 FS = "" 68639 68640 } 68641 { 68642 line = $ 0 68643 nfields = split(line, field, "@") 68644 substed = 0 68645 len = length(field[1]) 68646 for (i = 2; i < nfields; i++) { 68647 key = field[i] 68648 keylen = length(key) 68649 if (S_is_set[key]) { 68650 value = S[key] 68651 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 68652 len += length(value) + length(field[++i]) 68653 substed = 1 68654 } else 68655 len += 1 + keylen 68656 } 68657 68658 print line 68659 } 68660 68661 _ACAWK 68662 _ACEOF 68663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68664 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 68665 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 68666 else 68667 cat 68668 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 68669 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 68670 _ACEOF 68671 68672 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 68673 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 68674 # trailing colons and then remove the whole line if VPATH becomes empty 68675 # (actually we leave an empty line to preserve line numbers). 68676 if test "x$srcdir" = x.; then 68677 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 68678 h 68679 s/// 68680 s/^/:/ 68681 s/[ ]*$/:/ 68682 s/:\$(srcdir):/:/g 68683 s/:\${srcdir}:/:/g 68684 s/:@srcdir@:/:/g 68685 s/^:*// 68686 s/:*$// 68687 x 68688 s/\(=[ ]*\).*/\1/ 68689 G 68690 s/\n// 68691 s/^[^=]*=[ ]*$// 68692 }' 68693 fi 68694 68695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68696 fi # test -n "$CONFIG_FILES" 68697 68698 68699 eval set X " :F $CONFIG_FILES " 68700 shift 68701 for ac_tag 68702 do 68703 case $ac_tag in 68704 :[FHLC]) ac_mode=$ac_tag; continue;; 68705 esac 68706 case $ac_mode$ac_tag in 68707 :[FHL]*:*);; 68708 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 68709 :[FH]-) ac_tag=-:-;; 68710 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 68711 esac 68712 ac_save_IFS=$IFS 68713 IFS=: 68714 set x $ac_tag 68715 IFS=$ac_save_IFS 68716 shift 68717 ac_file=$1 68718 shift 68719 68720 case $ac_mode in 68721 :L) ac_source=$1;; 68722 :[FH]) 68723 ac_file_inputs= 68724 for ac_f 68725 do 68726 case $ac_f in 68727 -) ac_f="$ac_tmp/stdin";; 68728 *) # Look for the file first in the build tree, then in the source tree 68729 # (if the path is not absolute). The absolute path cannot be DOS-style, 68730 # because $ac_f cannot contain `:'. 68731 test -f "$ac_f" || 68732 case $ac_f in 68733 [\\/$]*) false;; 68734 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 68735 esac || 68736 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 68737 esac 68738 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 68739 as_fn_append ac_file_inputs " '$ac_f'" 68740 done 68741 68742 # Let's still pretend it is `configure' which instantiates (i.e., don't 68743 # use $as_me), people would be surprised to read: 68744 # /* config.h. Generated by config.status. */ 68745 configure_input='Generated from '` 68746 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 68747 `' by configure.' 68748 if test x"$ac_file" != x-; then 68749 configure_input="$ac_file. $configure_input" 68750 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 68751 $as_echo "$as_me: creating $ac_file" >&6;} 68752 fi 68753 # Neutralize special characters interpreted by sed in replacement strings. 68754 case $configure_input in #( 68755 *\&* | *\|* | *\\* ) 68756 ac_sed_conf_input=`$as_echo "$configure_input" | 68757 sed 's/[\\\\&|]/\\\\&/g'`;; #( 68758 *) ac_sed_conf_input=$configure_input;; 68759 esac 68760 68761 case $ac_tag in 68762 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 68763 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 68764 esac 68765 ;; 68766 esac 68767 68768 ac_dir=`$as_dirname -- "$ac_file" || 68769 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 68770 X"$ac_file" : 'X\(//\)[^/]' \| \ 68771 X"$ac_file" : 'X\(//\)$' \| \ 68772 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 68773 $as_echo X"$ac_file" | 68774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 68775 s//\1/ 68776 q 68777 } 68778 /^X\(\/\/\)[^/].*/{ 68779 s//\1/ 68780 q 68781 } 68782 /^X\(\/\/\)$/{ 68783 s//\1/ 68784 q 68785 } 68786 /^X\(\/\).*/{ 68787 s//\1/ 68788 q 68789 } 68790 s/.*/./; q'` 68791 as_dir="$ac_dir"; as_fn_mkdir_p 68792 ac_builddir=. 68793 68794 case "$ac_dir" in 68795 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 68796 *) 68797 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 68798 # A ".." for each directory in $ac_dir_suffix. 68799 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 68800 case $ac_top_builddir_sub in 68801 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 68802 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 68803 esac ;; 68804 esac 68805 ac_abs_top_builddir=$ac_pwd 68806 ac_abs_builddir=$ac_pwd$ac_dir_suffix 68807 # for backward compatibility: 68808 ac_top_builddir=$ac_top_build_prefix 68809 68810 case $srcdir in 68811 .) # We are building in place. 68812 ac_srcdir=. 68813 ac_top_srcdir=$ac_top_builddir_sub 68814 ac_abs_top_srcdir=$ac_pwd ;; 68815 [\\/]* | ?:[\\/]* ) # Absolute name. 68816 ac_srcdir=$srcdir$ac_dir_suffix; 68817 ac_top_srcdir=$srcdir 68818 ac_abs_top_srcdir=$srcdir ;; 68819 *) # Relative name. 68820 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 68821 ac_top_srcdir=$ac_top_build_prefix$srcdir 68822 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 68823 esac 68824 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 68825 68826 68827 case $ac_mode in 68828 :F) 68829 # 68830 # CONFIG_FILE 68831 # 68832 68833 _ACEOF 68834 68835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68836 # If the template does not know about datarootdir, expand it. 68837 # FIXME: This hack should be removed a few years after 2.60. 68838 ac_datarootdir_hack=; ac_datarootdir_seen= 68839 ac_sed_dataroot=' 68840 /datarootdir/ { 68841 p 68842 q 68843 } 68844 /@datadir@/p 68845 /@docdir@/p 68846 /@infodir@/p 68847 /@localedir@/p 68848 /@mandir@/p' 68849 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 68850 *datarootdir*) ac_datarootdir_seen=yes;; 68851 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 68852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 68853 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 68854 _ACEOF 68855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68856 ac_datarootdir_hack=' 68857 s&@datadir@&$datadir&g 68858 s&@docdir@&$docdir&g 68859 s&@infodir@&$infodir&g 68860 s&@localedir@&$localedir&g 68861 s&@mandir@&$mandir&g 68862 s&\\\${datarootdir}&$datarootdir&g' ;; 68863 esac 68864 _ACEOF 68865 68866 # Neutralize VPATH when `$srcdir' = `.'. 68867 # Shell code in configure.ac might set extrasub. 68868 # FIXME: do we really want to maintain this feature? 68869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68870 ac_sed_extra="$ac_vpsub 68871 $extrasub 68872 _ACEOF 68873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68874 :t 68875 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 68876 s|@configure_input@|$ac_sed_conf_input|;t t 68877 s&@top_builddir@&$ac_top_builddir_sub&;t t 68878 s&@top_build_prefix@&$ac_top_build_prefix&;t t 68879 s&@srcdir@&$ac_srcdir&;t t 68880 s&@abs_srcdir@&$ac_abs_srcdir&;t t 68881 s&@top_srcdir@&$ac_top_srcdir&;t t 68882 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 68883 s&@builddir@&$ac_builddir&;t t 68884 s&@abs_builddir@&$ac_abs_builddir&;t t 68885 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 68886 $ac_datarootdir_hack 68887 " 68888 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 68889 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 68890 68891 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 68892 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 68893 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 68894 "$ac_tmp/out"`; test -z "$ac_out"; } && 68895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 68896 which seems to be undefined. Please make sure it is defined" >&5 68897 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 68898 which seems to be undefined. Please make sure it is defined" >&2;} 68899 68900 rm -f "$ac_tmp/stdin" 68901 case $ac_file in 68902 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 68903 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 68904 esac \ 68905 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 68906 ;; 68907 68908 68909 68910 esac 68911 68912 done # for ac_tag 68913 68914 68915 as_fn_exit 0 68916 _ACEOF 68917 ac_clean_files=$ac_clean_files_save 68918 68919 test $ac_write_fail = 0 || 68920 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 68921 68922 68923 # configure is writing to config.log, and then calls config.status. 68924 # config.status does its own redirection, appending to config.log. 68925 # Unfortunately, on DOS this fails, as config.log is still kept open 68926 # by configure, so config.status won't be able to write to it; its 68927 # output is simply discarded. So we exec the FD to /dev/null, 68928 # effectively closing config.log, so it can be properly (re)opened and 68929 # appended to by config.status. When coming back to configure, we 68930 # need to make the FD available again. 68931 if test "$no_create" != yes; then 68932 ac_cs_success=: 68933 ac_config_status_args= 68934 test "$silent" = yes && 68935 ac_config_status_args="$ac_config_status_args --quiet" 68936 exec 5>/dev/null 68937 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 68938 exec 5>>config.log 68939 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 68940 # would make configure fail if this is the last instruction. 68941 $ac_cs_success || as_fn_exit 1 68942 fi 68943 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 68944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 68945 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 68946 fi 68947 68948 68949 # After AC_OUTPUT, we need to do final work 68950 68951 68952 # Try to move config.log (generated by autoconf) to the configure-support directory. 68953 if test -e ./config.log; then 68954 $MV -f ./config.log "$CONFIGURESUPPORT_OUTPUTDIR/config.log" 2> /dev/null 68955 fi 68956 68957 # Rotate our log file (configure.log) 68958 if test -e "$OUTPUT_ROOT/configure.log.old"; then 68959 $RM -f "$OUTPUT_ROOT/configure.log.old" 68960 fi 68961 if test -e "$OUTPUT_ROOT/configure.log"; then 68962 $MV -f "$OUTPUT_ROOT/configure.log" "$OUTPUT_ROOT/configure.log.old" 2> /dev/null 68963 fi 68964 68965 # Move configure.log from current directory to the build output root 68966 if test -e ./configure.log; then 68967 $MV -f ./configure.log "$OUTPUT_ROOT/configure.log" 2> /dev/null 68968 fi 68969 68970 # Make the compare script executable 68971 $CHMOD +x $OUTPUT_ROOT/compare.sh 68972 68973 68974 # Finally output some useful information to the user 68975 68976 # Finally output some useful information to the user 68977 68978 printf "\n" 68979 printf "====================================================\n" 68980 if test "x$no_create" != "xyes"; then 68981 if test "x$IS_RECONFIGURE" != "xyes"; then 68982 printf "A new configuration has been successfully created in\n%s\n" "$OUTPUT_ROOT" 68983 else 68984 printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUT_ROOT" 68985 fi 68986 else 68987 if test "x$IS_RECONFIGURE" != "xyes"; then 68988 printf "A configuration has been successfully checked but not created\n" 68989 else 68990 printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUT_ROOT" 68991 fi 68992 fi 68993 if test "x$CONFIGURE_COMMAND_LINE" != x; then 68994 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 68995 else 68996 printf "using default settings.\n" 68997 fi 68998 68999 printf "\n" 69000 printf "Configuration summary:\n" 69001 printf "* Debug level: $DEBUG_LEVEL\n" 69002 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 69003 printf "* JDK variant: $JDK_VARIANT\n" 69004 printf "* JVM variants: $JVM_VARIANTS\n" 69005 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 69006 printf "* Version string: $VERSION_STRING ($VERSION_SHORT)\n" 69007 69008 printf "\n" 69009 printf "Tools summary:\n" 69010 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 69011 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 69012 fi 69013 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 69014 if test "x$TOOLCHAIN_VERSION" != "x"; then 69015 print_version=" $TOOLCHAIN_VERSION" 69016 fi 69017 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION$print_version)\n" 69018 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 69019 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 69020 69021 printf "\n" 69022 printf "Build performance summary:\n" 69023 printf "* Cores to use: $JOBS\n" 69024 printf "* Memory limit: $MEMORY_SIZE MB\n" 69025 if test "x$CCACHE_STATUS" != "x"; then 69026 printf "* ccache status: $CCACHE_STATUS\n" 69027 fi 69028 printf "\n" 69029 69030 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then 69031 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 69032 printf "will result in longer build times.\n" 69033 printf "\n" 69034 fi 69035 69036 if test "x$FOUND_ALT_VARIABLES" != "x"; then 69037 printf "WARNING: You have old-style ALT_ environment variables set.\n" 69038 printf "These are not respected, and will be ignored. It is recommended\n" 69039 printf "that you clean your environment. The following variables are set:\n" 69040 printf "$FOUND_ALT_VARIABLES\n" 69041 printf "\n" 69042 fi 69043 69044 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 69045 printf "WARNING: Your build output directory is not on a local disk.\n" 69046 printf "This will severely degrade build performance!\n" 69047 printf "It is recommended that you create an output directory on a local disk,\n" 69048 printf "and run the configure script again from that directory.\n" 69049 printf "\n" 69050 fi 69051 69052 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 69053 printf "WARNING: The result of this configuration has overridden an older\n" 69054 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 69055 printf "proper build. Failure to do so might result in strange build problems.\n" 69056 printf "\n" 69057 fi 69058 69059 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 69060 printf "WARNING: The result of this configuration was not saved.\n" 69061 printf "You should run without '--no-create | -n' to create the configuration.\n" 69062 printf "\n" 69063 fi 69064 69065 69066 69067 # Locate config.log. 69068 if test -e "$CONFIGURESUPPORT_OUTPUTDIR/config.log"; then 69069 CONFIG_LOG_PATH="$CONFIGURESUPPORT_OUTPUTDIR" 69070 elif test -e "./config.log"; then 69071 CONFIG_LOG_PATH="." 69072 fi 69073 69074 if test -e "$CONFIG_LOG_PATH/config.log"; then 69075 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" > /dev/null 2>&1 69076 if test $? -eq 0; then 69077 printf "The following warnings were produced. Repeated here for convenience:\n" 69078 # We must quote sed expression (using []) to stop m4 from eating the []. 69079 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" | $SED -e 's/^configure:[0-9]*: //' 69080 printf "\n" 69081 fi 69082 fi 69083